:root{font-family:Arial,Helvetica,sans-serif;color:#f6ecda;background:#182e30;color-scheme:dark;--ink:#233e3d;--gold:#ddbd82;--paper:#f1e9d9;--muted:#c4d2cb}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,select,input{font:inherit}button{cursor:pointer;border:1px solid #e4dac42d;background:#1d3839e8;color:#f7efde;padding:11px 17px;border-radius:6px;font-size:13px;transition:background .16s}button:hover:not(:disabled){background:#365d59}button:disabled{opacity:.45;cursor:default}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:3px}button.primary{background:var(--gold);border-color:var(--gold);color:#203e3d;font-weight:700}button.primary:hover:not(:disabled){background:#f0d298}.kicker{font-size:10px;letter-spacing:.16em;text-transform:uppercase;font-weight:600;color:var(--gold)}[hidden]{display:none!important}
#world{position:fixed;inset:0;width:100%;height:100%;outline:none;touch-action:none}#vignette{position:fixed;inset:0;pointer-events:none;box-shadow:inset 0 0 95px #12272822}#fade{position:fixed;inset:0;pointer-events:none;background:#172c2e;opacity:0;z-index:15;transition:opacity .12s}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

#hud{position:fixed;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-start;padding:20px 26px;z-index:4;pointer-events:none}.room-meta{padding:7px 11px;border-radius:6px;background:#152f3099}.room-meta h1{font-weight:500;font-size:20px;letter-spacing:-.025em;margin:5px 0 0}.hud-right{display:flex;gap:8px;align-items:center;pointer-events:auto}.hud-right button{padding:9px 12px;font-size:12px;background:#173132df}#scoreboard{padding:6px 14px;border-right:1px solid #ead5a33d;text-align:right;background:#152f30aa;border-radius:6px}#score-value{font-size:23px;font-weight:600;display:block;color:#f6ddb0;font-variant-numeric:tabular-nums}#score-progress,#run-time{font-size:11px;color:#d1e0d7;display:block;margin-top:3px;font-variant-numeric:tabular-nums}
.objective,#caption,#challenge{position:fixed;left:50%;top:107px;transform:translateX(-50%);width:min(590px,calc(100vw - 36px));padding:14px 20px;background:#173335ed;border:1px solid #ddc79b35;border-radius:8px;z-index:5}.objective{text-align:center;display:flex;justify-content:center;align-items:center;gap:14px}.objective b{font-size:16px;font-weight:500;line-height:1.4}.has-caption .objective{display:none}#caption{font-size:16px;line-height:1.55;text-align:center}#inspect-button{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);background:#ddbd82;color:#233e3d;border-color:#ddbd82;font-weight:600}#controls-guide{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);font-size:10px;color:#fff1d4;text-shadow:0 1px 3px #1b3635;white-space:nowrap}
#crosshair{position:fixed;left:50%;top:50%;width:5px;height:5px;transform:translate(-50%,-50%);border-radius:50%;background:#fff1d5;box-shadow:0 0 0 2px #244a4290;pointer-events:none;z-index:4}#crosshair.aim-ready{background:#f5cd86;box-shadow:0 0 0 3px #fff3d16b}#challenge{padding:12px 20px 14px;text-align:center;pointer-events:none}.machine-top{display:flex;align-items:center;gap:14px;justify-content:space-between}.machine-top button{pointer-events:auto;font-size:10px;padding:5px 9px;border-color:#c2d5c329;background:transparent}#round-count{font-size:11px;color:#c9d9d0;font-variant-numeric:tabular-nums;margin-left:auto}#challenge h2{font-size:clamp(21px,2.4vw,30px);font-weight:500;letter-spacing:-.035em;line-height:1.25;margin:15px 0 5px;text-wrap:balance}.timer-track{height:3px;width:180px;background:#bfd2bf25;margin:13px auto 0;overflow:hidden}#timer-fill{height:100%;background:#e1c18a;transform-origin:left}#feedback{padding:12px 0 3px;color:#f0c3a3}#feedback.correct{color:#c3e7c6}#feedback strong{display:block;font-size:13px;font-weight:600;margin-bottom:7px}#feedback span{display:block;font-size:clamp(18px,2vw,25px);line-height:1.35;letter-spacing:-.025em}.task-actions{display:flex;justify-content:center;gap:8px}.task-actions button{pointer-events:auto;font-size:11px;padding:6px 10px;margin-top:10px}#aim-ui{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);z-index:6}#interact-button{background:#183537e8;border-color:#e6cca04d;font-size:12px;padding:10px 20px;min-width:150px}
/* Quiet, scene-first menus. System fonts and flat gradients keep menus inexpensive. */
:root{--paper:#eee6d5;--gold:#d5b982;--menu-muted:#b6b9ae;--hairline:#e7d9b52b;--serif:Georgia,'Times New Roman',serif}
button{border-radius:2px}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #e5c58c;outline-offset:5px}
.title-screen{position:fixed;inset:0;z-index:10;overflow:auto;color:var(--paper);background:linear-gradient(90deg,#101a1812 5%,#101a1838 38%,#101a18de 65%,#101a18f5 100%),linear-gradient(0deg,#101a18de,transparent 24%,transparent 80%,#101a1845)}
.title-atmosphere{position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,#e7c8990d,transparent 50%)}
.title-copy{position:relative;width:min(420px,37vw);margin-left:61%;min-height:calc(100svh - 80px);display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:45px 0;animation:menu-enter .5s ease-out both}
.title-eyebrow{font-size:9px;font-weight:500;letter-spacing:.23em;color:#c3c5b6;margin:0 0 26px;line-height:1.8}
.title-copy h1{font-family:var(--serif);font-size:clamp(60px,6.7vw,106px);font-weight:400;letter-spacing:-.055em;line-height:.91;margin:0 0 24px;text-shadow:0 2px 24px #080f1640}
.title-copy h1 span{display:block;font-size:.52em;font-style:italic;letter-spacing:-.04em;margin:0 0 6px 5px;color:#d5b982}
.title-description{font-size:13px;line-height:1.75;color:#c7c8bb;margin:0 0 38px}
.title-actions{display:flex;flex-direction:column;gap:3px;width:min(300px,100%)}
.title-actions button{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--hairline);background:transparent;border-radius:0;padding:16px 2px;color:#f1e9d7;font-family:var(--serif);font-size:24px;transition:padding .2s,color .2s,background .2s}
.title-actions button span:last-child{font:18px Arial,sans-serif;color:var(--gold)}
.title-actions button:hover{background:linear-gradient(90deg,#d4bb7c13,transparent);padding-left:12px;color:#f6dba7}
.title-actions #continue:not([hidden])+#start{font-size:18px;color:#c2c4b7}
.title-mode{display:flex;align-items:center;gap:18px;margin-top:25px;font-size:9px;letter-spacing:.16em;color:#aab3a8}
.title-mode select{background:#152522;color:#dfdfce;font-size:12px;border:0;border-bottom:1px solid var(--hairline);padding:8px 22px 8px 2px;max-width:210px;border-radius:0}
.title-save{color:#a7b1a6;font-size:10px;margin:13px 0 0}
.title-footer{position:relative;min-height:80px;margin:0 4vw;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--hairline);font-size:9px;letter-spacing:.13em;color:#e0dfcf;line-height:1.8}
.title-footer i{font-style:normal;color:#b1b7aa}
#modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:40px 6vw;background:linear-gradient(105deg,#0d1919f5,#132322ed 65%,#152521c9);z-index:12;overflow:auto;color:var(--paper)}
#panel{position:relative;width:min(850px,100%);max-height:100%;overflow:auto;padding:18px 0;background:transparent;outline:none;animation:menu-enter .24s ease-out both;scrollbar-color:#8c917d transparent;scrollbar-width:thin}
#panel>.kicker{color:#c1ab7d;font-size:10px;letter-spacing:.2em;margin:0 0 20px;font-weight:500}
#panel h2{font:400 clamp(34px,4.2vw,58px)/1.08 var(--serif);letter-spacing:-.035em;margin:0 0 25px;color:#f3ebda;text-wrap:balance}
#panel p{font-size:14px;line-height:1.7;color:#bec7bb;max-width:630px}
#panel button{background:transparent;border:0;border-bottom:1px solid var(--hairline);border-radius:0;color:#dedfce;min-height:46px;padding:12px 4px;font-size:13px}
#panel button.primary{background:#d9c49b;color:#1e302b;border-color:#d9c49b;padding:13px 22px;min-width:180px;font-weight:600}
#panel button.primary:hover{background:#eee0bd}#panel button.secondary:hover{color:#f5d6a0;border-color:#d5b982}
.panel-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:34px;padding-top:22px;border-top:1px solid var(--hairline)}
kbd{display:inline-block;font:10px Arial,sans-serif;color:#d8ddce;border:1px solid #d8ddce42;border-radius:2px;padding:4px 6px;white-space:nowrap}
#panel button kbd{margin-left:26px;color:inherit;border-color:currentColor;opacity:.7}
.study-layout{display:grid;grid-template-columns:.8fr 1.3fr;gap:clamp(30px,5vw,70px);align-items:start}
#panel .study-intro>p:first-child{font-size:16px;color:#e1e3d4;margin:0 0 20px}
#panel .study-note{font-size:13px;margin:0 0 25px;color:#abb9ad}
#panel .study-controls{font-size:11px;line-height:1.8;color:#d4bf95;margin:0}
#panel .list-heading{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;margin:0 0 12px;font-size:9px;letter-spacing:.16em;color:#aab6a7}
.study-grid{display:grid;grid-template-columns:1fr}
.study-grid article{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:center;border-top:1px solid var(--hairline);padding:19px 0;background:transparent}
.study-grid b{font-size:clamp(13px,1.3vw,17px);letter-spacing:.015em;font-weight:500;overflow-wrap:anywhere;color:#e9d5ae}
.study-grid span{display:block;color:#f0ecdc;font:21px/1.15 var(--serif)}
.study-grid small{display:block;font-size:11px;color:#aebcac;margin-top:8px}
body[data-view='study'] #panel{width:min(1000px,100%)}
body[data-view='briefing'] #modal{justify-content:flex-end;background:linear-gradient(90deg,#101a1844,#101a18ee 48%,#101a18fa)}
body[data-view='briefing'] #panel{width:min(520px,100%);margin-right:2vw}
#panel .brief-lead{font-size:15px;max-width:430px;margin:0 0 24px}
.brief-steps{list-style:none;margin:0;padding:0}
.brief-steps li{display:flex;align-items:baseline;gap:20px;padding:14px 0;border-top:1px solid var(--hairline)}
.brief-steps li>span{font-size:10px;color:#bca477}.brief-steps b{font-size:15px;font-weight:500;color:#e9e7d6}
#panel .brief-steps p{font-size:12px;margin:5px 0 0;color:#aab9ad}
.brief-controls{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:24px;font-size:11px;color:#b8c4b5}
.brief-controls span{display:flex;align-items:center;gap:8px}#panel .brief-mode{font-size:11px;color:#c2b48f;margin:22px 0 0}
body[data-view='pause'] #panel,body[data-view='ending'] #panel,body[data-view='error'] #panel{width:min(620px,100%)}
.settings-grid{display:grid;gap:0;margin-top:30px}.settings-grid label{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--hairline);padding:19px 0;font-size:14px;color:#d9dfd0}
.settings-grid select{background:#20332e;color:#f2ead6;border:1px solid var(--hairline);padding:8px;max-width:65%;font-size:12px}.settings-grid input{accent-color:#d9c49b;max-width:45%}.settings-grid input[type=checkbox]{width:18px;height:18px}
.notes-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:40px}.notes-grid article{border-top:1px solid var(--hairline);padding:17px 0}.notes-grid b{display:block;font-size:14px;font-weight:500;color:#e6cea3}.notes-grid span{display:block;font:21px var(--serif);margin-top:7px;color:#ece8d8}.notes-grid small{display:block;font-size:11px;margin-top:7px;color:#abb9ad}
.ending-stats{display:flex;gap:60px;margin:32px 0}.ending-stats b{display:block;font:46px var(--serif);color:#e7d1a7}.ending-stats span{display:block;margin-top:8px;font-size:12px;color:#b0bcae}
body[data-view='loading'] #modal{background:#13231ff5}body[data-view='loading'] #panel{width:min(440px,100%)}
.loading-track{height:1px;background:#ead9b02a;overflow:hidden;margin:34px 0 18px}.loading-track i{display:block;width:35%;height:100%;background:#e5c991;animation:load-travel 1.5s ease-in-out infinite alternate}
#panel .loading-tip{font-size:11px;color:#a6b5a8}body[data-view='loading'] .panel-actions{display:none}
body.playing,body.playing button,body.playing #world{cursor:none}
body[data-view='intro'] #hud{display:none}#run-time{font-size:18px;color:#f3e6cf;letter-spacing:.04em}#run-time.overtime{color:#f1c082}
#skip-scene{position:fixed;right:28px;bottom:28px;z-index:20;font-size:12px;background:#142521b8;border:0;border-bottom:1px solid var(--hairline);border-radius:0;pointer-events:auto}#skip-scene:after{content:' · Enter'}
#challenge{background:#152a28ee;border-radius:2px;padding:10px 18px;width:min(570px,calc(100vw - 30px));border-color:var(--hairline)}#challenge h2{font-size:clamp(19px,2vw,26px);margin:10px 0 4px}#feedback{padding:7px 0 0}#feedback strong{display:inline;font-size:11px;margin-right:9px}#feedback span{display:inline;font-size:16px}.activity-help{font-size:12px;color:#dfd5bc;margin:8px 0 0;line-height:1.5}
#bird-guide{position:fixed;bottom:60px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:7px 14px;border-radius:30px;background:#182d2ee6;color:#fff1d7;pointer-events:none;font-size:14px;z-index:8}#bird-guide[hidden]{display:none}#bird-arrow{display:inline-block;font-size:26px;line-height:1;width:24px;text-align:center}body:not([data-view="chase"]):not([data-view="intro"]) #bird-guide{display:none}
@keyframes menu-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes load-travel{from{transform:translateX(-100%)}to{transform:translateX(290%)}}
@media(max-width:760px){.title-screen{background:linear-gradient(90deg,#101a1877,#101a18ed 65%)}.title-copy{width:80%;max-width:420px;margin-left:auto;margin-right:8%;min-height:calc(100svh - 80px)}.title-copy h1{font-size:clamp(65px,14vw,90px)}.title-footer{font-size:8px;gap:10px;flex-wrap:wrap;align-content:center}.title-eyebrow{font-size:8px}#modal{padding:25px 7vw}.study-layout{grid-template-columns:1fr;gap:26px}.study-intro{max-width:520px}.study-grid article{padding:14px 0}#panel .study-note{margin-bottom:12px}#panel h2{font-size:38px}.notes-grid{column-gap:25px}body[data-view='briefing'] #panel{margin-right:0}.panel-actions{margin-top:22px;gap:16px}#hud{padding:12px;gap:12px}.room-meta{max-width:42%;padding:5px 8px}.room-meta h1{font-size:16px}.room-meta .kicker{font-size:8px}.hud-right{gap:4px}.hud-right button{font-size:10px;padding:8px}#scoreboard{padding:5px 8px}#score-value{font-size:19px}#score-progress{font-size:9px}.objective,#caption,#challenge{top:97px;padding:12px 15px}.objective b,#caption{font-size:14px}#controls-guide{font-size:8px}}
@media(max-height:650px) and (min-width:761px){.title-copy{padding:24px 0;min-height:calc(100svh - 55px)}.title-copy h1{font-size:72px;margin-bottom:18px}.title-eyebrow{margin-bottom:16px}.title-description{margin-bottom:18px}.title-actions button{padding:11px 2px}.title-mode{margin-top:14px}.title-footer{min-height:55px}#modal{padding:22px 6vw}#panel h2{font-size:40px;margin-bottom:18px}.brief-steps li{padding:10px 0}.panel-actions{margin-top:20px;padding-top:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* One short controls stop, then straight into the chase. */
.title-copy{min-height:100svh}.title-save{margin-top:28px}
body[data-view='briefing'] #modal{justify-content:center;background:#10201cf2}
body[data-view='briefing'] #panel{width:min(900px,100%);margin:0}
.quick-start{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(180px,1fr);gap:36px;align-items:center}
.quick-start figure{margin:0;min-width:0}.quick-start img{display:block;width:100%;height:clamp(180px,30vh,320px);object-fit:cover;border-radius:3px}
#panel .quick-start figcaption{font-size:12px;line-height:1.5;color:#c7cebb;margin-top:14px}
.movement-keys{display:grid;grid-template-columns:repeat(3,36px);gap:5px;justify-content:center}.movement-keys kbd{font-size:15px;text-align:center;padding:10px 0;color:#f3e2ba;border-color:#d9c49b66}
#panel .control-sheet>p{text-align:center;font-size:12px;color:#c5d0bd;margin:10px 0 22px}.control-sheet dl{margin:0}.control-sheet dl>div{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--hairline);padding:9px 0;font-size:12px}.control-sheet dd{margin:0;color:#d4dccb}.control-sheet dt kbd{min-width:54px;text-align:center}
#seat-button{position:fixed;bottom:33px;left:50%;transform:translateX(-50%);z-index:7;background:#d9c49b;color:#20372d;font-weight:600;min-width:160px}
@media(max-width:600px){.quick-start{grid-template-columns:1fr;gap:20px}.quick-start img{height:155px}.control-sheet{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px}.control-sheet dl{grid-column:2;grid-row:1/3}.control-sheet>p{grid-column:1}.movement-keys{align-self:end}}
@media(max-height:650px) and (min-width:761px){.title-copy{min-height:100svh}.quick-start img{height:185px}.control-sheet dl>div{padding:6px 0}#panel .control-sheet>p{margin-bottom:12px}}
/* Touch movement stays separate from scene swipes, so both thumbs work together. */
.touch-instructions{display:none}#touch-controls{position:fixed;inset:0;z-index:9;pointer-events:none;user-select:none;-webkit-user-select:none}#move-pad{position:absolute;left:max(22px,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom));width:120px;height:120px;border:1px solid #f3e4c76b;border-radius:50%;background:#19353166;touch-action:none;pointer-events:auto;display:grid;place-items:center}#move-knob{width:48px;height:48px;background:#e3d5b7b3;border:1px solid #fff3d6;border-radius:50%;pointer-events:none}#move-pad small{position:absolute;bottom:9px;font-size:9px;letter-spacing:.16em;pointer-events:none}.touch-actions{position:absolute;right:max(20px,env(safe-area-inset-right));bottom:max(26px,env(safe-area-inset-bottom));display:grid;grid-template-columns:58px 64px;gap:10px;pointer-events:auto}.touch-actions button{height:54px;padding:0;touch-action:manipulation;border-radius:16px;background:#203c36dc;border:1px solid #d9c49b70}.touch-actions #touch-use{grid-column:2;grid-row:1 / 3;height:118px;background:#d9c49be8;color:#20372d;font-weight:700}.touch-actions button[aria-pressed=true]{background:#d9c49be8;color:#20372d}#touch-pause{position:absolute;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));pointer-events:auto;min-height:44px}.touch-look-hint{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);font-size:10px;color:#f1e4c9b3;white-space:nowrap}#touch-controls[data-view=challenge] #move-pad,#touch-controls[data-view=challenge] #touch-sprint,#touch-controls[data-view=challenge] #touch-jump,#touch-controls[data-view=flight] #touch-jump{display:none}.touch-game .desktop-controls{display:none}.touch-game .touch-instructions{display:block;line-height:1.8}.touch-game #controls-guide,.touch-game #pause-button{display:none}.touch-game #hud{padding-right:90px}.touch-game #seat-button,.touch-game #inspect-button{bottom:165px}.touch-game #aim-ui{display:none}.touch-game #bird-guide{bottom:155px;max-width:calc(100% - 32px);font-size:12px}.touch-game #skip-scene{bottom:155px}.touch-game #caption{bottom:205px}.touch-game #explore-ui .objective{max-width:60vw}.touch-game #challenge{top:95px;bottom:auto;max-height:27vh;overflow:auto}.touch-game #touch-controls[data-view=challenge] .touch-look-hint{bottom:20px}.touch-game #modal{padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));}.touch-game #panel{max-height:calc(100dvh - 24px);overflow:auto}.touch-game button{min-height:44px;touch-action:manipulation}
@media(max-width:600px){.touch-game #hud{padding:10px 82px 10px 10px;gap:6px}.touch-game .room-meta h1{font-size:14px}.touch-game #scoreboard{padding:5px 8px}.touch-game #score-value{font-size:18px}.touch-game #notes-button{font-size:11px;padding:5px}.touch-game .quick-start{grid-template-columns:1fr}.touch-game .quick-start figure{max-height:22vh;overflow:hidden}.touch-game #challenge h2{font-size:20px;margin:8px 0}.touch-game #feedback span{font-size:17px}.touch-game .study-layout{grid-template-columns:1fr}.touch-game .study-grid{gap:4px}.touch-game .title-copy{width:100%;padding:24px}.touch-game .title-copy h1{font-size:72px}}
@media(max-height:500px) and (pointer:coarse){.touch-game #move-pad{width:104px;height:104px;bottom:15px}.touch-game #bird-guide{bottom:18px;max-width:45vw}.touch-game #caption{bottom:72px;max-width:48vw}.touch-game #seat-button,.touch-game #inspect-button{bottom:125px}.touch-game #challenge{top:66px;bottom:auto;left:150px;right:160px;width:auto;transform:none;max-height:27vh}.touch-game #skip-scene{bottom:145px}.touch-game .room-meta h1{font-size:14px}.touch-game #hud{padding-top:8px}}
.touch-game #caption{top:auto}.touch-game #touch-use{font-size:12px;padding:5px;overflow-wrap:anywhere}.touch-game .title-copy{margin-left:auto;margin-right:7%}.touch-game .quick-start .control-sheet{align-self:center}
@media(max-width:600px){.touch-game .title-copy{margin:0}.touch-game .objective b{font-size:13px}.touch-game #caption{font-size:13px;width:calc(100vw - 32px)}}

.touch-game .control-sheet{display:block}.desktop-controls{display:contents}.touch-game .touch-instructions{margin:0!important}.touch-game .quick-start figure img{max-height:24vh}.touch-game #challenge{pointer-events:auto;touch-action:pan-y}.touch-game #challenge .machine-top{gap:6px}.touch-game #challenge .machine-top button{font-size:10px;padding:5px}
