/* 標題字型：Michroma（寬體幾何，接近 QASHQAI 字標）、Montserrat（副標），皆為 OFL 開源字型 */
@font-face { font-family: "Michroma"; src: url(fonts/michroma.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #05080c; font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
::-webkit-scrollbar { display: none; }

.backdrop { position: fixed; inset: -40px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.1); opacity: .85; }

.frame { position: fixed; top: 0; bottom: 0; overflow: hidden; container-type: inline-size; box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
.stage { position: absolute; container-type: inline-size; }
.base { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.layer { position: absolute; inset: 0; }
.ui { position: absolute; inset: 0; container-type: inline-size; pointer-events: none; }
.ui > * { pointer-events: auto; }

/* 站點：可點的熱區＋目前位置脈衝 */
.stop { position: absolute; width: 9cqw; height: 9cqw; margin: -4.5cqw 0 0 -4.5cqw; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.stop.current::before, .stop.current::after { content: ""; position: absolute; inset: 2.2cqw; border-radius: 50%; border: .45cqw solid var(--accent); animation: pulse 1.8s ease-out infinite; }
.stop.current::after { animation-delay: .9s; }
.stop.done .check { display: grid; }
.check { display: none; position: absolute; right: .3cqw; top: .3cqw; width: 3cqw; height: 3cqw; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; text-shadow: 0 0 .4cqw rgba(0, 0, 0, .6); font-size: 2cqw; font-weight: 900; box-shadow: 0 0 1.5cqw var(--accent); }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

/* 設計圖上「— — —」的位置改填數值 */
.val { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); font-weight: 700; letter-spacing: .03em; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1; }
.val small { font-size: .55em; font-weight: 500; margin-left: .2em; opacity: .8; }

/* 變化版 8：底部玻璃數據列 */
.statbar { position: absolute; left: 3.5%; right: 3.5%; bottom: calc(2.5% + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.statbar > div { padding: 2.6cqw 3cqw; border-radius: 4cqw; background: rgba(10, 14, 20, .42); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1.5cqw 4cqw rgba(0, 0, 0, .35); }
.statbar span { display: block; font-family: "Montserrat", sans-serif; font-size: 2.2cqw; letter-spacing: .06em; white-space: nowrap; opacity: .75; }
.statbar b { display: block; margin-top: 1cqw; font-size: 5.2cqw; font-variant-numeric: tabular-nums; }
.statbar b small { font-size: .5em; font-weight: 500; margin-left: .2em; opacity: .8; }
.statbar i { display: block; height: .9cqw; margin-top: 1.4cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .18); overflow: hidden; }
.statbar i::before { content: ""; display: block; height: 100%; width: var(--p); background: var(--accent); box-shadow: 0 0 1.5cqw var(--accent); transition: width .6s; }

/* 變化版 9：底部站點時間軸 */
.timeline { position: absolute; left: 3.5%; right: 3.5%; bottom: calc(2.5% + env(safe-area-inset-bottom)); padding: 3.4cqw 4cqw 3.8cqw; border-radius: 5cqw; background: rgba(4, 18, 28, .5); border: 1px solid rgba(67, 240, 255, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #e8fbff; box-shadow: 0 0 5cqw rgba(67, 240, 255, .15); }
.timeline header { display: flex; font-family: "Montserrat", sans-serif; justify-content: space-between; font-size: 2.5cqw; letter-spacing: .16em; opacity: .85; }
.timeline ol { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 3.2cqw 0 0; padding: 0; list-style: none; }
.timeline ol::before, .timeline ol::after { content: ""; position: absolute; left: 12.5%; top: 1.3cqw; height: .5cqw; border-radius: 1cqw; }
.timeline ol::before { right: 12.5%; background: rgba(255, 255, 255, .2); }
.timeline ol::after { width: calc(75% * var(--p)); background: var(--accent); box-shadow: 0 0 1.5cqw var(--accent); transition: width .6s; }
.timeline li { position: relative; z-index: 1; text-align: center; font-size: 3cqw; }
.timeline li::before { content: ""; display: block; width: 3cqw; height: 3cqw; margin: 0 auto 1.6cqw; border-radius: 50%; background: #0a2a36; border: .5cqw solid rgba(255, 255, 255, .35); }
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.current::before { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 1cqw rgba(67, 240, 255, .25); }
.timeline li small { display: block; font-size: 2.2cqw; opacity: .65; margin-top: .6cqw; }

/* 示範按鈕 */
.demo { position: absolute; right: 12px; top: calc(6px + env(safe-area-inset-top)); z-index: 5; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px; backdrop-filter: blur(8px); cursor: pointer; opacity: .6; }
.embed .demo { display: none; }

/* 點站點跳出的資訊卡 */
.sheet { position: absolute; inset: 0; z-index: 10; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .25); }
.sheet[hidden] { display: none; }
.sheet-card { width: 100%; margin: 12px; overflow: hidden; border-radius: 22px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); animation: up .25s ease-out; }
.dark .sheet-card { background: rgba(12, 20, 28, .78); border-color: rgba(255, 255, 255, .18); color: #fff; }
.sheet-photo { height: 150px; background: linear-gradient(135deg, #1d3b4a, #0b1820) center / cover no-repeat; }
.sheet-body { padding: 14px 18px 16px; }
.sheet-role { color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.sheet-name { margin: 2px 0 10px; font-size: 24px; }
.sheet dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px; }
.sheet dt { font-size: 11px; opacity: .6; }
.sheet dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; white-space: nowrap; }
.sheet-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.sheet-nav, .sheet-close { display: block; padding: 11px; border-radius: 12px; border: 0; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.sheet-nav { background: var(--accent); color: #fff; }
.dark .sheet-nav { color: #031418; }
.sheet-close { background: rgba(127, 127, 127, .18); color: inherit; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .stop.current::before, .stop.current::after { animation: none; transform: scale(1.4); } }

/* 網頁即時畫的路線 */
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.r-base { stroke: rgba(255, 255, 255, .7); stroke-width: .4cqw; stroke-dasharray: 1.4cqw 1.1cqw; filter: drop-shadow(0 0 .5cqw rgba(255, 255, 255, .5)); }
.r-glow { stroke: var(--route); stroke-width: 3cqw; opacity: .5; filter: blur(1.4cqw); }
.r-done { stroke: color-mix(in srgb, var(--route) 35%, #fff); stroke-width: 1cqw; filter: drop-shadow(0 0 .8cqw var(--route)) drop-shadow(0 0 2cqw var(--route)); }
.r-flow { fill: #fff; filter: drop-shadow(0 0 1.2cqw var(--route)) drop-shadow(0 0 .5cqw #fff); }
.r-flow2 { opacity: .7; }

/* 長版：站點圓點、站名標籤都由網頁畫 */
.label { position: absolute; padding: .9cqw 2.4cqw; border-radius: 1.2cqw; font-size: 3.6cqw; font-weight: 600; letter-spacing: .08em; color: #eafcff; white-space: nowrap; background: rgba(3, 16, 24, .62); border: 1px solid rgba(160, 240, 255, .45); box-shadow: 0 0 2cqw rgba(67, 240, 255, .2); pointer-events: none; }
.label.r { transform: translate(4.2cqw, -120%); }
.label.l { transform: translate(calc(-100% - 4.2cqw), -120%); }
.label.b { transform: translate(-30%, 3.2cqw); }

/* 位置標示：小車 */
.car-chip { position: absolute; width: 12cqw; padding: 1cqw 1.4cqw .6cqw; transform: translate(calc(-100% - 4cqw), -50%); border-radius: 2.4cqw; background: rgba(5, 20, 28, .72); border: 1px solid var(--accent); color: #fff; box-shadow: 0 0 2.4cqw color-mix(in srgb, var(--accent) 55%, transparent); pointer-events: none; animation: bob 1.6s ease-in-out infinite; }
.car-chip svg { display: block; width: 100%; }
.car-chip::after { content: ""; position: absolute; right: -1.1cqw; top: 50%; width: 2cqw; height: 2cqw; transform: translateY(-50%) rotate(-45deg); background: inherit; border-right: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
@keyframes bob { 50% { margin-top: -1cqw; } }

/* 位置標示：光束 */
.beam { position: absolute; width: 0; height: 0; pointer-events: none; }
.beam i { position: absolute; left: -.7cqw; bottom: 0; width: 1.4cqw; height: 30cqw; border-radius: 1cqw; background: linear-gradient(to top, #fff 0%, var(--accent) 25%, transparent 100%); filter: blur(.25cqw) drop-shadow(0 0 1.6cqw var(--accent)); animation: beam 2.4s ease-in-out infinite; }
.beam::before, .beam::after { content: ""; position: absolute; left: 0; top: 0; width: 13cqw; height: 4.6cqw; transform: translate(-50%, -50%); border-radius: 50%; border: .4cqw solid var(--accent); box-shadow: 0 0 2cqw var(--accent); animation: ring 2.4s ease-out infinite; }
.beam::after { animation-delay: 1.2s; }
@keyframes beam { 50% { opacity: .55; height: 26cqw; } }
@keyframes ring { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }

/* 長版：網頁畫的站點圓點 */
.has-dots .stop::before { content: ""; position: absolute; left: 50%; top: 50%; width: 2.6cqw; height: 2.6cqw; margin: -1.3cqw 0 0 -1.3cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .7cqw rgba(67, 240, 255, .35), 0 0 2cqw var(--accent); }
.has-dots .stop.current::before { inset: auto; animation: none; border: 0; transform: none; }

/* 長版：標題與指北針（貼齊手機螢幕，不被裁切） */
.brand { position: absolute; left: 7%; top: calc(5.5% + env(safe-area-inset-top)); color: #fff; pointer-events: none; }
.brand b { display: block; font-family: "Michroma", sans-serif; font-size: 6.9cqw; font-weight: 400; letter-spacing: .17em; -webkit-text-stroke: .12cqw #fff; line-height: 1; -webkit-font-smoothing: antialiased; }
.brand span { display: block; margin-top: 2.2cqw; font-family: "Montserrat", sans-serif; font-size: 3.1cqw; font-weight: 500; letter-spacing: .36em; opacity: .92; }
.brand::after { content: ""; display: block; width: 62cqw; height: 1px; margin-top: 3.4cqw; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 1.6cqw var(--accent); }
.north { position: absolute; right: 7%; top: calc(5.5% + env(safe-area-inset-top)); color: #fff; font-family: "Montserrat", sans-serif; font-size: 3.8cqw; font-weight: 500; text-align: center; pointer-events: none; }
.north i { display: block; width: 3.4cqw; height: 5.2cqw; margin: 1.2cqw auto 0; background: linear-gradient(90deg, #fff 50%, #9aa6ad 50%); clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%); }

/* 網頁畫的進度條（蓋在設計圖原本進度條的位置） */
.pbar { position: absolute; transform: translateY(-50%); border-radius: 99px; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); min-width: 0; border-radius: inherit; transition: width .6s; }
.pbar b { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 2.9cqw; height: 2.9cqw; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; transition: left .6s; }
.pbar.hud { background: rgba(2, 16, 24, .85); border: .2cqw solid #ff9d2e; box-shadow: 0 0 1.2cqw rgba(255, 157, 46, .45), inset 0 0 1cqw rgba(0, 0, 0, .6); }
.pbar.hud i { background: linear-gradient(90deg, #7ff6ff, #3fe6f5); box-shadow: 0 0 1.4cqw #43f0ff; }
.pbar.hud b { border: .7cqw solid #ff9d2e; box-shadow: 0 0 1.8cqw #ff9d2e; }
.pbar.jade { background: rgba(225, 245, 245, .85); border: .2cqw solid rgba(255, 255, 255, .95); box-shadow: inset 0 .2cqw .6cqw rgba(0, 80, 80, .15), 0 0 .8cqw rgba(255, 255, 255, .8); }
.pbar.jade i { background: linear-gradient(90deg, #3fe3df, #8ff5f0); box-shadow: 0 0 1.2cqw rgba(30, 220, 215, .7); }
.pbar.jade b { border: .7cqw solid #22d8d4; box-shadow: 0 0 1.6cqw #22d8d4; }
.pbar.titan { background: rgba(215, 222, 230, .9); border: .2cqw solid rgba(255, 255, 255, .95); box-shadow: inset 0 .2cqw .5cqw rgba(40, 60, 80, .2); }
.pbar.titan i { background: linear-gradient(90deg, #8fdcff, #4cc4ff); box-shadow: 0 0 1.2cqw rgba(56, 182, 255, .8); }
.pbar.titan b { width: 3.2cqw; height: 3.2cqw; border: .7cqw solid #38b6ff; box-shadow: 0 0 1.8cqw #38b6ff; }
.pbar.red { background: #cfd3d8; box-shadow: inset 0 .15cqw .3cqw rgba(0, 0, 0, .15); }
.pbar.red i { background: #b3102c; }
.pbar.red b { width: 2.2cqw; height: 2.2cqw; border: .5cqw solid #b3102c; box-shadow: 0 0 .8cqw rgba(179, 16, 44, .6); }

/* HUD：從原圖抽出的橘色全息標記，濾色疊上去，跟著目前站移動 */
.holo { position: absolute; mix-blend-mode: screen; pointer-events: none; animation: holo 3s ease-in-out infinite; }
@keyframes holo { 50% { filter: brightness(1.25); } }

/* HUD：站名科技框（左側斜切六角框、細邊發光） */
.tlabel { --c: #3fe6f5; --cut: polygon(2.6cqw 0, calc(100% - .9cqw) 0, 100% .9cqw, 100% calc(100% - .9cqw), calc(100% - .9cqw) 100%, 1.4cqw 100%, 0 calc(100% - 1.4cqw), 0 2.6cqw); position: absolute; display: grid; place-items: center; filter: drop-shadow(0 0 .7cqw var(--c)); pointer-events: none; }
.tlabel::before, .tlabel::after { content: ""; position: absolute; clip-path: var(--cut); }
.tlabel::before { inset: 0; background: var(--c); }
.tlabel::after { inset: .28cqw; background: linear-gradient(180deg, rgba(4, 22, 30, .92), rgba(2, 12, 18, .92)); }
.tlabel span { position: relative; z-index: 1; padding-left: .8cqw; color: #fff; font-size: 3.05cqw; font-weight: 400; letter-spacing: .1em; white-space: nowrap; }
.tlabel.current { --c: #ffae2e; }
.leader { fill: none; stroke: #ffae2e; stroke-width: .3cqw; filter: drop-shadow(0 0 .6cqw #ffae2e); }

/* ===== HUD 全息面板（網頁程式重畫，貼齊手機螢幕上下緣） ===== */
.hudui { position: absolute; inset: 0; z-index: 2; container-type: inline-size; pointer-events: none; font-family: "Montserrat", sans-serif; color: #e6fbff; }
.hp { --c: #3fe6f5; --cut: polygon(4cqw 0, 100% 0, 100% calc(100% - 3.4cqw), calc(100% - 3.4cqw) 100%, 0 100%, 0 4cqw); position: absolute; filter: drop-shadow(0 0 1cqw rgba(63, 230, 245, .55)); }
.hp::before, .hp::after { content: ""; position: absolute; clip-path: var(--cut); }
.hp::before { inset: 0; background: linear-gradient(135deg, #8ff7ff, var(--c) 40%, rgba(63, 230, 245, .35) 70%, var(--c)); }
.hp::after { inset: .3cqw; background: linear-gradient(160deg, rgba(10, 42, 54, .94), rgba(3, 14, 20, .96) 60%); }
.hp-in { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; gap: 2.6cqw; padding: 0 3.6cqw 0 3cqw; }
.hp-in::after { content: ""; position: absolute; right: 4.6cqw; bottom: .9cqw; width: 9cqw; height: .5cqw; background: #ffae2e; box-shadow: 0 0 1cqw #ffae2e; transform: skewX(-40deg); }
.hp-fuel { left: 5%; top: calc(11.5% + env(safe-area-inset-top)); width: 47%; height: 18cqw; transform: perspective(90cqw) rotateY(14deg) rotateZ(2.5deg); }
.hp-dist { right: 4%; top: calc(13% + env(safe-area-inset-top)); width: 41%; height: 16cqw; transform: perspective(90cqw) rotateY(-14deg) rotateZ(-2.5deg); --cut: polygon(0 0, calc(100% - 4cqw) 0, 100% 4cqw, 100% 100%, 3.4cqw 100%, 0 calc(100% - 3.4cqw)); }
.hp-prog { left: 6%; right: 6%; bottom: calc(8% + env(safe-area-inset-bottom)); height: 21cqw; transform: perspective(90cqw) rotateX(14deg); --cut: polygon(5cqw 0, calc(100% - 5cqw) 0, 100% 50%, calc(100% - 3cqw) 100%, 3cqw 100%, 0 50%); }
.hp-prog .hp-in { padding: 0 6cqw; gap: 4cqw; }
.hp-prog .hp-in::after { right: auto; left: 7cqw; }

.hg-ring { flex: none; width: 13cqw; height: 13cqw; overflow: visible; filter: drop-shadow(0 0 .8cqw rgba(63, 230, 245, .6)); }
.hp-prog .hg-ring { width: 15cqw; height: 15cqw; }
.hg-track { fill: none; stroke: rgba(63, 230, 245, .16); stroke-width: 8; }
.hg-ticks { fill: none; stroke: rgba(160, 240, 255, .4); stroke-width: 1.6; stroke-dasharray: 1 4.6; }
.hg-arc, .hg-arc2 { fill: none; stroke-width: 8; transform-origin: 50px 50px; transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.hg-arc { stroke: #3fe6f5; }
.hg-arc2 { stroke: #ffae2e; filter: drop-shadow(0 0 2px #ffae2e); }
.hg-core { fill: rgba(4, 22, 30, .95); stroke: rgba(120, 240, 255, .6); stroke-width: 1.2; }
.hg-icon { color: #e6fbff; }

.hp-txt { flex: 1; min-width: 0; }
.hp-txt span { display: block; font-size: 2.6cqw; font-weight: 500; letter-spacing: .14em; color: #d6f6ff; white-space: nowrap; }
.hp-txt b { display: block; margin: .8cqw 0 1.2cqw; font-size: 4.6cqw; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 1.2cqw rgba(63, 230, 245, .6); }
.hp-txt b small { font-size: .5em; font-weight: 500; margin-left: .3em; opacity: .85; }
.hg-segs { display: grid; grid-template-columns: repeat(14, 1fr); gap: .45cqw; }
.hg-segs i { height: 1.3cqw; transform: skewX(-25deg); background: rgba(63, 230, 245, .14); transition: background .3s, box-shadow .3s; }
.hg-segs i.on { background: #3fe6f5; box-shadow: 0 0 .8cqw #3fe6f5; }
.hg-segs i.on.warm { background: #ffae2e; box-shadow: 0 0 .8cqw #ffae2e; }
.hp-row { display: flex; justify-content: space-between; align-items: baseline; }
.hp-prog .hp-txt span { font-size: 3cqw; }
.hp-prog .hp-txt b { margin: 0 0 2cqw; font-size: 5cqw; }
.hg-bar { --p: 0; position: relative; height: 2.6cqw; border-radius: 99px; background: rgba(2, 14, 20, .9); border: .25cqw solid rgba(255, 174, 46, .8); box-shadow: 0 0 1cqw rgba(255, 174, 46, .35), inset 0 0 1cqw rgba(0, 0, 0, .7); }
.hg-bar i { position: absolute; left: .4cqw; top: .4cqw; bottom: .4cqw; width: calc(var(--p) * (100% - .8cqw)); border-radius: 99px; background: linear-gradient(90deg, #8ff7ff, #3fe6f5); box-shadow: 0 0 1.4cqw #3fe6f5; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.hg-bar em { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 4cqw; height: 4cqw; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: .9cqw solid #ffae2e; box-shadow: 0 0 2cqw #ffae2e; transition: left .8s cubic-bezier(.2, .8, .2, 1); }

.hp-logo { position: absolute; left: 0; right: 0; bottom: calc(1.6% + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 3cqw; color: #fff; }
.hp-logo i { width: 18cqw; height: 1px; background: linear-gradient(90deg, transparent, rgba(160, 240, 255, .7)); }
.hp-logo i:last-child { transform: scaleX(-1); }
.hp-logo b { position: relative; padding: .5cqw 1.6cqw; font-family: "Michroma", sans-serif; font-size: 2.6cqw; font-weight: 400; letter-spacing: .12em; }
.hp-logo b::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11cqw; height: 11cqw; transform: translate(-50%, -50%); border-radius: 50%; border: .45cqw solid #fff; clip-path: polygon(0 0, 100% 0, 100% 34%, 0 34%, 0 66%, 100% 66%, 100% 100%, 0 100%); }

/* HUD：標題置中 */
.brand.center { left: 0; right: 0; text-align: center; }
.brand.center::after { margin-left: auto; margin-right: auto; }

/* HUD 長版：站點青色發光圓點＋外環（仿原圖），未走路段實線白光 */
.holo-dots .stop::before { content: ""; position: absolute; left: 50%; top: 50%; width: 2.6cqw; height: 2.6cqw; margin: -1.3cqw 0 0 -1.3cqw; border-radius: 50%; background: #dffcff; box-shadow: 0 0 0 .6cqw #3fe6f5, 0 0 0 1.5cqw rgba(63, 230, 245, .25), 0 0 2.4cqw #3fe6f5; }
.holo-dots .stop::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7cqw; height: 7cqw; margin: -3.5cqw 0 0 -3.5cqw; border-radius: 50%; border: .25cqw solid rgba(63, 230, 245, .5); }
.holo-dots .stop.current::before, .holo-dots .stop.current::after { animation: none; transform: none; inset: auto; }
.solid-base .r-base { stroke: rgba(255, 255, 255, .9); stroke-width: .5cqw; stroke-dasharray: none; filter: drop-shadow(0 0 .6cqw rgba(255, 255, 255, .7)); }

/* ===== 11 號 HUD 長版：依原圖比對調整 ===== */
/* 1. 全息標記周圍的橘色光暈，把地形照成橘色 */
.holo-glow { position: absolute; width: 46cqw; height: 26cqw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 170, 50, .75), rgba(255, 130, 20, .35) 45%, transparent); mix-blend-mode: screen; pointer-events: none; animation: holo 3s ease-in-out infinite; }
/* 2. 已走路段：粗亮飽和青色 */
.solid-base .r-done { stroke: #9ff8ff; stroke-width: calc(var(--k) * 1.3); filter: drop-shadow(0 0 calc(var(--k) * .8) #3fe6f5) drop-shadow(0 0 calc(var(--k) * 2) #3fe6f5); }
.solid-base .r-glow { stroke: #3fe6f5; stroke-width: calc(var(--k) * 4); opacity: .55; filter: blur(calc(var(--k) * 1.4)); }
.solid-base .r-base { stroke-width: calc(var(--k) * .55); filter: drop-shadow(0 0 calc(var(--k) * .6) rgba(255, 255, 255, .7)); }
/* 3. 進度面板往上貼近地圖、字放大 */
.hp-prog { bottom: calc(14% + env(safe-area-inset-bottom)); height: 23cqw; }
.hp-logo { bottom: calc(5% + env(safe-area-inset-bottom)); }
.hp-txt span { font-size: 3cqw; }
.hp-txt b { font-size: 5.3cqw; }
.hp-prog .hp-txt span { font-size: 3.4cqw; }
.hp-prog .hp-txt b { font-size: 5.8cqw; }
.hp-fuel { height: 20cqw; }
.hp-dist { height: 18cqw; }
.holo-dots .tlabel span { font-size: 3.6cqw; }
/* 4. 面板加厚度與玻璃反光 */
.hp { filter: drop-shadow(0 0 1cqw rgba(63, 230, 245, .55)) drop-shadow(0 1.6cqw 0 rgba(20, 90, 105, .85)) drop-shadow(0 2.2cqw 2cqw rgba(0, 0, 0, .7)); }
.hp-in::before { content: ""; position: absolute; inset: .3cqw; clip-path: var(--cut); background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 22%, transparent 23%, transparent 60%, rgba(120, 240, 255, .07) 61%, transparent 75%), linear-gradient(180deg, rgba(160, 245, 255, .22), transparent 12%); pointer-events: none; }

/* 示範進度切換：四顆明顯的按鈕（電腦寬螢幕時移到畫面左側，不擋手機畫面） */
.demo { position: fixed !important; left: 50% !important; right: auto !important; top: calc(6px + env(safe-area-inset-top)) !important; transform: translateX(-50%); z-index: 20 !important; display: flex; gap: 2px; padding: 3px !important; border-radius: 999px; background: rgba(0, 0, 0, .7) !important; border: 1px solid rgba(255, 255, 255, .35); opacity: 1 !important; backdrop-filter: blur(8px); }
.demo button { padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 12px; cursor: pointer; font-family: inherit; }
.demo button.on { background: #d4153a; }
@media (min-width: 700px) {
  .demo { left: 24px !important; top: 50% !important; transform: translateY(-50%); flex-direction: column; border-radius: 16px; padding: 6px !important; }
  .demo::before { content: "示範進度"; color: #ccc; font-size: 12px; padding: 2px 8px 6px; }
  .demo button { padding: 10px 18px; font-size: 15px; border-radius: 10px; text-align: left; }
}

/* ===== 11 號字型：依原圖文字對照調整（只影響 .brand.center 與 HUD 面板，1～10 號不受影響） ===== */
/* 站名中文：思源黑體 Noto Sans TC（只含站名用字的子集，OFL 開源） */
@font-face { font-family: "Noto Sans TC Stops"; src: url(fonts/notosanstc-stops.woff2) format("woff2"); font-weight: 400; font-display: swap; }
.brand.center b { -webkit-text-stroke: 0; letter-spacing: .26em; font-size: 7.4cqw; }
.brand.center span { font-weight: 400; letter-spacing: .58em; margin-top: 2.6cqw; }
.hudui .hp-txt span { font-weight: 400; }
.holo-dots .tlabel span { font-family: "Noto Sans TC Stops", "Microsoft JhengHei", sans-serif; font-weight: 400; letter-spacing: .16em; }
.hp-logo b { font-size: 2.1cqw; letter-spacing: .1em; }
.hp-logo b::before { width: 9.5cqw; height: 9.5cqw; border-width: .4cqw; }

/* ===== 11 號：依原圖調整站名框、NISSAN 標誌、面板外框 ===== */
/* A. 站名框：左上斜切、右邊直角，左下延伸尾巴線 */
.holo-dots .tlabel { --cut: polygon(2.4cqw 0, 100% 0, 100% 100%, 0 100%, 0 2.4cqw); }
.tlabel .tail { position: absolute; right: 100%; bottom: 0; width: 3.6cqw; height: .3cqw; background: var(--c); box-shadow: 0 0 .8cqw var(--c); }
.tlabel .tail::before { content: ""; position: absolute; left: 0; bottom: 0; width: 1.8cqw; height: .3cqw; background: inherit; transform-origin: left bottom; transform: rotate(35deg); }
/* B. NISSAN：圓環與字加粗 */
.hp-logo b { -webkit-text-stroke: .18cqw #fff; letter-spacing: .14em; }
.hp-logo b::before { border-width: .75cqw; }
/* C. 面板：斜邊外形、亮青色厚邊、內層框線 */
.hp-fuel { --cut: polygon(4.5cqw 0, 100% 0, calc(100% - 3.5cqw) 100%, 0 100%, 0 4.5cqw); }
.hp-dist { --cut: polygon(0 0, calc(100% - 4.5cqw) 0, 100% 4.5cqw, 100% 100%, 3.5cqw 100%); }
.hudui .hp::before { background: linear-gradient(135deg, #c8fbff, #5ff0ff 30%, #3fe6f5 55%, rgba(63, 230, 245, .55) 75%, #7ff6ff); }
.hudui .hp::after { inset: .5cqw; }
.hp-line { position: absolute; inset: 0; pointer-events: none; }
.hp-line::before, .hp-line::after { content: ""; position: absolute; clip-path: var(--cut); }
.hp-line::before { inset: 1.3cqw; background: rgba(63, 230, 245, .55); }
.hp-line::after { inset: 1.55cqw; background: linear-gradient(160deg, rgba(10, 42, 54, .97), rgba(3, 14, 20, .98) 60%); }
.hp-logo b { font-size: 1.8cqw; -webkit-text-stroke: .1cqw #fff; letter-spacing: .12em; }
.hp-logo b::before { width: 10cqw; height: 10cqw; border-width: .7cqw; }
.holo-dots .tlabel { --cut: polygon(2.4cqw 0, 100% 0, 100% calc(100% - 1cqw), calc(100% - 1cqw) 100%, 0 100%, 0 2.4cqw); }
/* 上方兩個面板垂直連到地圖底座的細線（照原圖） */
.hp-wire { position: absolute; width: .25cqw; background: linear-gradient(rgba(120, 240, 255, .85), rgba(63, 230, 245, .25)); box-shadow: 0 0 .8cqw rgba(63, 230, 245, .6); }
.hp-wire::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1.4cqw; height: 1.4cqw; transform: translate(-50%, 50%); border-radius: 50%; background: #9ff8ff; box-shadow: 0 0 1.2cqw #3fe6f5; }
.hp-wire.w1 { left: 8%; top: calc(11.5% + 19cqw + env(safe-area-inset-top)); bottom: 64%; }
.hp-wire.w2 { right: 7%; top: calc(13% + 17cqw + env(safe-area-inset-top)); bottom: 62%; }
.hp-fuel { top: calc(14.5% + env(safe-area-inset-top)); }
.hp-dist { top: calc(16% + env(safe-area-inset-top)); }
.hp-wire.w1 { top: calc(14.5% + 19cqw + env(safe-area-inset-top)); }
.hp-wire.w2 { top: calc(16% + 17cqw + env(safe-area-inset-top)); }

/* 電腦寬螢幕：右側設計說明面板 */
.notes { display: none; }
@media (min-width: 1100px) {
  .notes { display: block; position: fixed; z-index: 20; top: 50%; left: calc(50% + 23.1vh + 40px); transform: translateY(-50%); width: min(440px, calc(50vw - 23.1vh - 70px)); max-height: 86vh; overflow: auto; padding: 22px 24px; border-radius: 18px; background: rgba(8, 12, 18, .78); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px); color: #e8edf3; font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; font-size: 14px; line-height: 1.65; }
  .notes h2 { margin: 0 0 6px; font-size: 20px; }
  .notes h3 { display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; font-size: 15px; color: #ffd36b; }
  .notes ul { margin: 0; padding-left: 20px; }
  .notes p { margin: 4px 0; color: #c7d0dc; }
  .notes .dot { width: 10px; height: 10px; border-radius: 50%; }
  .notes .dot.baked { background: #8a94a6; }
  .notes .dot.web { background: #3fe6f5; box-shadow: 0 0 6px #3fe6f5; }
}
/* 11 號：發光線改細（使用者回饋：細一點比較有質感） */
.solid-base .r-done { stroke-width: calc(var(--k) * .7); filter: drop-shadow(0 0 calc(var(--k) * .5) #3fe6f5) drop-shadow(0 0 calc(var(--k) * 1.3) #3fe6f5); }
.solid-base .r-glow { stroke-width: calc(var(--k) * 2.2); opacity: .45; filter: blur(calc(var(--k) * 1)); }
.solid-base .r-base { stroke-width: calc(var(--k) * .35); }

/* ===== 12 號翡翠玻璃長版（theme-jade）：淺色厚玻璃面板 ===== */
.theme-jade .brand { color: #173f46; }
.theme-jade .brand::after { background: linear-gradient(90deg, transparent, #16d9c8, transparent); box-shadow: 0 0 1.4cqw #16d9c8; }
.theme-jade .north { color: #173f46; }
.theme-jade .north i { background: linear-gradient(90deg, #16b8a8 50%, #0d6f68 50%); }
.theme-jade .hudui { color: #173f46; }
.theme-jade .hp { --c: #ffffff; filter: drop-shadow(0 1.4cqw 2.4cqw rgba(40, 110, 110, .28)); }
.theme-jade .hp::before { background: linear-gradient(135deg, #ffffff, #d6fbf7 30%, #9eece4 60%, #ffffff); }
.theme-jade .hp::after { inset: .7cqw; background: linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(225, 248, 245, .7) 60%, rgba(240, 252, 250, .85)); }
.theme-jade .hp-line::before { inset: 1.4cqw; background: rgba(255, 255, 255, .95); }
.theme-jade .hp-line::after { inset: 1.6cqw; background: linear-gradient(160deg, rgba(246, 254, 253, .9), rgba(228, 248, 245, .85)); }
.theme-jade .hp-in::before { background: linear-gradient(115deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .15) 25%, transparent 26%), linear-gradient(180deg, rgba(255, 255, 255, .8), transparent 15%); }
.theme-jade .hp-in::after { display: none; }
.theme-jade .hp-wire { background: linear-gradient(rgba(255, 255, 255, .95), rgba(160, 225, 220, .5)); box-shadow: 0 0 .6cqw rgba(255, 255, 255, .8); }
.theme-jade .hp-wire::after { background: #fff; box-shadow: 0 0 1cqw #16d9c8; }
.theme-jade .hg-ring { filter: none; }
.theme-jade .hg-track { stroke: rgba(22, 160, 150, .14); }
.theme-jade .hg-ticks { stroke: rgba(22, 120, 115, .3); }
.theme-jade .hg-arc { stroke: #16cbbb; }
.theme-jade .hg-arc2 { stroke: #0fa596; filter: none; }
.theme-jade .hg-core { fill: rgba(255, 255, 255, .95); stroke: rgba(22, 200, 185, .45); }
.theme-jade .hg-icon { color: #173f46; }
.theme-jade .hp-txt span { color: #1d4a51; font-weight: 500; }
.theme-jade .hp-txt b { color: #10363c; text-shadow: none; }
.theme-jade .hg-segs i { background: rgba(22, 160, 150, .15); }
.theme-jade .hg-segs i.on, .theme-jade .hg-segs i.on.warm { background: #16cbbb; box-shadow: 0 0 .6cqw rgba(22, 217, 200, .6); }
.theme-jade .hg-bar { background: rgba(225, 240, 238, .95); border: .25cqw solid rgba(255, 255, 255, .95); box-shadow: inset 0 .2cqw .6cqw rgba(30, 90, 90, .2); }
.theme-jade .hg-bar i { background: linear-gradient(90deg, #45e6d8, #16cbbb); box-shadow: 0 0 1.2cqw rgba(22, 217, 200, .7); }
.theme-jade .hg-bar em { background: #fff; border-color: #16d9c8; box-shadow: 0 0 1.6cqw #16d9c8; }
/* 進度面板下方的白色底座（照原圖） */
.theme-jade .hp-prog::marker { content: none; }
.theme-jade .hudui::after { content: ""; position: absolute; left: 3%; right: 3%; bottom: calc(1% + env(safe-area-inset-bottom)); height: 22%; z-index: -1; clip-path: polygon(6% 0, 94% 0, 100% 30%, 100% 100%, 0 100%, 0 30%); background: linear-gradient(180deg, #ffffff, #eef3f4 60%, #dfe7e9); filter: drop-shadow(0 -1cqw 2cqw rgba(0, 0, 0, .08)); }
.theme-jade .hudui { z-index: 2; }
.theme-jade .hp-logo { color: #173f46; z-index: 1; }
.theme-jade .hp-logo b { -webkit-text-stroke: .1cqw #173f46; }
.theme-jade .hp-logo b::before { border-color: #173f46; }
.theme-jade .hp-logo i { background: linear-gradient(90deg, transparent, rgba(23, 63, 70, .5)); }
/* 站名：白色毛玻璃 */
.theme-jade .label { color: #173f46; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 .6cqw 1.6cqw rgba(30, 100, 100, .2); backdrop-filter: blur(6px); font-family: "Noto Sans TC Stops", "Microsoft JhengHei", sans-serif; font-weight: 400; }
/* 路線：細的翡翠綠光，未走白線 */
.theme-jade .r-base { stroke: rgba(255, 255, 255, .95); stroke-width: calc(var(--k) * .4); stroke-dasharray: none; filter: drop-shadow(0 0 calc(var(--k) * .4) rgba(255, 255, 255, .9)); }
.theme-jade .r-done { stroke: #35eedf; stroke-width: calc(var(--k) * .75); filter: drop-shadow(0 0 calc(var(--k) * .5) #16d9c8) drop-shadow(0 0 calc(var(--k) * 1.2) #16d9c8); }
.theme-jade .r-glow { stroke: #16d9c8; stroke-width: calc(var(--k) * 2); opacity: .4; filter: blur(calc(var(--k) * 1)); }
/* 目前站光柱 */
.theme-jade .beam i { background: linear-gradient(to top, #fff 0%, #3ff0e0 25%, transparent 100%); }
/* 12 號依原圖修正 */
.theme-jade .brand b { -webkit-text-stroke: .35cqw #173f46; }
.theme-jade .brand span { font-weight: 500; }
.theme-jade .hp, .theme-jade .hp-fuel, .theme-jade .hp-dist, .theme-jade .hp-prog { --cut: polygon(2.4cqw 0, calc(100% - 2.4cqw) 0, 100% 2.4cqw, 100% calc(100% - 2.4cqw), calc(100% - 2.4cqw) 100%, 2.4cqw 100%, 0 calc(100% - 2.4cqw), 0 2.4cqw); }
.theme-jade .hp::before { background: linear-gradient(135deg, #ffffff, #a8f1ea 25%, #5fe0d4 50%, #b8f5ef 75%, #ffffff); }
.theme-jade .hudui::after { left: 6%; right: 6%; bottom: calc(1.5% + env(safe-area-inset-bottom)); height: 11%; clip-path: polygon(8% 0, 92% 0, 100% 40%, 92% 100%, 8% 100%, 0 40%); }
.theme-jade.has-dots .stop::before { width: 3cqw; height: 3cqw; margin: -1.5cqw 0 0 -1.5cqw; background: #e9fffc; box-shadow: 0 0 0 .7cqw #2fe3d3, 0 0 0 1.7cqw rgba(47, 227, 211, .25), 0 0 2.6cqw #16d9c8; }

/* ===== 13 號鈦銀（theme-jade + theme-titan）：沿用淺色玻璃面板，改銀藍配色 ===== */
.theme-titan .brand { color: #1d2a33; }
.theme-titan .brand b { -webkit-text-stroke: .3cqw #1d2a33; }
.theme-titan .brand::after { background: linear-gradient(90deg, transparent, #38b6ff, transparent); box-shadow: 0 0 1.4cqw #38b6ff; }
.theme-titan .north { color: #1d2a33; }
.theme-titan .north i { background: linear-gradient(90deg, #6f7c86 50%, #1d2a33 50%); }
.theme-titan .hudui, .theme-titan .hp-logo { color: #1d2a33; }
.theme-titan .hp::before { background: linear-gradient(135deg, #ffffff, #dfe7ee 30%, #b9c6d1 55%, #eef3f7 80%, #ffffff); }
.theme-titan .hp::after { background: linear-gradient(160deg, rgba(255, 255, 255, .85), rgba(232, 238, 244, .75) 60%, rgba(246, 249, 251, .88)); }
.theme-titan .hp-line::after { background: linear-gradient(160deg, rgba(250, 252, 254, .92), rgba(234, 240, 246, .88)); }
.theme-titan .hg-arc { stroke: #38b6ff; }
.theme-titan .hg-arc2 { stroke: #1f8ee0; }
.theme-titan .hg-core { stroke: rgba(56, 182, 255, .45); }
.theme-titan .hg-icon, .theme-titan .hp-txt span, .theme-titan .hp-txt b { color: #1d2a33; }
.theme-titan .hg-segs i.on, .theme-titan .hg-segs i.on.warm { background: #38b6ff; box-shadow: 0 0 .6cqw rgba(56, 182, 255, .6); }
.theme-titan .hg-bar i { background: linear-gradient(90deg, #8fdcff, #38b6ff); box-shadow: 0 0 1.2cqw rgba(56, 182, 255, .7); }
.theme-titan .hg-bar em { border-color: #38b6ff; box-shadow: 0 0 1.6cqw #38b6ff; }
.theme-titan .hp-wire::after { box-shadow: 0 0 1cqw #38b6ff; }
.theme-titan .hp-logo b { -webkit-text-stroke: .1cqw #1d2a33; }
.theme-titan .hp-logo b::before { border-color: #1d2a33; }
.theme-titan .hudui::after { background: linear-gradient(180deg, #ffffff, #e9edf1 60%, #d7dde3); }
.theme-titan .label { color: #1d2a33; }
.theme-titan .r-done { stroke: #6fd0ff; filter: drop-shadow(0 0 calc(var(--k) * .5) #38b6ff) drop-shadow(0 0 calc(var(--k) * 1.2) #38b6ff); }
.theme-titan .r-glow { stroke: #38b6ff; }
.theme-titan.has-dots .stop::before { background: #f2fbff; box-shadow: 0 0 0 .7cqw #38b6ff, 0 0 0 1.7cqw rgba(56, 182, 255, .25), 0 0 2.6cqw #38b6ff; }
.theme-titan .beam i { background: linear-gradient(to top, #fff 0%, #6fd0ff 25%, transparent 100%); }

/* ===== 14 號純白 × NISSAN 紅（theme-red） ===== */
.theme-red .brand.nissan { left: 5%; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 3.6cqw; align-items: center; color: #1a1a1a; }
.theme-red .brand.nissan .nlogo { grid-row: 1 / 3; position: relative; display: grid; place-items: center; width: 13cqw; height: 13cqw; padding-right: 3.6cqw; border-right: 1px solid rgba(0, 0, 0, .35); font-style: normal; font-family: "Michroma", sans-serif; font-size: 2.1cqw; color: #c3102f; -webkit-text-stroke: .08cqw #c3102f; }
.theme-red .brand.nissan .nlogo::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11cqw; height: 11cqw; margin-left: -1.8cqw; transform: translate(-50%, -50%); border-radius: 50%; border: .6cqw solid #c3102f; clip-path: polygon(0 0, 100% 0, 100% 36%, 0 36%, 0 64%, 100% 64%, 100% 100%, 0 100%); }
.theme-red .brand.nissan b { font-size: 7.6cqw; letter-spacing: .14em; -webkit-text-stroke: .3cqw #1a1a1a; }
.theme-red .brand.nissan span { margin-top: 1.4cqw; font-size: 3cqw; letter-spacing: .4em; font-weight: 500; }
.theme-red .brand.nissan::after { grid-column: 1 / 3; width: 80cqw; margin-top: 2.6cqw; background: linear-gradient(90deg, transparent, #e60033 50%, transparent); box-shadow: 0 0 1.2cqw rgba(230, 0, 51, .5); }
.theme-red .north { color: #1a1a1a; }
.theme-red .north i { background: linear-gradient(90deg, #e60033 50%, #9c0022 50%); }
.theme-red .label { color: #1a1a1a; background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .15); backdrop-filter: blur(6px); font-family: "Noto Sans TC Stops", "Microsoft JhengHei", sans-serif; font-weight: 400; }
.theme-red .r-base { stroke: rgba(255, 255, 255, .95); stroke-width: calc(var(--k) * .4); stroke-dasharray: none; filter: drop-shadow(0 0 calc(var(--k) * .3) rgba(230, 0, 51, .45)); }
.theme-red .r-done { stroke: #ff2a55; stroke-width: calc(var(--k) * .7); filter: drop-shadow(0 0 calc(var(--k) * .5) #e60033) drop-shadow(0 0 calc(var(--k) * 1.2) rgba(230, 0, 51, .8)); }
.theme-red .r-glow { stroke: #e60033; stroke-width: calc(var(--k) * 2.2); opacity: .35; filter: blur(calc(var(--k) * 1)); }
.theme-red.has-dots .stop::before { background: #fff; box-shadow: 0 0 0 .6cqw #c3102f, 0 0 0 1.5cqw rgba(230, 0, 51, .18), 0 0 2cqw rgba(230, 0, 51, .6); }
.theme-red .beam i { background: linear-gradient(to top, #fff 0%, #ff2a55 25%, transparent 100%); }
.theme-red .beam::before, .theme-red .beam::after { border-color: #e60033; box-shadow: 0 0 2cqw #e60033; }
.theme-red .statbar > div { position: relative; padding-left: 10cqw; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95); color: #1a1a1a; box-shadow: inset 0 1px 0 #fff, 0 1.5cqw 4cqw rgba(0, 0, 0, .12); border-radius: 6cqw; }
.theme-red .statbar > div::before { content: ""; position: absolute; left: 3cqw; top: 50%; width: 5cqw; height: 5cqw; transform: translateY(-50%); background: #c3102f; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.theme-red .statbar > div:nth-child(1) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3h9v18H5zM7 5v5h5V5zM15 8l3 2v7a1.5 1.5 0 0 0 3 0V9l-3-3-1 1'/%3E%3C/svg%3E"); }
.theme-red .statbar > div:nth-child(2) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22s-7-7-7-12a7 7 0 0 1 14 0c0 5-7 12-7 12zm0-9.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/%3E%3C/svg%3E"); }
.theme-red .statbar > div:nth-child(3) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='5' cy='18' r='2.5'/%3E%3Ccircle cx='19' cy='6' r='2.5'/%3E%3Cpath d='M7 16l3-6 4 3 3-5'/%3E%3C/svg%3E"); }
.theme-red .statbar span { color: #333; }
.theme-red .statbar i { background: #d6d9dd; }
.theme-red .statbar i::before { background: #c3102f; box-shadow: none; }
.theme-red .statbar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; }
.theme-red .statbar > div { padding: 2.6cqw 2cqw 2.6cqw 8.6cqw; }
.theme-red .statbar > div::before { left: 2.4cqw; width: 4.4cqw; height: 4.4cqw; }
.theme-red .statbar span { font-size: 1.9cqw; letter-spacing: .04em; }
.theme-red .statbar b { font-size: 4.4cqw; white-space: nowrap; }
.theme-red .statbar b small { font-size: .45em; }

/* ===== 圖片面板元件（panels.js）：素材是 GPT 畫的透明 PNG，網頁只疊數值與進度 ===== */
.ipanel { container-type: inline-size; pointer-events: none; }
.ipanel > * { position: absolute; }
.ip-bg { position: relative !important; display: block; width: 100%; height: auto; }
.ip-value { display: flex; align-items: center; transform-origin: left center; font-family: "Montserrat", sans-serif; font-weight: 600; color: var(--pv, #1c2d3b); white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1; }
.ip-value small { font-size: .45em; font-weight: 500; margin-left: .3em; opacity: .8; }
.ip-track { --p: 0; transform-origin: left center; }
.ip-track i { position: absolute; left: 0; top: 18%; bottom: 18%; width: calc(var(--p) * 100%); border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--pf, #39cfff) 40%, #fff), var(--pf, #39cfff)); box-shadow: 0 0 1.5cqw var(--pf, #39cfff); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.ip-track em { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 3.2cqw; height: 3.2cqw; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: .7cqw solid var(--pk, var(--pf, #39cfff)); box-shadow: 0 0 1.6cqw var(--pk, var(--pf, #39cfff)); transition: left .8s cubic-bezier(.2, .8, .2, 1); }
/* 分段燈條：用斜條紋遮罩模擬一格一格點亮 */
.ip-track.seg i { top: 0; bottom: 0; border-radius: 0; mix-blend-mode: screen; -webkit-mask: repeating-linear-gradient(115deg, #000 0 4.2cqw, transparent 4.2cqw 5cqw); mask: repeating-linear-gradient(115deg, #000 0 4.2cqw, transparent 4.2cqw 5cqw); }
.ip-track.seg em { display: none; }
.pt-hud { --pv: #fff; --pf: #3fe6f5; --pk: #ffae2e; }
.pt-hud .ip-value { text-shadow: 0 0 1.2cqw rgba(63, 230, 245, .6); }
.pt-jade { --pv: #10363c; --pf: #16d9c8; }
.pt-jade .ip-track.seg i { mix-blend-mode: normal; }
.pt-titan { --pv: #1c2d3b; --pf: #39cfff; }

/* ===== v2（15～18 號）：路線細線、站名樣式 ===== */
.theme-v2 .r-base { stroke: rgba(255, 255, 255, .85); stroke-width: calc(var(--k) * .35); stroke-dasharray: none; filter: drop-shadow(0 0 calc(var(--k) * .4) rgba(255, 255, 255, .8)); }
.theme-v2 .r-done { stroke: color-mix(in srgb, var(--route) 45%, #fff); stroke-width: calc(var(--k) * .7); filter: drop-shadow(0 0 calc(var(--k) * .5) var(--route)) drop-shadow(0 0 calc(var(--k) * 1.3) var(--route)); }
.theme-v2 .r-glow { stroke: var(--route); stroke-width: calc(var(--k) * 2.2); opacity: .45; filter: blur(calc(var(--k) * 1)); }
.theme-hudv2 .label { color: #fff; background: rgba(3, 18, 26, .82); border: 1px solid #3fe6f5; box-shadow: 0 0 1.4cqw rgba(63, 230, 245, .5); border-radius: .6cqw; font-family: "Noto Sans TC Stops", "Microsoft JhengHei", sans-serif; font-weight: 400; letter-spacing: .14em; }
.theme-hudv2.has-dots .stop::before { background: #dffcff; box-shadow: 0 0 0 .6cqw #3fe6f5, 0 0 0 1.5cqw rgba(63, 230, 245, .25), 0 0 2.4cqw #3fe6f5; }
.theme-hudv2 .north, .theme-hudv2 .brand { display: none; }
/* 九宮格膠囊（紅線） */
.ip-nine { position: absolute !important; inset: 0; border-style: solid; }
.ipanel:has(.ip-nine) { position: relative; }
.ip-icon { height: auto; }
.ip-div { width: .3cqw; background: rgba(40, 40, 50, .35); }
.ip-label { transform: translateY(-50%); margin-top: 2.5cqw; font-family: "Montserrat", sans-serif; font-weight: 500; letter-spacing: .1em; color: #333; white-space: nowrap; }
.pt-red { --pv: #1a1a1a; --pf: #c3102f; }
.pt-red .ip-track i { top: 25%; bottom: 25%; background: #c3102f; box-shadow: none; }
.pt-red .ip-track::before { content: ""; position: absolute; left: 0; right: 0; top: 25%; bottom: 25%; border-radius: 99px; background: #d3d6da; }
.pt-red .ip-track em { width: 2.6cqw; height: 2.6cqw; border-width: .6cqw; box-shadow: none; }

/* 橘色全息標記：上方光環＋光柱輕輕上下浮動，地面光圈不動（素材第 178 列切開＝52.4%） */
.holo-bottom { clip-path: inset(52.4% 0 0 0); }
.holo-top { clip-path: inset(0 0 44.4% 0); animation: holo 3s ease-in-out infinite, holo-float 3.2s ease-in-out infinite; }
@keyframes holo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7.5%; } }
@media (prefers-reduced-motion: reduce) { .holo-top { animation: none; } }

/* 面板垂掛細線（15 鈦銀、17 翡翠，照原圖） */
.wire { position: absolute; width: .25cqw; transform: translateX(-50%); background: linear-gradient(rgba(255, 255, 255, .95), color-mix(in srgb, var(--route) 60%, transparent)); box-shadow: 0 0 .8cqw color-mix(in srgb, var(--route) 70%, transparent); pointer-events: none; }
.wire::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1.3cqw; height: 1.3cqw; transform: translate(-50%, 50%); border-radius: 50%; background: #fff; box-shadow: 0 0 1.2cqw var(--route); }

/* 站點光球、站名都可以點來切換進度 */
.label, .tlabel { pointer-events: auto !important; cursor: pointer; }
.stop { z-index: 4; }
.live .demo { display: none !important; }

/* ===== 節點永遠在最上層、打勾獨立在節點上方（2026-11-19，全部模板） ===== */
.layer .stop { z-index: 6; }
.beam, .holo, .holo-glow, .car-chip { z-index: 5; }
.label, .tlabel { z-index: 7; }
/* 預設節點：白心＋主題色外環 */
.has-dots .stop::before { content: ""; position: absolute; left: 50%; top: 50%; width: 2.6cqw; height: 2.6cqw; margin: -1.3cqw 0 0 -1.3cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .7cqw var(--route), 0 0 0 1.5cqw color-mix(in srgb, var(--route) 25%, transparent), 0 0 2cqw var(--route); }
.has-dots .stop.current::before { inset: auto; animation: none; border: 0; transform: none; }
/* 打勾：移到節點正上方，跟圈圈留空隙，白底徽章清楚獨立 */
.stop .check { left: 50%; right: auto; top: -.6cqw; width: 3.4cqw; height: 3.4cqw; transform: translate(-50%, -100%); font-size: 2.2cqw; color: #fff; background: var(--accent); border: .35cqw solid #fff; box-shadow: 0 .3cqw 1cqw rgba(0, 0, 0, .35); text-shadow: none; }

/* 示範進度：手機上收成左上角小按鈕「示範 ▾」，點開才展開；電腦上維持左側按鈕列 */
.demo button { white-space: nowrap; }
.demo .demo-toggle { display: none; }
@media (max-width: 699px) {
  .demo { left: 8px !important; top: calc(8px + env(safe-area-inset-top)) !important; transform: none; flex-direction: column; align-items: stretch; border-radius: 14px; background: rgba(0, 0, 0, .55) !important; }
  .demo .demo-toggle { display: block; background: transparent; font-size: 11px; padding: 3px 8px; opacity: .9; }
  .demo:not(.open) button[data-s] { display: none; }
  .demo.open button[data-s] { padding: 8px 14px; font-size: 14px; text-align: left; }
}

/* 鎖成 App：不縮放、不彈跳、不下拉重新整理、長按不跳選單、不反白 */
html, body { overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; }
img { -webkit-touch-callout: none; -webkit-user-drag: none; pointer-events: none; }
.sheet-card { touch-action: pan-y; }
/* 光環浮動幅度加大後，上下兩半改用漸變遮罩重疊（取代硬切 clip-path），飄到最高點光柱也不會斷 */
.holo-top { clip-path: none; -webkit-mask-image: linear-gradient(#000 0 50%, transparent 58%); mask-image: linear-gradient(#000 0 50%, transparent 58%); }
.holo-bottom { clip-path: none; -webkit-mask-image: linear-gradient(transparent 0 42%, #000 50%); mask-image: linear-gradient(transparent 0 42%, #000 50%); }
.holo-top { -webkit-mask-image: linear-gradient(#000 0 57%, transparent 63%); mask-image: linear-gradient(#000 0 57%, transparent 63%); }
.holo-bottom { -webkit-mask-image: linear-gradient(transparent 0 36%, #000 44%); mask-image: linear-gradient(transparent 0 36%, #000 44%); }
/* 光環殘影修正：上半只留浮空光環＋上段光柱；下半只留地面光圈；中間光柱由網頁畫，跟著光環浮動，長度多留，飄到最高也接得到地面 */
.holo-top { -webkit-mask-image: linear-gradient(#000 0 49%, transparent 53%); mask-image: linear-gradient(#000 0 49%, transparent 53%); }
.holo-bottom { -webkit-mask-image: linear-gradient(transparent 0 52%, #000 56%); mask-image: linear-gradient(transparent 0 52%, #000 56%); }
.holo-beam { animation: holo 3s ease-in-out infinite, holo-float 3.2s ease-in-out infinite; }
.holo-beam::before { content: ""; position: absolute; left: 50%; top: 44%; height: calc(var(--ay) - 44% + 9%); width: 7%; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(255, 150, 40, .35) 30%, rgba(255, 190, 90, .6) 50%, rgba(255, 150, 40, .35) 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 15%, #000 80%, transparent); }
.holo-beam::after { content: ""; position: absolute; left: 50%; top: 44%; height: calc(var(--ay) - 44% + 9%); width: .5%; transform: translateX(-50%); background: linear-gradient(rgba(255, 220, 150, .2), rgba(255, 220, 150, .95) 40%, rgba(255, 200, 120, .9) 85%, transparent); }
@media (prefers-reduced-motion: reduce) { .holo-beam { animation: none; } }
