/* Scoped adaptation of Radiant Blocks' Radiant Joy gameplay UI. */
@font-face{font-family:RadiantSora;src:url('/assets/fonts/Sora-ExtraBold.woff') format('woff');font-weight:800;font-display:swap}
@font-face{font-family:RadiantInter;src:url('/assets/fonts/Inter-UI.woff') format('woff');font-weight:500;font-display:swap}
@font-face{font-family:RadiantInter;src:url('/assets/fonts/Inter-Bold.woff') format('woff');font-weight:700;font-display:swap}
.preview-wrap{width:440px;max-width:92%;margin:60px auto}
.preview-header{font-size:12px;gap:10px;flex-wrap:wrap}
.demo{font-family:RadiantInter,Arial,sans-serif;font-weight:500;padding:24px;color:#fff7ff;background:linear-gradient(#29076abd,#340866c9),url('/assets/joy-opening-valley-clean.webp') center/cover;border:1px solid #c587ff99;border-radius:26px;box-shadow:inset 0 1px 0 #f6d4ff66,0 28px 60px #16033666}
.demo-scorebar{display:grid;grid-template-columns:minmax(0,1fr) 94px 44px;gap:12px;align-items:start;min-height:90px;margin-bottom:18px}
.demo-scorebar span{display:block;font-size:12px;color:#e0cafb;line-height:1.4}
.demo-score-main>span{letter-spacing:1.4px}
.demo-scorebar strong{display:block;font-family:RadiantSora,Arial,sans-serif;font-weight:800;font-size:15px;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
.demo-score-main{container-type:inline-size;min-width:0}
.demo-score-main strong{font-size:clamp(24px,19cqi,46px);letter-spacing:-1px;line-height:1.2;margin-top:8px;color:#ffdc38;text-shadow:0 1px #ffeda0,0 2px #a647d8,0 3px #8826bb,0 4px #652091,0 6px 10px #1e064e80}
.demo-score-details>div{padding-left:12px;border-left:1px solid #b96bf280}
.demo-score-details>div+div{margin-top:8px}.demo-score-details>div:last-child strong{color:#fff0b3}
.demo-menu{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#7130bd,#37106f 75%);border:1px solid #d698ff;box-shadow:inset 0 2px 2px #ffe3ff70,inset 0 -3px 2px #1b064c,0 2px #721bad}
.demo-menu span{font-size:24px;color:#ffe6a9}
.demo-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:14px;align-items:stretch;margin-bottom:18px}
.demo-powers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch}
.demo-power{position:relative;display:grid;place-items:center;min-height:58px;border-radius:12px;background:linear-gradient(145deg,#622495,#28085a 80%);border:1px solid #c887ff;box-shadow:inset 0 2px 2px #f4c8ff65,inset 0 -3px 2px #1d0547,0 2px #712897}
.demo .power-art{display:block;width:34px;height:34px;max-width:100%;aspect-ratio:1;background:url('/assets/radiance-powers.webp') 0 50%/300% 100% no-repeat;border-radius:8px}
.demo .power-art.beam{background-position:50% 50%}.demo .power-art.glory{background-position:100% 50%}
.demo-power small{position:absolute;right:-3px;top:-7px;padding:2px 4px;font-size:12px;line-height:1.3;background:#281050;border:1px solid #ad67dc;border-radius:8px;color:#fff0b3;white-space:nowrap}
.demo-discovery{display:flex;border:1px solid #e5a1fc;border-radius:13px;overflow:hidden;background:linear-gradient(140deg,#a43bd4,#621aad 45%,#4a107d);box-shadow:inset 0 2px 2px #ffdfb775,inset 0 -3px 2px #370967,0 2px #83259f}
#demo-read{display:flex;flex:1;min-width:0;align-items:center;gap:6px;padding:6px;border:0;background:transparent;color:#fff7ff;text-align:left;min-height:58px}
#demo-read:disabled{background:linear-gradient(140deg,#522074,#35135a);cursor:default;opacity:1}
#demo-read img{width:26px;height:30px;object-fit:contain;flex-shrink:0}
#demo-read strong{font-size:13px;line-height:1.2;display:block}#demo-read small{display:block;font-size:12px;line-height:1.4;color:#e0cafb;margin-top:3px}
#demo-read:not(:disabled) small{background:#adfa34;color:#244205;border-radius:10px;padding:1px 6px;font-weight:700;width:fit-content}
.demo-wallet{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:30px;padding:3px;border-left:1px solid #ebaffb90;color:#ffe24d;background:#3b076b33}
.demo-wallet span{font-size:14px}.demo-wallet strong{font:800 18px/1.3 RadiantSora,Arial,sans-serif}
.demo .board-shell{padding:10px;border-radius:18px;border:2px solid #ffe36b;background:linear-gradient(145deg,#8a2ee1,#4e1597 55%,#822bd1);box-shadow:inset 0 0 0 2px #fff1a5,inset 0 0 0 5px #a953ef,0 0 0 2px #ffcb24,0 4px 0 2px #ac680e,0 9px 25px #1b034e80}
.demo .board{padding:0;gap:4px;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));border-radius:10px;background:#230d49;box-shadow:none}
.demo .cell{position:relative;min-width:0;min-height:0;aspect-ratio:1;border:0;border-radius:19%;background:#713c99;box-shadow:inset 0 1px 2px #ca82ed60}
.demo .cell:before{content:'';position:absolute;inset:1px;border-radius:inherit;background:linear-gradient(145deg,#422064,#27113f 70%);box-shadow:inset 0 2px 5px #b56dde25,inset 0 -1px 3px #16093090}
.demo .c1{--light:#55edff;--color:#00bded;--edge:#0078ce}.demo .c2{--light:#fff05b;--color:#ffc600;--edge:#d47f00}.demo .c3{--light:#75a4ff;--color:#3b65f6;--edge:#343ac9}.demo .c4{--light:#ff88ef;--color:#f316cb;--edge:#a513ab}.demo .c5{--light:#dd8cff;--color:#ae28f5;--edge:#7022bb}.demo .c6{--light:#ffca6d;--color:#ff8c1b;--edge:#ce501b}
.demo .cell.filled{border-radius:18%;background:linear-gradient(140deg,#fff9,var(--light) 15%,var(--edge) 75%,var(--color));box-shadow:inset 0 1px 1px #fff9,inset 0 -2px 1px var(--edge),0 1px 1px #240b46a0}
.demo .cell.filled:before{inset:7%;border-radius:13%;background:conic-gradient(from 45deg at 50% 50%,var(--color) 0deg 90deg,var(--edge) 90deg 180deg,var(--color) 180deg 270deg,var(--light) 270deg 360deg);box-shadow:inset 0 0 0 1px #ffffff70}
.demo .cell.filled:after{content:'';position:absolute;inset:8%;border:0;border-radius:13%;background:linear-gradient(45deg,transparent 48.8%,#fff8 49.5%,#fff5 50.5%,transparent 51.2%),linear-gradient(-45deg,transparent 48.8%,#fff5 49.5%,#fff7 50.5%,transparent 51.2%);box-shadow:inset 0 1px #fffb,inset 1px 0 #fff6}
.demo .cell.hint{outline:1px solid #ffe780;outline-offset:-1px}
.demo-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.demo-piece-slot{position:relative;display:grid;place-items:center;min-width:0;min-height:70px;padding:10px;border:1px solid #bd7fea;border-radius:14px;background:linear-gradient(145deg,#56258c,#2c0b62 75%);box-shadow:inset 0 2px 2px #e7a8ff60,inset 0 -3px 3px #1d074f,0 2px #70239b}
.demo-piece-slot.selected{border-color:#fff09a;box-shadow:inset 0 0 0 2px #ffd32b,0 0 12px #ffcf2340}
.demo-piece-slot.used{opacity:.55;cursor:default}.demo-piece-slot.used .demo-piece{visibility:hidden}.demo-piece-slot.used:after{content:'✓';position:absolute;color:#e0cafb;font-size:22px}
.demo-piece{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:3px;width:calc(var(--columns)*19px);max-width:100%}.demo-piece .cell{width:100%;display:block}
.demo .demo-top{font-size:15px;margin:20px 0 0;justify-content:center;text-align:center;line-height:1.5}.demo .demo-status{margin:8px 0 16px;color:#e0cafb;font-size:13px;line-height:1.5;min-height:40px}.demo-status>span:first-child{max-width:270px}
.demo .preview-button{font-family:RadiantInter,Arial,sans-serif;font-size:14px;font-weight:700;color:#36105f;background:linear-gradient(#fff19d,#ffda38 46%,#ffb912);border:1px solid #fff1a5;border-radius:14px;box-shadow:inset 0 2px #fff9,0 3px #aa600e;min-height:48px;padding:12px 15px}.demo .preview-button:hover{background:linear-gradient(#fff4b7,#ffe15c 46%,#ffca30)}
.demo .verse-preview{inset:8px;border:1px solid #f9d974;background:linear-gradient(145deg,#672a9af5,#2f105cfb);color:#fff6e0;padding:18px;overflow:auto;justify-content:safe center}
.demo .verse-preview img{width:44px;height:46px;object-fit:contain;flex-shrink:0}.demo .verse-preview .eyebrow{color:#ffdf73;margin:10px 0 0;font-size:12px}.demo .verse-preview blockquote{font:700 clamp(18px,2vw,23px)/1.4 RadiantInter,Arial,sans-serif;margin:14px 0;color:#fff6e0}.demo .verse-preview cite{font-size:12px;letter-spacing:1px;color:#ffdf73}.demo .verse-preview>p:last-child{font-size:13px;line-height:1.5;color:#e0cafb;margin-top:14px}
.demo a:hover{filter:brightness(1.1)}.demo button:focus-visible,.demo a:focus-visible{outline-color:#fff1a5;outline-offset:4px}
@media(min-width:761px) and (max-width:1050px){.game-showcase{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}.demo{padding:18px}.demo-scorebar{grid-template-columns:minmax(0,1fr) 82px 40px;gap:8px}.demo-menu{width:40px;height:44px}.demo-tools{gap:10px}.demo-powers{gap:7px}#demo-read img{display:none}}
@media(max-width:760px){.preview-wrap{width:440px;max-width:92%;margin:40px auto}.demo{padding:18px}.demo .demo-status{font-size:14px}.demo .demo-top{font-size:16px}}
@media(max-width:400px){.demo{padding:13px}.demo-scorebar{grid-template-columns:minmax(0,1fr) 80px 36px;gap:8px}.demo-menu{width:36px;height:44px}.demo-tools{gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.demo-powers{gap:7px}#demo-read img{display:none}.demo .board-shell{padding:8px}.demo .board{gap:3px}.demo-tray{gap:8px}.demo-piece-slot{padding:8px;min-height:64px}.demo .verse-preview{padding:12px}.demo .verse-preview img{display:none}.demo .verse-preview blockquote{font-size:18px;margin:8px 0}}
