:root{--ink:#1b1840;--ink-deep:#120f2e;--cream:#fff4e0;--muted:#b9b3e6;--gold:#ffd23f;--red:#ff5a5f;--blue:#3fa9f5;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}html,body{background:var(--ink-deep);overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;height:100%;margin:0;overflow:hidden}#game{touch-action:none;color:var(--cream);position:fixed;inset:0}#stage{touch-action:none;display:block;position:absolute;inset:0}.screen{box-sizing:border-box;z-index:5;place-items:center;padding:16px;display:grid;position:absolute;inset:0}.screen[hidden]{display:none}.screen.bottom{padding-bottom:max(28px, env(safe-area-inset-bottom));pointer-events:none;grid-template-columns:minmax(0,1fr);place-items:end center}.screen.bottom .panel{pointer-events:auto}.panel{box-sizing:border-box;border-style:solid;border-width:26px;border-image:var(--img-panel) 70 fill / 26px stretch;text-align:center;background:0 0}.no-skin .panel{background:#2a2470;border:5px solid #6a63d8;border-radius:22px;padding:18px}.menu-panel{flex-direction:column;align-items:center;gap:10px;width:min(360px,100%);display:flex}.key-art{background:var(--img-key-art) center / contain no-repeat;filter:drop-shadow(0 6px 10px #00000059);width:132px;height:132px;margin-top:-6px}h1{letter-spacing:.5px;color:var(--gold);text-shadow:0 3px #b07800,0 6px 12px #00000073;margin:0;font-size:34px;font-weight:900}.sub{color:var(--muted);margin:0 0 4px;font-size:15px;font-weight:700}.btn{box-sizing:border-box;border-style:solid;border-width:0 26px;border-image:var(--img-btn-secondary) 0 34% fill / 0 26px stretch;min-width:120px;min-height:52px;color:var(--cream);cursor:pointer;text-shadow:0 2px #00000059;touch-action:manipulation;background:0 0;justify-content:center;align-items:center;gap:10px;padding:0 22px;font:900 18px/1 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;transition:transform 80ms;display:inline-flex}.btn.primary{border-image-source:var(--img-btn-primary);color:#4a2a00;text-shadow:0 1px #ffffff80}.btn.big{width:100%;min-height:60px;font-size:20px}.btn:active{transform:scale(.95)}.btn:focus:not(:focus-visible),.level:focus:not(:focus-visible){outline:none}.btn:focus-visible,.level:focus-visible{outline:3px solid var(--cream);outline-offset:2px}.no-skin .btn{background:#3a3392;border:0;border-radius:999px;box-shadow:inset 0 -4px #00000040}.no-skin .btn.primary{background:var(--gold)}.badge{background:50%/contain no-repeat;flex:none;width:34px;height:34px}.badge.bot{background-image:var(--img-badge-bot)}.badge.versus{background-image:var(--img-badge-versus)}.levels{box-sizing:border-box;background:#0a061e73;border-radius:999px;gap:6px;width:100%;padding:4px;display:flex}.level{min-height:44px;color:var(--muted);cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:999px;flex:1;font:800 15px/1 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.level[aria-checked=true]{background:var(--cream);color:var(--ink);box-shadow:0 3px #0000004d}.shelf{flex-wrap:nowrap;justify-content:center;align-items:center;gap:4px;min-height:34px;margin-top:4px;display:flex}.shelf .trophy,.shelf .star{background:50%/contain no-repeat;flex:none;width:26px;height:26px}.shelf .trophy{background-image:var(--img-trophy)}.shelf .star{background-image:var(--img-star);width:17px;height:17px}.shelf .off{filter:grayscale()brightness(.45);opacity:.7}.shelf .gap{width:8px}.foot{min-height:1em;color:var(--muted);margin:0;font-size:13px;font-weight:700}.result-panel{width:min(340px,100%);min-width:0;max-width:100%}.result-line{color:var(--muted);margin:0 0 10px;font-size:15px;font-weight:800}.row{justify-content:center;gap:10px;display:flex}.row .btn{flex:1 1 0;min-width:0;padding:0 6px}.toast{opacity:0;border:2px solid var(--gold);pointer-events:none;z-index:8;white-space:nowrap;background:#120f2eeb;border-radius:999px;padding:10px 18px;font-size:15px;font-weight:800;transition:opacity .25s,transform .25s;position:absolute;top:70px;left:50%;transform:translate(-50%,-20px)}.toast.on{opacity:1;transform:translate(-50%)}@media (height<=600px){.key-art{width:84px;height:84px}.menu-panel{gap:6px}}
