:root{color:#e7f6ea;background:#0e1410;font-family:Segoe UI,sans-serif;--pill: linear-gradient(180deg, rgb(255 255 255 / 62%) 0%, rgb(255 255 255 / 0%) 36%), linear-gradient(180deg, #dfff7a 0%, #7ee044 48%, #249433 100%);--pill-shadow: inset 0 1px 0 rgb(255 255 255 / 78%), inset 0 -4px 0 rgb(16 92 28 / 32%), 0 8px 16px rgb(4 24 12 / 42%)}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,.board{touch-action:none}.app{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px 16px}.gate{position:relative;height:100dvh;overflow:hidden;display:flex;align-items:flex-end;justify-content:center;padding-bottom:2vh}.gate-splash{padding-bottom:8vh}.gate-art,.gate-shade{position:absolute;top:0;right:0;bottom:0;left:0;filter:brightness(var(--app-brightness, 1))}.start{filter:brightness(var(--app-brightness, 1))}.start button,.gate-play,.pad button,.overlay button,.attempt-card button{filter:brightness(var(--button-brightness, 1))}.start button{filter:brightness(calc(var(--button-brightness, 1) / var(--app-brightness, 1)))}.gate-art{background-color:#042433;background-position:center;background-size:contain;background-repeat:no-repeat}.gate-shade{background:linear-gradient(180deg,#030c1047,#030e106b)}.gate-splash .gate-shade{background:linear-gradient(180deg,#030c100f,#030e101a)}.gate-play,.start button,.overlay button,.pad button,.attempt-card button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:999px;background:var(--pill);color:#f7fff4;text-shadow:0 1px 0 rgb(18 72 24 / 40%);box-shadow:var(--pill-shadow);font:inherit;font-weight:750;padding:14px 28px;cursor:pointer}.gate-play{position:relative;z-index:1;min-width:196px;padding:18px 36px;font-size:22px}.gate-play-mark{width:0;height:0;border-style:solid;border-width:8px 0 8px 14px;border-color:transparent transparent transparent #f7fff4;filter:drop-shadow(0 1px 0 rgb(18 72 24 / 40%))}.gate-play:hover,.start button:hover,.overlay button:hover,.pad button:hover,.attempt-card button:hover{filter:brightness(1.06)}.gate-play:active,.start button:active,.overlay button:active,.pad button:active,.attempt-card button:active{transform:translateY(1px)}.app{height:100dvh;min-height:0;overflow:hidden}.start{position:relative;z-index:1;width:min(92vw,440px);max-height:70dvh;margin:0 auto;overflow:auto;display:flex;flex-direction:column;align-items:center;gap:16px;padding:20px 16px 8px;text-align:center;background:linear-gradient(180deg,#040e1014,#040e10c7);border-radius:28px}.start h1,.overlay h1,.overlay h2{margin:0;font-weight:650}.start h1{font-size:40px;letter-spacing:.04em}.eyebrow,.slogan,.record,.start .hint,.xp-bar p{margin:0}.xp-bar{display:grid;gap:6px;width:min(280px,100%);margin:4px auto 0;text-align:left}.xp-bar p{color:#d7ffe4;font-size:13px}.xp-bar-track{height:8px;overflow:hidden;border-radius:999px;background:#ffffff29}.xp-bar-track span{display:block;height:100%;background:#3ddc84}.eyebrow{color:#3ddc84;font-size:13px;letter-spacing:.14em;text-transform:uppercase}.slogan,.record,.start ul{color:#9fb8a6}.start ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;text-align:left}.start .actions,.overlay .actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.start .secondary,.overlay .secondary{background:var(--pill);color:#f7fff4;border:0}.start .modes{width:100%;display:flex;flex-direction:column;gap:8px}.start .modes button{width:100%;border-radius:999px;text-align:center;padding:12px 18px}.start .modes p{margin:4px 0 0;color:#9fb8a6;font-size:14px;text-align:left}.start .modes button[aria-selected=true],.start .modes button[aria-pressed=true],.start .levels button[aria-selected=true]{color:#f7fff4;box-shadow:0 0 0 3px #f4f0cf,var(--pill-shadow)}.start .modes button:disabled,.start .levels button:disabled{opacity:.55;cursor:not-allowed}.start .levels{width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.start .levels p{width:100%;margin:4px 0 0;color:#9fb8a6;font-size:14px}.start .levels button{width:44px;height:44px;padding:0;border-radius:999px}.start .levels.levels-hunter{gap:6px}.start .levels.levels-hunter button{width:40px;height:40px;border-radius:999px;font-size:14px}.start .actions.menu-tabs{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.start .settings-panel .actions.menu-tabs{grid-template-columns:1fr 1fr 1fr}.start .actions.menu-tabs button{width:100%;min-width:0;padding:12px 10px;white-space:normal;line-height:1.2}.start .actions.menu-tabs button[aria-expanded=true]{box-shadow:0 0 0 3px #f4f0cf,var(--pill-shadow)}.start .tester-toggle{grid-column:1 / -1}.start .settings-panel{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:12px;text-align:left;color:#e7f6ea}.start .settings-panel label{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;font-size:14px;font-weight:700}.start .settings-panel input[type=range]{width:100%;height:32px;margin:0;accent-color:#b6ff62;cursor:pointer}.hud{width:min(92vw,520px);display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.hud span{color:#9fb8a6;font-size:14px}.hud strong{display:block;margin-top:2px;color:#e7f6ea;font-size:22px}.hud .hud-effect{white-space:nowrap}.hud .hud-effect strong{display:inline;margin-top:0;margin-left:8px}.stage{position:relative;width:min(92vw,520px,calc(100dvh - 220px));aspect-ratio:1;overflow:hidden;flex:0 0 auto;min-height:0}.stage.stage-tetra{width:auto;height:min(68dvh,calc(100dvh - 180px));aspect-ratio:10 / 30;max-width:92vw}.board{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border-radius:12px;background:#14201a}.countdown{position:absolute;top:12px;left:50%;z-index:1;min-width:56px;padding:2px 14px 6px;transform:translate(-50%);border-radius:999px;background:#080c0ac7;color:#e7f6ea;font-size:40px;font-weight:700;line-height:1;text-align:center;pointer-events:none}.overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center;background:#080c0ab8;border-radius:12px}.overlay p,.hint{margin:0;color:#9fb8a6}.pad{display:grid;grid-template-columns:repeat(3,64px);gap:8px;justify-content:center}.pad button{height:64px;padding:0}.pad .up{grid-column:2}.pad .left{grid-column:1}.pad .down{grid-column:2}.pad .right{grid-column:3}.spark-burst{position:fixed;z-index:20;width:0;height:0;pointer-events:none}.spark-burst span{position:absolute;width:9px;height:9px;border-radius:1px;box-shadow:0 0 6px #fff,0 0 16px #f4ff6af2;animation:spark-fly .86s ease-out forwards}@keyframes spark-fly{0%{opacity:1;transform:translate(-50%,-50%) rotate(var(--spin)) scale(1.2)}60%{opacity:1;transform:translate(calc(-50% + var(--dx) * .72),calc(-50% + var(--dy) * .72)) rotate(calc(var(--spin) + 28deg)) scale(1)}to{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(calc(var(--spin) + 50deg)) scale(.2)}}.sound-controls{position:fixed;top:12px;right:12px;z-index:6;display:flex;flex-direction:column;gap:6px;padding:8px 10px;border-radius:16px;background:#0412108c}.sound-slider{display:flex;align-items:center;gap:8px;color:#f7fff4;font-size:13px;font-weight:700}.sound-slider span{width:64px}.sound-slider input{width:112px;accent-color:#b6ff62;cursor:pointer}.attempt-gate{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:24px;background:#040c10b8}.attempt-card{width:min(92vw,420px);display:flex;flex-direction:column;gap:12px;text-align:center}.attempt-card h2,.attempt-card p{margin:0}.room-code{align-self:center;width:140px;padding:8px 10px;text-align:center;font:inherit;font-size:24px;letter-spacing:.2em;color:#042433;background:#f7fff4;border:0;border-radius:12px}.attempt-card .actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.briefing-card{text-align:left;color:#e7f6ea}.briefing-card ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}.tester-field,.start .promo-row input{width:100%;padding:10px 12px;border:0;border-radius:12px;font:inherit;color:#042433;background:#f7fff4}.start .promo-row,.start .tester-tools,.start .tester-unlock{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:8px}.start .tester-panel{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px;border-radius:20px;background:#0412109e}.start .tester-panel input,.start .tester-panel select{width:100%;min-width:0;padding:10px 14px;border:0;border-radius:999px;font:inherit;font-weight:700;color:#f7fff4;background:#ffffff24;box-shadow:inset 0 1px #ffffff47}.start .tester-panel input::placeholder{color:#f7fff49e}.start .tester-panel select{color-scheme:dark}.start .tester-panel select option{color:#042433;background:#f7fff4}.start .tester-panel button{width:100%;padding:12px 16px}.start .tester-panel .tester-unlock{display:grid;grid-template-columns:1fr 88px;gap:8px}.start .tester-panel .tester-unlock p,.start .tester-panel .tester-unlock button,.start .tester-panel .record{grid-column:1 / -1;margin:0}.start .tester-panel .tester-unlock p,.start .tester-panel .record{color:#9fb8a6;font-size:14px;text-align:center}.start .tester-unlock p,.tester-bar h2,.tester-bar ul,.tester-bar p{margin:0}.tester-bar{position:fixed;top:12px;left:12px;z-index:6;display:flex;flex-direction:column;align-items:stretch;gap:8px;width:min(220px,46vw);padding:8px;border-radius:16px;background:#041210b8;color:#f7fff4}.tester-bar h2{font-size:13px;font-weight:750}.tester-bar ul{padding-left:16px;display:flex;flex-direction:column;gap:4px;font-size:13px;text-align:left}.tester-bar button,.tester-login button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:var(--pill);color:#f7fff4;text-shadow:0 1px 0 rgb(18 72 24 / 40%);box-shadow:var(--pill-shadow);font:inherit;font-weight:750;padding:10px 16px;cursor:pointer}@media (pointer: fine){.pad{display:none}}.server-gate{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px 16px;text-align:center;background:#0e1410;color:#e7f6ea;font-family:Segoe UI,sans-serif}.server-gate h1,.server-gate p{margin:0;max-width:16em;line-height:1.35}.server-gate h1{font-size:32px;font-weight:650}.server-gate p{font-size:16px;font-weight:500}
