/* The same series shell as Lost & Found; only the playable map differs. */
.sibling-link{display:block;font-size:12px;color:var(--green);margin-top:14px}.sibling-link:hover{text-decoration:underline}
.poster svg{height:100%;width:100%;max-width:390px}.poster{display:flex;align-items:center;justify-content:center}
.play-board{max-width:520px;gap:10px}.game-bar{min-height:58px}.instruction{height:48px;min-height:48px}.rail-map{position:relative;width:min(100%,350px);aspect-ratio:1;margin:0 auto;padding:8px;border-radius:20px;background:#e9efe3;border:1px solid #d8e3d1;isolation:isolate}.rail-grid{display:grid;grid-template-columns:repeat(var(--size,3),minmax(0,1fr));gap:5px;width:100%;height:100%}.rail-tile{position:relative;display:block;min-width:0;min-height:0;aspect-ratio:1;border:1px solid #dce3d4;border-radius:13px;background:#fcfbf6;padding:0;box-shadow:0 2px 0 #dce4d4;color:var(--board-ink);touch-action:manipulation}.rail-tile svg{display:block;width:100%;height:100%;pointer-events:none}.rail-tile:enabled:hover{background:#fff;border-color:#93af91}.rail-tile:enabled:active{background:#eef5e7;transform:translateY(1px)}.rail-tile:focus-visible{outline-offset:-4px;z-index:2}.rail-tile.locked{background:#f1f2e8}.rail-tile.park{background:#e2ecd9;border:1px solid #d8e4cf;box-shadow:none}.rail-tile.hint{border:2px solid #dba84d;box-shadow:0 0 0 3px #edc86a50;animation:hint-glow 1.5s ease-in-out infinite}.rail-tile.connected{background:#e4f0dc;border-color:#8fad82}.rail-tile.failed{background:#f5e4d8}.edge-marker{position:absolute;z-index:3;font-size:14px;line-height:20px;width:20px;height:20px;text-align:center;border-radius:50%;background:#176b4b;color:#fff;transform:translateY(-50%);box-shadow:0 0 0 3px #fcfbf6}.source-marker{left:-6px}.goal-marker{right:-6px;background:#e7b361;color:#67491d;font-size:11px}.route-labels{display:flex;align-items:center;justify-content:space-between;min-height:25px;gap:8px;width:min(100%,350px);margin:auto}.station-label{font-size:11px;color:#63786a;display:flex;align-items:center;gap:6px}.station-label i{width:7px;height:7px;background:#176b4b;border-radius:50%}.station-label.destination i{background:#e7b361}.route-clock{font-weight:750;font-size:15px;color:#315e49;font-variant-numeric:tabular-nums;min-width:52px;text-align:center}.route-clock.urgent{color:#b84843}.route-meter{height:4px;border-radius:3px;background:#e1e7d8;width:min(100%,350px);margin:2px auto 0;overflow:hidden}.route-meter i{display:block;width:100%;height:100%;background:#6d9c6b;transform-origin:left}.train{position:absolute;width:34px;height:34px;top:0;left:0;z-index:4;pointer-events:none;filter:drop-shadow(0 3px 2px #31543b40);opacity:0;will-change:transform}.train svg{width:100%;height:100%}.rail-map.traveling .train{opacity:1}.rail-map.traveling .goal-marker{box-shadow:0 0 0 5px #efcc7950}.control-hint{font-size:12px}.ready{height:535px}.result{background:#fcfbf6}.result-art{width:110px}.result-art svg{width:100%}.progress{min-height:12px}.progress i.hit{background:#33774c}
@keyframes hint-glow{50%{box-shadow:0 0 0 5px #edc86a25}}
@media(min-width:601px) and (max-height:740px){.play-board{padding:14px;gap:8px}.rail-map{width:min(100%,290px)}.route-labels,.route-meter{width:min(100%,290px)}.instruction{height:42px;min-height:42px}.control-hint{height:36px;min-height:36px}.ready{height:480px}}
@media(max-width:600px){.play-board{padding:12px;gap:8px}.rail-map{width:min(100%,330px);padding:7px;border-radius:17px}.route-labels,.route-meter{width:min(100%,330px)}.rail-grid{gap:4px}.rail-tile{border-radius:10px}.train{width:29px;height:29px}.control-hint{font-size:11px;line-height:16px;height:40px;min-height:40px;padding:3px 12px}.instruction p{font-size:12px}.route-clock{font-size:14px}.station-label{font-size:10px}.ready{height:460px}}
@media(max-width:390px) and (max-height:650px){.play-board{padding:10px;gap:6px}.rail-map{padding:6px}.rail-grid{gap:3px}.route-labels{min-height:22px}.station-label{font-size:9px}.route-clock{font-size:12px}.rail-tile{border-radius:8px}.instruction{height:40px;min-height:40px}.instruction p{font-size:11px;line-height:16px}.control-hint{height:36px;min-height:36px;font-size:10px}.hud{min-height:27px}.train{width:26px;height:26px}}
@media(prefers-reduced-motion:reduce){.rail-tile.hint{animation:none}}
/* V2: quiet twin rails, matching station symbols, numbered stop badges. */
.rail-tile.station-start{background:#e5efdf;border-color:#a6bd9c}.rail-tile.station-end{background:#faf0d9;border-color:#d7bd88}
.edge-marker{width:26px;height:26px;background:#fcfbf6;border-radius:8px;box-shadow:0 1px 3px #284b3020;transform:translateY(-50%);line-height:1;padding:1px}.edge-marker svg{width:100%;height:100%;display:block}.source-marker{left:12px}.goal-marker{right:12px;background:#fcfbf6}.rail-map.traveling .goal-marker{box-shadow:0 0 0 4px #efcc7950}
.station-label{font-weight:650;color:#476751;gap:4px}.station-label.destination{color:#9a722f}.station-label i,.station-label.destination i{background:none;border-radius:0;width:22px;height:22px;display:inline-block}.station-label svg{display:block;width:100%;height:100%}
.route-task{display:flex;justify-content:space-between;align-items:center;gap:8px;width:min(100%,350px);margin:0 auto;font-size:11px;line-height:18px;color:#6c7d65;min-height:24px}.route-task>span:last-child{padding:3px 8px;background:#edf0e4;border-radius:8px;color:#456344;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.stop-badge{position:absolute;right:4px;top:4px;min-width:20px;height:20px;display:grid;place-items:center;border-radius:7px;background:#e6ac89;color:#613f30;border:2px solid #fcfbf6;font-size:11px;line-height:1;font-weight:800;pointer-events:none;box-shadow:0 1px 2px #754a2c19}
@media(min-width:601px) and (max-height:740px){.route-task{width:min(100%,290px)}}
@media(max-width:600px){.route-task{width:min(100%,330px);font-size:10px}.edge-marker{width:22px;height:22px;border-radius:6px}.source-marker{left:10px}.goal-marker{right:10px}.station-label i,.station-label.destination i{width:19px;height:19px}.stop-badge{right:2px;top:2px;min-width:17px;height:17px;font-size:10px;border-radius:6px}}
@media(max-width:390px) and (max-height:650px){.route-task{font-size:9px;min-height:22px}.route-task>span:last-child{padding:2px 6px}.edge-marker{width:20px;height:20px}.source-marker{left:9px}.goal-marker{right:9px}.stop-badge{min-width:16px;height:16px;font-size:9px}}
