:root{color-scheme:dark;--bg:#151420;--panel:#231f31;--edge:#40394e;--text:#f4edf4;--soft:#c0b5c9;--mute:#aca1b9;--lilac:#ddc8f1;--gold:#f2c99d;--mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;--serif:Baskerville,"Baskervville","Iowan Old Style",Georgia,serif}
*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:"Avenir Next",Avenir,system-ui,sans-serif;color:var(--text);background:radial-gradient(ellipse at 59% 7%,#24203055,transparent 58%),var(--bg);-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.19;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.13' d='M0 0h160v160H0z'/%3E%3C/svg%3E");z-index:-1}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #ffdaa8;outline-offset:3px}button:disabled{cursor:default}button, .controls{-webkit-user-select:none;user-select:none}
svg:not(.symbols){width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{position:absolute;width:0;height:0;overflow:hidden}button svg{pointer-events:none}
.mast{border-bottom:1px solid #383341;background:#1b1925b8}.mast-inner,main{width:min(100% - 72px,1024px);margin-inline:auto}.mast-inner{display:flex;align-items:center;justify-content:space-between;height:78px}.brand{display:flex;align-items:center;gap:10px}.brand img{width:47px;height:44px}.brand h1{margin:0;display:block;font-family:var(--serif);font-size:24px;letter-spacing:-.025em;line-height:1.28}.brand span{display:block;color:#c5b5ce;font:10px/1.6 var(--mono);letter-spacing:.17em}.tools{display:flex;align-items:center;gap:8px}.tool{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:0 10px;background:transparent;border:1px solid transparent;border-radius:8px;color:var(--soft)}.tool:hover{background:#302a3c;color:var(--text)}.tool.help{padding:0 14px;font-size:14px;border-color:#494052;min-height:44px}.tool.help svg{width:17px}
main{padding:31px 0 25px}.chapter{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:19px;gap:12px}.eyebrow{font:600 11px/1.3 var(--mono);letter-spacing:.15em;color:#c2a8d9;display:flex;align-items:center;gap:9px}.eyebrow i{width:6px;height:6px;transform:rotate(45deg);background:#c2a5db;box-shadow:0 0 8px #ba98d966}h1,h2{font-family:var(--serif);font-weight:700}.chapter h2{font-size:clamp(31px,3vw,43px);line-height:1.18;letter-spacing:-.035em;margin:8px 0}.chapter p{color:var(--soft);margin:0;font-size:15px;line-height:1.5;letter-spacing:.03em}.legend{display:flex;gap:19px;padding-bottom:3px}.legend span{display:flex;align-items:center;gap:6px;font-size:13px;color:#cbbfd3}.legend svg{width:16px;height:16px}.legend .now{fill:#efe8ef;stroke:#65596d}.legend .past{color:#c8a5e5;stroke-dasharray:2 2}
.console{border:1px solid #55495e;border-radius:14px;overflow:hidden;background:#24202f;box-shadow:0 11px 28px #0b0a141f}.scene{position:relative;width:100%;aspect-ratio:2.92;background:#34304f;isolation:isolate;overflow:hidden;border-bottom:1px solid #514652}#world{display:block;width:100%;height:100%;image-rendering:pixelated}.status{display:flex;align-items:center;gap:7px;position:absolute;left:16px;top:15px;border:1px solid #a296ae65;border-radius:5px;background:#201c30cf;color:#eadfea;padding:5px 9px;font-size:12px;line-height:1.2;letter-spacing:.05em;pointer-events:none}.status i{height:6px;width:6px;border-radius:50%;background:#eac0a1}.status.echo i{background:#cfb0ff;box-shadow:0 0 6px #c69bff80}.object-label,.echo-tag{position:absolute;transform:translate(-50%,-100%);background:#282136de;border:1px solid #c8a6818c;border-radius:4px;padding:2px 6px;color:#ffe0ae;pointer-events:none;white-space:nowrap;font-size:12px;font-weight:550;letter-spacing:.04em}.object-label::after,.echo-tag::after{content:"";position:absolute;left:calc(50% - 2px);bottom:-4px;width:5px;height:5px;background:inherit;border:solid #c8a6818c;border-width:0 1px 1px 0;transform:rotate(45deg)}.echo-tag{color:#e6ccff;border-color:#a48ac7}.echo-tag::after{border-color:#a48ac7}.rewind-flash{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;gap:8px;font-size:17px;letter-spacing:.12em;text-shadow:0 2px 4px #231b3c;background:linear-gradient(100deg,#bca9dc2e,#4a415d80,#c7b6e926);color:white}.rewind-flash svg{width:26px;height:26px}[hidden]{display:none!important}
.panel{padding:16px 22px 18px;background:linear-gradient(110deg,#282332,#221f2d)}.hint{display:flex;gap:10px;align-items:center;min-height:24px;color:#ede0de}.hint svg{color:var(--gold);width:18px;height:18px}.hint p{font-size:15px;line-height:1.5;margin:0}.tape{display:flex;align-items:center;gap:14px;margin:12px 0 16px;padding:8px 12px;background:#191722;border:1px solid #3c3446;border-radius:6px}.tape-label{display:flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap;color:#c8bbd2}.tape-label svg{width:16px;height:16px;color:#b9a7ca}#ruler{flex:1;min-width:16px;height:16px;border-inline:1px solid #5b4d63}#timeline{width:100%;height:100%;display:block}#time{font:12px var(--mono);color:#d9c8e7;letter-spacing:.06em}.controls,.move,.acts{display:flex;align-items:center}.controls{justify-content:space-between;gap:12px}.move,.acts{gap:8px}.key{min-height:44px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:7px;border:1px solid #5d5269;background:#393244;box-shadow:inset 0 -2px 0 #282332;color:#ede5f3;font-size:15px;font-weight:600;line-height:1.1;transition:background .12s,transform .1s;white-space:nowrap}.key:hover{background:#494052}.key:active,.key.held{transform:translateY(1px);background:#544761;box-shadow:inset 0 1px 2px #251d2a}.dir{width:56px;touch-action:none}.dir svg{width:21px;height:21px;stroke-width:2}.move-label{font-size:13px;color:var(--mute);margin-left:4px}.primary{background:var(--lilac);color:#32263e;border-color:#e9d9f3;box-shadow:inset 0 -2px 0 #b59aca}.primary:hover,.primary:active{background:#eeddf9}.primary svg{width:18px}.reset{background:transparent;border-color:#554b5e;color:#d4c9dd;box-shadow:none}.reset svg{width:16px}.key kbd{font:11px/1.3 var(--mono);border:1px solid #a991b5;border-radius:3px;padding:1px 4px;opacity:.88}.reset kbd{border-color:#766b80}
.route{display:flex;align-items:center;gap:24px;margin-top:22px;background:#1c1926;border:1px solid #39323f;border-radius:9px;padding:9px 14px}.route-title{display:flex;align-items:center;gap:8px;white-space:nowrap;color:#d0c2d8;font-size:13px}.route-title svg{color:#b8a1ca;width:17px}#stops{display:flex;align-items:center;flex:1;min-width:0;justify-content:space-between}.stop{text-decoration:none;display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 7px;background:transparent;border:1px solid transparent;border-radius:5px;color:#afa2ba;font-size:13px;white-space:nowrap}.stop:hover{background:#302938;color:#e1d4e7}.stop[aria-current="step"]{color:#ebd7fc;background:#342c40;border-color:#56455f}.stop svg{width:16px;height:16px}.route-line{height:1px;min-width:5px;max-width:50px;flex:1;margin:0 5px;background:repeating-linear-gradient(90deg,#5c4e67 0 3px,transparent 3px 6px)}.done{color:#d1c2a1}.route .done svg{color:#e9c28b}
dialog{width:min(380px,calc(100vw - 36px));max-height:88dvh;border:1px solid #776584;color:var(--text);border-radius:15px;background:#272230;padding:0;box-shadow:0 18px 80px #100a1ccc}dialog::backdrop{background:#100c1fc9}.modal-inner{padding:29px 27px 26px;position:relative}.close{position:absolute;right:8px;top:8px}.modal-mark{display:flex;align-items:center;justify-content:center;width:47px;height:47px;border-radius:12px;margin-bottom:18px;background:#393041;color:var(--gold)}.modal-mark svg{width:28px;height:28px}h2{font-size:29px;margin:7px 0 12px;letter-spacing:-.02em}#modalBody{font-size:15px;line-height:1.74;color:#d5c9dc}#modalBody p{margin:.48em 0}.modal-inner>.primary{width:100%;margin-top:17px}.modal-inner strong{color:#f1daab}.modal-inner .nextline{border-top:1px solid #534458;padding-top:12px;margin-top:14px}
@media(max-width:760px){.mast-inner,main{width:calc(100% - 36px)}.mast-inner{height:66px}main{padding-top:22px}.chapter{margin-bottom:14px}.scene{aspect-ratio:2.3}.route{gap:10px}.route-title span{display:none}.stop{padding:0 5px}}
@media(max-width:560px){.mast-inner,main{width:calc(100% - 24px)}.mast-inner{height:62px}.brand{gap:6px}.brand img{width:38px;height:37px}.brand h1{font-size:18px}.brand span{font-size:8px}.tool.help{padding:0 8px;min-height:44px;border:0}.tools{gap:1px}main{padding:18px 0 max(16px,env(safe-area-inset-bottom))}.chapter{position:relative;display:block}.chapter h2{font-size:30px;margin:6px 0}.chapter p{font-size:14px}.eyebrow{font-size:10px}.legend{position:absolute;right:0;top:0;padding:0;gap:9px}.legend span{font-size:11px;gap:2px}.legend svg{width:13px;height:13px}.console{border-radius:10px}.scene{aspect-ratio:1.7}.status{left:9px;top:9px;font-size:11px;padding:4px 6px}.object-label,.echo-tag{font-size:10px;padding:2px 4px}.panel{padding:12px}.hint{align-items:flex-start;gap:7px;min-height:40px}.hint svg{width:15px;height:19px}.hint p{font-size:14px}.tape{margin:6px 0 12px;gap:8px;padding:7px 8px}.controls{gap:5px}.key{padding:0 11px;gap:6px;min-height:46px;font-size:14px}.move,.acts{gap:5px}.dir{width:46px}.move-label,.key kbd{display:none}.reset svg{width:15px}.controls .primary{min-width:79px}.route{display:block;margin-top:14px;padding:10px 8px 6px}.route-title{gap:6px;font-size:12px;margin:0 2px 3px}.route-title span{display:block}#stops{justify-content:space-between}.stop{font-size:12px;padding:0 4px;gap:3px;min-height:44px}.stop svg{width:13px}.route-line{margin:0 2px;min-width:2px}}
@media(max-width:360px){.route-line{display:none}.stop{font-size:11px}.mast-inner,main{width:calc(100% - 16px)}.dir{width:44px}.key{padding:0 8px}.legend{gap:4px}}
@media(max-height:540px) and (orientation:landscape){.mast-inner{height:46px}.brand img{height:35px;width:36px}.brand h1{font-size:16px}.brand span{font-size:8px}main{padding-top:8px}.chapter{margin-bottom:6px;align-items:center}.chapter>div:first-child{display:flex;align-items:center;gap:12px}.chapter h2{margin:0;font-size:21px}.chapter p,.legend{display:none}.scene{height:clamp(120px,47dvh,240px);aspect-ratio:auto}.panel{padding:5px 12px 8px}.tape{margin:3px 0 5px;padding-block:3px}.hint,.hint p{min-height:18px;font-size:13px}.route{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

@media(min-width:761px) and (max-height:850px){.mast-inner{height:64px}main{padding-top:22px}.chapter{margin-bottom:14px}.panel{padding-block:13px}.route{margin-top:15px}}
@media(max-width:560px){.brand h1{font-size:21px}.chapter p{letter-spacing:0}.hint{min-height:42px}.stop{font-size:13px}.legend span{font-size:12px}.move,.acts{gap:6px}.controls .key{padding-inline:9px}}
@media(max-width:360px){.brand h1{font-size:19px}.controls .key{padding-inline:6px}.move,.acts{gap:4px}}

@media(max-width:440px){.brand h1{white-space:nowrap}.tool.help span{display:none}.tool.help{width:44px}.tools{flex-shrink:0}}


/* The tape keeps a constant height when a retry becomes available. */
.tape{min-height:44px;padding-block:0}
.retry-echo{min-height:44px;display:inline-flex;align-items:center;gap:5px;padding:0 3px;color:var(--lilac);background:transparent;border:0;font-size:13px;font-weight:600}
.retry-echo:hover{text-decoration:underline}.retry-echo svg{width:14px;height:14px}.retry-short{display:none}
#stops{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
@media(max-width:850px){#stops{grid-template-columns:repeat(4,minmax(0,1fr))}.route-title span{display:block}}
@media(max-width:560px){.retry-full{display:none}.retry-short{display:inline}.tape:has(.retry-echo:not([hidden])) .tape-label span{display:none}}

.route{gap:12px}#district{background:#30293b;color:var(--text);border:1px solid #55495d;border-radius:5px;max-width:100%;min-height:44px;padding:0 8px;font:inherit;font-size:13px}
#district:focus-visible{outline:2px solid var(--gold)}#stops{grid-template-columns:repeat(4,minmax(0,1fr))}
.stop small{font:10px var(--mono);color:var(--mute)}.stop{gap:4px}
.steps{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:-5px 0 5px}
.route-step{min-height:36px;display:inline-flex;align-items:center;background:transparent;border:0;border-bottom:2px solid transparent;color:#b5aabf;padding:0 7px;font-size:13px}
.route-step[data-state="active"]{color:#ffe1a9;border-color:#dfb879}.route-step[data-state="done"]{color:#d3d8b8}.route-step[data-state="done"]::after{content:" ✓"}.route-step:hover{background:#332b3c}
.plan-strip{height:52px;position:relative;background:linear-gradient(transparent 69%,#b69ca7 70%,#b69ca7 73%,transparent 74%);margin:8px 0 15px}
.plan-strip span{position:absolute;top:3px;transform:translateX(-50%);font:13px var(--mono);color:#ffda9a}.plan-strip span::after{content:"";display:block;margin:5px auto 0;width:2px;height:12px;background:#e5bf8c}
@media(max-width:850px){.route{display:grid;grid-template-columns:auto 1fr}.route-title{margin:0}#stops{grid-column:1/-1}#district{justify-self:end;width:min(100%,300px)}.route-title label{white-space:nowrap}}
@media(max-width:560px){.route{gap:4px;padding:6px}.stop{flex-wrap:wrap;align-content:center;column-gap:3px;line-height:1.1}.stop small{font-size:9px}.stop svg{display:none}.stop span{white-space:normal}.route-step{min-height:44px;font-size:12px;padding:0 5px}#district{font-size:12px}.route-title{gap:4px}.route-title label{font-size:12px}}


.brand h1 span{font:500 12px/1.3 system-ui,sans-serif;letter-spacing:.02em;color:var(--soft)}
.stop:focus-visible{outline:3px solid var(--gold);outline-offset:1px}
.echo-guide{max-width:69ch;margin:26px 0 12px}
.echo-guide h2{margin:0 0 8px;font-size:22px;letter-spacing:-.02em}
.echo-guide p,.script-notice{color:var(--soft);font-size:15px;line-height:1.6;margin:6px 0}
.echo-guide figure{margin:18px 0 24px}
.echo-guide figure img{display:block;width:100%;height:auto;border-radius:8px}
.echo-guide figcaption{color:var(--soft);font-size:13px;line-height:1.5;margin:6px 0}
.echo-guide details{border-bottom:1px solid var(--edge)}
.echo-guide details:last-of-type{margin-bottom:15px}
.echo-guide summary{padding:12px 2px;cursor:pointer;color:var(--lilac)}
.echo-guide summary h3{display:inline;font:600 18px/1.45 var(--serif)}
.echo-guide details p:last-child{margin-bottom:16px}
.echo-guide a{color:var(--gold);text-underline-offset:3px}
.echo-guide :is(summary,a):focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.script-notice{padding:8px 14px}
#district[hidden] + #stops .stop{white-space:normal;overflow-wrap:anywhere}
@media(max-height:540px) and (orientation:landscape){.brand h1 span{font-size:10px}}

.site-footer{width:min(100% - 32px,1024px);margin:24px auto;padding:18px 0;display:flex;gap:12px 28px;justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--edge)}
.site-footer nav{display:flex;flex-wrap:wrap;gap:6px 20px}.site-footer a,.info-page a,.info-brand{color:var(--lilac);text-underline-offset:3px}.site-footer a{display:inline-flex;align-items:center;min-height:44px}.info-page{max-width:68ch;line-height:1.65}.info-page p{color:var(--soft)}.info-brand{font:700 24px var(--serif)}.info-page label,.info-page textarea{display:block}.info-page textarea{background:var(--panel);color:var(--text);border:1px solid var(--edge);border-radius:6px;font:inherit;width:100%;padding:10px;margin:6px 0 12px}.info-page [data-gf-comment-msg]{min-height:1.5em}
