*{box-sizing:border-box}
body{margin:0;background:#0b0f1d;color:#fff6e4;font:1rem system-ui,sans-serif}
main{width:min(100% - 2rem,32rem);margin:auto;padding:1.5rem 0}
main.wide{width:min(100% - 2rem,46rem)}
.brand{font-weight:900;color:#4cc8ff;letter-spacing:.02em}
h1{font-size:clamp(1.8rem,7vw,3rem);line-height:1;margin:.5rem 0 .8rem;letter-spacing:-.03em}
p{color:#b9c4e6;margin:.4rem 0 1rem}
a{color:#4cc8ff}
button,.btn{appearance:none;border:0;border-radius:.65rem;background:#ffd449;color:#0b0f1d;font:inherit;font-weight:800;min-height:46px;padding:.65rem 1rem;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.ghost{background:#1c2542;color:#fff6e4}
button:focus-visible,.btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.row{display:flex;flex-wrap:wrap;gap:.5rem}
.tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin:1rem 0}
.tabs button{background:#1c2542;color:#fff6e4;min-height:40px;padding:.45rem .8rem}
.tabs button[aria-current=true]{background:#4cc8ff;color:#0b0f1d}
.stage{background:var(--tee,#111);border-radius:1rem;padding:1rem;display:flex;justify-content:center}
.stage canvas{max-width:100%;height:auto;max-height:70dvh}
.cards{display:grid;gap:.8rem;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr))}
.card{background:#141b31;border-radius:1rem;padding:1rem}
.card img{width:100%;aspect-ratio:1;object-fit:contain;background:var(--tee);border-radius:.6rem}
.card h2{font-size:1.1rem;margin:.6rem 0 .5rem}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
[hidden]{display:none!important}
body.bare main>:not(#stage){display:none}body.bare main{padding:0;width:100%}body.bare .stage{border-radius:0;padding:0}
.group{font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;color:#8fa0d0;margin:1rem 0 .2rem}
.scene-name{font-size:1.3rem;margin:.8rem 0 .5rem}
.tips{background:#141b31;border-radius:1rem;padding:.6rem 1rem;margin-top:.8rem}
.tips p{margin:.5rem 0}.tips b{color:#fff6e4}
.cap{align-items:center;justify-content:space-between}
.small{min-height:38px;padding:.4rem .75rem;font-size:.9rem}
.note{color:#ffd449}
.field{display:flex;flex-direction:column;gap:.3rem;color:#b9c4e6;margin:.4rem 0 1rem;max-width:22rem}
.field input{font:inherit;padding:.6rem .7rem;border-radius:.6rem;border:1px solid #3a4a7a;background:#0f1528;color:#fff6e4}
.stage canvas{cursor:pointer}
