@charset "UTF-8";
:root{color-scheme:dark;--ink:#101c30;--deep:#0b1322;--paper:#f2ebd9;--muted:#b4b7bd;--gold:#e6c678;--line:#d8c18a35;--serif:"Iowan Old Style","Palatino Linotype","Noto Serif TC","Songti TC","PMingLiU",serif;--sans:system-ui,-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--deep);color:var(--paper);font-family:var(--sans);font-size:16px}button{font:inherit;color:inherit;cursor:pointer;border:0}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
[tabindex]:not(#world):focus-visible{outline:2px solid var(--gold);outline-offset:4px}button:hover:not(:disabled){filter:brightness(1.16)}[hidden]{display:none!important}p{line-height:1.85}h1,h2,h3,p{margin-top:0}.eyebrow{font-size:14px;letter-spacing:.18em;color:var(--gold)}.fine{font-size:13px;color:var(--muted);line-height:1.8}.muted{color:var(--muted)}.quiet,.icon-btn,.text-btn{background:transparent}.quiet{padding:10px 12px;font-size:14px}.icon-btn{height:42px;min-width:42px;font-size:23px;border:1px solid var(--line);border-radius:50%}.text-btn{font-size:14px;padding:12px 0;color:var(--gold)}.primary,.secondary{padding:16px 23px;border:1px solid var(--gold);text-align:left;background:var(--gold);color:#15213a;font-weight:600;letter-spacing:.06em;transition:.2s}.primary span{float:right;font-size:22px;margin-left:30px}.secondary{background:#13233b90;color:var(--paper);border-color:var(--line);font-weight:400}.primary:hover,.secondary:hover{transform:translateY(-2px)}#title-screen{min-height:100svh;position:relative;isolation:isolate;overflow:hidden}.title-art,.title-shade{position:absolute;inset:0;z-index:-2}.title-art{background:url('assets/night.jpg') center 47%/cover;animation:arrival 2s ease-out}.title-shade{z-index:-1;background:linear-gradient(90deg,#0b152bf5 0%,#0b152bdc 24%,#0b152b38 68%,#0b152b25),linear-gradient(0deg,#091327a6,transparent 30%)}.title-top,.title-bottom{display:flex;justify-content:space-between;align-items:center;margin:0 5%;padding:25px 0;font-size:12px;letter-spacing:.13em}.title-top{border-bottom:1px solid var(--line)}.edition{font-size:12px;color:#ece5d2c9}.title-copy{margin:8vh 8% 9vh;max-width:490px}.title-copy .eyebrow{font-size:14px;letter-spacing:.12em}.title-copy h1{font-family:var(--serif);font-weight:500;font-size:clamp(54px,6.5vw,96px);letter-spacing:.11em;margin:26px -4px 13px;white-space:nowrap;line-height:1.2}.english-title{font-family:var(--serif);font-size:17px;letter-spacing:.23em;color:var(--gold)}.hairline{height:1px;background:var(--gold);width:40px;margin:32px 0}.intro{font-family:var(--serif);font-size:21px;line-height:1.9;color:#e3e4e4}.menu-actions{display:flex;flex-direction:column;gap:12px;max-width:295px;margin:30px 0 16px}.menu-actions .text-btn{text-align:left}.title-bottom{margin-top:auto;color:#d7d6d6;gap:20px}.game-header{height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 3%;border-bottom:1px solid var(--line);gap:20px;background:#0f1a2c}.wordmark{background:none;font-family:var(--serif);font-size:25px;letter-spacing:.18em;text-align:left;white-space:nowrap}.wordmark span{display:block;font-family:var(--sans);font-size:9px;letter-spacing:.18em;color:var(--muted);margin-top:6px}#chapter-nav{display:flex;gap:15px}.chapter-dot{font-family:var(--serif);font-size:14px;background:transparent;border:1px solid var(--line);width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}.chapter-dot.current{color:var(--gold);border-color:var(--gold);box-shadow:0 0 22px #e6c67820}.chapter-dot.complete{background:#e6c67820;color:var(--gold)}.header-actions{display:flex;align-items:center;gap:10px}#memory-count{color:var(--gold);margin-left:6px}#world{height:calc(100svh - 184px);min-height:420px;position:relative;overflow:hidden;isolation:isolate;background:#14243f;outline-offset:-3px}.scene-art,.scene-vignette{position:absolute;inset:0;pointer-events:none;z-index:-2}.scene-art{background-size:cover;background-position:center;transition:filter 2s;animation:arrival 1.2s}.scene-vignette{z-index:-1;background:linear-gradient(0deg,#091328d4,transparent 29%,transparent 65%,#081125b3),linear-gradient(90deg,#101a3033,transparent 25%,transparent 75%,#101a3033)}.chapter-label{position:absolute;left:3.5%;top:28px;pointer-events:none;text-shadow:0 2px 12px #000}.chapter-label h2{font-family:var(--serif);font-size:32px;letter-spacing:.17em;font-weight:400;margin:10px 0}.chapter-label p{font-size:14px;letter-spacing:.08em;color:#e5e1d8}.quest{position:absolute;right:3%;top:28px;max-width:265px;border-left:1px solid var(--gold);padding:3px 0 3px 15px;pointer-events:none;text-shadow:0 2px 8px #000}.quest span{color:var(--gold);font-size:12px;letter-spacing:.15em}.quest p{font-size:14px;margin:6px 0 0;line-height:1.65}.hotspot{position:absolute;transform:translate(-50%,-50%);background:transparent;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:82px;padding:12px;color:#fff4da;z-index:2}.hotspot-mark{border:1px solid #ffe7a3;background:#142640b5;box-shadow:0 0 18px #fbd98740;width:35px;height:35px;display:grid;place-items:center;transform:rotate(45deg);transition:.2s}.hotspot-mark span{transform:rotate(-45deg);font-size:18px}.hotspot-label{font-size:14px;letter-spacing:.06em;background:#0a162bd4;border:1px solid #ead3a31f;padding:5px 10px;white-space:nowrap;text-shadow:0 2px 2px #000}.hotspot:hover .hotspot-mark{background:#896d2b;box-shadow:0 0 25px #ffe7a3aa}.hotspot.visited .hotspot-mark{border-color:#d8d6cb90}.hotspot.visited .hotspot-label{color:#cdd3d4}.hotspot.source-empty .hotspot-mark{background:#17223f;border-color:#647286;box-shadow:none}#traveler{position:absolute;left:50%;top:82%;transform:translate(-50%,-50%);z-index:3;pointer-events:none;text-align:center}.traveler-core{display:block;width:14px;height:20px;background:#fff1c3;border-radius:9px 9px 4px 4px;border:2px solid #c4a35d;box-shadow:0 0 0 6px #fff0be20,0 0 28px #ffeaaa;animation:breathe 3s infinite}.traveler-name{font-size:12px;display:block;margin-top:9px;text-shadow:0 2px 4px #000}.color-palette{position:absolute;left:3.5%;bottom:25px;display:flex;align-items:center;gap:15px;background:#0d182bdc;padding:12px 16px;border:1px solid var(--line)}.palette-label{font-size:12px;letter-spacing:.08em;color:#dedbcf}#pigments{display:flex;gap:10px}.pigment{width:23px;height:23px;border-radius:50%;border:1px solid #8290a3;background:#0b1527;position:relative}.pigment.held{background:var(--pigment);border-color:#f4e9cb;box-shadow:0 0 14px var(--pigment)}.pigment span{position:absolute;top:-26px;font-size:12px;left:-2px;display:none;white-space:nowrap}.pigment:hover span{display:block}#map-hint{position:absolute;bottom:28px;right:3.5%;color:#ddd8cd;font-size:12px;letter-spacing:.06em;text-shadow:0 2px 5px #000;pointer-events:none}.companion-bar{min-height:98px;display:flex;align-items:center;gap:18px;padding:16px 3.5%;background:#101a2a;border-top:1px solid var(--line)}.crow-portrait{width:52px;height:52px;object-fit:cover;border-radius:50%;border:1px solid var(--line);flex-shrink:0}.speaker-small{font-size:12px;letter-spacing:.15em;color:var(--gold)}.companion-bar p{font-family:var(--serif);font-size:16px;margin:5px 0 0;line-height:1.6}.companion-bar .text-btn{margin-left:auto;flex-shrink:0}dialog{color:var(--paper);background:linear-gradient(140deg,#17273efc,#0c1729fc);border:1px solid #d5bd775e;padding:28px 34px;width:min(660px,calc(100% - 30px));max-height:85svh;box-shadow:0 25px 100px #000a;overflow:auto}dialog::backdrop{background:#0409169c;backdrop-filter:blur(5px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.dialog-top .icon-btn{border:0}.dialog-top .eyebrow{font-size:12px}dialog h2{font-family:var(--serif);font-size:29px;font-weight:400;letter-spacing:.09em;margin-bottom:18px}#dialog-text p{font-size:17px;line-height:1.95;color:#e0e2e6;margin-bottom:15px}#dialog-text p:last-child{margin-bottom:24px}#dialog-choices{display:flex;flex-direction:column;gap:10px}#dialog-choices button{background:#e6c67809;border:1px solid var(--line);border-left:2px solid var(--gold);text-align:left;padding:14px 17px;line-height:1.6;font-size:16px}#dialog-choices button:hover{background:#e6c6781e}#dialog-choices button small{display:block;color:var(--muted);font-size:13px;margin-top:5px}.puzzle-grid{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.puzzle-grid button{padding:14px 17px;background:#233650;border:1px solid var(--line);min-width:60px;font-size:16px}.sequence-display{border:1px dashed var(--line);padding:13px 16px;color:var(--gold);min-height:48px;font-size:15px}.allocation-row{display:flex;align-items:center;justify-content:space-between;margin:12px 0;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.allocation-row label{font-size:16px}.counter{display:flex;align-items:center;gap:16px}.counter button{font-size:22px;background:#263954;width:36px;height:36px}.memory-card{border-top:1px solid var(--line);padding:18px 0}.memory-card h3{font-size:16px;color:var(--gold);font-weight:400;margin-bottom:8px}.memory-card p{font-size:15px;color:#c6cbd1;margin-bottom:0}.save-actions{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0 15px}.journal-chapter{margin-top:26px;font-size:14px;color:var(--muted);letter-spacing:.13em}.ending-mark{font-family:var(--serif);font-size:52px;color:var(--gold);text-align:center;padding:15px}#toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);background:#e8d8ae;color:#15233a;padding:12px 22px;z-index:99;max-width:90%;opacity:0;transition:.25s;pointer-events:none;font-size:14px;line-height:1.6}#toast.show{opacity:1;transform:translate(-50%,0)}#touch-controls{display:none}.mote{position:absolute;pointer-events:none;width:3px;height:3px;border-radius:50%;background:#fce3a980;animation:float 12s infinite linear}#world.mood-dawn .scene-art{filter:sepia(.25) brightness(1.25)}#world.mood-night .scene-art{filter:saturate(.92) brightness(.94) hue-rotate(-4deg)}#world.mood-letter .scene-art{filter:sepia(.12) brightness(1.06) saturate(1.05)}#world.mood-beacon .scene-art{filter:contrast(1.06) saturate(1.04)}#world.mood-seasons .scene-art{filter:hue-rotate(-14deg) saturate(.82) brightness(.96)}#world.mood-consent .scene-art{filter:saturate(1.1) brightness(1.04)}#world.mood-rest .scene-art{filter:sepia(.08) brightness(1.08)}#world.mood-release .scene-art{filter:saturate(.85) brightness(1.14) hue-rotate(6deg)}#world.mood-restore .scene-art{filter:contrast(1.06) saturate(1.05)}#world.mood-open .scene-art{filter:brightness(1.14) saturate(1.08)}#world.mood-share .scene-art{filter:hue-rotate(-5deg) saturate(1.14) brightness(1.05)}#world.mood-seasons .mote{background:#d9a15d80}#world.mood-release .mote,#world.mood-open .mote{background:#bcd9fc80}
.traveler-shadow{display:block;position:absolute;left:50%;top:22px;width:20px;height:6px;transform:translateX(-50%);background:#00000050;border-radius:50%;filter:blur(1px);transition:width .15s,opacity .15s}
#traveler.walking .traveler-shadow{width:13px;opacity:.65}
.traveler-core{transition:transform .12s}
#traveler.walking .traveler-core{animation:walk-bob .46s infinite ease-in-out}
#traveler.walking.dir-left .traveler-core{animation:walk-bob-left .46s infinite ease-in-out}
#traveler.walking.dir-right .traveler-core{animation:walk-bob-right .46s infinite ease-in-out}
@keyframes walk-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes walk-bob-left{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-4px) rotate(-9deg)}}
@keyframes walk-bob-right{0%,100%{transform:translateY(0) rotate(6deg)}50%{transform:translateY(-4px) rotate(9deg)}}
@keyframes breathe{50%{box-shadow:0 0 0 8px #fff0be10,0 0 36px #ffeaaa}}@keyframes float{0%{transform:translate(0,15px);opacity:0}30%{opacity:.7}100%{transform:translate(35px,-100px);opacity:0}}@keyframes arrival{from{opacity:.2;transform:scale(1.035)}to{opacity:1;transform:scale(1)}}@media(min-width:1500px){.title-copy{margin-top:12vh}.title-bottom{position:absolute;bottom:0;left:0;right:0}}@media(max-width:800px){.game-header{padding:12px 4%;height:auto;min-height:78px;gap:8px;flex-wrap:wrap}.wordmark{font-size:21px}.wordmark span{display:none}#chapter-nav{gap:7px}.chapter-dot{width:25px;height:25px;font-size:12px}.header-actions{gap:2px}.header-actions .quiet{font-size:13px;padding:8px}.header-actions .icon-btn{width:32px;min-width:32px;height:32px;font-size:18px}.chapter-label h2{font-size:25px}.chapter-label p{display:none}.quest{max-width:200px;top:24px}.quest p{font-size:13px}#world{height:calc(100svh - 188px);min-height:450px}.companion-bar{padding:14px 4%;gap:12px;min-height:110px}.companion-bar p{font-size:14px}.crow-portrait{width:42px;height:42px}.companion-bar .text-btn{font-size:13px}.hotspot-label{font-size:13px;padding:4px 8px}.hotspot{min-width:60px;padding:8px}.hotspot-mark{width:29px;height:29px}.hotspot-mark span{font-size:15px}#map-hint{display:none}.color-palette{bottom:18px;padding:10px;gap:10px}.palette-label{font-size:12px}.pigment{width:20px;height:20px}.title-copy{margin:12vh 7% 8vh}.title-shade{background:linear-gradient(90deg,#0b152bdf,#0b152b85 55%,#0b152b45),linear-gradient(0deg,#091327c7,transparent)}.title-art{background-position:62% center}.title-top,.title-bottom{margin:0 6%}.title-copy h1{font-size:64px}.title-copy .eyebrow{font-size:13px}.title-top .edition{font-size:10px}#touch-controls{display:block;position:absolute;right:14px;bottom:12px;text-align:center}#touch-controls button{background:#0b172bb0;color:#e9dab4;width:33px;height:33px;border:1px solid var(--line);touch-action:none}dialog{padding:20px 23px;max-width:600px;max-height:85vh;overflow-y:auto;}dialog[open]{display:flex;flex-direction:column;gap:16px}#dialog-text p{font-size:16px}dialog h2{font-size:25px}}@media(max-width:460px){#chapter-nav{order:3;width:100%;justify-content:center;padding:0 0 3px}.game-header{min-height:97px}#world{height:calc(100svh - 207px);min-height:430px}.chapter-label{top:18px}.chapter-label .eyebrow{font-size:12px;letter-spacing:.04em}.chapter-label h2{font-size:23px;margin-top:7px}.quest{max-width:157px;top:17px;padding-left:10px}.quest p{font-size:12px}.title-copy h1{font-size:54px}.title-copy{margin-top:10vh}.title-copy .eyebrow{font-size:12px;letter-spacing:.03em}.intro{font-size:19px}.title-bottom{font-size:12px}.companion-bar .text-btn{max-width:55px;line-height:1.7}.companion-bar p{font-size:14px}.hotspot-label{font-size:13px}#dialog-choices button{font-size:15px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}


/* Expanded journeys: keep the user's walking animations and chapter mood filters. */
.journey-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 3.5%;min-height:72px;background:#111f34;border-bottom:1px solid var(--line)}
.phase-label{font-size:12px;letter-spacing:.12em;color:var(--muted)}#chapter-phase{font-family:var(--serif);font-size:17px;margin:3px 0 0;line-height:1.6}
#region-nav{display:flex;gap:8px;flex-wrap:wrap}.region-button{font-size:14px;line-height:1.5;padding:11px 15px;background:#132138;border:1px solid var(--line)}.region-button[aria-pressed="true"]{border-color:var(--gold);color:var(--gold);background:#e6c67813}.region-hint{font-size:12px;color:var(--gold)}
#world{height:calc(100svh - 256px);min-height:480px}.quest p{font-size:14px}.hotspot-label{max-width:160px;white-space:normal;line-height:1.4;text-align:center}
#dialog-pagination{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:8px 0 20px;position:relative;z-index:5}#dialog-pagination:empty{display:none}.next-page{padding:11px 20px}
.assignment-grid{display:grid;gap:14px;position:relative;z-index:1}.assignment-row{display:grid;grid-template-columns:1fr 1.3fr;align-items:center;gap:14px}.assignment-row label{font-size:16px;line-height:1.6}.assignment-row select{font:inherit;font-size:16px;color:var(--paper);background:#223650;border:1px solid var(--line);padding:12px;min-width:0;max-width:100%}.assignment-row select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.puzzle-grid button[aria-pressed="true"]{border-color:var(--gold);background:#5e512f;color:#fff0c4}.puzzle-grid button[aria-pressed="true"]::before{content:'✓ ';}.puzzle-clue,.journal-task{font-size:15px;line-height:1.9;padding:15px;border-left:2px solid var(--gold);background:#e6c67808;color:#e6dfce}.puzzle-clue{margin-top:18px;position:relative;z-index:5}
.puzzle-grid{position:relative;z-index:1}
@media(max-width:800px){.journey-strip{flex-direction:column;align-items:stretch;padding:11px 4%;gap:10px}#region-nav{display:grid;grid-template-columns:1fr 1fr}.region-button{padding:10px 8px;font-size:14px;min-height:46px}#chapter-phase{font-size:16px}.phase-label{display:none}#world{height:calc(100svh - 300px);min-height:460px}.hotspot-label{max-width:128px}.quest{max-width:185px}}
@media(max-width:460px){#world{height:calc(100svh - 321px);min-height:450px}.quest{max-width:150px}.quest p{font-size:13px}.hotspot-label{font-size:13px;max-width:115px}.chapter-label h2{font-size:22px}.assignment-row{grid-template-columns:1fr}.assignment-row select{width:100%}.puzzle-grid{gap:8px}.puzzle-grid button{font-size:15px;padding:12px}.region-hint{font-size:12px}.region-button{font-size:13px}}

/* Rotate only softly masked sky paint; the town and title stay still. */
.title-sky{position:absolute;inset:0;z-index:-2;overflow:hidden;pointer-events:none;mask-image:linear-gradient(#000 0%,#000 45%,transparent 70%)}
.sky-vortex{position:absolute;aspect-ratio:1;background-image:url('assets/night.jpg');background-repeat:no-repeat;background-size:220% auto;background-position:80% 5%;border-radius:50%;mask-image:radial-gradient(circle,#000 15%,#000c 35%,transparent 70%);opacity:.9;animation:sky-turn 120s linear infinite;will-change:transform;transform-origin:center center}
.sky-vortex-main{isolation:isolate}
.sky-vortex-main::after{inset:6%;background:radial-gradient(circle,#ffe3a355,transparent 68%)}
@keyframes sky-turn{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.sky-paused .sky-vortex,#title-screen[hidden] .sky-vortex{animation-play-state:paused}
.title-tools{display:flex;align-items:center;gap:8px;letter-spacing:normal}
#sky-motion-btn{font-size:12px;color:var(--muted)}
/* Keep button focus rings. Remove focus outline from world to avoid yellow box during WASD movement. */
#world:focus-visible{outline:none}
#world:focus-visible #map-hint{color:var(--paper);background:#101c30d9;text-decoration:underline;text-underline-offset:4px;padding:8px 10px;border-radius:4px;opacity:0;transition:opacity 0.3s}
#world:focus-visible:hover #map-hint{opacity:1}
.puzzle-feedback,.dialog-notice{color:#ffdfce;background:#4b2833;border-left:3px solid #f1ab88;padding:12px 16px;font-size:15px;line-height:1.8;overflow-wrap:anywhere;scroll-margin:16px;margin:16px 0;position:relative;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,0.3);animation:fadeIn 0.3s ease-in;border-radius:4px}
@keyframes fadeIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
.puzzle-feedback:empty,.puzzle-clue:empty{margin:0;padding:0;border:0;min-height:0;box-shadow:none}
@media(max-width:800px){.title-tools{gap:0}.title-tools .quiet{padding:10px 7px}#world:focus-visible #map-hint{display:block;bottom:70px;right:14px;max-width:185px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.sky-vortex{animation:none!important;will-change:auto}}


/* Closed dialogs must stay closed at every viewport width. */
dialog:not([open]){display:none}
.puzzle-feedback{animation:none}

/* Source-aligned patches contain sky only, at the painting’s original scale. */
.title-sky{mask-image:none}
.sky-vortex{opacity:1;mask-image:radial-gradient(circle,#000 0%,#000 47%,#000d 58%,transparent 71%)}

/* A shared current connects every circular star and painted whorl. */
.sky-current{position:absolute;overflow:visible;pointer-events:none;z-index:1}
.sky-current path{fill:none;stroke:#ffe4a0;stroke-width:2;stroke-linecap:round;stroke-dasharray:2 36;opacity:.34;animation:sky-current 28s linear infinite}
@keyframes sky-current{to{stroke-dashoffset:-456}}
.sky-vortex::after{content:'';position:absolute;inset:12%;border-radius:50%;background:radial-gradient(circle,#ffe3a333,transparent 65%);mix-blend-mode:screen;animation:sky-glow 9s ease-in-out infinite;animation-delay:var(--glow-delay,0s)}
@keyframes sky-glow{0%,100%{opacity:.15}50%{opacity:.7}}
.sky-paused .sky-vortex::after,.sky-paused .sky-current path,#title-screen[hidden] .sky-current path,#title-screen[hidden] .sky-vortex::after{animation-play-state:paused}
#mobile-tools,#mobile-goal{display:none}
.atlas-entry{border-top:1px solid var(--line);padding:4px 0}.atlas-entry summary{cursor:pointer;padding:16px 5px;line-height:1.6;color:var(--gold);min-height:48px}.atlas-entry p{font-size:16px;line-height:1.9;color:#d7dbe0}.atlas-entry summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
#dialog-choices .lore-question{border-left-color:#86b4cb;color:#c6e4f0;background:#9ac9ed09}
#touch-interact{margin-top:6px}
@media(max-width:800px),(pointer:coarse){
 #game-screen{padding-bottom:calc(62px + env(safe-area-inset-bottom,0px))}
 .title-art,.title-sky{width:100%;height:auto;aspect-ratio:3/2;bottom:auto;background-position:center center}
 .title-shade{background:linear-gradient(0deg,#0b1322 0%,#0b1322 38%,transparent 79%)}
 .title-copy{margin:calc(66.667vw - 75px) 6% 24px;max-width:none;position:relative}
 .title-copy h1{font-size:clamp(44px,11vw,68px);margin-top:15px}.title-copy .eyebrow{font-size:12px;letter-spacing:.04em}.hairline{margin:20px 0}.intro{font-size:18px}
 .menu-actions{max-width:none;margin-top:20px;gap:9px}.menu-actions .primary,.menu-actions .secondary{min-height:52px;text-align:center}.menu-actions .text-btn{min-height:44px;text-align:center;padding:10px}
 .title-top{position:relative;z-index:2;flex-wrap:wrap;padding:15px 0;gap:5px}.title-top .edition{font-size:9px}.title-tools .quiet{min-height:44px}.title-bottom{position:relative;padding:20px 0}
 .game-header{gap:8px;padding:10px 4%;min-height:72px;flex-wrap:wrap}.wordmark{font-size:21px}.header-actions .icon-btn{width:44px;height:44px;min-width:44px}.header-actions .quiet{min-height:44px}
 #chapter-nav{width:100%;order:3;justify-content:space-between;gap:8px}#chapter-nav button{min-height:36px;min-width:36px}
 .journey-strip{gap:9px;padding:10px 4%}.journey-strip>div{display:none}.region-button{min-height:48px}
 #mobile-goal{display:block;font-size:14px;line-height:1.65;margin:0;padding:4px 0;color:#e5dfce}
 #world{height:clamp(420px,58svh,570px);min-height:420px}.quest{display:none}.chapter-label{top:15px;left:4%}.chapter-label h2{font-size:24px;margin:6px 0}.chapter-label .eyebrow{font-size:11px}
 .hotspot{padding:9px 5px;min-width:64px;max-width:110px;min-height:64px;touch-action:manipulation}.hotspot-label{font-size:14px;max-width:100px;padding:5px;line-height:1.45}.hotspot-mark{width:30px;height:30px}
 .companion-bar{padding:13px 4%;min-height:84px}.companion-bar .text-btn{display:none}.companion-bar p{font-size:15px}.color-palette{bottom:18px;padding:10px;gap:9px}.palette-label{font-size:11px}
 #mobile-tools{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;padding:7px 6px calc(7px + env(safe-area-inset-bottom,0px));background:#101d30f5;backdrop-filter:blur(12px);border-top:1px solid var(--line);z-index:10;gap:4px}
 #game-screen[hidden] #mobile-tools{display:none}#mobile-tools button{font-size:13px;min-height:46px;background:transparent;border-radius:5px;padding:7px 2px;touch-action:manipulation}#mobile-tools button[aria-expanded=true]{background:#e6c67820;color:var(--gold)}
 #touch-controls{display:block;position:absolute;right:12px;bottom:12px;padding:8px;background:#0a162be8;border-radius:10px;text-align:center}#touch-controls button{min-width:44px;min-height:44px;width:44px;height:44px;background:#182b46;color:var(--paper);border:1px solid var(--line);touch-action:none}#touch-controls #touch-interact{width:100%;font-size:14px}
 #world:focus-visible #map-hint{display:none}
 dialog{width:calc(100% - 20px);max-width:620px;max-height:calc(100dvh - 20px);padding:16px 18px calc(18px + env(safe-area-inset-bottom,0px));border-radius:12px;overscroll-behavior:contain;scroll-padding-top:65px}
 dialog[open]{display:block}.dialog-top{position:sticky;top:-16px;z-index:20;background:#142239;padding:10px 0;margin-bottom:10px}.dialog-top .icon-btn{min-width:44px;min-height:44px}
 #dialog-text p{font-size:17px;line-height:1.9}#dialog-choices button{font-size:16px;min-height:48px}.save-actions{gap:10px}.save-actions button{min-height:48px}.puzzle-grid button{min-height:48px;min-width:48px;font-size:16px}.counter button{width:48px;height:48px}.assignment-row select{min-height:48px}.puzzle-feedback{font-size:16px}
 #dialog-pagination button{min-height:46px}#journal-content{overflow-wrap:anywhere}
}
@media(max-width:360px){.header-actions .quiet{font-size:12px}.wordmark{font-size:18px}.game-header{gap:2px}.hotspot-label{max-width:88px;font-size:13px}.title-copy{margin-top:calc(66.667vw - 65px)}}
@media(max-height:500px) and (orientation:landscape){dialog{max-height:calc(100dvh - 12px)}.title-copy{margin-top:25px}.title-art,.title-sky{height:100%;aspect-ratio:auto}.title-shade{background:linear-gradient(90deg,#0b1322ee,#0b132250)}#world{height:420px}}
@media(prefers-reduced-motion:reduce){.sky-current path,.sky-vortex::after{animation:none!important}.sky-current{opacity:.2}}
