/* Stage identity and a viewport-sized play surface. */
:root{--stage-accent:#1767a2}body[data-stage=response]{--stage-accent:#28746b}body[data-stage=preparation]{--stage-accent:#3f63b1}
[hidden]{display:none!important}.stage-strip .current,.questbar{background:var(--stage-accent)}.stage-strip .current{border-color:var(--stage-accent)}
.stage-art{background-size:cover;background-position:center}.stage-art:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 60%,#102d4c33);pointer-events:none}.stage-art>span{z-index:2}.stage-cast{position:absolute;bottom:30px;left:0;right:0;display:flex;justify-content:center;z-index:1}.stage-cast span{width:100px;height:100px;background-size:400% 400%;image-rendering:pixelated}.stage-nurse{bottom:100px}.stage-number{font-size:140px;text-shadow:0 3px 0 #173e6b22}.stage-intro .eyebrow{color:var(--stage-accent)}
.gamewrap{background:#c8d8e8}.gamewrap canvas{width:100%;height:100%;aspect-ratio:auto;min-height:0}.gamewrap{height:clamp(340px,46vw,530px)}.worldhint{top:10px;max-width:80%;font-size:11px}.controls{margin:16px 0 0;padding:12px 22px}.action-group{max-width:none;flex-wrap:wrap}.action-button{min-height:60px}.joystick{width:112px;height:112px}.stick-caption{font-size:9px}.route-button{min-height:46px}.joystick-wrap{gap:7px}
/* One dialog structure for every learning interaction. Only its body scrolls. */
.overlay{padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));z-index:30}
.missionbox{position:relative;display:flex;flex-direction:column;max-width:980px;max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border:2px solid #b3cce1;border-radius:20px;box-shadow:0 16px 70px #06223f66}
.dialog-head{position:relative;display:block;flex:none;max-width:none;width:100%;margin:0;padding:18px 24px 14px;background:#edf4fa;border-bottom:1px solid #c9dbe9;overflow:hidden}
.dialog-head .eyebrow{font-size:10px;letter-spacing:1.4px;color:var(--stage-accent)}.dialog-head h2{font-size:27px;margin:7px 0 0;line-height:1.15}
.dialog-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px;scrollbar-width:thin}
.dialog-foot{flex:0 0 auto;padding:14px 24px 18px;background:#f1f6fa;border-top:1px solid #d2e0eb;max-height:52dvh;overflow:auto;overscroll-behavior:contain}.dialog-foot .actions{gap:10px;align-items:center}.dialog-foot button{min-height:46px;padding:11px 18px}.dialog-foot .notice{margin:10px 0 0;font-size:10px}.dialog-foot .feedback{margin:0 0 12px;padding:14px 18px}.dialog-foot .feedback p{font-size:14px;line-height:1.55;margin:7px 0 0}.dialog-foot .feedback span{font-size:12px}
.activity-instruction{margin:0 0 16px;font-size:14px;line-height:1.55}.activity-feedback{margin:0 0 10px;font-size:13px}.activity-feedback:empty,#feedback:empty{display:none}.activity-feedback.bad{border-left:3px solid #c38c4b;padding-left:10px}.question-body{display:grid;grid-template-columns:.9fr 1.1fr;gap:24px;align-items:start}.question-context .speech{margin:0 0 15px}.question-context h3{font-size:17px;margin:12px 0}.question-context .micro{margin:8px 0 0}.question-body .options{margin:0;gap:12px}.option{min-height:64px;padding:12px;line-height:1.45;font-size:14px}.letter{flex:none}.speech{font-size:15px;line-height:1.6;padding:14px;margin:0}.conversation-body{display:grid;grid-template-columns:170px minmax(0,1fr);gap:16px;align-items:center}.speaker-art{width:170px;height:170px;background-size:400% 400%;image-rendering:pixelated;border-radius:20px;background-color:#dceaf6}.conversation-copy .feedback{margin:12px 0 0;padding:14px}.conversation-copy .feedback p{font-size:14px;line-height:1.55;margin:0}.conversation .dialog-foot .actions{justify-content:space-between}.conversation .dialog-foot .primary{flex:1}.helpbox{max-width:760px}.helpbox .dialog-body{display:grid;grid-template-columns:1fr 1fr;gap:18px}.help-step{margin:0;gap:10px}.helpbox .primary{margin:0}.help-step p{line-height:1.55}
.workbench{display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:auto 1fr auto;gap:14px}.item-tray{grid-column:1;grid-row:1/4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:start}.object-card{min-width:0;max-width:none;padding:12px 9px;gap:7px}.object-card svg{width:38px;height:38px}.object-card strong{font-size:12px}.object-card small{font-size:10px}.object-card.placed{opacity:.4}.device-detail{grid-column:2;grid-row:1;margin:0;padding:12px;font-size:13px;line-height:1.45}.device-detail p{margin:6px 0 0}.drop-bays{grid-column:2;grid-row:2;gap:10px;align-content:start}.drop-bay{padding:12px 8px;min-height:88px;gap:6px}.drop-bay b{font-size:11px;letter-spacing:.4px}.drop-bay small{font-size:10px;line-height:1.3}.placed-items>span{font-size:10px;padding:4px}.activity-count{grid-column:2;grid-row:3;margin:0;font-size:11px}.paper-card,.prep-station{min-height:115px;gap:8px;padding:12px}.paper-card svg,.prep-station svg{height:38px;width:38px}.record-detail{margin:15px 0;padding:14px;font-size:14px;line-height:1.5}.record-detail h3{margin:0}.communication-console{padding:16px;max-width:650px;margin:auto;border-width:3px}.console-screen{padding:16px}.console-screen p{font-size:17px;margin:14px 0}.console-call{margin-top:14px}.rescue-controls{gap:18px;margin:14px 0 0}.rescue-controls .joystick{width:94px;height:94px}.rescue-controls .stick-caption{font-size:8px}.rescue-controls p{line-height:1.4;margin:0 0 10px}.rescue-board canvas{width:100%;height:auto;aspect-ratio:820/350}
/* Feedback has its own quiet celebration; stars never cover choices or controls. */
.scene-complete .dialog-body{display:none}.scene-complete .dialog-head{padding-right:160px;min-height:88px;background:linear-gradient(100deg,#edf8f1,#e4f0fa)}.scene-complete .dialog-head:after{content:'★';position:absolute;right:52px;top:16px;display:grid;place-items:center;width:58px;height:58px;color:#b3832e;background:#fff4c9;border:2px solid #ddbc69;border-radius:50%;font-size:32px;box-shadow:0 4px 0 #c6a254}.scene-complete .dialog-foot{max-height:calc(100dvh - 120px);padding-top:20px}.scene-complete .feedback{font-size:17px}.scene-complete .feedback p{font-size:15px;line-height:1.6}.scene-complete .actions{justify-content:flex-end}.celebration{position:absolute;left:auto;top:0;right:0;bottom:auto;width:160px;height:100%;max-height:110px;z-index:2;pointer-events:none;overflow:hidden}.celebration span{position:absolute;left:80px;top:42px;font-size:16px;animation:safetyburst .85s var(--delay) ease-out both;color:#e1b95d;text-shadow:none}@keyframes safetyburst{0%{opacity:0;transform:scale(.2)}15%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(45deg) scale(.6)}}
@media(max-width:600px){.missionbox{border-radius:15px}.dialog-head{padding:15px 16px 12px}.dialog-head h2{font-size:22px}.dialog-head .eyebrow{font-size:9px;letter-spacing:.8px}.dialog-body{padding:16px}.dialog-foot{padding:12px 16px 16px}.dialog-foot .actions button{flex:1;font-size:13px}.question-body{grid-template-columns:1fr;gap:16px}.question-context h3{font-size:16px}.option{font-size:14px;min-height:62px}.conversation-body{grid-template-columns:92px 1fr;align-items:start;gap:10px}.speaker-art{width:92px;height:130px;background-size:565% 400%;background-position-x:-18px}.conversation-copy .speech{font-size:14px;padding:12px}.conversation .dialog-foot .actions{flex-direction:column;align-items:stretch}.conversation .dialog-foot .notice{display:none}.helpbox .dialog-body{grid-template-columns:1fr}.workbench{grid-template-columns:1fr 1fr;gap:10px}.item-tray{grid-template-columns:1fr;gap:8px}.object-card{display:grid;grid-template-columns:28px 1fr;text-align:left;padding:10px 8px;gap:5px}.object-card svg{width:28px;height:28px;grid-row:span 2}.object-card strong{font-size:12px}.object-card small{grid-column:2;font-size:9px}.device-detail{font-size:12px;padding:10px}.drop-bays{grid-template-columns:1fr;gap:9px}.drop-bay{padding:10px;min-height:78px}.activity-instruction{font-size:13px}.paper-card,.prep-station{display:flex;min-height:98px;gap:7px;padding:10px}.case-desk,.prep-stations{grid-template-columns:repeat(3,1fr);gap:8px}.paper-card b,.prep-station strong{font-size:11px}.paper-card small,.prep-station small{font-size:10px}.paper-card svg,.prep-station svg{width:30px;height:30px}.rescue-controls{gap:12px}.rescue-controls .joystick{width:85px;height:85px}.rescue-controls .primary{font-size:12px;padding:10px}.stage-cast span{width:62px;height:62px}.stage-cast{bottom:35px}.stage-nurse{bottom:60px;width:190px;height:190px}.stage-art{height:270px}.scene-complete .dialog-head{padding-right:100px;min-height:90px}.scene-complete .dialog-head:after{right:22px;top:22px;width:50px;height:50px;font-size:28px}.celebration{width:100px}.celebration span{left:50px}.scene-complete .feedback p{font-size:14px}}
/* All small-screen gameplay is contained within the visible viewport. */
@media(max-width:1000px), (orientation:landscape) and (max-height:600px){
body.in-game{height:100dvh;overflow:hidden;overscroll-behavior:none;background:#e8f1f8}body.in-game>header{position:fixed;inset:0 0 auto;height:calc(64px + env(safe-area-inset-top));max-width:none;padding:calc(6px + env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 6px max(10px,env(safe-area-inset-left));background:#f7fbff;border:0;z-index:5}body.in-game .logo-tile img{width:48px;height:48px}body.in-game .brand{font-size:10px;gap:9px;letter-spacing:.6px}body.in-game .brand small{font-size:8px;margin-top:4px}body.in-game .audio-controls{gap:5px;flex-direction:column}body.in-game .audio-controls button{font-size:9px;min-height:22px;min-width:66px;padding:4px 7px;box-shadow:0 2px 0 #a8bed1}
body.in-game main{position:fixed;inset:calc(64px + env(safe-area-inset-top)) 0 0;max-width:none;margin:0;padding:0;z-index:6;pointer-events:none}body.in-game main>*{pointer-events:auto}body.in-game .stage-strip{position:absolute;top:0;left:max(8px,env(safe-area-inset-left));right:96px;margin:0;height:35px;gap:5px;display:grid}body.in-game .stage-strip>span{padding:5px;gap:5px;border-radius:7px;box-shadow:none;min-width:0}body.in-game .stage-strip b{font-size:14px}body.in-game .stage-strip>span>span{font-size:8px;line-height:1.2}body.in-game .stage-strip small{display:none}body.in-game .topline{position:absolute;top:0;right:max(8px,env(safe-area-inset-right));margin:0;left:auto;bottom:auto;height:35px;z-index:2}body.in-game .topline>span,body.in-game .progress{display:none}body.in-game #help{font-size:10px;min-height:31px;padding:6px 9px;box-shadow:0 2px 0 #9dbbd2;border-radius:7px}
body.in-game .questbar{position:absolute;top:42px;left:8px;right:8px;height:54px;min-height:0;padding:7px 12px;border:0;border-radius:10px 10px 0 0;z-index:2}body.in-game .questbar small{font-size:8px;letter-spacing:1px}body.in-game .questbar strong{font-size:16px;margin-top:4px}body.in-game #stars{font-size:12px;padding:7px 10px;flex:none;margin-left:5px}
body.in-game .gamewrap{position:absolute;inset:96px 8px calc(134px + env(safe-area-inset-bottom));height:auto;max-width:none;margin:0;border:0;border-radius:0 0 14px 14px;box-shadow:none;overflow:hidden}body.in-game .gamewrap canvas{height:100%;width:100%;min-height:0;aspect-ratio:auto}body.in-game .worldhint{top:9px;font-size:10px;padding:5px 9px;max-width:88%}
body.in-game .controls{position:absolute;inset:auto 8px 0;height:calc(128px + env(safe-area-inset-bottom));margin:0;border:0;background:transparent;box-shadow:none;padding:5px 6px calc(6px + env(safe-area-inset-bottom));display:flex;gap:15px;align-items:center;justify-content:space-between}body.in-game .control-group{position:static;display:block;flex:none}body.in-game .control-label{display:none}body.in-game .joystick{width:99px;height:99px}body.in-game .joystick-wrap{gap:5px}body.in-game .stick-caption{font-size:8px;letter-spacing:.4px}body.in-game .action-group{position:static;max-width:none;width:auto;display:grid;grid-template-columns:1fr 1fr;gap:7px;flex:1}body.in-game .action-button{grid-column:1/-1;min-width:0;min-height:49px;padding:8px 12px;font-size:14px;gap:10px;justify-content:center}body.in-game .action-icon{font-size:20px}body.in-game .action-button small{font-size:9px;margin-top:3px}body.in-game .route-button{min-height:37px;font-size:10px;padding:6px;gap:5px;justify-content:center}body.in-game main>.notice,body.in-game>footer{display:none}
}
/* Landscape gains the entire scene width, with compact controls on the floor. */
@media(orientation:landscape) and (max-height:600px){
body.in-game>header{height:calc(42px + env(safe-area-inset-top));padding-top:calc(3px + env(safe-area-inset-top));padding-bottom:3px}body.in-game .logo-tile img{width:36px;height:36px}body.in-game .brand{font-size:9px}body.in-game .brand small{font-size:7px;margin-top:2px}body.in-game .audio-controls{flex-direction:row}body.in-game .audio-controls button{min-height:27px;font-size:9px}
body.in-game main{inset:calc(42px + env(safe-area-inset-top)) 0 0;position:fixed;max-width:none;margin:0;padding:0;z-index:6;pointer-events:none}body.in-game main>*{pointer-events:auto}body.in-game{height:100dvh;overflow:hidden}body.in-game .stage-strip{top:5px;left:calc(42% + 8px);right:calc(102px + env(safe-area-inset-right));height:37px}body.in-game .stage-strip>span>span{font-size:8px}body.in-game .stage-strip>span{padding:5px;gap:4px}body.in-game .stage-strip b{font-size:12px}body.in-game .topline{top:6px;right:max(12px,env(safe-area-inset-right))}body.in-game .questbar{top:0;left:max(8px,env(safe-area-inset-left));right:58%;height:46px;border-radius:10px;padding:5px 10px}body.in-game .questbar strong{font-size:13px;margin-top:3px}body.in-game .questbar small{font-size:7px;letter-spacing:.8px}body.in-game #stars{padding:6px 8px;font-size:11px}
body.in-game .gamewrap{inset:50px max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-radius:12px;height:auto;margin:0;max-width:none;border:0;box-shadow:none}body.in-game .worldhint{top:5px;font-size:9px;padding:4px 8px}
body.in-game .controls{position:absolute;inset:auto max(17px,env(safe-area-inset-right)) max(13px,env(safe-area-inset-bottom)) max(17px,env(safe-area-inset-left));height:78px;z-index:4;padding:0;margin:0;border:0;box-shadow:none;background:none;pointer-events:none;align-items:flex-end}body.in-game .controls>*{pointer-events:auto}body.in-game .joystick{width:78px;height:78px;background:radial-gradient(circle,#c1d7e9ee 0 34%,#e9f3fbe6 35% 65%,#bdd3e5 66%)}body.in-game .joystick-thumb{width:38px;height:38px;left:calc(50% - 19px);top:calc(50% - 19px)}body.in-game .stick-caption{display:none}body.in-game .action-group{flex:0 1 auto;grid-template-columns:94px 94px;width:198px;gap:5px}body.in-game .action-button{min-height:40px;padding:5px 9px;font-size:12px;gap:6px}body.in-game .action-button small{font-size:8px;margin-top:2px}body.in-game .action-icon{font-size:19px}body.in-game .route-button{min-height:30px;font-size:9px;padding:5px;box-shadow:0 2px 0 #8daec7;background:#f3f8fff5}body.in-game footer,body.in-game main>.notice{display:none}
.overlay{padding:7px max(10px,env(safe-area-inset-right)) 7px max(10px,env(safe-area-inset-left))}.missionbox{max-width:1100px;max-height:calc(100dvh - 14px);border-radius:13px}.dialog-head{padding:10px 17px 8px}.dialog-head h2{font-size:21px;margin-top:3px}.dialog-head .eyebrow{font-size:9px;letter-spacing:1px}.dialog-body{padding:12px 17px}.dialog-foot{padding:9px 17px 12px;max-height:45dvh}.dialog-foot button{min-height:39px;font-size:12px;padding:9px 14px}.dialog-foot .notice{display:none}.dialog-foot .feedback{padding:10px 12px;margin-bottom:8px}.dialog-foot .feedback p{font-size:12px;line-height:1.45}.dialog-foot .feedback span{font-size:11px}.dialog-foot .actions{gap:8px}.question-body{grid-template-columns:.85fr 1.15fr;gap:18px}.question-context .speech{font-size:13px;padding:10px;margin-bottom:9px;line-height:1.45}.question-context h3{font-size:14px;line-height:1.4;margin:8px 0}.question-context .micro{font-size:11px;margin:0}.question-body .options{gap:8px}.option{font-size:12px;padding:8px;min-height:48px;gap:9px;line-height:1.4}.letter{min-width:25px;min-height:25px;font-size:11px}
.conversation-body{grid-template-columns:120px minmax(0,1fr);align-items:center;gap:18px}.speaker-art{width:120px;height:140px;background-size:460% 400%;background-position-x:-8px}.conversation-copy .speech{font-size:14px;padding:11px}.conversation-copy .feedback{margin-top:9px;padding:11px}.conversation-copy .feedback p{font-size:13px;line-height:1.5}.conversation .dialog-foot .actions{flex-direction:row}.conversation .dialog-foot .primary{flex:0 1 auto}
.activity-instruction{font-size:12px;line-height:1.4;margin:0 0 10px}.activity-feedback{font-size:12px;margin-bottom:8px}.workbench{grid-template-columns:1fr 1fr;gap:8px 14px}.item-tray{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.object-card{display:grid;grid-template-columns:28px 1fr;padding:8px;gap:5px;text-align:left}.object-card svg{width:28px;height:28px;grid-row:span 2}.object-card strong{font-size:11px;line-height:1.3}.object-card small{font-size:9px;grid-column:2}.device-detail{padding:8px 10px;font-size:12px;line-height:1.4}.drop-bays{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.drop-bay{min-height:66px;padding:7px;gap:4px}.drop-bay b{font-size:10px}.drop-bay small{font-size:9px}.placed-items>span{padding:3px;font-size:9px}.activity-count{font-size:10px}.case-desk,.prep-stations{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.paper-card,.prep-station{display:grid;grid-template-columns:32px 1fr;text-align:left;min-height:61px;padding:8px;gap:5px}.paper-card svg,.prep-station svg{grid-row:span 2;width:30px;height:30px}.paper-card small,.prep-station small{grid-column:2;font-size:10px}.paper-card b,.prep-station strong{font-size:12px}.record-detail{padding:9px 12px;margin:12px 0;font-size:12px}.record-detail h3{font-size:14px}.record-detail p{margin:6px 0}.record-detail button,#escalate{min-height:39px;font-size:12px;padding:9px 12px}.communication-console{display:grid;grid-template-columns:1.5fr 1fr;align-items:center;gap:16px;padding:12px;max-width:none}.console-screen{padding:12px}.console-screen p{font-size:14px;margin:9px 0}.console-screen b{font-size:12px}.console-call{margin:0;font-size:13px;min-height:60px}.signal-bars{height:19px}
.activitybox:has(#rescue) .activity-work{display:grid;grid-template-columns:minmax(0,1fr) 178px;gap:14px}.activitybox:has(#rescue) .dialog-body{overflow:auto}.rescue-board{min-height:0;display:flex;align-items:center;background:#dae9f4}.rescue-board canvas{height:175px;object-fit:contain;aspect-ratio:auto}.rescue-controls{margin:0;flex-direction:column;gap:6px}.rescue-controls .joystick{width:69px;height:69px}.rescue-controls .joystick-thumb{width:32px;height:32px;left:calc(50% - 16px);top:calc(50% - 16px)}.rescue-controls .stick-caption{display:none}.rescue-controls>div:last-child{flex:0;text-align:center}.rescue-controls p{font-size:10px;margin:0 0 7px}.rescue-controls button{font-size:11px;min-height:38px;padding:7px}.scene-complete .dialog-head{min-height:76px;padding-right:150px}.scene-complete .dialog-head:after{top:10px;right:48px;width:50px;height:50px;font-size:30px}.scene-complete .dialog-foot{max-height:calc(100dvh - 106px)}.scene-complete .feedback p{font-size:14px}.scene-complete .actions button{min-height:43px}.helpbox .dialog-body{grid-template-columns:1fr 1fr;gap:14px}.help-step p{font-size:12px}.help-step h3{font-size:14px}.stage-intro{grid-template-columns:.8fr 1.2fr;gap:25px;min-height:0}.stage-art{height:300px}.stage-nurse{height:225px;width:225px;bottom:50px}.stage-intro h1{font-size:34px;margin:10px 0}.stage-intro .lead{font-size:13px}.stage-objectives{gap:7px;margin:14px 0}.stage-objectives li{font-size:12px}
}
@media(orientation:landscape) and (max-height:380px){.dialog-head{padding-top:7px;padding-bottom:7px}.dialog-head h2{font-size:19px}.dialog-body{padding-top:9px;padding-bottom:9px}.dialog-foot{padding-top:7px;padding-bottom:9px}.rescue-board canvas{height:172px}.activitybox:has(#rescue) .activity-instruction{font-size:11px}.rescue-controls .joystick{width:60px;height:60px}.rescue-controls p{font-size:9px}}
@media(max-width:350px) and (orientation:portrait){body.in-game .brand{font-size:9px}body.in-game .logo-tile img{width:44px;height:44px}body.in-game .stage-strip>span>span{font-size:7px}body.in-game .questbar strong{font-size:14px}body.in-game .controls{gap:8px;padding-left:0;padding-right:0}body.in-game .joystick{height:85px;width:85px}body.in-game .route-button{font-size:9px}body.in-game .action-button{font-size:12px}.dialog-foot .feedback p{font-size:12px}.dialog-head h2{font-size:20px}.dialog-body{padding:12px}.dialog-foot{padding:10px 12px}.activity-instruction{font-size:12px}}
@media(prefers-reduced-motion:reduce){.celebration{display:none}.signal-bars i,.gentle-shake{animation:none!important}button{transition:none}}

@media(max-width:1000px){body.in-game #sound{font-size:9px;min-height:22px;min-width:66px;padding:4px 7px}}
@media(orientation:landscape) and (max-height:600px){body.in-game #sound{min-height:27px}}

.world-loading{position:absolute;inset:0;display:grid;place-items:center;z-index:5;background:#e5f0f8;color:var(--stage-accent);font-size:14px;font-weight:bold;pointer-events:none}
@media(max-width:1000px) and (orientation:portrait){body.in-game .worldhint{top:44px}}
/* Desktop uses a roomy centered playfield, with its controls still in view. */
@media(min-width:1001px) and (min-height:601px){
body.in-game{height:100dvh;overflow:hidden}body.in-game>header{height:88px;padding:8px 24px;max-width:1280px;border:0}body.in-game .logo-tile img{width:68px;height:68px}body.in-game main{position:fixed;inset:88px 0 0;width:100%;max-width:1280px;margin:0 auto;padding:0 24px;pointer-events:none}body.in-game main>*{pointer-events:auto}body.in-game .stage-strip{position:absolute;inset:0 158px auto 24px;height:45px;margin:0;gap:12px}body.in-game .stage-strip>span{padding:8px 12px;box-shadow:none}body.in-game .stage-strip b{font-size:19px}body.in-game .stage-strip small{display:none}body.in-game .topline{position:absolute;right:24px;top:0;margin:0;height:45px}body.in-game .topline>span,body.in-game .progress{display:none}body.in-game #help{min-height:42px;font-size:12px;padding:10px 16px}body.in-game .questbar{position:absolute;inset:56px 24px auto;height:61px;padding:10px 18px;border:0}body.in-game .questbar strong{font-size:20px;margin-top:4px}body.in-game .gamewrap{position:absolute;inset:117px 24px 139px;height:auto;max-width:none;margin:0;box-shadow:none;border:0}body.in-game .controls{position:absolute;inset:auto 24px 10px;height:116px;margin:0;padding:8px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px}body.in-game .joystick{width:88px;height:88px}body.in-game .joystick-wrap{gap:4px}body.in-game .stick-caption{font-size:8px}body.in-game .joystick-thumb{width:42px;height:42px;left:calc(50% - 21px);top:calc(50% - 21px)}body.in-game .control-label{font-size:10px}body.in-game .action-group{gap:12px;flex-direction:row}body.in-game .action-button{min-height:58px}body.in-game main>.notice,body.in-game>footer{display:none}
}

/* Native links let the browser handle the WhatsApp app handoff without window.open. */
.button-link{font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:48px;border:1px solid #9abbd8;background:linear-gradient(#fff,#e9f2fb);color:var(--ink);border-radius:12px;padding:13px 20px;font-weight:600;box-shadow:0 4px 0 #97b5d0,inset 0 2px 0 #fff;text-decoration:none;line-height:1.4;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.button-link.primary{border-color:#13558a;background:linear-gradient(#2d8ac5,#1264a2);color:#fff;box-shadow:0 5px 0 #0a4272,inset 0 2px 0 #70b5df}.button-link:hover{filter:brightness(1.06)}.button-link:active{transform:translateY(3px);box-shadow:0 1px 0 #0a4272}.button-link:focus-visible{outline:3px solid #196fb4;outline-offset:5px}
.share-help{max-width:760px;margin:22px auto;text-align:left;border:1px solid #b4cde1;border-radius:12px;padding:16px;background:#f7fbff}.share-help summary{cursor:pointer;font-size:14px;font-weight:600;color:#1767a2;padding:4px}.share-help p{font-size:13px;line-height:1.6}.share-help label{display:block;margin:20px 0 9px;font-size:13px;font-weight:bold}.share-help textarea{display:block;width:100%;resize:vertical;min-height:180px;border:1px solid #a9c4d9;border-radius:8px;background:#fff;padding:12px;color:#173d64;font:14px/1.6 Arial,sans-serif}.share-help textarea:focus-visible{outline:3px solid #196fb4;outline-offset:2px}
@media(max-width:600px){.result>.actions{flex-direction:column;align-items:stretch}.result>.actions .button-link,.result>.actions button{width:100%;font-size:14px}.share-help{padding:12px}}
