.app-shell.home-shell,.home-shell{--st-canvas: #f8faf9;--st-surface: #ffffff;--st-ink: #142535;--st-muted: #657383;--st-border: #d4dde3;--st-map-land: #e6ecea;--st-map-route: #c3cad1;--st-map-station-ring: #ffffff;--st-map-station-core: #34444d;--st-map-water: #dceef2;--st-map-inactive: #b9c4cc;--st-focus: #005fcc;--st-accent: #ef7d3a;--st-accent-text: #bd4f10;min-height:100dvh;width:100%;max-width:none;margin:0;padding:0;background:var(--st-canvas);color:var(--st-ink);position:relative;overflow-x:hidden;box-shadow:none;border:none;border-radius:0}html[data-display-theme=dark] .app-shell.home-shell,html[data-display-theme=dark] .home-shell,html[data-display-theme=dark] .home-screen{--st-canvas: #0d1822;--st-surface: #142331;--st-ink: #edf3f5;--st-muted: #93a4b0;--st-border: #29404f;--st-map-land: #1a2834;--st-map-route: #627386;--st-map-station-ring: #edf3f5;--st-map-station-core: #203541;--st-map-water: #152832;--st-map-inactive: #3d5361;--st-focus: #4d9fff;--st-accent: #2aa4b0;--st-accent-text: #f2a36f}.app-shell.home-shell .top-brand,.home-shell .top-brand{display:none}.home-screen{min-height:100svh;height:100svh;width:100%;background:var(--st-canvas);color:var(--st-ink);box-sizing:border-box;position:relative;overflow:hidden}.home-screen .home-header-cluster{position:absolute;top:36px;left:30px;z-index:30;width:min(993px,calc(100% - 60px));min-width:0;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:12px}.home-screen .home-city-rail{position:relative;z-index:30;display:flex;align-items:center;justify-content:flex-start;height:38px;min-height:38px;width:100%;box-sizing:border-box;padding:0;overflow:hidden}.home-screen .home-city-tabs{display:flex;align-items:center;gap:2px;min-width:0;overflow-x:auto;overflow-y:hidden;flex:0 1 auto;max-width:100%;scrollbar-width:thin;width:fit-content;padding:3px;border:1px solid var(--st-border);border-radius:999px;background:color-mix(in srgb,var(--st-surface) 72%,transparent)}.home-screen .home-city-tab{text-decoration:none;flex:0 0 auto;min-height:32px;min-width:48px;padding:.3rem .75rem;border-radius:999px;border:0;background:transparent;color:var(--st-muted);font-weight:650;font-size:14px;line-height:20px;cursor:pointer}.home-screen .home-city-tab.is-selected{background:#ef7d3a;color:#fff;font-weight:700;box-shadow:0 2px 8px #ef7d3a47}.home-screen .home-city-tab[aria-busy=true]{cursor:progress}.home-screen .home-identity{position:relative;z-index:30;max-width:340px;min-height:0;padding:0;box-sizing:border-box;overflow:visible}.home-screen .home-identity .eyebrow{margin:0;color:var(--st-accent-text);letter-spacing:0;text-transform:none;font-size:12px;line-height:18px;font-weight:650}.home-screen .home-identity h1{margin:2px 0 4px;font-size:48px;line-height:52px;font-weight:800;color:var(--st-ink);letter-spacing:0}.home-screen .home-identity h1>span{color:var(--st-ink)}.home-screen .home-identity h1>strong{color:#ef7d3a}.home-screen .home-identity .lede,.home-screen .home-identity .support{margin:0;color:var(--st-muted);font-size:12px;line-height:17px;font-weight:450}.home-screen .home-identity .meta{margin:.15rem 0 0;color:var(--st-muted);font-size:12px;line-height:16px}.home-screen .home-network{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;width:100%;height:100%;overflow:hidden;background:var(--st-canvas);padding:0 0 4px;box-sizing:border-box}.home-screen .home-network .metro-scene{width:100%;height:100%;display:block;max-width:100%;max-height:100%}.home-screen .home-network-canvas{display:block;width:100%;height:100%;min-width:0;min-height:0}.home-screen--city-pending .home-network-canvas,.home-screen--city-pending .home-network .metro-scene{opacity:.48;transition:opacity .16s ease-out}.home-screen .home-network-status{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--st-ink);background:color-mix(in srgb,var(--st-canvas) 88%,transparent)}.home-screen .home-network-status strong{font-size:14px}.home-screen .home-network-status span{color:var(--st-muted);font-size:12px}.home-screen .home-action-dock{position:absolute;left:50%;bottom:34px;transform:translate(-50%);z-index:30;justify-self:center;display:grid;gap:8px;background:transparent;border:0;border-radius:0;padding:0;box-sizing:border-box;overflow:visible}.home-screen .home-action-dock[data-mode-count="3"]{width:min(920px,calc(100% - 32px))}.home-screen .home-action-dock[data-mode-count="2"]{width:min(612px,calc(100% - 32px))}.home-screen .home-controls-settings{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;justify-self:center;width:max-content;max-width:100%;min-height:32px}.home-screen .home-control-label{color:var(--st-muted);font-size:12px;line-height:18px;white-space:nowrap}.home-screen .home-input-method,.home-screen .home-theme{display:inline-flex;align-items:stretch;gap:0;border:1px solid var(--st-border);border-radius:16px;overflow:hidden;background:var(--st-surface)}.home-screen .home-shuangpin-scheme{display:inline-flex;min-width:0}.home-screen .home-shuangpin-scheme select{width:108px;height:34px;min-height:34px;box-sizing:border-box;border:1px solid var(--st-border);border-radius:16px;padding:0 24px 0 10px;background:var(--st-surface);color:var(--st-ink);font:inherit;font-size:13px}.home-screen .home-segment{min-height:32px;min-width:44px;padding:0 10px;box-sizing:border-box;border:none;border-right:1px solid var(--st-border);background:transparent;color:var(--st-muted);font-weight:650;font-size:13px;line-height:18px;cursor:pointer}.home-screen .home-segment:last-child{border-right:none}.home-screen .home-segment.is-selected{background:var(--st-surface);color:var(--st-ink);box-shadow:inset 0 -2px 0 var(--st-accent)}.home-screen .home-mode-actions{display:grid;gap:8px}.home-screen .home-action-dock[data-mode-count="3"] .home-mode-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.home-screen .home-action-dock[data-mode-count="2"] .home-mode-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.home-screen .home-mode-btn{position:relative;min-width:0;min-height:68px;height:68px;border-radius:6px;border:1px solid rgba(20,37,53,.24);color:#fff;font-weight:700;font-family:inherit;cursor:pointer;padding:7px 12px;display:grid;grid-template-columns:max-content max-content minmax(0,1fr);grid-template-areas:"title arrow ." "sub sub sub";align-content:center;column-gap:6px;row-gap:1px;text-align:left;overflow:hidden;box-shadow:0 3px #142535;transition:box-shadow .14s ease}.home-screen .home-mode-btn-title{grid-area:title;min-width:0;font-size:17px;line-height:21px;font-weight:800;letter-spacing:0}.home-screen .home-mode-btn-sub{grid-area:sub;min-width:0;font-size:12px;line-height:16px;font-weight:550}.home-screen .home-mode-btn-arrow{position:static;grid-area:arrow;align-self:center;display:block;line-height:21px;transform:none;transition:transform .14s ease}.home-screen .home-mode-btn--free{background:#315d8f}.home-screen .home-mode-btn--timed{background:#21834d}.home-screen .home-mode-btn--pk{background:#c6473f}.home-screen .home-mode-btn:hover,.home-screen .home-mode-btn:focus-visible{box-shadow:0 4px #142535}.home-screen .home-mode-btn:hover .home-mode-btn-arrow,.home-screen .home-mode-btn:focus-visible .home-mode-btn-arrow{transform:translate(3px)}.home-screen[data-home-loading-shell=true] .home-loading-city-rail,.home-screen[data-home-loading-shell=true] .home-loading-city-label{cursor:default;pointer-events:none}.home-screen[data-home-loading-shell=true] .home-loading-mode-placeholder{background:color-mix(in srgb,var(--st-surface) 78%,var(--st-map-land));border-color:color-mix(in srgb,var(--st-border) 78%,transparent);box-shadow:none;cursor:default;pointer-events:none}.home-screen[data-home-loading-shell=true] .home-loading-settings-placeholder{width:132px;height:40px;box-sizing:border-box;border:1px solid color-mix(in srgb,var(--st-border) 78%,transparent);border-radius:6px;background:color-mix(in srgb,var(--st-surface) 78%,var(--st-map-land));cursor:default;pointer-events:none}.home-screen--selecting .home-action-dock{visibility:hidden;pointer-events:none}.home-screen .home-city-tab:focus-visible,.home-screen .home-segment:focus-visible,.home-screen .home-mode-btn:focus-visible{outline:3px solid var(--st-focus);outline-offset:2px}.home-screen .home-public-actions{display:flex;justify-content:center;gap:4px;margin-top:6px}.home-screen .home-public-actions button,.home-screen .home-public-actions a{min-height:32px;padding:0 10px;border:0;border-right:1px solid color-mix(in srgb,var(--st-muted) 32%,transparent);background:transparent;color:var(--st-muted);font:inherit;font-size:12px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;box-sizing:border-box}.home-screen .home-public-actions button:last-child,.home-screen .home-public-actions a:last-child{border-right:0}.home-screen .home-public-actions button:hover,.home-screen .home-public-actions button:focus-visible,.home-screen .home-public-actions a:hover,.home-screen .home-public-actions a:focus-visible{color:var(--st-ink)}.home-network-fallback{color:var(--st-muted);font-size:14px;padding:1rem}.metro-scene{background:transparent}.map-attribution,a.map-attribution[data-map-attribution=osm]{position:absolute;right:12px;bottom:12px;z-index:25;display:inline-block;max-width:min(240px,calc(100vw - 24px));margin:0;padding:4px 8px;box-sizing:border-box;border-radius:4px;border:1px solid color-mix(in srgb,var(--st-border, #d7dde2) 85%,transparent);background:color-mix(in srgb,var(--st-surface, #ffffff) 92%,transparent);color:var(--st-muted, #66727f);font-family:var(--game-font-display, system-ui, sans-serif);font-size:11px;line-height:16px;font-weight:600;letter-spacing:0;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:auto;cursor:pointer;opacity:1;visibility:visible}.map-attribution:hover,a.map-attribution[data-map-attribution=osm]:hover{color:var(--st-ink, #17212b);text-decoration:underline}.map-attribution:focus-visible,a.map-attribution[data-map-attribution=osm]:focus-visible{outline:3px solid var(--st-focus, #005fcc);outline-offset:2px;color:var(--st-ink, #17212b)}@media(max-width:900px){.map-attribution,a.map-attribution[data-map-attribution=osm]{right:10px;bottom:242px;max-width:min(200px,calc(100vw - 20px));font-size:10px;line-height:14px;padding:3px 6px}}html[data-display-theme=dark] .map-attribution,html[data-display-theme=dark] a.map-attribution[data-map-attribution=osm]{border-color:color-mix(in srgb,var(--st-border, #29404f) 90%,transparent);background:color-mix(in srgb,var(--st-surface, #142331) 92%,transparent);color:var(--st-muted, #93a4b0)}.metro-scene .scene-land{fill:var(--st-map-land, #e9ece9);stroke:none}.metro-scene .scene-water{fill:var(--st-map-water, #dceef2);stroke:none}.metro-scene .scene-line--inactive .scene-line-stroke{stroke:var(--st-map-inactive, #b9c4cc);stroke-width:2;stroke-opacity:.8}.metro-scene .scene-line--completed .scene-line-stroke{stroke-width:4;stroke-opacity:1}.metro-scene .scene-line--active .scene-line-stroke{stroke-width:5;stroke-opacity:1}.metro-scene[data-camera-mode=gameplay] .scene-line--inactive .scene-line-stroke{stroke-width:1.2;stroke-opacity:.38}.metro-scene[data-camera-mode=gameplay] .scene-line--completed .scene-line-stroke{stroke-width:3.4;stroke-opacity:.92}.metro-scene[data-camera-mode=gameplay] .scene-line--active .scene-line-stroke{stroke-width:4;stroke-opacity:1}.metro-scene[data-camera-mode=gameplay] .scene-line--active .scene-line-halo{stroke-width:7}.metro-scene .scene-station--ordinary{fill:var(--st-surface, #ffffff);stroke:var(--st-ink, #17212b);stroke-width:1}.metro-scene .scene-station-halo{fill:var(--st-surface, #ffffff);stroke:var(--st-ink, #17212b);stroke-width:1.5}.metro-scene .scene-station-core{fill:var(--st-ink, #17212b);stroke:none}.metro-scene .scene-label{fill:var(--st-ink, #17212b);font-size:11px;font-weight:650;paint-order:stroke;stroke:var(--st-canvas, #f7f8f6);stroke-width:2px;stroke-linejoin:round;pointer-events:none;-webkit-user-select:none;user-select:none}.home-screen .metro-scene .scene-labels,.home-screen .metro-scene .scene-label,.home-network .metro-scene .scene-labels,.home-network .metro-scene .scene-label,.metro-scene.metro-scene--home-unlabeled .scene-labels,.metro-scene.metro-scene--home-unlabeled .scene-label,.metro-scene[data-home-labels=hidden] .scene-labels,.metro-scene[data-home-labels=hidden] .scene-label{display:none!important}.metro-scene .scene-label--current,.metro-scene .scene-label--next{font-size:12px;font-weight:700}.metro-scene .scene-label--suppressed,.metro-scene .scene-label[data-label-suppressed=true]{display:none}.metro-scene .scene-station--current{fill:var(--st-surface, #ffffff);stroke:var(--st-ink, #17212b);stroke-width:1.5}.metro-scene .scene-station--next{fill:var(--st-surface, #ffffff);stroke:var(--st-accent, #007f8b);stroke-width:1.25}.metro-scene .scene-train-layer{pointer-events:none}.metro-scene.metro-scene--confirming .scene-line--active .scene-line-stroke{stroke-width:5.5;stroke-opacity:1}.metro-scene.metro-scene--travelling .scene-line--active .scene-line-stroke,.metro-scene.metro-scene--arriving .scene-line--active .scene-line-stroke{stroke-width:6;stroke-opacity:1}.metro-scene.metro-scene--arriving .scene-station--current,.metro-scene.metro-scene--arriving .scene-station--current .scene-station-halo{stroke:var(--st-accent, #007f8b);stroke-width:2}.metro-scene .scene-arrival-layer,.metro-scene .scene-arrival-ripple-layer{pointer-events:none}@keyframes map-arrival-ripple{0%{opacity:.72;transform:scale(.8)}to{opacity:0;transform:scale(5.2)}}.metro-scene .map-arrival-ripple{transform-box:fill-box;transform-origin:50% 50%;animation:.46s cubic-bezier(.16,1,.3,1) forwards map-arrival-ripple}.metro-scene .train-heading,.metro-scene .map-screen-label{pointer-events:none}.metro-scene .map-screen-label-bg{fill:var(--st-surface, #ffffff);stroke:var(--st-accent, #007f8b);stroke-width:1}.metro-scene .map-screen-label-text{fill:var(--st-accent, #007f8b);font-family:var(--game-font-display, "Noto Sans SC", sans-serif);font-size:11px;font-weight:650;letter-spacing:.01em}.metro-scene .map-screen-label-tick{fill:var(--st-surface, #ffffff);stroke:var(--st-accent, #007f8b);stroke-width:1;stroke-linejoin:round}.metro-scene .scene-arrival-ring{vector-effect:non-scaling-stroke}.metro-scene .scene-arrival-layer--confirming .scene-arrival-ring{opacity:.55}.metro-scene .scene-arrival-layer--arriving .scene-arrival-ring{opacity:.95}.metro-scene.metro-scene--motion-reduced .scene-arrival-layer,.metro-scene .scene-arrival-layer--reduced{animation:none}.metro-scene.metro-scene--motion-reduced .scene-arrival-ring,.metro-scene.metro-scene--motion-reduced .scene-arrival-core,.metro-scene .scene-arrival-layer--reduced .scene-arrival-ring,.metro-scene .scene-arrival-layer--reduced .scene-arrival-core{transform:none}@media(prefers-reduced-motion:reduce){.home-screen .home-mode-btn,.home-screen .home-mode-btn-arrow{transition:none}.home-screen .home-mode-btn:hover .home-mode-btn-arrow,.home-screen .home-mode-btn:focus-visible .home-mode-btn-arrow{transform:none}.metro-scene .scene-arrival-ring,.metro-scene .scene-arrival-core,.metro-scene .game-train-marker,.metro-scene .map-arrival-ripple{transform:none!important;animation:none!important;transition:opacity .12s linear}.metro-scene.metro-scene--arriving .scene-arrival-ring{opacity:1}}html[data-display-theme=dark] .metro-scene .scene-label{stroke:var(--st-canvas, #0d1822)}html[data-display-theme=dark] .metro-scene .map-screen-label-bg,html[data-display-theme=dark] .metro-scene .map-screen-label-tick{fill:var(--st-surface, #142331)}@media(max-width:900px){.home-screen{min-height:100svh;height:100svh;overflow:hidden}.home-screen .home-header-cluster{top:16px;left:14px;width:calc(100% - 28px);gap:12px}.home-screen .home-city-rail{height:auto;min-height:38px;overflow:visible}.home-screen .home-city-tabs{flex-wrap:wrap;overflow:visible}.home-screen .home-city-tab{min-height:32px;padding:.25rem .65rem;font-size:13px}.home-screen .home-identity{max-width:none;min-height:0;height:auto;max-height:none;padding:0 2px;overflow:visible;pointer-events:auto}.home-screen .home-identity h1{font-size:34px;line-height:38px}.home-screen .home-identity .lede{font-size:13px;line-height:18px}.home-screen .home-identity .meta{margin-top:.2rem;font-size:11px;line-height:16px}.home-screen .home-network{min-height:0;height:100%;max-height:none;width:100%;padding:0}.home-screen .home-action-dock{bottom:max(12px,env(safe-area-inset-bottom,12px));width:calc(100% - 16px);max-width:none;max-height:none;overflow:visible;padding:0;gap:8px}.home-screen .home-controls-settings{min-height:0;flex-wrap:nowrap}.home-screen .home-control-label{display:none}.home-screen .home-segment{min-height:34px;padding:0 9px;font-size:12px}.home-screen .home-shuangpin-scheme select{height:36px;min-height:36px;font-size:12px}.home-screen .home-action-dock[data-mode-count] .home-mode-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.home-screen .home-action-dock[data-mode-count="3"] .home-mode-btn--pk{grid-column:1 / -1}.home-screen .home-mode-btn-sub{font-size:10px;line-height:14px}.metro-scene .scene-line--inactive .scene-line-stroke{stroke-width:1.5;stroke-opacity:.75}.metro-scene .scene-line--completed .scene-line-stroke{stroke-width:3}.metro-scene .scene-line--active .scene-line-stroke{stroke-width:4}.metro-scene .scene-label--optional{display:none}}@media(max-width:360px){.home-screen .home-segment{min-width:36px;padding-inline:6px}.home-screen .home-shuangpin-scheme select{width:90px}}@media(max-width:520px){.metro-scene .scene-label--optional{display:none}}.public-route-shell{box-sizing:border-box;width:min(100%,1080px);min-height:100dvh;margin:0 auto;padding:max(18px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom));color:#172033;background:#f7f8fa}.public-route-shell *{box-sizing:border-box}.public-route-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding-bottom:18px;border-bottom:1px solid #d8dde6}.public-route-header h1,.public-line h2{margin:0;letter-spacing:0}.public-route-header h1{font-size:24px}.public-line h2{font-size:17px}.public-eyebrow,.public-line p{margin:0;color:#667085;letter-spacing:0}.public-eyebrow{font-size:12px;text-transform:uppercase}.public-route-count{font-variant-numeric:tabular-nums;color:#475467}.public-back,.public-primary{min-height:40px;border-radius:6px;padding:0 14px;font:inherit;cursor:pointer}.public-back{border:1px solid #cdd3dd;background:#fff;color:#344054}.public-primary{border:1px solid #087f5b;background:#087f5b;color:#fff}.public-primary:disabled{cursor:wait;opacity:.6}.public-line-list{display:grid;min-width:0;gap:12px;padding:16px 0}.public-line{min-width:0;border-bottom:1px solid #d8dde6;padding:0 0 16px}.public-line-heading{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:12px}.public-line-swatch{width:8px;height:40px;border-radius:4px}.public-line p{font-size:13px}.public-station-list{display:flex;gap:0;margin:14px 0 0 20px;padding:0;max-width:calc(100% - 20px);overflow-x:auto;list-style:none}.public-station-list li{position:relative;flex:0 0 auto;min-width:88px;padding:18px 8px 0 0;font-size:13px;white-space:nowrap}.public-station-list li:before{content:"";position:absolute;top:6px;left:4px;width:100%;border-top:2px solid #b8c0cc}.public-station-list li:last-child:before{width:0}.public-station-dot{position:absolute;top:1px;left:0;width:12px;height:12px;border:3px solid;border-radius:50%;background:#fff}.public-empty{padding:48px 0;color:#667085;text-align:center}[data-pk-state=idle] .public-line{display:grid;gap:10px}[data-pk-state=idle] label{display:grid;gap:5px;max-width:240px;color:#475467;font-size:12px}[data-pk-state=idle] input{width:100%;min-height:40px;border:1px solid #cdd3dd;border-radius:6px;padding:0 10px;color:#172033;background:#fff;font:inherit;letter-spacing:0}[data-pk-state=idle] .public-primary{justify-self:start}.leaderboard-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:16px 0}.leaderboard-filters label{display:grid;gap:5px;min-width:0;color:#475467;font-size:12px}.leaderboard-filters select{width:100%;min-height:40px;border:1px solid #cdd3dd;border-radius:6px;padding:0 10px;color:#172033;background:#fff;font:inherit}.leaderboard-status{margin:0;padding:48px 12px;color:#667085;text-align:center}.leaderboard-error{color:#b42318}.leaderboard-table-wrap{overflow-x:auto}.leaderboard-table{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}.leaderboard-table th,.leaderboard-table td{padding:12px 10px;border-bottom:1px solid #d8dde6;text-align:right}.leaderboard-table th:nth-child(2),.leaderboard-table td:nth-child(2){text-align:left}.leaderboard-table thead th{color:#667085;font-size:12px}.leaderboard-table tbody th{overflow-wrap:anywhere}@media(max-width:560px){.public-route-shell{padding-inline:12px}.public-route-header{gap:10px}.public-route-header h1{font-size:19px}.public-route-count{display:none}.public-line-heading{grid-template-columns:6px minmax(0,1fr)}.public-line-heading .public-primary{grid-column:2;justify-self:start}.leaderboard-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.leaderboard-filters label:last-child{grid-column:1 / -1}.leaderboard-table-wrap{overflow:visible}.leaderboard-table,.leaderboard-table tbody{display:grid;gap:8px}.leaderboard-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.leaderboard-table tr{display:grid;grid-template-columns:44px minmax(0,1fr) repeat(2,minmax(50px,auto));gap:4px 8px;padding:10px 0;border-bottom:1px solid #d8dde6}.leaderboard-table th,.leaderboard-table td{padding:0;border:0}.leaderboard-table tr>:nth-child(2){grid-column:2 / -1}.leaderboard-table tr>:nth-child(n+3){font-size:12px}.leaderboard-table td:before{content:attr(data-label) " ";color:#667085}}.route-selection-overlay{--rs-surface: var(--st-surface, #ffffff);--rs-ink: var(--st-ink, #17212b);--rs-muted: var(--st-muted, #66727f);--rs-border: var(--st-border, #d7dde2);--rs-canvas: var(--st-canvas, #f7f8f6);--rs-focus: var(--st-focus, #005fcc);--rs-accent: var(--st-accent, #007f8b);position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:12px 10px max(12px,env(safe-area-inset-bottom));background:color-mix(in srgb,#0d1822 45%,transparent);box-sizing:border-box}html[data-display-theme=dark] .route-selection-overlay{--rs-surface: #142331;--rs-ink: #edf3f5;--rs-muted: #93a4b0;--rs-border: #29404f;--rs-canvas: #0d1822;--rs-focus: #4d9fff;--rs-accent: #2aa4b0}.route-selection-surface{width:min(560px,calc(100% - 20px));max-height:min(860px,calc(100dvh - 24px));overflow:auto;background:var(--rs-surface);color:var(--rs-ink);border:1px solid var(--rs-border);border-radius:8px;box-shadow:0 16px 48px #00000047;display:flex;flex-direction:column;box-sizing:border-box}.route-selection-header{height:60px;min-height:60px;display:grid;grid-template-columns:72px 1fr 72px;align-items:center;padding:0 12px;border-bottom:1px solid var(--rs-border);box-sizing:border-box}.route-selection-title{margin:0;text-align:center;font-size:1.05rem;font-weight:700}.route-selection-back{justify-self:start;min-height:40px;padding:.4rem .65rem;border-radius:6px;border:1px solid var(--rs-border);background:transparent;color:var(--rs-ink);cursor:pointer}.route-selection-header-spacer{width:1px;height:1px}.route-selection-explain{max-height:112px;overflow:hidden;padding:10px 16px 4px;color:var(--rs-muted);font-size:.9rem}.route-selection-explain p{margin:0}.route-selection-mode-tabs{height:48px;min-height:48px;margin:8px 16px 12px;display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--rs-border);border-radius:8px;overflow:hidden;box-sizing:border-box}.route-selection-mode-tab{border:none;background:transparent;color:var(--rs-muted);cursor:pointer;font:inherit}.route-selection-mode-tab.is-selected{background:color-mix(in srgb,var(--rs-accent) 16%,var(--rs-surface));color:var(--rs-ink);font-weight:600}.route-selection-mode-tab:disabled{opacity:.55;cursor:not-allowed}.route-selection-search{display:flex;flex-direction:column;gap:10px;padding:0 16px 16px;min-height:0;box-sizing:border-box}.route-selection-search-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.route-selection-search-input{min-height:44px;width:100%;box-sizing:border-box;padding:.55rem .75rem;border-radius:8px;border:1px solid var(--rs-border);background:var(--rs-canvas);color:var(--rs-ink);font:inherit}.route-selection-search-input:focus-visible{outline:3px solid var(--rs-focus);outline-offset:2px}.route-selection-search-results{display:flex;flex-direction:column;gap:8px;max-height:min(420px,50dvh);overflow:auto;min-height:72px}.route-selection-search-prompt,.route-selection-search-empty{margin:0;padding:16px 8px;text-align:center;color:var(--rs-muted);font-size:.92rem}.route-selection-search-result{min-height:72px;display:flex;gap:10px;align-items:flex-start;text-align:left;padding:10px 12px;border-radius:8px;border:1px solid var(--rs-border);background:var(--rs-canvas);color:var(--rs-ink);cursor:pointer;box-sizing:border-box}.route-selection-search-result:focus-visible{outline:3px solid var(--rs-focus);outline-offset:2px}.route-selection-search-result-body{display:flex;flex-direction:column;gap:2px;min-width:0}.route-selection-search-result-name{font-size:.98rem}.route-selection-search-result-meta,.route-selection-search-result-line{font-size:.8rem;color:var(--rs-muted)}.route-selection-search-result-line{font-weight:600;color:var(--rs-ink)}.route-selection-line-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 16px 16px;box-sizing:border-box}.route-selection-line-card{min-height:84px;display:flex;gap:10px;align-items:flex-start;text-align:left;padding:10px 12px;border-radius:8px;border:1px solid var(--rs-border);background:var(--rs-canvas);color:var(--rs-ink);cursor:pointer;box-sizing:border-box}.route-selection-line-card.is-disabled,.route-selection-line-card:disabled{opacity:.72;cursor:not-allowed}.route-selection-line-card.is-selected{border-color:var(--rs-accent);box-shadow:inset 0 0 0 1px var(--rs-accent)}.route-selection-line-token{width:28px;min-width:28px;height:28px;border-radius:999px;box-shadow:inset 0 0 0 1px #0000001f;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:11px;font-weight:800;line-height:1;letter-spacing:-.02em}.route-selection-line-token--inline{display:inline-block;vertical-align:middle;margin-right:8px}.route-selection-line-body{display:flex;flex-direction:column;gap:2px;min-width:0}.route-selection-line-name{font-size:.98rem}.route-selection-line-endpoints,.route-selection-line-count,.route-selection-line-reason{font-size:.8rem;color:var(--rs-muted)}.route-selection-line-reason{color:color-mix(in srgb,#b45309 80%,var(--rs-muted))}.route-selection-direction{padding:0 16px 16px;display:flex;flex-direction:column;gap:12px}.route-selection-direction-line{margin:0;font-weight:600}.route-selection-direction-grid{display:grid;grid-template-columns:1fr;gap:10px}.route-selection-direction-card{min-height:72px;display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;padding:12px 14px;border-radius:8px;border:1px solid var(--rs-border);background:var(--rs-canvas);color:var(--rs-ink);cursor:pointer}.route-selection-direction-card.is-selected{outline:2px solid var(--rs-accent);outline-offset:1px}.route-selection-direction-meta{font-size:.85rem;color:var(--rs-muted)}.route-selection-start{min-height:48px;border-radius:6px;border:1px solid transparent;border-bottom-width:2px;border-bottom-color:color-mix(in srgb,var(--rs-ink) 35%,transparent);background:var(--rs-accent);color:#fff;font-weight:700;cursor:pointer}.route-selection-start:disabled,.route-selection-start[aria-disabled=true]{opacity:.45;cursor:not-allowed}.route-selection-back:focus-visible,.route-selection-line-card:focus-visible,.route-selection-direction-card:focus-visible,.route-selection-start:focus-visible,.route-selection-mode-tab:focus-visible{outline:3px solid var(--rs-focus);outline-offset:2px}@media(max-width:680px){.route-selection-line-grid{grid-template-columns:1fr}}.game-screen,section.panel.game.game-screen{--st-canvas: #f7f8f6;--st-surface: #ffffff;--st-ink: #17212b;--st-muted: #66727f;--st-border: #d7dde2;--st-map-land: #e9ece9;--st-map-water: #dceef2;--st-map-inactive: #b9c4cc;--st-focus: #005fcc;--st-accent: #007f8b;--st-success: #16875d;--st-danger: #c84040;--game-line-color: var(--st-accent);--game-font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;--game-font-latin: Inter, "Noto Sans SC", sans-serif;--game-font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", monospace;position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100dvh;max-height:100dvh;max-width:none;margin:0;padding:0;box-sizing:border-box;background:var(--st-canvas);color:var(--st-ink);font-family:var(--game-font-display);overflow:hidden;z-index:1;border:none;border-radius:0;box-shadow:none}html[data-display-theme=dark] .game-screen{--st-canvas: #0d1822;--st-surface: #142331;--st-ink: #edf3f5;--st-muted: #93a4b0;--st-border: #29404f;--st-map-land: #1a2834;--st-map-water: #152832;--st-map-inactive: #3d5361;--st-focus: #4d9fff;--st-accent: #2aa4b0}.game-screen .game-map{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;padding:116px 0 214px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:hidden;pointer-events:none;background:var(--st-canvas)}.game-screen .game-map .metro-scene{width:100%;height:100%;display:block;max-width:100%;max-height:100%;pointer-events:none}.game-screen .game-map .metro-map{width:100%;height:100%;min-height:0;display:block;border:0;border-radius:0;background:var(--st-canvas)}.game-screen .game-exit{position:absolute;top:8px;left:12px;z-index:40;min-height:40px;min-width:44px;padding:.4rem .85rem;border-radius:6px;border:1px solid var(--st-border);background:var(--st-surface);color:var(--st-ink);font-weight:650;font-size:14px;line-height:20px;cursor:pointer;font-family:var(--game-font-display)}.game-screen .game-exit:focus-visible{outline:3px solid var(--st-focus);outline-offset:2px}.game-screen .station-sign{position:absolute;top:12px;left:50%;transform:translate(-50%);z-index:30;width:min(560px,44vw);height:104px;min-height:104px;max-height:104px;box-sizing:border-box;padding:8px 14px 10px;border:1px solid var(--st-border);border-radius:8px;background:var(--st-surface);display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr auto;column-gap:10px;row-gap:2px;align-content:center;overflow:hidden;box-shadow:0 1px color-mix(in srgb,var(--st-ink) 6%,transparent)}.game-screen .station-sign-line{grid-column:1;grid-row:1;display:inline-flex;align-items:center;gap:8px;min-width:0}.game-screen .station-sign-swatch{flex:0 0 auto;width:10px;height:10px;border-radius:2px;background:var(--game-line-color, var(--st-accent));border:1px solid var(--st-ink)}.game-screen .station-sign-line-name{font-size:12px;line-height:18px;font-weight:650;color:var(--st-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-screen .station-sign-current{grid-column:1;grid-row:2;margin:0;min-width:0;font-size:40px;line-height:48px;font-weight:750;color:var(--st-ink);letter-spacing:0;max-height:48px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.game-screen .station-sign-next{grid-column:1;grid-row:3;margin:0;min-width:0;font-size:12px;line-height:18px;font-weight:650;color:var(--st-muted);display:flex;gap:6px;align-items:baseline;overflow:hidden}.game-screen .station-sign-next-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--st-ink);font-weight:650}.game-screen .station-sign-progress{grid-column:2;grid-row:1 / span 3;margin:0;align-self:center;justify-self:end;font-family:var(--game-font-mono);font-variant-numeric:tabular-nums;font-size:16px;line-height:24px;font-weight:600;color:var(--st-muted);white-space:nowrap}.game-screen .game-hud{position:absolute;bottom:204px;left:50%;transform:translate(-50%);z-index:30;width:360px;height:48px;min-height:48px;max-height:48px;box-sizing:border-box;padding:0 14px;border:1px solid var(--st-border);border-radius:8px;background:var(--st-surface);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:6px;font-family:var(--game-font-mono);font-variant-numeric:tabular-nums;font-size:16px;line-height:24px;font-weight:600;color:var(--st-ink);overflow:hidden}.game-screen .game-hud-metric{display:inline-flex;align-items:baseline;gap:4px;min-width:0;flex:1 1 0;justify-content:center;white-space:nowrap}.game-screen .game-hud-metric:first-child{justify-content:flex-start}.game-screen .game-hud-metric:last-child{justify-content:flex-end}.game-screen .game-hud-unit{font-size:12px;line-height:18px;font-weight:650;color:var(--st-muted);font-family:var(--game-font-display)}.game-screen .typing-deck{position:absolute;bottom:18px;left:50%;transform:translate(-50%);z-index:30;width:min(560px,calc(100% - 32px));height:164px;min-height:164px;max-height:164px;box-sizing:border-box;padding:14px 18px 16px;border:1px solid var(--st-border);border-radius:8px;background:var(--st-surface);display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:6px;overflow:hidden;text-align:center;margin:0}.game-screen .typing-deck-route{margin:0;font-size:12px;line-height:18px;font-weight:650;color:var(--st-muted)}.game-screen .typing-deck-target{position:relative;outline:none;border-radius:6px;padding:4px}.game-screen .typing-deck-target:focus-visible{outline:3px solid var(--st-focus);outline-offset:2px}.game-screen .typing-deck-target:not([aria-disabled=true]):focus-within{outline:3px solid var(--st-focus);outline-offset:2px}.game-screen .typing-deck-feedback{width:100%}@keyframes typing-miss-shake{0%,to{transform:translate(0)}25%{transform:translate(-3px)}75%{transform:translate(3px)}}.game-screen .typing-deck-feedback--miss,.game-screen .typing-pending--miss{animation:typing-miss-shake .3s ease-in-out}.game-screen .typing-pending--miss{display:inline-block;color:#ef4444}.game-screen .typing-deck-stations{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:8px;width:100%}.game-screen .typing-deck-neighbor{font-size:13px;line-height:18px;font-weight:650;color:var(--st-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:18px}.game-screen .typing-deck-neighbor--prev{text-align:left}.game-screen .typing-deck-neighbor--next{text-align:right}.game-screen .typing-deck .station-name{margin:0;font-size:40px;line-height:48px;font-weight:750;letter-spacing:0;color:var(--st-ink);max-height:48px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.game-screen .typing-deck .pinyin-track{margin:4px 0 0;font-family:var(--game-font-mono);font-size:16px;line-height:24px;font-weight:600;letter-spacing:0;white-space:pre}.game-screen .typing-deck .pinyin-track .typed{color:var(--st-ink);font-weight:700}.game-screen .typing-deck .pinyin-track .rest{color:#c2c2c2}html[data-display-theme=dark] .game-screen .typing-deck .pinyin-track .rest{color:#8b969e}.game-screen .typing-deck .pinyin-track .typing-caret{display:inline-block;box-sizing:border-box;width:2px;min-width:2px;max-width:2px;height:1em;min-height:14px;max-height:24px;margin:0 1px;padding:0;vertical-align:-.12em;border-radius:1px;background:var(--st-accent);letter-spacing:0;flex-shrink:0;opacity:0;pointer-events:none}.game-screen .typing-deck .pinyin-track .typing-caret.typing-caret--active,.game-screen .typing-deck .pinyin-track .typing-caret[data-caret-active=true]{opacity:1;animation:typing-caret-blink 1.05s step-end infinite}.game-screen .typing-deck .pinyin-track .typing-caret.typing-caret--inactive,.game-screen .typing-deck .pinyin-track .typing-caret[data-caret-active=false]{opacity:0;animation:none}@keyframes typing-caret-blink{0%,to{opacity:1}50%{opacity:0}}@media(prefers-reduced-motion:reduce){.game-screen .typing-deck .pinyin-track .typing-caret.typing-caret--active,.game-screen .typing-deck .pinyin-track .typing-caret[data-caret-active=true]{animation:none;opacity:1}}.game-screen .typing-deck-ime{display:inline-block;margin-top:4px;font-size:12px;line-height:18px;font-weight:650;color:var(--st-muted);text-transform:none}.game-screen .typing-deck .hanzi-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;display:block;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;outline:0;-moz-appearance:none;appearance:none;-webkit-appearance:none;background:transparent;background-clip:text;-webkit-background-clip:text;box-shadow:none;color:transparent;caret-color:transparent;-webkit-text-fill-color:transparent;box-sizing:border-box;opacity:1;cursor:text;transition:background-color 9999s ease-out 0s}.game-screen .typing-deck .hanzi-input:focus-visible{outline:0}.game-screen .typing-deck .hanzi-input::selection{color:transparent;background:transparent}.game-screen .typing-deck .hanzi-input:-webkit-autofill,.game-screen .typing-deck .hanzi-input:-webkit-autofill:hover,.game-screen .typing-deck .hanzi-input:-webkit-autofill:focus{box-shadow:0 0 0 1000px transparent inset!important;-webkit-text-fill-color:transparent!important}.game-screen .countdown{font-size:40px;line-height:48px;font-weight:800;text-align:center;color:var(--st-accent);margin:0;padding:0}.game-screen .session-gate{position:absolute;left:50%;bottom:200px;transform:translate(-50%);z-index:35;width:min(360px,calc(100% - 32px));max-width:calc(100vw - 32px);box-sizing:border-box;pointer-events:auto;display:flex;justify-content:center;align-items:stretch}.game-screen .session-gate-card{width:100%;box-sizing:border-box;padding:16px 18px 18px;border:1px solid var(--st-border);border-radius:8px;background:color-mix(in srgb,var(--st-surface) 94%,transparent);box-shadow:0 2px 12px color-mix(in srgb,var(--st-ink) 12%,transparent);display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.game-screen .session-gate-route{margin:0;font-size:13px;line-height:18px;color:var(--st-muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-screen .session-gate-title{margin:0;font-size:20px;line-height:28px;font-weight:700;color:var(--st-ink)}.game-screen .session-gate-hint{margin:0;font-size:13px;line-height:18px;color:var(--st-muted)}.game-screen .session-gate-start{margin-top:4px;min-height:44px;min-width:120px;padding:.55rem 1.4rem;border-radius:8px;border:1px solid var(--st-accent);background:var(--st-accent);color:#fff;font-weight:700;font-size:16px;line-height:22px;font-family:var(--game-font-display);cursor:pointer}.game-screen .session-gate-start:focus-visible{outline:3px solid var(--st-focus);outline-offset:2px}@media(max-width:420px){.game-screen .session-gate{bottom:196px;width:min(320px,calc(100% - 24px))}.game-screen .session-gate-card{padding:14px 14px 16px}.game-screen .session-gate-title{font-size:18px;line-height:24px}}@media(max-width:900px){.game-screen[data-session-gate=open] .map-attribution,.game-screen[data-session-gate=open] a.map-attribution[data-map-attribution=osm]{bottom:372px}}.game-screen .game-unavailable{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:72px 24px 24px;box-sizing:border-box;text-align:center;background:var(--st-canvas);color:var(--st-ink)}.game-screen .game-unavailable-title{margin:0;font-size:24px;line-height:32px;font-weight:700}.game-screen .game-unavailable-body{margin:0;max-width:28rem;font-size:14px;line-height:22px;color:var(--st-muted)}.game-screen .game-unavailable-metrics{display:flex;gap:12px;font-variant-numeric:tabular-nums;font-family:var(--game-font-mono);font-size:16px;line-height:24px}.game-screen .game-top-strong{font-weight:650}.game-screen .game-top-muted{color:var(--st-muted)}.game-screen .game-top-compat{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;top:0;left:0;pointer-events:none;opacity:0}@media(max-width:1440px){.game-screen .station-sign-current{font-size:clamp(24px,2.6vw,40px);line-height:1.15;max-height:48px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}@media(max-width:900px){.game-screen .game-map{padding:92px 0 220px}.game-screen .game-exit{top:6px;left:10px;width:54px;min-height:44px;padding-inline:8px;font-size:13px}.game-screen .station-sign{top:10px;left:10px;right:10px;transform:none;width:auto;height:76px;min-height:76px;max-height:76px;padding:6px 10px 6px 64px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:20px 38px;column-gap:8px;row-gap:0}.game-screen .station-sign-current{grid-column:1;grid-row:2;font-size:30px;line-height:38px;max-height:38px;white-space:nowrap;display:block;text-overflow:ellipsis}.game-screen .station-sign-line{grid-column:1;grid-row:1}.game-screen .station-sign-next{grid-column:2;grid-row:2;align-self:center;justify-self:end;max-width:108px}.game-screen .station-sign-next-label{display:none}.game-screen .station-sign-next-name:before{content:"→ "}.game-screen .station-sign-progress{grid-column:2;grid-row:1;font-size:15px;line-height:20px;align-self:center}.game-screen .game-hud{bottom:188px;left:10px;right:10px;transform:none;width:auto;max-width:none;height:44px;min-height:44px;max-height:44px;font-size:15px;line-height:22px;gap:4px;padding-inline:8px}.game-screen .game-hud-unit{font-size:11px}.game-screen .typing-deck{bottom:10px;left:10px;right:10px;transform:none;width:auto;height:170px;min-height:170px;max-height:170px;padding:12px 12px 14px}.game-screen .typing-deck .station-name{font-size:32px;line-height:40px;max-height:40px}.game-screen .typing-deck .pinyin-track{font-size:15px;line-height:22px}}.metro-scene .game-train{pointer-events:none}@keyframes game-train-miss-shake{0%,to{transform:translate(0)}20%{transform:translate(-2.5px,1.5px)}40%{transform:translate(2.5px,-1.5px)}60%{transform:translate(-2px,-1px)}80%{transform:translate(2px,1px)}}.metro-scene .game-train--miss .game-train-body{fill:#ef4444!important}.metro-scene .game-train--miss .game-train-halo{fill:#ef4444!important;opacity:.34}.metro-scene .game-train--miss .game-train-body-group{animation:game-train-miss-shake .32s ease-in-out}.game-screen.game-screen--confirming .typing-deck .station-name,.game-screen.game-screen--confirming .typing-deck .pinyin-track .typed{color:var(--st-success)}.game-screen.game-screen--arriving .station-sign{border-color:color-mix(in srgb,var(--st-accent) 55%,var(--st-border));box-shadow:0 0 0 1px color-mix(in srgb,var(--st-accent) 28%,transparent)}.game-screen.game-screen--motion-reduced.game-screen--arriving .station-sign{box-shadow:none;outline:2px solid color-mix(in srgb,var(--st-accent) 70%,transparent);outline-offset:0}@media(prefers-reduced-motion:reduce){.game-screen .typing-deck-feedback--miss,.game-screen .typing-pending--miss,.metro-scene .game-train--miss .game-train-body-group{animation:none}.game-screen.game-screen--arriving .station-sign{box-shadow:none;outline:2px solid color-mix(in srgb,var(--st-accent) 70%,transparent);outline-offset:0;transition:outline-color .12s linear,border-color .12s linear}}.result-screen,section.panel.result.result-screen{--st-canvas: #f7f8f6;--st-surface: #ffffff;--st-ink: #17212b;--st-muted: #66727f;--st-border: #d7dde2;--st-focus: #005fcc;--st-accent: #007f8b;--st-publish: #e85520;--st-replay: #16875d;--st-home: #1e3a5f;--st-success: #16875d;--result-font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;--result-font-latin: Inter, "Noto Sans SC", sans-serif;--result-font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", monospace;position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:100%;height:100dvh;max-height:100dvh;margin:0;padding:16px 10px max(16px,env(safe-area-inset-bottom));box-sizing:border-box;overflow-x:hidden;overflow-y:auto;background:color-mix(in srgb,var(--st-canvas) 88%,#0d1822 12%);color:var(--st-ink);font-family:var(--result-font-display);letter-spacing:0;border:none;border-radius:0;box-shadow:none}html[data-display-theme=dark] .result-screen{--st-canvas: #0d1822;--st-surface: #142331;--st-ink: #edf3f5;--st-muted: #93a4b0;--st-border: #29404f;--st-focus: #4d9fff;--st-accent: #2aa4b0;--st-publish: #f07840;--st-replay: #3cb371;--st-home: #8aa4c4;--st-success: #3cb371;background:#0d1822}.result-sheet{width:min(520px,calc(100% - 20px));max-width:520px;margin:0 auto;box-sizing:border-box;background:var(--st-surface);color:var(--st-ink);border:2px solid var(--st-ink);border-radius:8px;box-shadow:6px 6px color-mix(in srgb,var(--st-ink) 18%,transparent);display:flex;flex-direction:column;flex-shrink:0;min-height:min-content;overflow:visible}.result-brand{margin:0;padding:12px 16px 0;font-size:13px;line-height:18px;font-weight:700;letter-spacing:.04em;color:var(--st-muted);text-transform:none}.result-route{flex-shrink:0;min-height:min-content;height:auto;padding:8px 16px 12px;box-sizing:border-box;border-bottom:1px solid var(--st-border);display:flex;flex-direction:column;gap:6px;overflow:visible}.result-route>*{flex-shrink:0;min-height:min-content}.result-route-identity{display:flex;align-items:center;gap:10px;min-height:32px;flex-wrap:wrap;flex-shrink:0}.result-line-swatch{width:14px;height:14px;border-radius:50%;border:2px solid var(--st-ink);flex-shrink:0;box-sizing:border-box}.result-route-name{margin:0;font-size:22px;line-height:30px;font-weight:700;letter-spacing:0}.result-mode-badge{margin-left:auto;padding:2px 10px;border-radius:999px;border:1px solid var(--st-border);background:color-mix(in srgb,var(--st-accent) 12%,transparent);color:var(--st-accent);font-size:12px;line-height:18px;font-weight:700;white-space:nowrap}.result-route-path{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:14px;line-height:22px;font-weight:450;color:var(--st-ink);letter-spacing:0}.result-route-arrow{color:var(--st-muted);font-family:var(--result-font-latin)}.result-completion{margin:2px 0 0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:14px;line-height:22px;flex-shrink:0;min-height:22px}.result-completion-value{font-family:var(--result-font-mono);font-size:15px;line-height:22px;font-weight:600;letter-spacing:0}.result-perfect{font-size:13px;line-height:20px;font-weight:700;color:var(--st-success)}.result-lit-badge{display:inline-flex;align-self:flex-start;margin:2px 0 0;padding:2px 10px;border-radius:999px;background:color-mix(in srgb,var(--st-success) 16%,transparent);color:var(--st-success);border:1px solid color-mix(in srgb,var(--st-success) 40%,transparent);font-size:12px;line-height:18px;font-weight:650;letter-spacing:0;flex-shrink:0;min-height:22px;box-sizing:border-box}.result-primary{flex-shrink:0;min-height:min-content;height:auto;padding:16px 16px 12px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;border-bottom:1px solid var(--st-border);background:color-mix(in srgb,var(--st-accent) 8%,var(--st-surface))}.result-primary-label{margin:0;font-size:13px;line-height:18px;font-weight:650;color:var(--st-muted);letter-spacing:0}.result-primary-score{margin:0;font-family:var(--result-font-latin);font-size:48px;line-height:56px;font-weight:800;letter-spacing:0;color:var(--st-ink);font-variant-numeric:tabular-nums}.result-primary-unit{font-size:20px;line-height:28px;font-weight:650;color:var(--st-muted)}.result-primary-sub{margin:4px 0 0;font-size:13px;line-height:18px;font-weight:500;color:var(--st-muted)}.result-rank{flex-shrink:0;padding:14px 16px 10px;text-align:center;border-bottom:1px solid var(--st-border)}.result-rank-tier{margin:0;font-size:13px;line-height:18px;font-weight:700;color:var(--st-accent);letter-spacing:.06em}.result-rank-title{margin:4px 0 0;font-size:28px;line-height:36px;font-weight:800;letter-spacing:0;color:var(--st-ink)}.result-rank-blurb{margin:6px 0 0;font-size:13px;line-height:20px;font-weight:450;color:var(--st-muted)}.result-score-block{flex-shrink:0;padding:12px 16px;text-align:center;border-bottom:1px solid var(--st-border);background:color-mix(in srgb,var(--st-success) 6%,var(--st-surface))}.result-score-label{margin:0;font-size:12px;line-height:18px;font-weight:700;color:var(--st-success)}.result-score-value{margin:2px 0 0;font-family:var(--result-font-latin);font-size:40px;line-height:48px;font-weight:800;color:var(--st-success);font-variant-numeric:tabular-nums}.result-score-next{margin:4px 0 0;font-size:12px;line-height:18px;font-weight:500;color:var(--st-muted)}.result-metrics{list-style:none;margin:0;padding:0;min-height:84px;height:auto;flex-shrink:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));box-sizing:border-box}.result-metric{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px 8px;box-sizing:border-box;text-align:center;border-right:1px solid var(--st-border);min-width:0}.result-metric:last-child{border-right:none}.result-metric strong{font-family:var(--result-font-mono);font-size:16px;line-height:24px;font-weight:600;letter-spacing:0;color:var(--st-ink);overflow-wrap:anywhere}.result-metric span{font-size:12px;line-height:18px;font-weight:650;color:var(--st-muted);letter-spacing:0}.result-formula{margin:0;padding:10px 16px 12px;font-size:12px;line-height:18px;font-weight:500;color:var(--st-muted);text-align:center;border-top:1px solid var(--st-border);flex-shrink:0}.result-arena-tabs{width:min(520px,calc(100% - 20px));max-width:520px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:0;box-sizing:border-box;border:1px solid var(--st-border);border-radius:8px;overflow:hidden;background:var(--st-surface);flex-shrink:0}.result-tab{min-height:44px;margin:0;padding:8px 12px;border:none;background:transparent;color:var(--st-muted);font-family:var(--result-font-display);font-size:14px;line-height:22px;font-weight:700;cursor:pointer;letter-spacing:0}.result-tab--active{background:color-mix(in srgb,var(--st-accent) 14%,var(--st-surface));color:var(--st-ink)}.result-tab:focus-visible{outline:3px solid var(--st-focus);outline-offset:-3px}.result-actions{width:min(520px,calc(100% - 20px));max-width:520px;margin:0 auto;display:flex;flex-direction:column;gap:10px;box-sizing:border-box;flex-shrink:0}.result-action-wrap{display:flex;flex-direction:column;gap:4px;min-width:0}.result-action{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:0 16px;box-sizing:border-box;border-radius:6px;font-family:var(--result-font-display);font-size:14px;line-height:22px;font-weight:700;letter-spacing:0;cursor:pointer;text-decoration:none;transition:background-color .12s ease,border-color .12s ease,filter .12s ease}.result-action--publish,.result-screen .result-action--publish.primary{background:var(--st-publish);color:#fff;border:none;border-bottom:2px solid color-mix(in srgb,var(--st-publish) 60%,#000);box-shadow:none}.result-action--replay{background:var(--st-replay);color:#fff;border:none;border-bottom:2px solid color-mix(in srgb,var(--st-replay) 60%,#000)}.result-action--home,.result-screen button.result-action--home.ghost{background:var(--st-home);color:#fff;border:none;border-bottom:2px solid color-mix(in srgb,var(--st-home) 60%,#000)}.result-action:hover:not(:disabled):not([aria-disabled=true]){filter:brightness(1.05)}.result-action:disabled,.result-action[aria-disabled=true],.result-screen button.result-action:disabled{opacity:.55;cursor:not-allowed;filter:none}.result-action:focus-visible{outline:3px solid var(--st-focus);outline-offset:2px}.result-action-reason{margin:0;font-size:12px;line-height:18px;font-weight:450;color:var(--st-muted);letter-spacing:0}.result-board-msg{width:min(520px,calc(100% - 20px));margin:0 auto;font-size:14px;line-height:22px;color:var(--st-muted);text-align:center}.result-footnote{width:min(520px,calc(100% - 20px));margin:0 auto 8px;font-size:12px;line-height:18px;color:var(--st-muted);text-align:center;letter-spacing:0;flex-shrink:0}@media(max-width:640px){.result-screen,section.panel.result.result-screen{padding:12px 10px max(12px,env(safe-area-inset-bottom));justify-content:flex-start;gap:8px}.result-sheet,.result-actions,.result-arena-tabs,.result-board-msg,.result-footnote{width:calc(100% - 20px);max-width:none}.result-route-name{font-size:20px;line-height:28px}.result-primary-score{font-size:40px;line-height:48px}.result-rank-title{font-size:24px;line-height:32px}.result-score-value{font-size:34px;line-height:42px}.result-action{min-height:48px}}@media(max-width:360px){.result-primary{padding:12px}.result-primary-score{font-size:36px;line-height:44px}.result-metrics{min-height:76px}}@media(prefers-reduced-motion:reduce){.result-action,.result-tab{transition:none}.result-sheet{box-shadow:3px 3px color-mix(in srgb,var(--st-ink) 14%,transparent)}}:root{color-scheme:dark;--bg: #07111f;--panel: #0f1b2d;--text: #e8eef8;--muted: #93a4bd;--line: #243247;--accent: #38bdf8;--ok: #34d399;font-family:Segoe UI,PingFang SC,Noto Sans SC,Microsoft YaHei,sans-serif;line-height:1.5;font-weight:400;color:var(--text);background:radial-gradient(1200px 600px at 10% -10%,#13233a,var(--bg))}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,select{font:inherit}.app-shell{max-width:960px;margin:0 auto;padding:1.25rem}.top-brand{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:1rem;letter-spacing:.04em;text-transform:uppercase;font-size:.85rem}.panel{background:color-mix(in srgb,var(--panel) 92%,black);border:1px solid var(--line);border-radius:18px;padding:1.25rem 1.35rem 1.5rem;box-shadow:0 20px 60px #00000059}.hero h1{margin:.15rem 0 .4rem;font-size:clamp(1.8rem,4vw,2.4rem)}.eyebrow{margin:0;color:var(--accent);letter-spacing:.12em;text-transform:uppercase;font-size:.75rem}.lede{margin:0;color:var(--muted);max-width:36rem}.meta,.muted,.hint,.footnote{color:var(--muted)}.line-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.75rem;margin:1.25rem 0}.line-card{display:flex;gap:.75rem;align-items:center;text-align:left;padding:.85rem .9rem;border-radius:12px;border:1px solid var(--line);background:#0b1627;color:inherit;cursor:pointer}.line-card small{display:block;color:var(--muted)}.line-card.active{outline:2px solid var(--accent)}.line-card.lit{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ok) 50%,transparent)}.swatch{width:12px;height:36px;border-radius:999px}.start-bar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end}.start-bar label{display:grid;gap:.35rem;color:var(--muted);font-size:.9rem}.start-bar select{min-width:220px;padding:.55rem .7rem;border-radius:10px;border:1px solid var(--line);background:#0b1627;color:var(--text)}.primary,.ghost{border-radius:10px;padding:.65rem 1rem;border:1px solid transparent;cursor:pointer}.primary{background:linear-gradient(180deg,#38bdf8,#0ea5e9);color:#042033;font-weight:700}.ghost{background:transparent;border-color:var(--line);color:var(--text)}.game-top{display:flex;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1rem}.stats{display:flex;gap:.75rem;font-variant-numeric:tabular-nums}.prompt{text-align:center;margin:1rem 0 1.25rem}.station-name{margin:0;font-size:clamp(2rem,6vw,3rem);font-weight:800;letter-spacing:.06em}.pinyin-track{margin:.5rem 0 0;font-family:ui-monospace,Space Mono,Menlo,monospace;font-size:1.25rem}.pinyin-track .typed{color:var(--ok)}.pinyin-track .rest{color:#64748b}.metro-map{width:100%;height:auto;min-height:220px;background:#08101c;border-radius:14px;border:1px solid var(--line)}.result-stats{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;padding:0;margin:1.25rem 0}.result-stats li{background:#0b1627;border:1px solid var(--line);border-radius:12px;padding:.85rem;text-align:center}.result-stats strong{display:block;font-size:1.4rem}.result-stats span{color:var(--muted);font-size:.85rem}.badge{display:inline-block;margin:.5rem 0 0;padding:.25rem .6rem;border-radius:999px;background:color-mix(in srgb,var(--ok) 20%,transparent);color:var(--ok);font-size:.85rem}.actions{display:flex;gap:.75rem;flex-wrap:wrap}.footnote{margin-top:1.25rem;font-size:.85rem}.controls-row{display:flex;flex-wrap:wrap;gap:.75rem;margin:1rem 0}.controls-row label{display:grid;gap:.35rem;color:var(--muted);font-size:.9rem}.controls-row select{min-width:140px;padding:.55rem .7rem;border-radius:10px;border:1px solid var(--line);background:#0b1627;color:var(--text)}.countdown{font-size:4rem;font-weight:800;text-align:center;padding:2rem;color:var(--accent)}.hanzi-input{margin-top:.75rem;width:min(320px,100%);padding:.65rem .8rem;border-radius:10px;border:1px solid var(--line);background:#0b1627;color:var(--text);font-size:1.1rem}a.ghost{display:inline-block;text-decoration:none;line-height:1.2}@media(max-width:640px){.result-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
