:root{color-scheme:dark;--background:#080a12;--text:#f1f0ed;--muted:#989bab;--subtle:#696e84;--orange:#ff865f;--line:#252a3b;--blue:#9fbbff;font-family:Arial,Helvetica,sans-serif;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background:var(--background);color:var(--text);font-size:1rem;line-height:1.5}
body::before{content:"";position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 39%,#19264e55,transparent 55%),radial-gradient(ellipse at 95% 0%,#26213928,transparent 50%);pointer-events:none}
button,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:wait}button,a,textarea{outline-offset:5px}button:focus-visible,a:focus-visible{outline:2px solid var(--orange)}a{color:inherit}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,p{margin:0}[hidden]{display:none!important}
.app-shell{min-height:100svh;max-width:1500px;margin:auto;display:flex;flex-direction:column;padding:0 max(32px,env(safe-area-inset-right)) max(0px,env(safe-area-inset-bottom)) max(32px,env(safe-area-inset-left))}
.topbar{min-height:60px;display:flex;align-items:center;justify-content:flex-end;gap:16px;border-bottom:1px solid #ffffff0e}

.top-actions{display:flex;align-items:center;gap:26px}.edition{font-size:.75rem;letter-spacing:.14em;color:var(--muted);font-family:monospace}.icon-button{width:44px;height:44px;display:grid;place-items:center;background:transparent;border:1px solid var(--line);border-radius:50%;color:var(--muted)}.icon-button:hover{color:var(--text);border-color:var(--subtle)}.sound-on{display:none}.icon-button[aria-pressed=true] .sound-on{display:block}.icon-button[aria-pressed=true] .sound-off{display:none}
main{flex:1;width:100%;max-width:1040px;margin:0 auto;padding:30px 0 32px;display:flex;flex-direction:column;justify-content:center}
.game-heading{text-align:center}.eyebrow{color:var(--orange);font-family:monospace;letter-spacing:.18em;font-size:.75rem;font-weight:500;margin-bottom:8px}h1{font-size:clamp(2.3rem,4vw,3.1rem);line-height:1.12;letter-spacing:-.045em;font-weight:500}h1 span{font-family:Georgia,serif;font-style:italic}.intro{color:var(--muted);margin-top:10px;font-size:1rem}
.play-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:45px;align-items:center;margin-top:28px}
.stage-wrap{position:relative;min-width:0}.ball-stage{display:block;position:relative;padding:0;width:100%;height:470px;max-height:60svh;min-height:260px;border:0;background:transparent;border-radius:40%;cursor:pointer;overflow:hidden;touch-action:pan-y}.ball-stage canvas{width:100%;height:100%;display:block;pointer-events:none}.ball-stage:focus-visible{outline-offset:-20px}.stage-caption{text-align:center;color:var(--subtle);font-size:.75rem;font-family:monospace;letter-spacing:.1em;min-height:20px;margin-top:-12px}.game-heading,.question-panel,.stage-caption{position:relative;z-index:1}
.question-panel{min-width:0}.label-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px}.label-row label{font-size:.875rem;color:#cbcbd3;font-weight:500}#question-count{font-size:.75rem;color:var(--subtle);font-family:monospace}.input-wrap{border:1px solid #3b4157;background:#101420;border-radius:13px;position:relative;overflow:hidden;transition:border-color .2s,box-shadow .2s}.input-wrap:focus-within{border-color:#91a9e7;box-shadow:0 0 0 3px #617bc21c}.input-wrap:has(.voice-button[aria-pressed=true]){border-color:var(--orange)}textarea{display:block;resize:vertical;width:100%;min-height:110px;max-height:200px;background:transparent;color:var(--text);border:0;outline:0;font-size:1rem;line-height:1.55;padding:16px 16px 44px;scroll-margin:20px}textarea::placeholder{color:#7d8398;opacity:1}textarea:disabled{opacity:.7}
.voice-button{display:flex;align-items:center;justify-content:center;gap:7px;position:absolute;right:8px;bottom:6px;min-height:36px;padding:6px 10px;border:0;border-radius:7px;color:#c5c8d3;background:#1b2030;font-size:.875rem}.voice-button svg{width:15px;height:15px}.voice-button:hover{background:#293149}.voice-button[aria-pressed=true]{color:var(--orange);background:#ff865f16}.voice-button[aria-pressed=true] svg{animation:mic-pulse 1.2s ease-in-out infinite}.voice-info{font-size:.8125rem;color:var(--muted);margin:10px 0 0;line-height:1.5}
.status{font-size:.875rem;color:var(--muted);min-height:42px;margin:12px 0 12px;line-height:1.5}.status[data-tone=error]{color:#ffad94}.shake-button{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:14px 20px;border:1px solid #ffad8880;border-radius:11px;background:var(--orange);color:#171015;font-weight:700;font-size:1rem;box-shadow:inset 0 1px 0 #ffffff33,0 5px 24px #ff714010;position:relative;transition:background .18s,transform .18s}.shake-button:hover:not(:disabled){background:#ff9c7d;transform:translateY(-1px)}.shake-button:active:not(:disabled){transform:translateY(1px)}.shake-button:disabled{background:#b87969;color:#281c1d;border-color:transparent}.shake-button kbd{font-family:inherit;font-size:1rem;position:absolute;right:18px;opacity:.55;border:1px solid #27181a38;border-radius:4px;padding:0 5px}.shake-button svg{margin-right:1px}
.lower-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:15px}.motion-button,.text-button{font-size:.875rem;display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 0;border:0;background:transparent;color:#a9adc1}.motion-button svg{height:18px;width:18px}.motion-button:hover,.text-button:hover{color:var(--text)}.motion-button[aria-pressed=true]{color:var(--blue)}.text-button{color:#c4c7d5}.text-button span{font-size:1.1rem}.motion-info{font-size:.8125rem;color:var(--muted);line-height:1.5}.motion-info:empty{display:none}.standalone{display:block;font-size:.875rem;color:var(--blue);margin-top:12px;text-underline-offset:3px}
.motion-controls{margin-top:12px}.lower-controls:has(#new-question[hidden]){display:none}
html[data-phone=true] .motion-controls{width:100%;max-width:470px;margin:12px auto 4px;padding:10px 12px;border:1px solid #425074;border-radius:12px;background:#131b2c;text-align:center}
html[data-phone=true] .motion-button{justify-content:center;width:100%;padding:8px 12px;border:1px solid #8097d5;border-radius:8px;color:#e1e8ff;background:#253354;font-size:.9375rem;font-weight:600}
html[data-phone=true] .motion-controls[data-state=ready] .motion-button{background:transparent;border-color:transparent;color:var(--blue)}
html[data-phone=true] .motion-info{margin-top:5px;font-size:.875rem}html[data-phone=true] .motion-controls .standalone{margin-top:6px}
html[data-phone=true] .keyboard-open .motion-controls{display:none}
.reading{border-left:2px solid #819dff;padding:0 0 0 18px;margin-bottom:26px;animation:answer-in .55s both}.reading-label{color:var(--blue);font-family:monospace;font-size:.75rem;letter-spacing:.14em;margin-bottom:7px}.reading h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.02em;font-size:clamp(1.6rem,3vw,2rem);line-height:1.15;color:#ecf0ff}.asked-question{color:var(--muted);font-size:.875rem;line-height:1.5;margin-top:10px;overflow-wrap:anywhere;max-height:120px;overflow:auto}.asked-question:empty{display:none}main[data-phase=shaking] .stage-caption{color:#b0beeb}main[data-phase=revealed] .stage-caption{color:var(--blue)}
footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 0;border-top:1px solid #ffffff0e;color:var(--subtle)}footer>span:first-child{font-family:monospace;font-size:.75rem;letter-spacing:.14em}footer p{font-size:.8125rem;color:#9195a7}.footer-star{font-size:1.6rem;line-height:1;color:var(--orange)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.noscript{position:fixed;inset:auto 20px 20px;background:#321e1e;border:1px solid var(--orange);padding:20px;border-radius:12px;text-align:center}
@keyframes answer-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes mic-pulse{50%{opacity:.4}}
@media(min-width:1280px){main{max-width:1140px}.play-area{gap:85px;grid-template-columns:minmax(0,1fr) minmax(0,440px)}.ball-stage{height:510px}}
@media(max-width:760px){.app-shell{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}.topbar{min-height:48px}.top-actions{gap:16px}.edition{font-size:.75rem;letter-spacing:.05em}.icon-button{width:40px;height:40px}main{padding:22px 0 24px;justify-content:flex-start;max-width:470px}.eyebrow{margin-bottom:6px}.intro{margin-top:7px;font-size:.9375rem}h1{font-size:2.35rem}.play-area{display:flex;flex-direction:column;gap:18px;margin-top:0}.stage-wrap{width:100%}.ball-stage{height:clamp(220px,33svh,310px);min-height:220px;max-height:none;margin-top:0}.stage-caption{margin-top:-7px;font-size:.75rem;letter-spacing:.07em}.question-panel{width:100%}.label-row{margin-bottom:8px}textarea{height:96px;min-height:96px;padding-top:12px;padding-left:14px}.status{margin:9px 0 10px;min-height:22px;font-size:.8125rem}.shake-button{min-height:54px}.shake-button kbd{display:none}.lower-controls{margin-top:8px}.reading{margin:0 0 20px;padding-left:14px}.reading h2{font-size:1.7rem}footer{padding:17px 0;flex-wrap:wrap;gap:8px}footer>span:first-child{font-size:.75rem;letter-spacing:.05em}.footer-star{display:none}footer p{font-size:.75rem}}
@media(max-width:370px){.app-shell{padding-left:16px;padding-right:16px}.edition{display:none}.play-area{gap:17px}.ball-stage{height:245px;min-height:245px}.stage-caption{letter-spacing:.015em}footer{justify-content:center}main{padding-top:18px}}
@media(orientation:landscape) and (max-height:600px) and (min-width:600px){.topbar{min-height:60px}main{padding-top:14px}.game-heading h1{font-size:2rem}.eyebrow{display:none}.intro{font-size:.875rem}.play-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,350px);gap:24px;align-items:center;margin-top:6px}.ball-stage{height:310px;max-height:none;min-height:240px}.stage-caption{font-size:.75rem;letter-spacing:0}.status{margin-bottom:8px;min-height:22px}.question-panel{width:100%}footer{padding:14px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Portrait controls remain reachable inside the website's game player. */
@media(max-width:760px){
 .app-shell{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));min-height:100dvh}
 main{padding:12px 0 16px}.eyebrow{display:none}h1{font-size:2rem}.icon-button{width:44px;height:44px}
 .play-area{gap:12px}.ball-stage{height:clamp(170px,29svh,260px);min-height:170px}
 .voice-button{min-height:44px;bottom:3px}textarea{height:104px;min-height:104px;padding-bottom:52px;resize:none;font-size:16px}
 .status,.voice-info,.motion-info{font-size:.875rem}.reading{margin-bottom:14px}.reading h2{font-size:1.55rem}.asked-question{max-height:66px}
 main[data-phase=revealed] .ball-stage{height:clamp(155px,24svh,210px);min-height:155px}
 footer{padding:10px 0}.keyboard-open .stage-wrap{display:none}.keyboard-open .game-heading{display:none}
 .keyboard-open main{padding-top:8px}.keyboard-open .question-panel{scroll-margin-top:12px}
}
html[data-embedded=true] .topbar{min-height:0;height:0;border:0;position:relative;z-index:3}
html[data-embedded=true] .top-actions{position:absolute;right:0;top:6px}
html[data-embedded=true] .game-heading{min-height:44px;padding:0 48px;display:flex;align-items:center;justify-content:center}
html[data-embedded=true] .game-heading h1,html[data-embedded=true] .eyebrow,html[data-embedded=true] .stage-caption,html[data-embedded=true] footer{display:none}
html[data-embedded=true] .intro{margin:0}
html[data-embedded=true] .standalone{font-size:.875rem;margin-top:8px}
html[data-embedded=true] .keyboard-open .game-heading{display:none}
