:root{font-family:'Hiragino Kaku Gothic ProN','Yu Gothic',system-ui,sans-serif;color:#eef6ff;background:#070c1c;font-synthesis:none;color-scheme:dark;--cyan:#85f7ff;--accent:#ca9dfb}*{box-sizing:border-box}body{margin:0;min-height:100svh;overscroll-behavior:none}.cosmos{position:fixed;inset:0;z-index:-2;background:linear-gradient(180deg,#050a1730,#050a17aa),url('assets/cosmos.webp') center/cover;pointer-events:none}.cosmos:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 20% 20%,#264f8440,transparent 55%),radial-gradient(ellipse at 85% 65%,#77339340,transparent 50%)}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible{outline:3px solid #ffc878;outline-offset:3px}button:disabled{cursor:default}.game{width:min(100%,450px);margin:auto;padding:max(env(safe-area-inset-top),20px) 22px max(env(safe-area-inset-bottom),15px)}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:.2em;color:#a2b9d8;margin:0 0 5px}h1{font-size:31px;line-height:1.05;letter-spacing:.04em;font-weight:350;margin:0;color:white}h1 b{font-weight:800;color:var(--cyan)}.subtitle{font-size:12px;letter-spacing:.3em;margin:7px 0 0;color:#c6d5ed}.top-actions{display:flex;gap:7px}.round{width:36px;height:36px;border:1px solid #9fd5ff38;border-radius:50%;color:#dcf4ff;background:#10233d88;font-size:18px}.round[aria-pressed=true]{background:#437185}.level-line{display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:.15em;color:#bfd0e8}.level-line>span{font-weight:700}#dots{display:flex;gap:7px}#dots button{border:1px solid #91dfff30;width:30px;height:30px;border-radius:50%;font-size:12px;background:#102139aa;color:#a8bedb}#dots button.active{background:#b2f8ff;color:#0b2340;border-color:#b2f8ff;box-shadow:0 0 20px #81f5ff45}.destination{display:flex;align-items:center;gap:12px;padding:10px 0 8px;margin:6px 0 21px;min-height:71px}.destination h2{font-size:19px;letter-spacing:.08em;font-weight:650;margin:0}.destination .eyebrow{font-size:9px;color:#acbed7}.destination p:last-child{font-size:12px;margin:3px 0 0;color:#adbed9}.planet{width:54px;height:54px;flex-shrink:0;background:url('assets/planets.webp') var(--planet-position,0%) center/400% 100% no-repeat;filter:drop-shadow(0 0 16px #8ddfff4a)}#stars{margin-left:auto;font-size:21px;letter-spacing:1px;color:#f7df96;white-space:nowrap}.board-wrap{position:relative;padding:9px;border:1px solid #88d8ff42;border-radius:15px;background:linear-gradient(145deg,#111c385d,#050d208f);box-shadow:0 0 35px #499eff13,inset 0 0 28px #6795df09}#board{display:grid;grid-template-columns:repeat(5,1fr);gap:3px}.tile{position:relative;aspect-ratio:1;padding:0;border:1px solid #7699c823;border-radius:8px;background:#0d1631a0;overflow:visible;color:#8eb6e4;transition:background .2s}.tile svg{display:block;width:100%;height:100%;transition:transform .17s ease;overflow:visible}.tile path{fill:none;stroke:#407198;stroke-width:8;stroke-linecap:butt;stroke-linejoin:round}.tile path.inner{stroke:#b8cfe5;stroke-width:1.6}.tile.connected{background:#1637589c;border-color:#70dbea48}.tile.connected path{stroke:#36c4df;filter:drop-shadow(0 0 4px #53d8ff)}.tile.connected path.inner{stroke:#d4ffff}.tile.occupied{background:#234664b0;border-color:#c7faff85}.tile.next-target{box-shadow:inset 0 0 0 1px #c2f8ff80}.tile.rock{background:#0b1024d9;border-color:#bd92fc20}.tile.rock span{font-size:23px;color:#9287b1;opacity:.6}.tile.wait-target{outline:2px solid #ffba72;outline-offset:1px;animation:alert .75s infinite}.item{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;color:#ffe197;font-size:21px;filter:drop-shadow(0 0 5px #e0ad35);z-index:1;text-shadow:0 2px 3px #040917}.key{color:#f5b9ff}.gate{position:absolute;left:14%;right:14%;top:40%;height:18%;border:1px solid #d69afb;background:repeating-linear-gradient(60deg,#9c79cdaa 0 5px,#25224e 5px 10px);border-radius:3px;transition:opacity .3s}.gate.open{opacity:.12}.station{position:absolute;z-index:2;font-size:10px;letter-spacing:.1em;display:flex;align-items:center;gap:7px;color:#c1eaff}.station span{font-size:10px;color:#9ab8d5}.goal-label{right:11px;top:-20px}.goal-label:after{content:'';width:5px;height:5px;border-radius:50%;background:#bdfbff;box-shadow:0 0 8px #bdfbff}.start-label{bottom:-20px;left:12px;color:#b8aedb}#toko{position:absolute;inset:9px;width:calc(100% - 18px);height:calc(100% - 18px);pointer-events:none;z-index:3}.message{display:flex;align-items:center;gap:10px;min-height:76px;padding:27px 2px 11px}.message>span{font-size:20px;color:var(--cyan)}.message p{font-size:13px;line-height:1.65;margin:0;color:#cfdef2;letter-spacing:.02em}.controls{display:flex;gap:10px}.primary,.secondary{border:1px solid #a6d9ff35;border-radius:11px;min-height:49px;font-size:14px;font-weight:750;padding:12px 14px}.primary{background:linear-gradient(100deg,#aaf7ff,#b1c9ff);color:#0b2240;box-shadow:0 0 23px #75c7ff25;flex:1}.primary:disabled{opacity:.4}.primary:active,.secondary:active{transform:translateY(1px)}.secondary{background:#10213ccc;color:#c1d3ec}.footnote{font-size:10px;text-align:center;color:#8199ba;margin:13px 0 0;letter-spacing:.04em}#pause-label{position:absolute;inset:0;z-index:4;display:grid;align-content:center;text-align:center;gap:12px;background:#050b20b5;backdrop-filter:blur(3px);font-size:25px;letter-spacing:.2em;border-radius:14px;pointer-events:none}#pause-label span{font-size:12px;letter-spacing:.03em}#pause-label[hidden]{display:none}#overlay{position:absolute;inset:0;background:#040a1cac;z-index:5;display:grid;place-items:center;border-radius:14px;padding:16px;backdrop-filter:blur(5px)}#overlay[hidden]{display:none}.card{background:linear-gradient(145deg,#163354ed,#10192bf5);border:1px solid #a0e1ff6a;border-radius:19px;padding:18px;text-align:center;width:100%;box-shadow:0 0 50px #60bafb22}.result-planet{margin:0 auto 5px;width:95px;height:95px}.card>span{font-size:25px;color:#ffe197}.card h2{font-size:21px;margin:9px 0}.card p:not(.eyebrow){font-size:13px;line-height:1.8;margin:11px 0 19px;white-space:pre-line;color:#ccd9ee}.card button{width:100%}.text-button{border:0;background:none;color:#bbcee6;font-size:12px;padding:12px 0 0}.card .eyebrow{font-size:10px;color:#a7e9ff;margin-top:8px}dialog{border:1px solid #a5dcff60;border-radius:20px;padding:35px 25px 25px;max-width:380px;width:calc(100% - 32px);color:#edf7ff;background:#101d35;box-shadow:0 20px 80px #030715}dialog::backdrop{background:#030819bb;backdrop-filter:blur(5px)}dialog h2{font-size:20px;margin:10px 0 25px}dialog li{font-size:14px;line-height:1.9;margin:8px 0}dialog ol{padding-left:22px}.small{font-size:12px;line-height:1.9;color:#afc4df;margin:20px 0}.close{position:absolute;right:12px;top:12px}dialog .primary{width:100%}.low-fx *{animation:none!important;transition:none!important}.low-fx .tile path,.low-fx .planet{filter:none}.low-fx .cosmos{opacity:.45}@keyframes alert{50%{outline-color:#ffeac6;box-shadow:0 0 12px #ffb06077}}@media(min-width:700px){.game{padding-top:28px;width:450px}.cosmos{background-size:auto 120%;background-color:#060b19}.board-wrap{box-shadow:0 0 70px #435b9430}header{margin-bottom:22px}}@media(max-height:780px){.game{width:min(100%,390px);padding:12px 20px 10px}header{margin-bottom:12px}h1{font-size:27px}.destination{margin-top:3px;margin-bottom:21px;padding:5px 0;min-height:61px}.planet{width:47px;height:47px}.message{min-height:67px;padding-top:26px}.primary,.secondary{min-height:46px}.footnote{margin-top:10px}}@media(max-height:690px){.game{width:min(100%,340px);padding:10px 16px}.eyebrow{font-size:9px}header{margin-bottom:8px}h1{font-size:25px}.subtitle{font-size:10px}.destination{min-height:48px;margin-bottom:22px}.destination h2{font-size:16px}.destination p:last-child{font-size:10px}.planet{width:40px;height:40px}.message{min-height:64px}.message p{font-size:12px}.footnote{font-size:9px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Board finish: floating smoked-glass platforms and fine twin light rails. */
.board-wrap{isolation:isolate;padding:9px;border:1px solid #91bded38;border-radius:18px;background:linear-gradient(135deg,#18243b45,#060c1c66 60%,#29213b38);box-shadow:inset 0 1px 0 #d2e6ff12,0 12px 38px #02061480,0 0 26px #6d86d412}
.board-wrap:before{content:'';position:absolute;inset:-4px;border:1px solid #8fbad412;border-radius:21px;z-index:-1;pointer-events:none}
#board{gap:6px;position:relative}
.tile{border:0;border-radius:9px;background:linear-gradient(145deg,#1b2d4bd9 0%,#101b32dc 47%,#0b1328e8 100%);box-shadow:inset 0 1px 0 #bdd9ff45,inset 1px 0 0 #a6c2ea20,inset -1px -1px 0 #1b365a,0 3px 0 #060d1e,0 4px 7px #010510b0;transition:background .2s,box-shadow .2s}
.tile:before{content:'';position:absolute;inset:3px;border:1px solid #c1dafa0b;border-radius:6px;pointer-events:none}
.tile svg{position:relative;z-index:1;overflow:visible;transform-origin:50% 50%}
.tile path{fill:none;stroke-linecap:butt;stroke-linejoin:round;filter:none}
.tile path.track-bed{stroke:#030c1c;stroke-width:18;opacity:.62}
.tile path.ties{stroke:#718eae;stroke-width:17;stroke-dasharray:1.5 8;opacity:.68}
.tile path.rail-halo{stroke:#43c9ee;stroke-width:8;opacity:0;filter:none}
.tile path.rail{stroke:#568eac;stroke-width:3.4}
.tile path.rail-core{stroke:#b3d3e4;stroke-width:1.15;opacity:.8}
.tile .port{fill:#a2bfce;stroke:#1e4963;stroke-width:1;opacity:.8}
.tile.connected{background:linear-gradient(145deg,#244c65db,#12334bd9 50%,#0c2036e8);box-shadow:inset 0 1px 0 #c3faff6b,inset 1px 0 0 #8ff0ff36,inset -1px -1px 0 #224e65,0 3px 0 #081726,0 4px 8px #010613b0}
.tile.connected path.track-bed{stroke:#041e30;filter:none;opacity:.8}
.tile.connected path.ties{stroke:#92deea;filter:none;opacity:.65}
.tile.connected path.rail-halo{stroke:#44dfff;stroke-width:7;opacity:.17;filter:drop-shadow(0 0 2px #5ce6ff80)}
.tile.connected path.rail{stroke:#56e8ff;stroke-width:3.5;filter:none}
.tile.connected path.rail-core{stroke:#eeffff;stroke-width:1.3;opacity:1;filter:none}
.tile.connected .port{fill:#e3ffff;stroke:#62eaff;opacity:1}
.tile.occupied{box-shadow:inset 0 0 0 1px #b7f7ff,0 3px 0 #102b3a,0 0 12px #6ce5ff24}
.tile.next-target{box-shadow:inset 0 0 0 1px #8defff82,0 3px 0 #0a2233,0 4px 8px #010613b0}
.tile.terminus:before{border-color:#b8edff80;inset:3px;border-radius:6px}
.tile.terminus:after{content:'';position:absolute;top:-9px;left:calc(50% - 8px);width:16px;height:5px;background:#c1faff;border-radius:2px;box-shadow:0 0 9px #8ff3ff77;pointer-events:none}
.tile.origin:after{content:'';position:absolute;bottom:-9px;left:calc(50% - 8px);width:16px;height:5px;background:#b5a4e0;border-radius:2px;box-shadow:0 0 7px #ad95f344;pointer-events:none}
.tile.rock{background:linear-gradient(145deg,#1a1c31bc,#080c1ad9);box-shadow:inset 0 1px 0 #b3a6d326,inset 0 0 0 1px #7a73951b;overflow:hidden}
.tile.rock:before{inset:7px;border-color:#8b86a51a;border-radius:4px}
.tile.rock .blocked-symbol{display:block;position:absolute;inset:12% 0 auto;text-align:center;font-size:22px;color:#958faa;opacity:.7;line-height:1}
.tile.rock .blocked-label{position:absolute;bottom:10%;left:0;width:100%;font-size:12px;letter-spacing:.05em;line-height:1;color:#a09ab4;opacity:.78}
.item{z-index:2;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;font-size:15px;background:#312737e8;border:1px solid #f6d281aa;color:#ffe3a1;filter:none;box-shadow:0 0 9px #e4b95627,inset 0 1px 0 #fff4d12e;text-shadow:0 0 4px #f8d07366}
.item[hidden]{display:none}.key{background:#332445e8;border-color:#d4aeef;color:#edd2ff;font-size:19px;box-shadow:0 0 9px #be89e927}
.gate{z-index:2;left:17%;right:17%;top:41%;height:18%;border:1px solid #d4a7e9;background:repeating-linear-gradient(60deg,#9e74c2da 0 4px,#211d37ed 4px 8px);box-shadow:0 0 7px #ba82ec27;border-radius:3px}
.tile.wait-target{outline:2px solid #f4c382;outline-offset:1px;animation:none;box-shadow:inset 0 0 0 1px #f9cb8f30,0 3px 0 #302530,0 0 12px #f4b76829}
.tile.wait-target:before{border-color:#f5c37c33}.station{background:#09132ccc;border:1px solid #8cb5d936;border-radius:5px;padding:2px 6px}.goal-label{top:-24px;right:9px}.start-label{bottom:-24px;left:9px}.goal-label:after{box-shadow:0 0 5px #bdfbff80}
#toko{z-index:3}.message p{font-size:14px}.destination{background:linear-gradient(90deg,#08152b35,transparent);border-radius:10px}.low-fx .tile path.rail-halo{display:none}.low-fx .tile.connected path{filter:none}
@media(hover:hover){.tile:not(:disabled):hover{box-shadow:inset 0 0 0 1px #d3eaff9c,0 3px 0 #0c2037,0 0 12px #739de226}}
@media(max-height:690px){.tile.rock .blocked-symbol{font-size:18px}.tile.rock .blocked-label{font-size:12px}.item{width:21px;height:21px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.tile path.rail-halo{filter:none}}

/* v4 — optically clear glass: every layer above the starfield stays transparent. */
body{isolation:isolate}.cosmos{z-index:-1;background-image:linear-gradient(180deg,#050a1708,#050a1720),url('assets/cosmos.webp');background-size:cover;background-position:center}
.cosmos:after{background-image:radial-gradient(circle at 18px 31px,#d9f7ff99 0 .65px,transparent 1.2px),radial-gradient(circle at 67px 84px,#b4ccff70 0 .75px,transparent 1.3px),radial-gradient(circle at 105px 39px,#faf1ff5c 0 .55px,transparent 1px);background-size:137px 157px,191px 211px,229px 241px;opacity:.62}
.game{position:relative;z-index:1}.board-wrap{background:transparent;box-shadow:inset 0 1px 0 #e8f8ff1c,0 0 24px #91c4ff0d;border-color:#c3eaff33;backdrop-filter:none}
.board-wrap:before{border-color:#c0eaff0e;background:none;box-shadow:none}#board{background:transparent}
.tile{background:linear-gradient(135deg,#d8efff18, #c4ddff05 28%,transparent 65%,#a0d9ff0a);box-shadow:inset 0 1px 0 #effaff7d,inset 1px 0 0 #d3f2ff24,inset -1px -1px 0 #c1e7ff24,0 2px 0 #8cbee51c;backdrop-filter:none}
.tile:before{border-color:#d6f2ff13;background:none;box-shadow:none}
.tile.connected{background:linear-gradient(135deg,#b6faff22,#b4faff06 28%,transparent 65%,#8be8ff0b);box-shadow:inset 0 1px 0 #edffffa3,inset 1px 0 0 #b5faff3b,inset -1px -1px 0 #a8f7ff36,0 2px 0 #9aeaff23}
.tile.occupied{background:linear-gradient(135deg,#c0fcff2b,transparent 45%,#bcfaff0e);box-shadow:inset 0 0 0 1px #c9ffffb3,0 2px 0 #9aeaff25,0 0 11px #7eedff22}
.tile.next-target{box-shadow:inset 0 0 0 1px #bdffff75,0 2px 0 #9aeaff25}
.tile path.track-bed,.tile.connected path.track-bed{stroke:none;opacity:0}
.tile path.ties{stroke:#9baee9;opacity:.7;stroke-width:17;stroke-dasharray:1.4 8}
.tile path.rail-halo{stroke:#ad8dff;stroke-width:10;opacity:.32;filter:drop-shadow(0 0 4px #a887ffb3)}
.tile path.rail{stroke:#b7a0ff;stroke-width:3.6}
.tile path.rail-core{stroke:#f1e9ff;stroke-width:1.2;opacity:.94}
.tile .port{fill:#e6d9ff;stroke:#b8a0ff;opacity:1}
.tile.connected path.ties{stroke:#99f8ff;opacity:.85}
.tile.connected path.rail-halo{stroke:#24dbff;stroke-width:11;opacity:.43;filter:drop-shadow(0 0 5px #43e5ffe6)}
.tile.connected path.rail{stroke:#62efff;stroke-width:4}
.tile.connected path.rail-core{stroke:#fff;stroke-width:1.5;opacity:1}
.tile.connected .port{fill:#fff;stroke:#a3fbff}
.tile.rock{background:transparent;border:0;box-shadow:none;overflow:visible}
.tile.rock:before,.tile.rock:after{display:none}
.meteorite{display:block;position:absolute;inset:2%;width:96%;height:96%;object-fit:contain;pointer-events:none;filter:drop-shadow(1px 4px 4px #02071585);transform:rotate(var(--meteor-angle,0deg));opacity:1}
.tile.wait-target{background:linear-gradient(135deg,#fff0cd22,transparent 60%);box-shadow:inset 0 0 0 1px #ffe3b954,0 0 10px #ffbb6426}
.low-fx .tile path.rail-halo{display:none}.low-fx .meteorite{filter:none}
@media(hover:hover){.tile:not(:disabled):hover{box-shadow:inset 0 0 0 1px #f3fcffa8,0 2px 0 #a6d5ef25,0 0 10px #a8dcff20}}

/* v5 — one fine glass edge and one aligned top reflection, no nested frames. */
.tile{box-shadow:inset 0 0 0 1px #d8f3ff56}
.tile:before{inset:auto;left:13%;right:13%;top:0;height:1px;border:0;border-radius:0;background:linear-gradient(90deg,transparent,#f6ffffa3,transparent);box-shadow:none;pointer-events:none}
.tile.connected{box-shadow:inset 0 0 0 1px #c8f9ff70}
.tile.occupied{box-shadow:inset 0 0 0 1px #dfffffbd,0 0 8px #7eedff17}
.tile.next-target{box-shadow:inset 0 0 0 1px #cbffff87}
.tile.terminus:before{inset:auto;left:13%;right:13%;top:0;height:1px;border:0;border-radius:0;background:linear-gradient(90deg,transparent,#f4ffff,transparent)}
.tile.wait-target{box-shadow:inset 0 0 0 1px #ffe3b97a,0 0 8px #ffbb641c}
.tile.wait-target:before{border:0}
.tile.rock{box-shadow:none}.tile.rock:before{display:none}
@media(hover:hover){.tile:not(:disabled):hover{box-shadow:inset 0 0 0 1px #f3fcffb0,0 0 8px #a8dcff17}}

/* v6 countdown and result information without changing the board's art. */
.top-actions{gap:5px}.top-actions .round{width:30px;height:30px;font-size:16px}.round:disabled{opacity:.38}.message-icon.counting,#message-icon.counting{font-size:32px;min-width:28px;font-variant-numeric:tabular-nums}.tile:disabled{opacity:1}.footnote{font-size:12px;font-variant-numeric:tabular-nums}.card .result-planet{width:64px;height:64px}.card p:not(.eyebrow){font-size:12px;line-height:1.65;margin:9px 0 13px}.card h2{font-size:18px}.card{padding:15px}.card>span{font-size:22px}

.card{max-height:100%;overflow:auto}.card .result-planet{width:52px;height:52px}

/* v7 — concealed panels, in-board countdown, gentler system typography. */
:root{font-family:'Hiragino Maru Gothic ProN','Hiragino Maru Gothic Pro','UD Digi Kyokasho NK-R',ui-rounded,'Yu Gothic',system-ui,sans-serif}
h1{font-family:ui-rounded,'Arial Rounded MT Bold','Hiragino Maru Gothic ProN',system-ui,sans-serif;font-weight:500;letter-spacing:.025em}h1 b{font-weight:750}.destination h2{font-weight:600;letter-spacing:.045em}.primary,.secondary{font-weight:650}.message p{font-weight:500;letter-spacing:.025em}
.tile-face{position:absolute;inset:0;display:block;pointer-events:none;transform-origin:50% 50%;backface-visibility:hidden}
.tile.covered{background:linear-gradient(135deg,#14253b88,#1120365c 55%,#2035506b);box-shadow:inset 0 0 0 1px #b0d4ed42}
.panel-back{position:absolute;inset:0;display:grid;place-items:center;font-size:20px;color:#aec8df62;text-shadow:0 0 8px #b1d9ff1c;pointer-events:none}
.tile.just-revealed .tile-face{animation:panel-reveal .24s ease-out both}
#countdown-display{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;background:radial-gradient(ellipse 38% 28% at center,#081427a8,transparent)}
#countdown-display[hidden]{display:none}#countdown-number{font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif;font-size:clamp(76px,23vw,116px);font-weight:650;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:#ecffff;text-shadow:0 0 12px #7befff88,0 0 35px #6b8ffb66}
#countdown-display small{font-size:12px;letter-spacing:.04em;color:#d6eaff;margin-top:14px;padding:6px 12px;background:#0a172bd9;border:1px solid #b9e8ff2e;border-radius:18px}
@keyframes panel-reveal{from{transform:perspective(450px) rotateY(-78deg)}to{transform:perspective(450px) rotateY(0)}}
.low-fx .tile.just-revealed .tile-face{animation:none}
@media(prefers-reduced-motion:reduce){.tile.just-revealed .tile-face{animation:none}}
.tile.rock .tile-face{opacity:1;filter:none}

/* v8 — atlas pixels are uniformly scaled instead of squeezed into square background slices. */
.planet{background:none;aspect-ratio:1;overflow:visible}
.planet svg{display:block;width:100%;height:100%;overflow:hidden}

/* v10 — a quiet arrival, glowing travelled rails, and persistent journey stamps. */
#dots button.visited{border-color:#ffe0a685;color:#ffe5b7;background:#49375066;font-size:11px}#dots button.visited.active{background:#e0eff9;color:#152e45;border-color:#fff0c1;box-shadow:0 0 13px #fff0c129}
.tile.journey-lit path.rail{stroke:#b7f9ff}.tile.journey-lit path.rail-core{stroke:#fff6d7}.tile.journey-lit path.rail-halo{opacity:.55;filter:drop-shadow(0 0 4px #ffdda577)}
#arrival{position:absolute;inset:0;z-index:4;pointer-events:none;display:grid;place-items:center;padding:16px;border-radius:16px;background:radial-gradient(ellipse at center,#0b163c72,transparent 74%)}
#arrival[hidden]{display:none}#arrival-copy{text-align:center;max-width:100%;padding:12px 15px;color:#edfbff;text-shadow:0 2px 10px #030919}#arrival-copy[hidden]{display:none}#arrival-copy h2{font-size:23px;font-weight:600;letter-spacing:.03em;margin:12px 0 9px}#arrival-caption{font-size:13px;color:#d9ebf8;line-height:1.7;margin:0}.arrival-planet{position:relative;width:104px;height:104px;margin:0 auto 20px;filter:drop-shadow(0 0 24px #b3f6ff55)}
.arrival-planet:after{content:'';position:absolute;inset:-11px;border:1px solid #d6fbffad;border-radius:50%;box-shadow:0 0 17px #c1eaff55,inset 0 0 14px #c1eaff24;animation:arrival-ring 1.8s ease-out both;pointer-events:none}
.arrival-skip{position:absolute;bottom:12px;right:12px;pointer-events:auto;border:1px solid #c5dffb5c;border-radius:20px;background:#101d35e8;color:#dcebf9;padding:8px 13px;font-size:12px;min-height:38px}.arrival-skip:disabled{visibility:hidden}
#arrival.paused .arrival-planet:after{animation-play-state:paused}#arrival.calm .arrival-planet:after{animation:none}.low-fx .arrival-planet:after{animation:none;box-shadow:none}.low-fx .tile.journey-lit path{filter:none}
.journey-footer{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:9px}.journey-footer .footnote{margin:0;font-size:11px}.sound-toggle{border:0;background:none;color:#a9c8e2;font-size:11px;padding:5px;min-height:30px}
@keyframes arrival-ring{from{transform:scale(.86);opacity:.2}to{transform:scale(1.12);opacity:.85}}
@media(prefers-reduced-motion:reduce){.arrival-planet:after{animation:none}.tile.journey-lit path{filter:none}}

#arrival.paused #arrival-copy{visibility:hidden}

/* v11 — readable next-action cues, easier retry, and safer phone layouts. */
.tile.last-rotated:not(.occupied):not(.repair-next){box-shadow:inset 0 0 0 1px #d9faff9c}
.tile.repair-next{box-shadow:inset 0 0 0 2px #ffd194c9,0 0 10px #ffbc7929}
.tile.repair-next:after{content:'↻';position:absolute;right:4px;top:2px;z-index:3;font-size:16px;font-weight:600;line-height:1;color:#ffe0b0;text-shadow:0 1px 3px #16203e;pointer-events:none}
.tile.failure-target{outline:2px solid #ffd096;outline-offset:1px}#overlay.failed{backdrop-filter:none;background:#06132985}#overlay.failed .card{border-color:#e5bd8680}
.meteorite{transform:rotate(var(--meteor-angle,0deg)) scale(var(--meteor-scale,1))}
#dots button:disabled{opacity:.65;cursor:default}.game{padding-top:max(env(safe-area-inset-top),20px);padding-bottom:max(env(safe-area-inset-bottom),15px)}
@media(max-height:780px){.game{padding-top:max(env(safe-area-inset-top),12px);padding-bottom:max(env(safe-area-inset-bottom),10px)}}
@media(max-width:360px){.game{padding-left:14px;padding-right:14px}h1{font-size:24px}.subtitle{font-size:11px}.destination{gap:8px}.destination h2{font-size:17px}.destination p:last-child{font-size:11px}.message p{font-size:13px}.primary,.secondary{padding:11px 12px}}
@media(orientation:landscape) and (max-height:600px) and (min-width:600px){.game{display:grid;grid-template-columns:minmax(245px,1fr) minmax(265px,1fr);grid-template-rows:auto auto auto 1fr auto auto;column-gap:20px;row-gap:7px;width:min(100%,840px);padding: max(env(safe-area-inset-top),14px) max(env(safe-area-inset-right),18px) max(env(safe-area-inset-bottom),14px) max(env(safe-area-inset-left),18px)}header{grid-column:2;grid-row:1;margin:0}h1{font-size:25px}.eyebrow{font-size:9px}.subtitle{font-size:10px}.level-line{grid-column:2;grid-row:2}.destination{grid-column:2;grid-row:3;margin:0;padding:0;min-height:50px}.destination h2{font-size:17px}.destination p:last-child{font-size:10px}.planet{width:40px;height:40px}.board-wrap{grid-column:1;grid-row:1/7;align-self:center;justify-self:center;width:min(100%,calc((100svh - 80px)*.82));min-width:240px}.message{grid-column:2;grid-row:4;padding:2px 0;min-height:40px;align-self:center}.message p{font-size:13px}.controls{grid-column:2;grid-row:5}.primary,.secondary{font-size:13px;min-height:43px;padding:10px}.journey-footer{grid-column:2;grid-row:6;margin:0}.journey-footer .footnote{font-size:10px}.station{font-size:9px}.arrival-planet{width:75px;height:75px}#arrival-copy h2{font-size:19px}.card .result-planet{width:42px;height:42px}.card p:not(.eyebrow){font-size:11px}}

dialog{max-height:calc(100svh - 36px);overflow:auto}

.top-actions .round{width:44px;height:44px;font-size:18px}.top-actions{flex-shrink:0}h1{font-size:clamp(22px,6.3vw,29px)}#dots button{width:36px;height:36px}.sound-toggle{min-height:36px;padding:6px 8px}
@media(max-width:360px){h1{font-size:22px}.top-actions{gap:4px}.game{padding-left:14px;padding-right:14px}}
@media(orientation:landscape) and (max-height:600px) and (min-width:600px){.top-actions .round{width:36px;height:40px}h1{font-size:24px}#dots button{width:34px;height:34px}}

/* v12 — a three-sector journey map and two clearly distinguished rail devices. */
.map-button{border:1px solid #9cdeff55;border-radius:18px;background:#10233d80;color:#d9faff;min-height:36px;padding:6px 15px}
#journeyMap{width:min(94vw,430px);max-height:calc(100svh - 36px);overflow:auto;padding:28px 22px;border:1px solid #c6eaff55;border-radius:22px;background:linear-gradient(150deg,#11213bf5,#080f26fa);color:#edf7ff}
#journeyMap::backdrop{background:#030915aa;backdrop-filter:blur(3px)}#journeyMap h2{font-size:21px}#map-progress{color:#9cf6ff}
#dots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:38px 8px;padding-top:30px;margin-top:20px}
#dots button{position:relative;width:100%;height:54px;min-height:44px;border-radius:14px;font-size:11px;letter-spacing:0;line-height:1.6;padding:5px 2px;white-space:normal}
#dots button:nth-child(4n+1)::before{position:absolute;top:-25px;left:0;width:calc(400% + 24px);text-align:left;font-size:11px;letter-spacing:.12em;color:#c5d6f0;pointer-events:none}
#dots button:nth-child(1)::before{content:'01 静かな星々 · 基本の航路'}#dots button:nth-child(5)::before{content:'02 星雲の回廊 · キーとゲート'}#dots button:nth-child(9)::before{content:'03 銀河の彼方 · ワープと分岐'}#dots button.locked{opacity:.43;border-style:dashed}#dots button.visited:not(.active){border-color:#a9ecd388;color:#d2fff1}
.portal-label,.switch-label{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);font-size:10px;white-space:nowrap;padding:2px 4px;border-radius:8px;background:#131434e6;color:#f9ddff;border:1px solid #e5a3ff99;pointer-events:none}.portal .tile-face:after{content:'';position:absolute;inset:18%;border:2px solid #dda5ff;border-radius:50%;box-shadow:0 0 9px #c384ff88;pointer-events:none}.switch-label{top:78%;color:#ffe4a7;border-color:#ffcc7780}.switch{outline:1px solid #e7bc6855;outline-offset:-2px}
@media(max-width:340px){#journeyMap{padding:24px 14px}#dots{gap:36px 5px}#dots button{font-size:10px}}

/* v13 — destination-matched planet portraits in the journey map. */
#dots button{height:92px;padding:7px 2px;border-radius:15px;background:#10213970;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}#dots button.active{background:#2b476855;color:#edffff;border-color:#b2f8ff;box-shadow:0 0 14px #81f5ff30}
.map-planet{position:relative;display:block;width:52px;height:52px;flex:none;aspect-ratio:1}.map-planet>svg{display:block;width:100%;height:100%}.map-name{display:block;font-size:10px;line-height:1.4;white-space:nowrap}.map-mark{position:absolute;right:-4px;bottom:-2px;min-width:15px;font-size:13px;color:#c8ffed;text-shadow:0 1px 3px #000}
#dots button.visited .map-planet:after{content:'';position:absolute;inset:0;border:1px solid #a9ecd388;border-radius:50%;box-shadow:0 0 9px #80efd52d;pointer-events:none}#dots button.locked{opacity:1;color:#a5b1c5}#dots button.locked .map-planet>svg{opacity:.45;filter:grayscale(1) brightness(.40)!important}#dots button.locked .map-mark{font-size:11px}#dots button:disabled:not(.locked){opacity:.75}
@media(max-width:340px){#dots button{height:84px}.map-planet{width:44px;height:44px}.map-name{font-size:9px}}

/* v15 — loading announcements do not change the established visual layout. */
.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}
