:root{--lime:#ff6259;--muted:#bbbfb9}*{box-sizing:border-box}body{margin:0;background:#151716;color:#f2f1df;font:14px 'Courier New',monospace}main{max-width:1200px;margin:auto;padding:28px 42px}header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #3d423b;padding-bottom:24px}header b{font:800 25px Impact,'Arial Narrow',sans-serif;letter-spacing:1px}span{color:inherit}header b span,h1 span{color:var(--lime)}header small{letter-spacing:2px;color:var(--muted);font-size:12px}button{font:600 13px 'Courier New',monospace;cursor:pointer;color:inherit;background:transparent;border:1px solid #54716f;padding:12px 17px}button:hover{background:#333832}button:focus-visible{outline:3px solid var(--lime);outline-offset:3px}.heading{display:flex;align-items:center;justify-content:space-between;margin:32px 0 24px}.eyebrow{font-size:12px;letter-spacing:2px;color:var(--lime);margin:0 0 9px}h1{font:900 clamp(45px,7vw,80px)/.95 Impact,'Arial Narrow',sans-serif;margin:0;letter-spacing:-1px}.heading>p{line-height:1.9;color:var(--muted);font-size:13px}.machine{border:2px solid #444a43;box-shadow:9px 9px 0 #0b0c0b;overflow:hidden}.hud{height:76px;background:#242724;display:flex;align-items:center;gap:45px;padding:0 28px}.hud>div:first-child{margin-right:auto}.hud small{display:block;color:var(--muted);font-size:10px;letter-spacing:2px;margin-bottom:7px}.hud strong{font-size:16px}.hud button{border:none;font-size:12px;color:var(--lime)}.screen{position:relative;background:#456c70;aspect-ratio:16/9}canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#15171673;backdrop-filter:blur(2px)}.hidden{display:none!important}.card{background:#151716f5;border:1px solid #444a43;padding:30px;text-align:center;width:460px;max-width:92%;box-shadow:7px 7px 0 #09212480}h2{font:800 44px/1.05 Impact,'Arial Narrow',sans-serif;margin:15px 0}.card>p:not(.eyebrow){font-size:14px;line-height:1.7;color:#c0d0c9}.primary{color:#ffffff;background:var(--lime);border:none;padding:16px 25px;margin:12px 0 15px}.primary:hover{background:#df352d}.card small{display:block;color:var(--muted);font-size:11px}#answers{display:grid;gap:8px}#answers button{text-align:left;font-size:14px;padding:12px}.bottom{padding:13px 24px;background:#242724;display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#a8c2b9}.controls{display:flex;align-items:center;justify-content:space-between;margin-top:22px}.controls p{color:var(--muted);font-size:12px}kbd{font-family:inherit;background:#333832;padding:5px 8px;margin-right:6px;border-bottom:2px solid #607977}.mobile{display:none;gap:10px}.toast{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);background:#151716ed;color:var(--lime);padding:10px 16px;font-size:13px;opacity:0;pointer-events:none;white-space:nowrap}.toast.show{opacity:1}footer{display:flex;justify-content:space-between;margin:28px 0;color:#90ada8;font-size:11px}@media(max-width:700px){main{padding:20px 16px}header small,.heading>p{display:none}.heading{margin:27px 0 20px}.hud{padding:0 12px;gap:16px;height:68px}.hud strong{font-size:12px}.hud small{font-size:9px;letter-spacing:1px}.screen{aspect-ratio:4/3}.card{padding:16px}h2{font-size:30px;margin:10px 0}.card>p:not(.eyebrow){font-size:12px;line-height:1.5}.card .eyebrow{font-size:10px}.primary{padding:12px 16px;margin:8px 0}.card small{font-size:10px}.bottom{font-size:9px;padding:12px}.bottom span:last-child{display:none}.controls{flex-wrap:wrap;gap:12px}.mobile{display:flex;width:100%}.mobile button{height:52px;min-width:68px;touch-action:none;background:#242724;font-size:18px}.mobile .jump{margin-left:auto;background:var(--lime);color:#ffffff;font-size:13px}.controls p{display:none}.controls>#restart{font-size:11px;padding:10px}footer{line-height:1.6}footer span:last-child{display:none}#answers button{font-size:12px;padding:8px}}

.screen{min-height:340px}.overlay{overflow:auto;padding:12px}.card{max-height:100%;overflow:auto}.card small{font-size:12px}.hud{gap:22px}.hud small{font-size:11px}.hud strong{font-size:14px}.leaderboard{margin-top:32px;border-top:1px solid #444a43;padding-top:20px}.board-heading{display:flex;justify-content:space-between;align-items:center}.board-heading h2{font-size:30px;margin:0}#board{padding:0;list-style:none}#board li{display:grid;grid-template-columns:40px 1fr auto;gap:12px;padding:15px;border-bottom:1px solid #333832}#board small{color:var(--muted);margin-left:12px}#board-status{font-size:14px;color:var(--muted)}#entry{margin:15px 0}#entry label{display:block;font-size:14px;margin-bottom:8px}input{width:100%;font:16px Arial;padding:12px;background:#242724;border:1px solid #686c65;color:white}#save-status{font-size:14px}.primary:disabled{opacity:.5}.mobile{flex-wrap:wrap}.mobile button{flex:1}.mobile .jump{margin-left:0}@media(max-width:700px){.hud{gap:10px;padding:0 8px}.hud strong{font-size:11px}.hud small{font-size:9px}.hud button{padding:8px;font-size:10px}.screen{min-height:360px;aspect-ratio:auto;height:360px}.card{width:95%;padding:14px}.card>p:not(.eyebrow){font-size:14px}#answers button{font-size:14px}.card small{font-size:12px}.mobile button{min-width:52px}.board-heading h2{font-size:24px}.board-heading button{font-size:11px;padding:10px}#board li{font-size:14px}#board small{display:block;margin:4px 0 0}.controls{margin-top:18px}}

html{overflow-x:hidden}body{display:flow-root}main{padding-bottom:12px}@media(max-width:700px){main{padding:16px 10px}}

/* Schurz Quest 1.1: rounded gamepad controls */
button,button *,.controls,canvas{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}button{appearance:none;-webkit-appearance:none;border:1px solid #595c57;border-radius:12px;background:linear-gradient(180deg,#3c403b,#272a27);box-shadow:0 4px 0 #101110,inset 0 1px 0 #ffffff16;transition:transform .1s,box-shadow .1s,background .15s;touch-action:manipulation}button:hover:not(:disabled){background:linear-gradient(180deg,#484d46,#343832)}button:active:not(:disabled),button.is-pressed:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #101110,inset 0 2px 5px #0005}button:disabled{cursor:not-allowed;background:#292c29;color:#747970;border-color:#393d37;box-shadow:0 3px 0 #121412;opacity:1}button:disabled:hover{background:#292c29}.primary,.mobile .jump{background:linear-gradient(180deg,#ff6a61,#dd342c);border:1px solid #ff8b83;box-shadow:0 5px 0 #8c201b,inset 0 1px 0 #ffffff30;color:#fff}.primary:hover:not(:disabled),.mobile .jump:hover:not(:disabled){background:linear-gradient(180deg,#ff7e75,#ee453c)}.primary:active:not(:disabled),.mobile .jump.is-pressed{box-shadow:0 2px 0 #8c201b,inset 0 2px 5px #0004}
.machine{border-radius:20px;box-shadow:0 8px 24px #0005}.card{border-radius:18px;box-shadow:0 12px 30px #0006}.hud button{border:1px solid #595c57;border-radius:10px}kbd,input{border-radius:8px}.toast{border-radius:10px}.leaderboard{border:1px solid #3d423b;border-radius:16px;padding:22px;background:#1d201d}#board li{border-radius:8px}#board li:nth-child(odd){background:#272a26}.controls{background:#1f221f;border:1px solid #3d423b;border-radius:18px;padding:16px;display:flex;flex-wrap:wrap;gap:12px}.mobile{display:flex;width:100%;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:12px}.pad-move,.pad-action{display:flex;gap:10px;align-items:center}.mobile button{flex:none;height:66px;min-width:68px;padding:10px 16px;border-radius:14px;touch-action:none;font:700 14px Arial,sans-serif}.mobile .pad-symbol{font-size:24px;line-height:1}.mobile .jump{margin-left:0;min-width:140px;display:flex;align-items:center;justify-content:center;gap:10px}.jump-symbol{font-size:28px}.mobile #car-button{min-width:112px;font-size:12px;letter-spacing:.3px}.mobile #car-button.is-ready{background:linear-gradient(180deg,#cfed86,#88ab41);color:#17200d;border-color:#e3ffa2;box-shadow:0 5px 0 #526d24;animation:panda-ready 1.1s ease-in-out infinite}.controls p{margin:8px 0;line-height:2}.controls>#restart{margin-left:auto}.primary:disabled{opacity:1}
@keyframes panda-ready{0%,100%{box-shadow:0 5px 0 #526d24,0 0 0 0 #c4ed8055}50%{box-shadow:0 5px 0 #526d24,0 0 0 7px #c4ed8000,0 0 18px #c4ed8040}}
@media(max-width:700px){.controls{padding:12px;gap:12px}.mobile{gap:8px}.pad-move,.pad-action{gap:8px}.mobile button{height:60px;min-width:50px;padding:8px 10px}.mobile .jump{min-width:100px;gap:6px;font-size:11px}.jump-symbol{font-size:23px}.mobile #car-button{min-width:78px;font-size:10px;padding:8px 6px}.machine{border-radius:16px}.card{border-radius:16px}.leaderboard{padding:16px}.controls>#restart{margin-left:auto}.controls p{display:none}}@media(max-width:360px){.controls{padding:9px}.pad-move,.pad-action{gap:6px}.mobile{gap:6px}.mobile button{min-width:44px}.mobile .jump{min-width:88px}.mobile #car-button{min-width:72px}.jump-symbol{display:none}}@media(prefers-reduced-motion:reduce){button{transition:none}.mobile #car-button.is-ready{animation:none;box-shadow:0 5px 0 #526d24,0 0 0 3px #c4ed8060}}

/* Schurz Quest 1.2: arcade counters and rounded controls */
@font-face{font-family:GameDigits;src:url('game-digits.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0030-0039}
button{border-radius:20px}.mobile button{border-radius:999px}.mobile .pad-move button{padding:10px;aspect-ratio:1;min-width:66px;width:66px}.mobile .pad-symbol{font-size:25px}.mobile .jump,.mobile #car-button{border-radius:999px}.machine{border-radius:24px}.card{border-radius:22px}.controls{border-radius:24px}.leaderboard{border-radius:22px}.hud{height:96px;gap:16px;padding:10px 20px}.hud .stat{background:linear-gradient(180deg,#161915,#20251d);border:1px solid #444a3e;border-radius:14px;padding:9px 13px;min-width:100px;box-shadow:inset 0 2px 4px #0005}.hud .stat-stage{background:none;border:none;padding:0;min-width:130px;box-shadow:none}.hud small{font:700 11px Arial,sans-serif;letter-spacing:1.4px;margin-bottom:8px}.hud #score,.hud #timer{font:400 30px/1 GameDigits,'Courier New',monospace;letter-spacing:2px;text-shadow:0 2px 0 #0008;color:#ffe49b}.hud #timer{color:#f2f1df}.hud #timer.time-low{color:#ff6b60}.hud #lives{display:flex;gap:5px;align-items:center;height:30px}.life-heart{width:23px;height:23px;color:#ff6259;filter:drop-shadow(0 2px 0 #8a241e)}.life-heart.is-empty{color:#484c43;filter:none}.hud .stat-lives{min-width:110px}.hud button{border-radius:999px}.hud #stage{font:700 16px Arial,sans-serif;line-height:1.3}#board strong{font-family:GameDigits,'Courier New',monospace;font-size:22px;letter-spacing:1px;color:#ffe49b}
@media(max-width:700px){.hud{height:86px;padding:8px;gap:6px}.hud .stat{padding:7px;min-width:0;border-radius:11px}.hud .stat-stage{min-width:0;flex:1;padding:0}.hud #stage{font-size:12px;max-width:78px;display:block}.hud small{font-size:9px;letter-spacing:.7px;margin-bottom:7px}.hud #score,.hud #timer{font-size:23px;letter-spacing:1px}.hud #lives{gap:2px;height:23px}.life-heart{width:15px;height:18px}.hud .stat-lives{min-width:57px}.hud #pause{font-size:9px;padding:8px 5px}.mobile .pad-move button{min-width:50px;width:50px;height:50px}.mobile .jump,.mobile #car-button{height:54px}.machine{border-radius:20px}}@media(max-width:360px){.hud{gap:4px;padding:7px 5px}.hud .stat{padding:6px 5px}.hud #score,.hud #timer{font-size:20px}.hud #stage{font-size:11px;max-width:62px}.hud .stat-lives{min-width:50px}.life-heart{width:13px}.mobile .pad-move button{min-width:44px;width:44px;height:44px}.mobile .jump,.mobile #car-button{height:50px}}

/* Larger game screen, preserve native aspect ratio */
main{max-width:1480px;padding:18px 20px}.screen{aspect-ratio:16/9;min-height:0;height:auto}@media(max-width:700px){main{padding:8px 4px}.screen{aspect-ratio:16/9;height:auto;min-height:0}.heading{margin:14px 0}.hud #stage{max-width:100px}.overlay{padding:4px}.card{padding:10px}h2{font-size:24px}.card small{font-size:10px}.card>p:not(.eyebrow){font-size:12px}#answers button{font-size:12px;padding:8px}.toast{white-space:normal;width:max-content;max-width:90%;bottom:8px;font-size:11px}}

.machine:fullscreen{width:100vw;height:100dvh;border:0;border-radius:0;display:flex;flex-direction:column;background:#151716}.machine:fullscreen .screen{flex:1;min-height:0;aspect-ratio:auto}.machine:fullscreen canvas{object-fit:contain}.machine:fullscreen .hud{height:64px;flex-shrink:0}.machine:fullscreen .bottom{display:none}
.game-expanded main{max-width:none;padding:0}.game-expanded header,.game-expanded .heading,.game-expanded .leaderboard,.game-expanded footer{display:none}.game-expanded .screen{min-height:55dvh}.game-expanded .machine{border-radius:0}.game-expanded .controls{margin-top:8px}
@media(max-width:700px){.screen{aspect-ratio:4/3;min-height:280px}.machine:fullscreen .screen{min-height:0}}

/* 1.4: thumb-friendly controller, fullscreen includes controls */
.tutorial{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:max-content;max-width:92%;padding:10px 16px;background:#13251def;border:1px solid #a6c78a;border-radius:14px;color:#fff5d6;font:700 15px/1.4 Arial;pointer-events:none;text-align:center}
.controls{margin:0;border:0;border-top:2px solid #080a09;border-radius:0;padding:16px 24px;background:linear-gradient(160deg,#303730,#151c18);gap:10px}
.mobile{gap:22px}.pad-move,.pad-action{padding:12px;border-radius:36px;background:#0c100d;box-shadow:inset 0 4px 10px #0008;gap:14px}
.mobile .pad-move button{width:88px;min-width:88px;height:88px;border:3px solid #aadbe0;background:linear-gradient(145deg,#60cbd6,#238190);box-shadow:0 7px 0 #114650,inset 0 2px 1px #ffffff80;color:#061b20}
.mobile .pad-symbol{font-size:34px}.mobile .jump{height:92px;min-width:152px;border:3px solid #ffc9bd;font-size:16px;background:linear-gradient(145deg,#ff8e7a,#e04b3b);box-shadow:0 7px 0 #822d25}
.mobile #car-button{height:72px;min-width:100px;font-size:13px}
.mobile button.is-pressed{transform:translateY(5px);filter:brightness(1.15);box-shadow:0 2px 0 #071d21,inset 0 3px 9px #0005}
.controls p{margin:0}.controls>#restart{margin-left:0}.controls #fullscreen{margin-left:auto}
.machine:fullscreen .controls{flex-shrink:0;padding:8px 20px}.machine:fullscreen .controls p,.machine:fullscreen #restart{display:none}.machine:fullscreen .mobile{width:auto;flex:1}
@media(max-width:700px){.tutorial{font-size:12px;padding:8px 10px;top:7px}.controls{padding:10px 8px}.mobile{gap:10px}.pad-move,.pad-action{gap:8px;padding:8px;border-radius:28px}.mobile .pad-move button{width:68px;min-width:68px;height:76px}.mobile .pad-symbol{font-size:28px}.mobile .jump{height:84px;min-width:100px;font-size:12px;padding:8px}.mobile #car-button{height:64px;min-width:66px;font-size:10px;padding:6px}.jump-symbol{display:none}.controls>#restart,.controls>#fullscreen,.controls>#game-sound{font-size:10px;padding:9px 12px}.controls #fullscreen{margin-left:auto}.screen{aspect-ratio:16/9;min-height:0}canvas{object-fit:contain}.heading h1{font-size:42px}.hud{height:72px}}
@media(max-width:370px){.mobile{gap:6px}.pad-move,.pad-action{gap:5px;padding:6px}.mobile .pad-move button{width:58px;min-width:58px;height:72px}.mobile .jump{min-width:90px;height:78px}.mobile #car-button{min-width:60px}}
@media(orientation:landscape) and (max-height:600px){header,.heading,footer{display:none}main{padding:0}.machine .hud{height:52px}.screen{height:calc(100dvh - 182px);aspect-ratio:auto}.mobile .pad-move button{height:62px;width:68px;min-width:68px}.mobile .jump{height:66px}.mobile #car-button{height:54px}.controls{padding:6px 16px}.pad-move,.pad-action{padding:5px}.controls p,.controls #restart{display:none}.mobile{flex:1;width:auto}.controls #fullscreen{margin-left:0}}

/* 1.5: a stable, viewport-filling game on desktop and iPhone */
.game-expanded{overflow:hidden;height:100dvh;margin:0}
.game-expanded main{position:fixed;inset:0;width:100%;height:100%;max-width:none;padding:0;z-index:1000;background:#151716}
.game-expanded .machine{display:flex;flex-direction:column;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;overflow:hidden}
.game-expanded .hud{flex:0 0 64px;height:64px;padding:6px 10px}
.game-expanded .screen{flex:1 1 0;min-height:0!important;height:auto!important;aspect-ratio:auto;overflow:hidden;background:#152019}
.game-expanded canvas{width:100%;height:100%;object-fit:contain}
.game-expanded .bottom{display:none}
.game-expanded .controls{flex:0 0 auto;margin:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));display:flex;flex-wrap:wrap}
.game-expanded .controls p,.game-expanded #restart{display:none}
.game-expanded .mobile{width:100%;flex:none}
.game-expanded #fullscreen{margin-left:auto}
.game-expanded .controls>#game-sound,.game-expanded .controls>#fullscreen{padding:7px 12px}
.game-expanded .card{max-height:100%;padding:12px}
audio{display:none}
@media(orientation:landscape) and (max-height:600px){.game-expanded .hud{height:48px;flex-basis:48px}.game-expanded .controls{flex-wrap:nowrap;padding:5px 10px calc(5px + env(safe-area-inset-bottom))}.game-expanded .mobile{flex:1;width:auto}.game-expanded .pad-move,.game-expanded .pad-action{padding:4px}.game-expanded .mobile .pad-move button{height:58px;width:64px;min-width:64px}.game-expanded .mobile .jump{height:62px;min-width:100px}.game-expanded .mobile #car-button{height:52px;min-width:70px}.game-expanded .controls>#fullscreen{margin-left:0}.game-expanded .screen{min-height:0}}

/* 1.8: the game gets the space; page chrome is compact */
main{max-width:1680px;padding:10px 12px}.heading{margin:12px 0}.heading h1{font-size:42px}.heading>p{display:none}header{padding-bottom:10px}header b{font-size:20px}.hud{height:76px}.screen{aspect-ratio:16/9;min-height:0}.machine{width:100%}.controls{padding:10px 16px}.controls p{display:none}
@media(max-width:700px){main{padding:0}.heading,header{display:none}.machine{border-left:0;border-right:0;border-radius:0}.screen{height:clamp(290px,53dvh,540px);aspect-ratio:auto}.screen canvas{object-fit:contain}.hud{height:64px}.controls{padding:8px}.leaderboard{margin:16px 8px}.bottom{padding:8px}.game-expanded .screen{height:auto}}
@media(orientation:landscape) and (max-height:600px){.screen{height:calc(100dvh - 156px)}.hud{height:48px}.controls{padding:4px 10px}.mobile .pad-move button{height:58px}.mobile .jump{height:62px}.controls #restart{display:none}}

@media(max-width:700px){.screen canvas{object-fit:cover}.game-expanded .screen canvas{object-fit:cover}}

.panda-control{display:flex;flex-direction:column;align-items:center;gap:5px;flex:none;min-width:76px}.panda-control #parts-count{font:700 10px/1 Arial,sans-serif;color:#d5e5cc;letter-spacing:.3px;white-space:nowrap}.panda-control #parts-meter{height:5px;width:72px;background:#121a19;border:1px solid #60776b;border-radius:4px;overflow:hidden}.panda-control #parts-meter span{display:block;width:var(--parts,0%);height:100%;background:#b7e177;transition:width .16s}
@media(max-width:370px){.panda-control{min-width:60px}.panda-control #parts-count{font-size:9px}.panda-control #parts-meter{width:56px}}
@media(orientation:landscape) and (max-height:600px){.panda-control{gap:3px}.panda-control #parts-count{font-size:9px}.panda-control #parts-meter{height:4px}.mobile #car-button{height:46px}}

/* 2.0: external edge HUD and a 10% smaller normal game cabinet */
main{max-width:1680px}.machine{width:90%;margin:0 auto}.hud{background:#172019;border-bottom:2px solid #444f3c;height:68px}.hud .stat{border-radius:4px}.hud #stage{max-width:none}.bottom{display:none}.screen{border-top:2px solid #718264}canvas{image-rendering:pixelated}
@media(max-width:700px){.machine{width:90%;border:2px solid #444f3c;border-radius:8px}.screen{height:clamp(261px,47.7dvh,486px)}.hud{height:62px}.hud #stage{max-width:85px;font-size:10px}.hud #score,.hud #timer{font-size:19px}.hud .stat{padding:5px}.controls{padding:6px}.mobile{gap:6px}.pad-move,.pad-action{padding:6px;gap:6px}.mobile .pad-move button{width:58px;min-width:58px;height:70px}.mobile .jump{min-width:90px;height:76px}.mobile #car-button{min-width:60px}.panda-control{min-width:62px}}
.game-expanded .machine{width:100%;margin:0;border-radius:0}.game-expanded .hud{flex-basis:62px}.game-expanded .screen{height:auto;border-top:1px solid #718264}
@media(max-width:370px){.pad-move,.pad-action{padding:4px;gap:4px}.mobile .pad-move button{width:50px;min-width:50px;height:66px}.mobile .jump{min-width:78px}.panda-control{min-width:58px}.mobile #car-button{min-width:56px}}

/* 2.1: quiet, compact top-left collection HUD */
.collector-strip{display:flex;align-items:center;gap:12px;min-height:34px;padding:6px 12px;background:#0f1922;border-top:1px solid #334656;border-bottom:1px solid #5d7580;overflow:hidden}
.collector-caption{font:700 9px Arial,sans-serif;letter-spacing:1px;color:#8faabb;flex:none}
#collector-feed{display:flex;align-items:center;gap:10px;min-width:0;overflow:hidden}
.collector-event{display:inline-block;white-space:nowrap;color:var(--event-color,#f7dfa0);font:700 11px/1.3 Arial,sans-serif;border-left:2px solid var(--event-color,#f7dfa0);padding-left:7px;animation:collector-pop 2.1s ease-out both}
@keyframes collector-pop{0%{opacity:0;transform:translateX(-6px)}12%,76%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(3px)}}
.hud{background:#14212d}.hud .stat{background:#0e1820;border-color:#394c59}.controls{background:linear-gradient(160deg,#273643,#111d27)}.screen{border-color:#4b7181}
.game-expanded .collector-strip{flex:0 0 30px;min-height:30px;padding:4px 10px}
@media(max-width:700px){.collector-strip{gap:8px;padding:5px 8px;min-height:30px}.collector-caption{font-size:8px}.collector-event{font-size:10px;padding-left:5px}#collector-feed{gap:8px}.hud #score,.hud #timer{color:#f9e7ab}}
@media(orientation:landscape) and (max-height:600px){.screen{height:calc(100dvh - 188px)}.collector-strip{min-height:26px}.game-expanded .collector-strip{flex-basis:26px;min-height:26px}.game-expanded .screen{height:auto}}
@media(prefers-reduced-motion:reduce){.collector-event{animation:none}}

/* 2.5: separated direction buttons, stable touch targets. */
.pad-move{gap:32px}.mobile .pad-move button.is-pressed,.mobile .pad-move button:active{transform:none;box-shadow:inset 0 3px 8px #0008,0 1px 0 #080e14}.pad-action{padding-left:0;padding-right:0}
@media(max-width:700px){.pad-move{gap:26px}.pad-action{padding-left:0;padding-right:0;gap:5px}.mobile{gap:8px}}
@media(max-width:370px){.controls{padding:4px}.pad-move{gap:22px;padding:2px}.mobile .pad-move button{width:48px;min-width:48px}.pad-action{padding:2px 0;gap:4px}.mobile{gap:4px}}
@media(orientation:landscape) and (max-height:600px){.pad-move,.game-expanded .pad-move{gap:30px}}

#car-condition{font:700 9px Arial,sans-serif;color:#f4aa87;min-height:0}#car-condition:empty{display:none}

.mask-control{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:5px 0}.mask-control button{height:44px;min-width:135px;border-radius:12px;font:bold 11px Arial}.mask-control small{display:block;font:700 10px Arial;color:#edc5a0;margin-bottom:5px}.mask-control #mask-meter{width:96px;height:6px;background:#201c1a;border:1px solid #977459;border-radius:5px;overflow:hidden}.mask-control #mask-meter span{display:block;width:var(--charge,0%);height:100%;background:#ec9d54}.mask-control button.is-ready{background:#d6934c;color:#251a18;border-color:#ffcb83}.mask-control button:disabled{opacity:.7}@media(orientation:landscape) and (max-height:600px){.mask-control{width:auto;flex:none;gap:5px}.mask-control button{min-width:78px;height:42px;font-size:9px}.mask-control #mask-meter{width:55px}.mask-control small{font-size:8px}}

#fork-status{color:#edc87a;font-size:11px;font-weight:bold;white-space:nowrap;margin-left:auto}

/* 3.8: iframe height must follow width, never its own viewport height. */
body:not(.game-expanded) .screen{height:auto!important;min-height:0!important;aspect-ratio:16/9}
@media(max-width:700px) and (orientation:portrait){body:not(.game-expanded) .screen{aspect-ratio:4/3}}
.game-expanded{height:100svh}
.screen{contain:layout paint;overflow:hidden}
.collector-strip{height:34px;min-height:34px;max-height:34px;flex-shrink:0}
@media(max-width:700px){.collector-strip{height:30px;min-height:30px;max-height:30px}}
@media(orientation:landscape) and (max-height:600px){.collector-strip{height:26px;min-height:26px;max-height:26px}}
.game-expanded .collector-strip{flex-grow:0;flex-shrink:0}
#fork-status:empty{display:none}
.game-expanded main{height:100svh;bottom:auto}
.machine:fullscreen{height:100svh}

#adventure-status{font-size:10px;color:#e2cea4;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#bait-button:disabled{opacity:.4}.collector-strip{overflow:hidden}#stamp-book,#bait-button{touch-action:manipulation;user-select:none}

.character-choice{display:flex;gap:18px;justify-content:center;margin:14px 0}.character-choice button{display:grid;justify-items:center;gap:4px;background:#263d43;border:2px solid #77887b;padding:6px 16px;border-radius:12px;color:#eee4c7}.character-choice .selected{border-color:#f2cb77;background:#3d534d}.character-choice canvas{width:84px;height:96px;image-rendering:pixelated}.review-panel{position:fixed;inset:0;background:#07131ce8;z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px}.review-panel .card{width:min(560px,100%);max-height:90dvh;overflow:auto}.review-panel select,.review-panel input:not([type=checkbox]){width:100%;font:inherit;padding:12px;margin:8px 0;color:#162e36;background:#f3e8d0}.review-panel button{padding:12px;margin:6px 3px}.review-row{display:flex;flex-wrap:wrap;justify-content:center;gap:4px}.fly-label{display:block;margin:12px 0;text-align:left}.fly-label input{width:22px;height:22px;vertical-align:middle}#review-badge{font-size:11px;color:#f2ce76}.hidden{display:none!important}

/* Keep start/selection visible instead of burying the start button below the screen. */
@media(max-width:700px){.card:has(.character-choice:not(.hidden)) #message,.card:has(.character-choice:not(.hidden)) #tag{display:none}.card:has(.character-choice:not(.hidden)) h2{font-size:21px;line-height:1.05;margin:4px 0}.card:has(.character-choice:not(.hidden)) .character-choice{margin:8px 0;gap:8px}.card:has(.character-choice:not(.hidden)) .character-choice button{padding:8px 5px;font-size:12px}.card:has(.character-choice:not(.hidden)) #start{margin:4px 0;padding:10px 12px;font-size:11px}.card:has(.character-choice:not(.hidden)) #hint{display:none}}
@media(orientation:landscape) and (max-height:600px){.game-expanded .controls{flex-wrap:wrap;gap:4px;padding:4px 8px}.game-expanded .mobile{flex:1 0 100%;width:100%}.game-expanded .controls>.mask-control{margin:0;gap:5px}.game-expanded .mask-control button,.game-expanded #bait-button,.game-expanded #stamp-book,.game-expanded #game-sound,.game-expanded #fullscreen{font-size:9px;padding:5px 8px;min-height:24px;height:26px;margin:0}.game-expanded #fullscreen{margin-left:auto}.game-expanded .mask-control small{font-size:8px}.game-expanded .mask-control #mask-meter{height:3px}}

@media(max-width:700px){.character-choice canvas{width:42px;height:48px}.character-choice button{gap:1px}.character-choice{justify-content:center}}

@media(orientation:landscape) and (max-height:600px){.game-expanded #review-open,.game-expanded #review-flight,.game-expanded #review-descend{font-size:9px;padding:5px 8px;min-height:24px;height:26px;margin:0}.game-expanded #review-badge{display:none}}

.review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:40dvh;overflow:auto;overscroll-behavior:contain;margin:12px 0}.review-grid button{font-size:11px;text-align:left;padding:10px 6px!important;margin:0!important;background:#2f4a44;border:1px solid #99ab85;touch-action:manipulation}.review-grid button:active{background:#718858}.review-panel input#review-code{font-size:16px}#door-button{background:#725333;color:#fff1c9;border:2px solid #ceb47c;font-weight:bold}#door-button.is-near{box-shadow:0 0 10px #e9c57855}@media(max-width:420px){.review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(orientation:landscape) and (max-height:600px){.game-expanded #door-button{font-size:9px;padding:5px 8px;min-height:24px;height:26px;margin:0}}

.character-choice{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.character-choice button{padding:5px}.character-choice canvas{width:72px;height:90px}@media(max-width:460px){.character-choice{grid-template-columns:repeat(2,minmax(0,1fr))}.character-choice canvas{width:60px;height:74px}}

#lives{display:flex;flex-wrap:wrap;gap:3px}.life-heart{max-width:17px}#gold-schurz{color:#302613;background:#e4b657;border:2px solid #ffe7a2;padding:10px;font-weight:bold}

#mask-button::before{content:'';display:inline-block;width:22px;height:29px;vertical-align:middle;margin-right:5px;background:url('krampus-mask.webp?v=6.9.2') center/contain no-repeat;image-rendering:pixelated}
/* Objective-led introduction and full-size readers on phone and desktop. */
#message{font-size:clamp(16px,2.5vw,20px);line-height:1.55;max-width:620px;margin:18px auto 24px;color:#f6edda}
.overlay .card{border:2px solid #c9a766;box-shadow:0 16px 65px #0009;background:linear-gradient(145deg,#243744,#151f27)}
.quest-dialog{position:fixed;inset:0;z-index:10000;background:#0b1722e8;display:grid;place-items:center;padding:20px;overflow:auto}
.quest-dialog.hidden{display:none}.quest-dialog .card{width:min(650px,100%);max-height:90dvh;overflow:auto;background:#1d303b;border:2px solid #d4b774;padding:28px;border-radius:16px;color:#fff0d3;text-align:center}
.quest-dialog h2{font-size:clamp(24px,5vw,38px);line-height:1.2}.quest-dialog p{font-size:17px;line-height:1.5}.quest-dialog label{display:block;font-size:17px;margin:18px 0 10px}.quest-dialog input{width:100%;font-size:19px;padding:14px;border:1px solid #d5bc7e;border-radius:8px;background:#10212b;color:#fff}.quest-dialog button{min-height:48px;margin-top:16px;font-size:16px}.quest-dialog ol{max-height:250px;overflow:auto;text-align:left;font-size:18px;line-height:1.8;padding-left:32px}#sign-text{overflow-wrap:anywhere}

@font-face{font-family:QuestText;src:url(game-digits.ttf) format('truetype');font-display:swap}.quest-dialog{font-family:QuestText,Arial,sans-serif}.quest-dialog h2{font-size:26px}.quest-dialog p,.quest-dialog label{font-size:17px;line-height:1.4}
@media(max-width:700px){main{width:100%;padding:0 4px}.heading{display:none}header{padding:6px}.screen{min-height:60svh}.machine{border-radius:4px}.hud{padding:5px;gap:5px}.controls{padding:5px}.screen canvas{width:100%;height:100%;object-fit:cover}}
@media(orientation:landscape) and (max-height:600px){.screen{min-height:calc(100svh - 150px)}}

/* 5.0: the entire start card fits in the first viewport, without an inner scroll. */
.character-choice{grid-template-columns:repeat(2,minmax(0,1fr));max-width:340px;margin:12px auto;gap:14px}
.overlay:has(#character-choice:not(.hidden)){overflow:hidden;align-items:center;padding:12px}
.overlay .card:has(#character-choice:not(.hidden)){width:min(680px,100%);max-height:100%;overflow:visible;padding:16px 22px}
.card:has(#character-choice:not(.hidden)) h2{font-size:28px;line-height:1.12;margin:6px 0}
.card:has(#character-choice:not(.hidden)) #message{font-size:14px;line-height:1.4;margin:10px auto;max-width:540px}
.card:has(#character-choice:not(.hidden)) #hint{display:none}
.card:has(#character-choice:not(.hidden)) #start{display:block;width:min(340px,100%);min-height:48px;margin:8px auto 0}
@media(max-width:700px) and (orientation:portrait){
 body:not(.game-expanded) .screen{aspect-ratio:auto!important;height:58svh!important;min-height:340px!important}
 header{min-height:40px;padding:4px 6px}.hud{height:56px}.hud small{margin-bottom:3px}
 .card:has(#character-choice:not(.hidden)) #tag{display:block;font-size:10px;letter-spacing:1px;margin:0}
 .card:has(#character-choice:not(.hidden)) #message{display:none}
 .card:has(#character-choice:not(.hidden)) h2{font-size:23px}
 .card:has(#character-choice:not(.hidden)) .character-choice{margin:8px auto;gap:12px}
 .character-choice canvas{width:60px;height:74px}
}
@media(orientation:landscape) and (max-height:600px){
 body:not(.game-expanded) .screen{aspect-ratio:auto!important;height:max(195px,calc(100svh - 115px))!important;min-height:195px!important}
 .overlay .card:has(#character-choice:not(.hidden)){padding:8px 16px}
 .card:has(#character-choice:not(.hidden)) #message,.card:has(#character-choice:not(.hidden)) #tag{display:none}
 .card:has(#character-choice:not(.hidden)) h2{font-size:18px;margin:0}
 .card:has(#character-choice:not(.hidden)) .character-choice{margin:4px auto;max-width:240px}
 .character-choice canvas{width:36px;height:44px}.character-choice button{font-size:10px;padding:3px}
 .card:has(#character-choice:not(.hidden)) #start{min-height:40px;padding:8px;margin:4px auto;font-size:12px}
}
#review-hall{width:100%;background:#796038;border-color:#edce8b;color:#fff0d0;font-weight:bold}

@media(min-width:701px){body:not(.game-expanded) .screen{min-height:420px!important}}

/* 5.2: accessible mobile cabinet, tactile two-tone controller. */
#fullscreen-exit{display:none;flex:none;min-height:44px;padding:8px 10px;color:#fff2cf;border:1px solid #c4a36d;font-size:10px;white-space:nowrap}
.game-expanded #fullscreen-exit{display:block}.game-expanded main{height:var(--cabinet-height,100dvh)!important;top:var(--cabinet-top,0px);bottom:auto;padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.game-expanded .hud{height:54px;flex-basis:54px;gap:6px}.game-expanded .hud .stat{min-width:0}.game-expanded .hud #stage{max-width:100px;font-size:10px}.game-expanded .hud small{font-size:8px;letter-spacing:0;margin-bottom:3px}.game-expanded .hud #score,.game-expanded .hud #timer{font-size:20px}.game-expanded .hud .stat-lives{min-width:44px}.game-expanded .life-heart{width:12px;height:16px}.game-expanded #pause{font-size:9px;padding:6px;min-height:44px}
.controls{position:relative;justify-content:center;gap:8px}.mobile{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:12px;width:100%;flex:1 0 100%;min-width:0}.pad-move,.pad-action{display:flex;align-items:center;padding:8px;border:1px solid #657482;border-radius:24px;background:linear-gradient(150deg,#253442,#111c29);box-shadow:inset 0 2px 0 #ffffff15,0 3px 0 #08111b;gap:20px}.pad-action{gap:8px}.mobile .pad-move button{width:64px;min-width:64px;height:68px;border-radius:50%;border:2px solid #a3eef1;background:radial-gradient(circle at 35% 25%,#b1f6eb,#3eafb6 50%,#1e687b);box-shadow:0 5px 0 #0c4658,inset 0 2px 0 #eaffff99;color:#092b3a}.mobile .pad-symbol{font-size:27px;text-shadow:0 1px #d3fff6}.mobile .jump{min-width:88px;height:72px;border-radius:50%;padding:6px;border:2px solid #ffe0a4;background:radial-gradient(circle at 35% 25%,#ffe2a1,#f29555 55%,#bc503e);box-shadow:0 5px 0 #723a31;color:#291e19;font-size:10px;display:grid;place-content:center;gap:2px}.mobile .jump .jump-symbol{display:block;font-size:24px;line-height:1}.mobile button.is-pressed,.mobile button:active{transform:none;box-shadow:inset 0 4px 9px #0007;filter:brightness(1.1)}.mobile #car-button{min-width:58px;height:48px;border-radius:15px;font-size:9px}.panda-control{min-width:58px;gap:4px}.panda-control #parts-meter{width:52px}.panda-control #parts-count{font-size:8px}
.controls>.mask-control{width:auto;padding:3px 0;gap:6px;margin-right:auto}.mask-control button{height:44px;min-width:88px;font-size:10px;border-color:#bd8b67;background:linear-gradient(#604133,#312d32)}.mask-control #mask-meter{width:62px}.mask-control small{font-size:8px;margin-bottom:3px}#controller-more{min-height:44px;padding:8px 14px;font-size:11px;border-radius:12px;border-color:#92adb6;color:#def9ff}
#controller-tools[hidden]{display:none!important}#controller-tools{position:absolute;z-index:300;bottom:calc(100% + 5px);left:6px;right:6px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;padding:16px;background:#11212bf5;border:2px solid #87b6bf;border-radius:18px;box-shadow:0 -8px 30px #0008;max-height:55dvh;overflow:auto;overscroll-behavior:contain}#controller-tools>button{min-height:44px!important;padding:10px 12px;font-size:11px;margin:0!important}#controller-tools>button:first-child{flex:1 0 100%;color:#ffdfa8}.game-expanded #controller-tools{position:fixed;bottom:calc(var(--controller-height,150px) + env(safe-area-inset-bottom) + 4px);max-height:calc(var(--cabinet-height,100dvh) - var(--controller-height,150px) - 70px)}.game-expanded #controller-tools #restart{display:block}.game-expanded .controls{flex:0 0 auto;flex-wrap:wrap;padding:6px 10px calc(8px + env(safe-area-inset-bottom));gap:6px}.game-expanded .mobile{flex:1 0 100%;width:100%}.game-expanded .controls>.mask-control{width:auto}.game-expanded canvas{object-fit:contain}
@media(max-width:400px){.pad-move{gap:18px;padding:5px}.pad-action{gap:6px;padding:5px}.mobile{gap:8px}.mobile .pad-move button{width:52px;min-width:52px;height:60px}.mobile .jump{min-width:72px;height:64px}.game-expanded .hud{padding:4px;gap:3px}.game-expanded #fullscreen-exit{padding:6px;font-size:9px}.game-expanded .hud #stage{max-width:65px}.game-expanded .hud .stat{padding:4px}.game-expanded .hud #score,.game-expanded .hud #timer{font-size:17px}}
@media(orientation:landscape) and (max-height:600px){.game-expanded .hud{height:44px;flex-basis:44px}.game-expanded .collector-strip{height:22px;min-height:22px;max-height:22px;flex-basis:22px}.game-expanded .controls{flex-wrap:nowrap;gap:12px;padding:4px 10px calc(5px + env(safe-area-inset-bottom))}.game-expanded .mobile{flex:1 1 auto;width:auto;gap:14px}.game-expanded .pad-move,.game-expanded .pad-action{padding:4px;gap:16px}.game-expanded .mobile .pad-move button{width:56px;min-width:56px;height:56px}.game-expanded .mobile .jump{height:58px;min-width:72px}.game-expanded .mobile #car-button{height:42px;min-width:54px}.game-expanded .controls>.mask-control{flex-direction:column;gap:2px;flex:none;margin:0}.game-expanded .mask-control button{height:44px;min-height:44px;min-width:70px}.game-expanded .mask-control small{margin:0}.game-expanded #controller-more{min-height:44px;min-width:60px;padding:8px;font-size:10px}.game-expanded .pad-action{gap:6px}}
@media(orientation:landscape) and (max-width:650px){.game-expanded .mobile .pad-move button{width:46px;min-width:46px;height:50px}.game-expanded .pad-move{gap:16px}.game-expanded .controls{gap:6px}.game-expanded .mobile .jump{min-width:62px;height:54px}.game-expanded .panda-control{min-width:50px}}

/* 5.7: one height contract; canvases never enlarge their own containing block. */
body:not(.game-expanded) main{height:auto;min-height:0;max-width:1400px;margin:0 auto;}
body:not(.game-expanded) .machine{height:auto;min-height:0;width:100%;max-width:100%;}
body:not(.game-expanded) .screen{position:relative;width:100%;height:auto!important;min-height:0!important;max-height:none;aspect-ratio:16/9!important;flex:none;}
.screen>canvas#game{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover!important;object-position:center bottom;}
.character-choice canvas{position:static;width:60px!important;height:74px!important;object-fit:contain;}
body:not(.game-expanded) .controls{height:auto;min-height:0;margin:0;padding:8px 12px;}
body:not(.game-expanded) .hud{height:62px;min-height:62px;flex:none;}
@media(max-width:700px){body:not(.game-expanded) .screen{aspect-ratio:16/9!important;}body:not(.game-expanded) .machine{width:100%;}body:not(.game-expanded) .hud{height:56px;min-height:56px;}body:not(.game-expanded) .collector-strip{height:28px;min-height:28px;max-height:28px;}.overlay{padding:6px;}.card{padding:12px;}.character-choice{margin:5px auto;}.card:has(#character-choice:not(.hidden)) h2{font-size:24px;}.card:has(#character-choice:not(.hidden)) #message{font-size:12px;margin:6px auto;}.character-choice canvas{width:48px!important;height:60px!important;}}
@media(orientation:landscape) and (max-height:600px){body:not(.game-expanded) .screen{aspect-ratio:16/9!important;max-height:none;}.game-expanded .screen{aspect-ratio:auto!important;}}
.game-expanded .screen{position:relative;height:auto!important;aspect-ratio:auto!important;min-height:0!important;}

/* 5.8: fill the game viewport without letterboxing; keep the start card compact. */
@media(max-width:700px){.overlay:has(#character-choice:not(.hidden)){padding:3px}.card:has(#character-choice:not(.hidden)){padding:6px;max-height:100%;width:400px}.card:has(#character-choice:not(.hidden)) .eyebrow,.card:has(#character-choice:not(.hidden)) #message,.card:has(#character-choice:not(.hidden)) #hint{display:none}.card:has(#character-choice:not(.hidden)) h2{font-size:20px;margin:2px 0}.card:has(#character-choice:not(.hidden)) .character-choice{margin:3px auto;gap:6px}.card:has(#character-choice:not(.hidden)) .character-choice canvas{width:32px!important;height:40px!important}.card:has(#character-choice:not(.hidden)) .character-choice button{padding:3px;font-size:10px}.card:has(#character-choice:not(.hidden)) #start{margin:3px 0;padding:8px 12px;font-size:11px}}

/* Tourist questions use the available device viewport, including small phones. */
.overlay.tourist-quiz:not(.hidden){position:fixed;inset:0;z-index:11000;padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));height:100dvh;overflow:hidden;background:#0b1722ed;}
.overlay.tourist-quiz .card{width:min(720px,100%);max-width:100%;max-height:100%;overflow:visible;padding:clamp(12px,3vh,24px);}
.tourist-quiz #tag{font-size:11px;letter-spacing:1px;margin:0 0 8px;}
.tourist-quiz #title{font-family:Arial,sans-serif;font-size:clamp(18px,3.5vh,28px);line-height:1.2;margin:8px 0;overflow-wrap:anywhere;}
.tourist-quiz #message{font-size:13px;line-height:1.3;margin:8px 0 12px;}
.tourist-quiz #answers{gap:8px;}
.tourist-quiz #answers button{font-family:Arial,sans-serif;font-size:clamp(14px,2.4vh,18px);line-height:1.25;min-height:44px;padding:10px 12px;white-space:normal;overflow-wrap:anywhere;}
.tourist-quiz #hint{display:none;}
@media(orientation:landscape) and (max-height:500px){.overlay.tourist-quiz .card{padding:10px 16px;}.tourist-quiz #tag{font-size:10px;margin:0;}.tourist-quiz #title{font-size:18px;margin:5px 0;}.tourist-quiz #message{font-size:12px;margin:5px 0 8px;}.tourist-quiz #answers{gap:5px;}.tourist-quiz #answers button{font-size:14px;padding:7px 10px;}}
.screen>#door-button{position:absolute;z-index:90;right:10px;bottom:10px;min-height:46px;padding:10px 14px;font-size:12px;touch-action:manipulation;box-shadow:0 3px 12px #0008;background:#745438;}
@media(orientation:landscape) and (max-height:600px){.game-expanded .screen>#door-button{height:auto;min-height:44px;font-size:11px;padding:8px 12px;}}

/* 6.0: quiz lives outside the paint-contained game canvas. */
body.quiz-open{overflow:hidden!important;}
body>.overlay.tourist-quiz:not(.hidden){position:fixed;inset:0;top:var(--quiz-top,0px);height:var(--quiz-height,100dvh);width:100%;z-index:2147483200;display:flex;align-items:flex-start;justify-content:center;overflow:hidden;padding:max(12px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:#071522b8;backdrop-filter:blur(2px);}
body>.tourist-quiz .card{margin:0;width:min(650px,100%);max-width:100%;max-height:100%;overflow:visible;padding:14px;border:2px solid #d6b77a;border-radius:12px;background:#132735;box-shadow:0 8px 28px #0008;}
body>.tourist-quiz #tag{font:700 11px/1.2 Arial,sans-serif;letter-spacing:1px;margin:0 0 7px;color:#e6c68a;}
body>.tourist-quiz #title{font:700 19px/1.2 Arial,sans-serif;margin:0 0 8px;color:#fff4db;}
body>.tourist-quiz #message{font:13px/1.25 Arial,sans-serif;margin:0 0 10px;color:#bed0ce;}
body>.tourist-quiz #answers{display:grid;grid-template-columns:1fr;gap:7px;}
body>.tourist-quiz #answers button{font:600 16px/1.2 Arial,sans-serif;margin:0;min-height:48px;padding:9px 12px;background:#294653;border:1px solid #739084;border-radius:7px;color:#fff4da;touch-action:manipulation;}
body>.tourist-quiz #start,body>.tourist-quiz #hint,body>.tourist-quiz #entry,body>.tourist-quiz #character-choice{display:none!important;}
body>.tourist-quiz.quiz-compact .card{padding:9px 12px;}
body>.tourist-quiz.quiz-compact #tag{font-size:10px;margin-bottom:4px;}
body>.tourist-quiz.quiz-compact #title{font-size:16px;margin-bottom:5px;}
body>.tourist-quiz.quiz-compact #message{font-size:12px;margin-bottom:6px;}
body>.tourist-quiz.quiz-compact #answers{grid-template-columns:1fr 1fr;gap:5px;}
body>.tourist-quiz.quiz-compact #answers button{font-size:14px;min-height:44px;padding:6px 9px;}
body>.tourist-quiz.quiz-compact #answers button:last-child:nth-child(odd){grid-column:1/-1;}
body>.overlay.tourist-quiz:not(.hidden){pointer-events:auto;touch-action:pan-y;overscroll-behavior:contain;}
body>.tourist-quiz .card{max-height:calc(var(--quiz-height,100dvh) - 20px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;}
body>.tourist-quiz #answers,body>.tourist-quiz #answers button{position:relative;z-index:1;pointer-events:auto;touch-action:manipulation;}
body>.tourist-quiz #answers button{display:block;width:100%;min-height:48px;text-align:left;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:#f0ce7666;}
body>.tourist-quiz.quiz-compact #answers{grid-template-columns:1fr 1fr;}
body>.tourist-quiz.quiz-compact #answers button{min-height:42px;font-size:14px;padding:7px 9px;}
@media(max-width:700px) and (orientation:portrait){body:not(.game-expanded) .screen{aspect-ratio:16/10!important;}.hud strong{font-size:14px;}body:not(.game-expanded) main{padding-top:10px;}.heading{margin:16px 0 12px;}}

/* Independent fingers: prevent Android from turning a run+jump chord into a page gesture. */
.mobile,.pad-move,.pad-action,[data-key],[data-key] *{touch-action:none!important;}

.intro-open #message{text-align:left;font:14px/1.45 Arial,sans-serif;color:#e5ece4}.intro-open #message p{margin:8px 0}.intro-open #title{font-size:27px}.intro-open #tag{font-size:11px}.intro-open .card{width:min(650px,96%);padding:14px}.intro-open #start{margin:8px 0 5px;min-height:44px}#intro-skip{display:none}.intro-open #intro-skip{display:block;margin:4px auto;padding:8px 12px;font:12px Arial;min-height:38px;border:0;box-shadow:none}#heart-notice{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);z-index:95;pointer-events:none;background:#152e31f5;border:2px solid #ffc987;border-radius:10px;padding:12px 16px;width:max-content;max-width:94%;text-align:center;font:700 16px/1.3 Arial,sans-serif;color:#fff2cb;animation:heart-arrival .35s ease-out}@keyframes heart-arrival{from{opacity:0;transform:translate(-50%,10px) scale(.9)}to{opacity:1;transform:translate(-50%,0) scale(1)}}@media(orientation:landscape)and(max-height:500px){.intro-open #title{font-size:21px;margin:5px 0}.intro-open #message{font-size:12px;line-height:1.3}.intro-open #message p{margin:5px 0}.intro-open .card{padding:10px}.intro-open #start{padding:9px 16px}.intro-open #intro-skip{margin:0;padding:5px;min-height:30px}}

body>.overlay.intro-banner:not(.hidden){position:fixed;inset:0;top:var(--quiz-top,0px);height:var(--quiz-height,100dvh);z-index:2147483200;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) 10px;background:#071522d9;}

/* Browser downscaling must filter fine pixels once instead of dropping columns. */
#game{image-rendering:auto}
#attempt-count{display:block;font:700 10px/1.2 Arial,sans-serif;color:#f7dfa0;margin-top:3px;white-space:nowrap}.hud .stat-lives{padding-top:5px;padding-bottom:5px}.hud .stat-lives small{margin-bottom:3px}@media(max-width:700px){#attempt-count{font-size:8px;margin-top:1px}}
/* 6.2.1 Querformat-Hinweis */
#landscape-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:6;max-width:calc(100% - 24px);display:flex;gap:8px;align-items:center;padding:10px 14px;border-radius:12px;border:2px solid #f2cb77;background:#0b1722ee;color:#fff3d6;font:600 13px/1.3 system-ui,sans-serif;box-shadow:0 6px 18px #0008;cursor:pointer;text-align:left}
#landscape-hint[hidden]{display:none}
#landscape-hint span{font-size:20px;color:#f2cb77}
