:root{color-scheme:light;--ink:#332d22;--paper:#f4efdf;--yellow:#edc84f;--muted:#8b8069}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,"PingFang SC",sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #b85b38;outline-offset:5px}button:disabled{opacity:.5;cursor:wait}main{max-width:1140px;margin:auto;padding:30px 38px 20px}header{display:flex;justify-content:space-between;align-items:center;padding-bottom:24px;border-bottom:1px solid #d3cbb8}.brand{font-weight:950;letter-spacing:1px;color:inherit;text-decoration:none;font-size:23px}.brand span{font-size:11px;font-weight:500;margin-left:14px;letter-spacing:2px}.top-actions{display:flex;align-items:center;gap:20px}.version{font-size:11px;letter-spacing:2px;color:var(--muted)}.icon{background:transparent;border:1px solid #c6baa2;border-radius:25px;padding:8px 14px;font-size:12px}.intro{display:flex;justify-content:space-between;align-items:center;margin:38px 0 28px}.eyebrow{font-size:10px;letter-spacing:3px;color:var(--muted)}h1{font-size:76px;font-weight:900;letter-spacing:-5px;line-height:1.1;margin:13px 0 16px}h1 span{position:relative}h1 span:after{content:'';position:absolute;bottom:3px;left:3px;right:5px;height:15px;background:var(--yellow);z-index:-1}h1 i{color:#b55435;font-style:normal}.intro p{font-size:14px;margin:0}.intro p span{margin-left:16px;color:var(--muted)}.stamp{border:2px solid #b75f40;color:#b75f40;border-radius:50%;width:110px;height:110px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;transform:rotate(13deg);font-size:23px;font-weight:800;line-height:1.15;margin-right:18px}.stamp span{font-size:6px;letter-spacing:1px;margin-top:7px}.arena{position:relative;border:2px solid var(--ink);border-radius:24px;background:#fffaf0;overflow:hidden;box-shadow:0 7px 0 #ded5bf}.scorebar{display:flex;justify-content:space-between;padding:20px 28px 0;position:relative;z-index:1}.counter{display:flex;align-items:baseline;gap:10px}.counter span,.record span{font-size:11px;color:var(--muted)}.counter strong{font-size:42px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1}.record{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.record strong{font-size:22px}.record #run-status{display:block;width:100%;text-align:right;font-size:10px}.stage{position:relative}canvas{width:100%;display:block;touch-action:manipulation;cursor:pointer}.speech{position:absolute;top:8%;left:7%;font-size:12px;border:1.5px solid var(--ink);background:#fffaf0;padding:10px 14px;border-radius:15px;max-width:42%;transform:rotate(-4deg)}.speech:after{content:'';position:absolute;border-left:1.5px solid;border-bottom:1.5px solid;width:8px;height:8px;bottom:-5px;left:25px;background:#fffaf0;transform:rotate(-45deg)}.stage-tag{position:absolute;bottom:8%;font-size:10px;color:#aaa08a;letter-spacing:2px}.stage-tag.left{left:14%}.stage-tag.right{right:13%}.controls{text-align:center;padding:0 20px 20px;min-height:103px}.primary{border:2px solid var(--ink);border-radius:12px;background:var(--yellow);padding:14px 30px;font-weight:750;box-shadow:0 4px 0 var(--ink);transition:transform .1s,box-shadow .1s;min-width:220px}.primary:active{transform:translateY(3px);box-shadow:0 1px 0 var(--ink)}.controls p{font-size:11px;color:var(--muted);margin:15px 0 0}kbd{margin-left:20px;border:1px solid #806a2e;border-radius:4px;font:9px monospace;padding:3px 5px}button.secondary{border:1.5px solid var(--ink);border-radius:12px;background:transparent;padding:12px 20px}.notes{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin:34px 0}.notes div+div{border-left:1px solid #d3cbb8;padding-left:30px}.notes span{font-size:10px;font-weight:750;letter-spacing:2px}.notes p{font-size:12px;line-height:1.9;color:var(--muted);margin:10px 0}footer{border-top:1px solid #d3cbb8;padding-top:18px;display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}a{color:inherit}footer a{text-decoration:none}.question{position:absolute;z-index:3;top:65px;left:50%;transform:translateX(-50%);width:min(480px,92%);background:#fffaf0;border:2px solid var(--ink);border-radius:20px;box-shadow:6px 7px 0 #332d2228;padding:22px}.question-top{display:flex;justify-content:space-between;font-size:11px;color:#a45b35}.question h2{font-size:26px;margin:18px 0}.timer-track{height:4px;background:#e5ddc9;margin-bottom:20px;border-radius:4px;overflow:hidden}.timer-track i{display:block;width:100%;height:100%;background:#b65c39;transform-origin:left}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choices button{border:1.5px solid var(--ink);padding:13px;border-radius:10px;background:var(--yellow);font-weight:700}.question p{font-size:10px;color:var(--muted);margin-bottom:0}.question p span{float:right}.result{position:absolute;inset:0;z-index:4;background:#fffaf0f7;backdrop-filter:blur(5px);padding:32px max(24px,12%);overflow-y:auto;text-align:center}.result-heading{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.result h2{font-size:48px;letter-spacing:-2px;margin:22px 0 4px}.result-score{font-size:17px;margin:0}.result-score strong{font-size:66px;color:#b65c39;padding:0 6px;font-variant-numeric:tabular-nums}#result-line{font-size:12px;color:var(--muted)}details{text-align:left;border-top:1px dashed #c7baa0;border-bottom:1px dashed #c7baa0;margin:20px 0;padding:12px 0;font-size:12px}summary{cursor:pointer}#answer-list{max-height:100px;overflow:auto;padding-left:20px;line-height:1.9}.result-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}#share-status{font-size:11px;color:var(--muted)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:640px){main{padding:18px 16px}.brand{font-size:20px}.brand span{font-size:9px;margin-left:8px}.version{display:none}.top-actions{gap:0}.intro{margin:30px 0 25px}h1{font-size:58px;letter-spacing:-4px}.eyebrow{font-size:8px;letter-spacing:2px}.intro p{font-size:12px}.intro p span{display:block;margin:5px 0 0}.stamp{width:77px;height:77px;font-size:18px;margin:0}.stamp span{font-size:4px}.scorebar{padding:18px 18px 12px}.counter strong{font-size:36px}.speech{font-size:9px;padding:7px 10px;top:2%;left:4%}.stage-tag{font-size:8px;letter-spacing:0;bottom:2%}.controls{padding-top:24px;padding-bottom:24px}.notes{gap:14px;margin:27px 0}.notes div+div{padding-left:14px}.notes span{font-size:9px;letter-spacing:0}.notes p{font-size:10px}footer{font-size:8px;gap:12px}.question{top:45px;padding:18px}.question h2{font-size:22px}.result{padding:20px}.result h2{font-size:35px;margin-top:18px}.result-score strong{font-size:50px}.result-actions .primary{min-width:180px;padding:12px 18px}details{margin:12px 0}.result-heading{font-size:9px}#result-line{font-size:11px}.result-actions{gap:10px}.result .secondary{padding:10px}.arena{border-radius:18px}kbd{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Charge and reading-lock feedback. */
#canvas,#jump{touch-action:none;user-select:none;-webkit-user-select:none}
.charge-track{height:5px;width:220px;margin:13px auto 0;background:#e7deca;border-radius:8px;overflow:hidden}.charge-track i{display:block;height:100%;background:#b95532;transform:scaleX(0);transform-origin:left}
#timer{color:#c3332a;font-size:23px;font-variant-numeric:tabular-nums}#timer-fill{background:#c3332a}.question.locked #timer{color:#8b8069;font-size:17px}.question.locked #timer-fill{background:#b9ae98}.choices button[aria-disabled="true"]{background:#e8e1d3;color:#9a917e;cursor:default}.question:focus{outline:none}

/* Illustrated result card. */
.result{padding:24px 28px;background:#fffaf0fc}.result-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:26px;align-items:center;min-height:340px}.result-art{margin:0;min-width:0}.result-art img{display:block;width:100%;height:290px;object-fit:contain;filter:drop-shadow(0 8px 0 #80643a0d)}.result-art figcaption{font-size:10px;letter-spacing:1px;color:#9b8060;margin-top:9px}.result-copy{text-align:left;min-width:0}.result h2{font-size:clamp(25px,3.2vw,40px);letter-spacing:-1px;line-height:1.25;margin:14px 0}.result-score{font-size:14px}.result-score strong{font-size:52px}.result-actions{justify-content:flex-start}.result-actions .primary{min-width:0;padding:12px 18px;font-size:13px}.result-actions .secondary{padding:12px;font-size:12px}#result-line{font-size:13px;line-height:1.8;color:#8d4c32}.result #answer-list{max-height:85px}.result[data-kind="charge"] h2{color:#a63f27}
@media(max-width:640px){.result{padding:16px}.result-body{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px;min-height:275px}.result-art img{height:185px}.result-art figcaption{font-size:8px;letter-spacing:0;line-height:1.6}.result h2{font-size:23px}.result-score{font-size:11px}.result-score strong{font-size:37px}#result-line{font-size:11px;margin:6px 0}.result-actions{gap:8px}.result-actions .primary{font-size:11px;padding:10px}.result-actions .secondary{font-size:10px;padding:8px}.result details{font-size:10px;margin:10px 0}.result #share-status{font-size:9px}}

.interrupt-shade{position:absolute;inset:0;background:#211b1647;pointer-events:none;opacity:0;z-index:2}.question-active .interrupt-shade{opacity:1}.question-active .question{animation:question-enter 180ms cubic-bezier(.12,.8,.25,1)}
@keyframes question-enter{from{opacity:0;translate:0 16px;scale:.94}to{opacity:1;translate:0 0;scale:1}}
.clock{display:flex;align-items:baseline;gap:6px;white-space:nowrap;color:#c3332a}#timer-phase{font-size:12px;font-weight:700}#timer,.question.locked #timer{font:700 26px ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;color:inherit}.clock small{font-size:10px}.question.locked .clock{color:#a16a19}.question.locked #timer-fill{background:#c69335}.question.urgent .clock{color:#a71016}.question.urgent{border-color:#a71016}.choices button{min-height:48px;touch-action:manipulation}.question h2{overflow-wrap:anywhere}#resume-cue{position:absolute;top:72px;left:50%;transform:translateX(-50%);background:#f2c84b;color:#332d22;border:2px solid;border-radius:12px;padding:9px 18px;z-index:2;pointer-events:none;font-weight:800}
@media(max-width:640px){.controls{min-height:260px}.question{top:auto;bottom:12px;max-height:calc(100% - 75px);overflow:auto;padding:17px}.question h2{font-size:22px;margin:16px 0}.question-top{align-items:center;gap:8px;font-size:10px}.clock{gap:4px}#timer,.question.locked #timer{font-size:24px}.choices{gap:12px}.choices button{min-height:52px;font-size:16px}.result{padding:15px;overflow:auto}.result-body{display:flex;flex-direction:column;gap:8px;min-height:0}.result-art{width:100%}.result-art img{height:120px}.result-art figcaption{margin-top:1px}.result-copy{width:100%}.result h2{font-size:25px;margin:8px 0}.result-score strong{font-size:34px}.result-actions{position:sticky;bottom:-15px;background:#fffaf0;padding:10px 0;flex-wrap:nowrap}.result-actions .primary{flex:1;min-height:44px}.result #answer-list{max-height:82px}.result details{margin:8px 0}.result #share-status{margin:0}}
@media(prefers-reduced-motion:reduce){.question-active .question{animation:none}}

.speech-right{left:auto;right:5%;top:8%;max-width:40%;transform:rotate(4deg);background:#fff0c5;color:#984124;border-color:#984124}.speech-right:after{left:auto;right:25px;background:#fff0c5}
@media(max-width:640px){.speech-right{left:auto;right:3%;top:2%;max-width:44%;font-size:9px;padding:7px 8px}}

/* Compact corner instructions and page-wide pointer play. */
.compact-intro{justify-content:flex-start;gap:20px;margin:18px 0}.compact-intro h1{font-size:34px;letter-spacing:-2px;margin:0}.help-tips{position:relative;border:0;margin:0;padding:0;z-index:6}.help-tips summary{font-size:12px;border:1px solid #c6baa2;border-radius:20px;padding:8px 12px;list-style:none}.tips-panel{position:absolute;top:42px;left:0;width:min(350px,calc(100vw - 40px));padding:18px;background:#fffaf0;border:2px solid #332d22;border-radius:16px;box-shadow:4px 5px 0 #332d2220}.tips-panel .notes{display:block;margin:0}.tips-panel .notes div+div{border-left:0;padding-left:0;margin-top:14px}.tips-panel .notes p{margin:5px 0;font-size:12px}.in-play{touch-action:none;user-select:none;-webkit-user-select:none}.in-play .help-tips,.in-play button{touch-action:manipulation}#jump,#hint{display:none}.controls{min-height:76px}.in-play .controls{min-height:50px;padding:0 20px 20px}.charge-track{margin:10px auto}.arena{min-height:460px}
@media(max-width:640px){main{padding:14px 12px}header{padding-bottom:12px}.compact-intro{margin:14px 0;gap:14px}.compact-intro h1{font-size:30px}.tips-panel{left:auto;right:-70px;width:min(320px,calc(100vw - 32px))}.arena{min-height:460px}.controls,.in-play .controls{min-height:200px}.question{max-height:calc(100% - 87px)}footer{margin-top:20px}}

/* One viewport, one game scene. */
html,body{width:100%;height:100%;overflow:hidden;background:#fffaf0}main{max-width:none;width:100%;height:100%;padding:0}.arena{width:100%;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none;background:radial-gradient(ellipse at 50% 58%,#fffdf5 15%,#f4efdf 100%);overflow:hidden}.compact-intro{position:absolute;top:max(22px,env(safe-area-inset-top));left:max(24px,env(safe-area-inset-left));margin:0;z-index:5;gap:14px}.compact-intro h1{font-size:27px;letter-spacing:-1px}.scene-sound{position:absolute;top:max(22px,env(safe-area-inset-top));right:max(24px,env(safe-area-inset-right));z-index:5;background:#fffaf0}.scorebar{position:absolute;top:24px;left:50%;transform:translateX(-50%);padding:0;display:flex;flex-direction:column;align-items:center;gap:8px}.counter strong{font-size:44px}.record{justify-content:center;gap:6px}.record strong{font-size:14px}.record #run-status{display:none}.stage{position:absolute;width:min(100%,calc((100dvh - 160px)*2.2917));left:50%;top:51%;transform:translate(-50%,-50%)}.controls,.in-play .controls{position:absolute;left:0;right:0;bottom:max(28px,env(safe-area-inset-bottom));padding:0 16px;min-height:0}.controls .primary{min-width:260px}.controls p{margin-top:14px}.charge-track{display:none}.tips-panel{left:0;right:auto}.result{padding: max(24px,env(safe-area-inset-top)) max(24px,calc((100vw - 900px)/2));}.result-body{min-height:calc(100dvh - 100px);max-width:900px;margin:auto}.studio-credit{font-size:10px;color:#a49a87;margin-top:22px}.question{max-height:calc(100% - 100px);overflow:auto}#resume-cue{top:115px}.stage-tag{opacity:.6}
@media(max-width:640px){.compact-intro{top:max(18px,env(safe-area-inset-top));left:16px;gap:10px}.compact-intro h1{font-size:23px}.help-tips summary{font-size:11px;padding:7px 9px}.scene-sound{top:max(18px,env(safe-area-inset-top));right:16px;font-size:11px;padding:7px 10px}.scorebar{top:84px}.counter strong{font-size:42px}.stage{width:100%;top:43%}.speech{font-size:10px}.tips-panel{left:-130px;width:min(320px,calc(100vw - 32px));top:40px}.controls,.in-play .controls{bottom:max(60px,env(safe-area-inset-bottom));min-height:0;padding:0 16px}.result{padding:22px}.result-body{min-height:0;padding-top:25px;max-width:440px}.result-art img{height:180px}.result-copy{text-align:center}.result-actions{bottom:0}.result h2{font-size:30px}.result-score strong{font-size:46px}.result details{text-align:left}#resume-cue{top:155px}}
@media(max-height:480px) and (min-width:641px){.compact-intro{top:12px;left:16px}.scene-sound{top:12px}.scorebar{top:10px}.counter strong{font-size:30px}.stage{width:min(75%,calc((100dvh - 90px)*2.2917));top:52%}.controls,.in-play .controls{bottom:12px}.controls p{display:none}.result-body{min-height:0}.result-art img{height:210px}}

.studio-brand{position:absolute;top:0;left:0;white-space:nowrap;font-size:17px;font-weight:850;letter-spacing:-.3px}.studio-brand span{font-size:10px;font-weight:500;color:#8b8069;margin-left:8px;letter-spacing:1px}.compact-intro{padding-top:30px}.scene-tools{position:absolute;right:max(22px,env(safe-area-inset-right));top:max(22px,env(safe-area-inset-top));display:flex;gap:9px;z-index:5}.scene-tools .icon{width:42px;height:42px;padding:10px;display:grid;place-items:center;background:#fffaf0}.scene-tools svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.result #result-line{font-size:16px;margin:8px 0 20px}.result-score{font-size:13px;color:#8b8069}.result-score strong{font-size:40px}.compact-intro h1{white-space:nowrap}html[lang=en] .compact-intro h1{font-size:20px;letter-spacing:-.5px}html[lang=en] .studio-brand span{display:block;margin:4px 0 0;font-size:9px}html[lang=en] .compact-intro{padding-top:42px}html[lang=en] .question h2{font-size:23px}html[lang=en] .speech{max-width:38%}html[lang=en] .choices button{overflow-wrap:anywhere;font-size:14px}
@media(max-width:640px){.studio-brand{font-size:15px}.studio-brand span{display:block;margin:3px 0 0;font-size:9px}.compact-intro{padding-top:42px;gap:8px}.compact-intro h1{font-size:20px}.scene-tools{top:max(16px,env(safe-area-inset-top));right:14px;gap:7px}.scene-tools .icon{width:36px;height:36px;padding:8px}.scorebar{top:118px}html[lang=en] .compact-intro h1{font-size:17px}.result #result-line{font-size:14px}.result-score strong{font-size:36px}}
/* Keep result metadata clear of the persistent screenshot branding. */
.result-heading{margin-top:85px}.result-body{min-height:calc(100dvh - 200px)}
@media(max-width:640px){.result-heading{margin-top:90px}.result-body{min-height:0;padding-top:14px}}

/* Quiet signature; the upper-left corner belongs to the game. */
.studio-brand{position:absolute;top:auto;bottom:max(14px,env(safe-area-inset-bottom));left:max(20px,env(safe-area-inset-left));z-index:5;color:#9a927f;font-size:11px;font-weight:600;letter-spacing:0;pointer-events:none}.studio-brand span,html[lang=en] .studio-brand span{display:inline;margin:0 0 0 7px;font-size:10px;font-weight:400;letter-spacing:.3px;color:inherit}.compact-intro,html[lang=en] .compact-intro{padding-top:0}.result{padding-bottom:50px}
@media(max-width:640px){.studio-brand{left:16px;bottom:max(12px,env(safe-area-inset-bottom));font-size:10px}.studio-brand span,html[lang=en] .studio-brand span{font-size:9px;margin-left:5px}.compact-intro,html[lang=en] .compact-intro{padding-top:0}.scorebar{top:84px}}

/* The result is a scrollable receipt, with a separate fixed action dock. */
.show-result .help-tips,.show-result .scene-tools,.show-result .compact-intro,.show-result>.studio-brand,.show-result .arena>.studio-brand{display:none}.result{position:fixed;inset:0;padding:0 0 140px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;background:#fffaf0;backdrop-filter:none}.result #result-report{width:min(100%,860px);margin:auto;padding:30px 30px 38px;background:#fffaf0}.report-name{font-weight:900;font-size:26px;text-align:left;letter-spacing:-1px}.result-heading{margin:25px 0 0}.result .result-body{display:flex;flex-direction:column;gap:18px;min-height:0;padding:24px 0 0;max-width:650px}.result .result-art{width:100%}.result .result-art img{height:220px}.result .result-copy{width:100%;text-align:center}.result h2{font-size:36px}.result #answers{text-align:left;margin:28px 0 0;border:0;padding:0}.result #answers h3{font-size:18px;margin:0}.record-intro{font-size:12px;color:#9a8065;margin:8px 0 20px}.result #answer-list{max-height:none;overflow:visible;list-style:none;padding:0;margin:0}.result #answer-list li{padding:20px 0;border-top:1px dashed #c7baa0;break-inside:avoid}.answer-meta{font-size:10px;letter-spacing:1px;color:#9a8065}.answer-question{font-size:17px;font-weight:650;margin:10px 0}.answer-reply{display:inline-block;margin:0;padding:9px 15px;background:#f4e4a8;border-radius:4px 14px 14px 14px;font-size:16px}.answer-aside{font-size:11px;color:#947c61;margin:10px 0 0}.empty-record{font-size:15px;line-height:1.9;color:#8d4c32}.report-credit{color:#9a927f;font-size:11px;text-align:left;margin-top:32px}.result .result-actions{position:fixed;left:0;right:0;bottom:0;z-index:7;justify-content:center;flex-wrap:nowrap;gap:12px;padding:18px 20px calc(30px + env(safe-area-inset-bottom));background:#fffaf0f5;border-top:1px solid #ded5bf}.result .result-actions .primary{flex:0 1 360px;min-height:48px;font-size:14px}.result .result-actions .secondary{min-height:48px;font-size:14px}#share-status{position:fixed;bottom:calc(3px + env(safe-area-inset-bottom));left:10px;right:10px;z-index:8;font-size:10px;margin:0;pointer-events:none}.result .result-score{margin-top:16px}
@media(max-width:640px){.result #result-report{padding:24px 22px 32px}.result .result-art img{height:180px}.result .result-body{padding-top:18px}.result h2{font-size:30px}.result .result-actions{padding-left:16px;padding-right:16px}.result #answers h3{font-size:17px}.answer-question{font-size:16px}.report-name{font-size:23px}}

/* Compact, two-line testimony; branding travels with the report title. */
.report-credit{margin:7px 0 0;font-size:10px}.result-heading{margin-top:22px}.result #answer-list li{padding:13px 0}.answer-question{margin:0 0 8px;font-size:16px;line-height:1.65}.answer-meta{font-size:11px;font-weight:400;letter-spacing:0;white-space:nowrap}.answer-reply{display:block;width:fit-content;max-width:100%;padding:7px 12px;font-size:14px;line-height:1.7;margin:0;overflow-wrap:anywhere}.answer-aside{font-size:11px;margin:0;color:#856b4e}.result #answers{margin-top:22px}.record-intro{margin-bottom:12px}

#result-line{white-space:pre-line}

#leaderboard-dialog{width:min(380px,calc(100vw - 36px));padding:28px;border:2px solid #332d22;border-radius:20px;background:#fffaf0;color:#332d22;box-shadow:6px 7px 0 #332d2228}#leaderboard-dialog::backdrop{background:#211b1666}#leaderboard-dialog h2{margin:0 0 20px;font-size:28px}#leaderboard-dialog p{font-size:14px;line-height:1.8}#leaderboard-dialog small{display:block;font-size:11px;line-height:1.8;color:#8b8069}.board-close{position:absolute;right:14px;top:14px;font-size:20px;padding:2px 10px}.board-best{border-top:1px dashed #c7baa0;padding-top:16px}.board-best strong{font-size:30px;color:#b65c39;margin:0 8px}#leaderboard:disabled{cursor:default;opacity:.35}
@media(max-width:380px){.scene-tools{gap:4px;right:10px}.scene-tools .icon{width:30px;height:32px;padding:6px}.compact-intro{left:12px;gap:6px}.compact-intro h1{font-size:18px}.help-tips summary{font-size:10px;padding:7px}}
@media(max-width:640px){.compact-intro{max-width:calc(100% - 150px);flex-wrap:wrap;row-gap:7px}html[lang=en] .compact-intro h1{font-size:16px}}
/* Intrinsic image dimensions keep both browser and PNG export proportional.
   html2canvas does not implement object-fit. */
.result .result-art img{width:auto;height:auto;max-width:100%;max-height:220px;margin-inline:auto;object-fit:fill}
@media(max-width:640px){.result .result-art img{max-height:180px}}

#run-ranking{white-space:pre-line;font-size:14px;line-height:1.8;color:#9c572c;background:#f5ecd3;border-radius:10px;padding:10px}#run-ranking:empty{display:none}.board-tabs{display:flex;gap:10px}.board-tabs button{border:1px solid #b8aa8f;border-radius:8px;padding:9px 14px;background:transparent}.board-tabs button[aria-pressed=true]{background:#edc84f}.board-note{font-size:11px!important;color:#8b8069}#board-list{max-height:50dvh;overflow:auto;padding-left:0;list-style:none;font-size:13px;line-height:2.3}#leaderboard-dialog{max-height:85dvh;overflow:auto}

.tips-panel{max-height:calc(100dvh - 110px);overflow-y:auto}.tips-panel .game-description{font-size:12px;line-height:1.6;margin:0 0 16px;padding-bottom:12px;border-bottom:1px dashed #c6baa2}

.scene-tools a.icon{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:inherit}

#share-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:2px solid var(--ink);border-radius:18px;background:#fffaf0;color:var(--ink);padding:20px}#share-dialog::backdrop{background:#332d2299}#share-close{float:right}#share-title{font-size:22px;margin:8px 0 16px}#share-help,#share-feedback{font-size:13px;line-height:1.6}#share-preview{display:block;width:100%;height:auto;border:1px solid #c6baa2}.share-options{position:sticky;bottom:-20px;display:flex;flex-wrap:wrap;gap:10px;padding:16px 0;background:#fffaf0}.share-options .primary{min-width:0;flex:1}.share-options .secondary{flex:1}

.share-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}

#leaderboard-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;padding: max(36px,env(safe-area-inset-top)) max(24px,calc((100vw - 960px)/2));box-shadow:none;overflow:auto}#leaderboard-dialog .board-tabs{margin:24px 0}.board-tabs button{font-size:clamp(20px,4vw,30px);font-weight:800}.board-row{display:grid;grid-template-columns:50px 1fr 70px minmax(150px,1.5fr);gap:12px;align-items:center;padding:18px 8px;border-bottom:1px solid #ded4c1}.board-columns{font-size:12px;color:#8b8069}#board-list{max-height:none;overflow:visible;margin:0;font-size:16px}.board-row span:nth-child(2){font-weight:800}.board-row span:last-child{font-size:12px}.board-close{right:24px;top:20px}@media(max-width:480px){#leaderboard-dialog{padding:32px 14px}.board-row{grid-template-columns:32px 1fr 48px 128px;gap:5px;font-size:14px}.board-row span:last-child{font-size:11px}.board-columns{font-size:10px}}

#leaderboard-dialog #leaderboard-title{font-size:clamp(28px,5vw,44px);line-height:1.25;letter-spacing:-1px;margin:12px 48px 24px 0}

.board-answers{grid-column:1/-1;background:#f5ecd3;border-radius:12px;padding:8px 18px;line-height:1.7}.board-answers p{border-bottom:1px dashed #c6baa2;padding-bottom:12px;overflow-wrap:anywhere}.board-expand{border:1px solid #b8aa8f;background:#edc84f;border-radius:8px;padding:6px;cursor:pointer}.public-run-note{font-size:11px!important;color:#8b8069}#board-mine:empty{display:none}

.stage-tag.left,.stage-tag.right{right:auto;bottom:auto;transform:translateX(-50%);text-align:center;white-space:nowrap;letter-spacing:1px;pointer-events:none;opacity:.85}

#share-feedback:empty{display:none}

.report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.report-brand{min-width:0}.report-support{flex-shrink:0;text-align:right;color:#85765f;text-decoration:none;font-size:13px;line-height:1.5;padding:4px 0 8px}.report-support span,.report-support small{display:block}.report-support small{font-size:10px;letter-spacing:.5px;color:#9a927f}.report-support:hover{color:#ae562f}.report-support:focus-visible{outline:2px solid #ae562f;outline-offset:4px}
@media(max-width:420px){.report-header{gap:10px}.report-header .report-name{font-size:20px}.report-support{font-size:12px}}

.report-support[hidden]{display:none}

/* Rankings: a score-first board and a compact two-rank result card. */
#run-ranking.rank-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:none;padding:0;margin:22px 0}.rank-card{display:flex;flex-direction:column;align-items:center;padding:16px 12px;background:#f5ecd3;border:1px solid #e2d4b2;border-radius:14px;min-width:0}.rank-label{font-size:12px;color:#85745a}.rank-card strong{font-size:clamp(28px,6vw,42px);line-height:1.3;color:#ad542e;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.rank-card:first-child{background:#f8e7a6;border-color:#d8b648}
#leaderboard-dialog .board-tabs{display:flex;background:#efe8d9;border-radius:14px;padding:5px;gap:4px;width:fit-content}.board-tabs button{font-size:18px;border:0;border-radius:10px;padding:11px 24px;color:#85745a}.board-tabs button[aria-pressed=true]{color:#332d22;box-shadow:0 2px 0 #c6a43b}
.board-row{grid-template-columns:56px minmax(90px,1fr) minmax(180px,1.4fr) minmax(140px,1fr);padding:18px 14px;gap:14px}.board-rank{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}.board-rank small{display:block;font-size:9px!important;color:#a4522e!important;line-height:1.3!important}.board-row .board-score{font-size:24px;font-weight:850;letter-spacing:-.5px}.board-time{color:#9a907e;font-variant-numeric:tabular-nums}.board-expand{justify-self:start;background:#f5ecd3;border:1px solid #d9c9a5;border-radius:20px;padding:9px 13px;font-size:12px;line-height:1.4;color:#6f5736}.board-expand:hover,.board-expand[aria-expanded=true]{background:#edc84f;color:#332d22}.board-expand:focus-visible{outline:2px solid #a4522e;outline-offset:3px}.podium{border-radius:12px;margin-bottom:6px}.place-1{background:#f9edbd}.place-2{background:#efeee7}.place-3{background:#f2e5d7}.place-1 .board-rank{color:#9f7217}.place-2 .board-rank{color:#6f7779}.place-3 .board-rank{color:#996c49}.is-mine{box-shadow:inset 3px 0 #d59d29;background:#fcf1cb}#board-mine:not(:empty){border-left:3px solid #d6a930;background:#f5ecd3;padding:10px 16px;border-radius:0 10px 10px 0;color:#80643d}
.board-answers{background:#fffaf0;border:1px solid #e4d8bf;padding:4px 18px}.board-answers p:last-child{border-bottom:0;margin-bottom:4px}.board-answers strong{display:block;font-size:15px;line-height:1.6;font-weight:600}.board-reply{display:block!important;width:fit-content;background:#f8e7a6;padding:7px 12px;border-radius:4px 12px 12px 12px;margin:8px 0 6px;font-size:14px!important;font-weight:500!important}.board-timing{color:#9a907e}
@media(max-width:600px){.board-row{grid-template-columns:34px 1fr minmax(130px,1.3fr);gap:8px;padding:16px 10px}.board-columns>span:last-child{display:none}.board-row .board-time{grid-column:2/-1;font-size:10px;margin-top:-5px}.board-row .board-score{font-size:22px}.board-expand{font-size:11px;padding:9px 10px}.board-tabs button{font-size:16px;padding:10px 18px}.board-answers{padding:4px 12px}.rank-card{padding:12px 8px}}

.rank-number{display:flex;align-items:center;justify-content:center;gap:9px}.rank-trophy{width:25px;height:25px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.8}

.studio-home{color:inherit;text-decoration:none}.studio-home:hover{text-decoration:underline;text-underline-offset:3px}.studio-home:focus-visible{outline:2px solid #a4522e;outline-offset:4px}

.studio-brand .studio-home{pointer-events:auto;cursor:pointer;display:inline-block;padding:6px 0;margin:-6px 0}

/* Question content grows naturally; narrow/short viewports scroll inside the card. */
.question{min-width:0;max-width:calc(100% - 24px);touch-action:pan-y;overscroll-behavior:contain}.question-top{flex-wrap:wrap;align-items:center;gap:8px}.question-top>span:first-child{min-width:0;overflow-wrap:anywhere}.clock{margin-left:auto;flex-shrink:0}.choices{grid-template-columns:repeat(2,minmax(0,1fr))}.choices button{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.45}.question h2{line-height:1.35}.question p{overflow-wrap:anywhere}
@media(max-width:360px){.question{padding:14px}.choices{grid-template-columns:1fr;gap:8px}.choices button{min-height:48px;padding:10px}.question h2,html[lang=en] .question h2{font-size:20px;margin:12px 0}.timer-track{margin-bottom:12px}}
@media(max-height:450px){.question{padding:12px;max-height:calc(100dvh - 24px)}.question h2,html[lang=en] .question h2{font-size:20px;margin:10px 0}.timer-track{margin-bottom:10px}}

/* Timed questions must be readable without scrolling. */
.question{height:auto;max-height:none!important;overflow:visible;touch-action:manipulation}.question-top{line-height:1.4}.question p{line-height:1.4}
@media(max-height:450px){.question{padding:10px 14px}.question h2,html[lang=en] .question h2{font-size:18px;margin:8px 0;line-height:1.25}.question p{margin:8px 0 0}.choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.choices button{min-height:44px;padding:8px;font-size:13px}#timer,.question.locked #timer{font-size:20px}.timer-track{margin-bottom:8px}}

/* Save reminder belongs to the controls, outside the exported report. */
.result .result-actions{flex-wrap:wrap;row-gap:10px}
.save-reminder{flex:0 0 100%;margin:0;text-align:center;line-height:1.5;color:#8b8069;font-size:11px}
.save-reminder strong{display:block;font-size:12px;font-weight:600;color:#6e604b;margin-bottom:3px}
.save-reminder span{display:block;max-width:600px;margin:auto}
.result{padding-bottom:180px}
#share-status{pointer-events:auto}
@media(max-width:640px){.result{padding-bottom:190px}.save-reminder{font-size:10px}.save-reminder strong{font-size:11px}}

.controls .filing-note{display:block;margin:8px 0 0;font-size:10px;line-height:1.5;color:#a49a87}.filing-note a{text-decoration:none}.filing-note a:hover{text-decoration:underline}

.studio-brand{left:12px;right:12px;display:flex;align-items:baseline;justify-content:center;gap:6px;white-space:nowrap;font-size:10px}
.studio-brand span,html[lang=en] .studio-brand span{margin:0;font-size:10px;letter-spacing:0}
.studio-brand .filing-link{pointer-events:auto;font-size:10px;font-weight:400;text-decoration:none;margin-left:8px}
.studio-brand .filing-link:hover{text-decoration:underline}
.in-play .filing-link{display:none}
@media(max-width:420px){.studio-brand{gap:4px;font-size:9px}.studio-brand span,html[lang=en] .studio-brand span,.studio-brand .filing-link{font-size:8px}.studio-brand .filing-link{margin-left:4px}}

/* Keep studio credit left and filing link right on the same footer line. */
.studio-brand{left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));justify-content:flex-start}
.studio-brand .filing-link{margin-left:auto}
@media(max-width:640px){.studio-brand{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right))}}

html[lang="en"] .studio-brand .filing-link{display:none}
