

.run-countdown { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); color: #fff; font: 900 clamp(72px, 22vw, 160px)/1 var(--font-display); text-shadow: 0 0 28px rgba(0, 245, 255, .85), 0 0 6px rgba(0, 0, 0, .9); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .run-countdown:not([hidden]) { animation: run-count 1s ease-out infinite; } }
@keyframes run-count { from { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } to { opacity: .85; transform: translate(-50%, -50%) scale(.95); } }




.journey { --map-sea: #e9eef8; --map-land: #c5cfe3; --map-done: #0a84c8; --map-ahead: rgba(23, 26, 32, .45); --pin-bg: #ffffff; --pin-text: #171a20; --pin-line: rgba(23, 26, 32, .35); --label-bg: rgba(255, 255, 255, .92);
  position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 62vh; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--map-sea); touch-action: manipulation; }
@media (min-width: 640px) { .journey { aspect-ratio: 16 / 10; } }
@media (orientation: landscape) and (max-height: 520px) { .journey { aspect-ratio: auto; height: 62vh; } }
@media (prefers-color-scheme: dark) { :root:not(.light) .journey { --map-sea: #070816; --map-land: #2a2f63; --map-done: #00f5ff; --map-ahead: rgba(255, 255, 255, .4); --pin-bg: #0e1022; --pin-text: #ffffff; --pin-line: rgba(255, 255, 255, .35); --label-bg: rgba(7, 8, 22, .88); } }
:root.dark .journey { --map-sea: #070816; --map-land: #2a2f63; --map-done: #00f5ff; --map-ahead: rgba(255, 255, 255, .4); --pin-bg: #0e1022; --pin-text: #ffffff; --pin-line: rgba(255, 255, 255, .35); --label-bg: rgba(7, 8, 22, .88); }
.journey-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }



.journey-map .map-land, .journey-map #run-land { fill: var(--map-land); stroke: none; }
.journey-map .map-done, .journey-map .map-ahead { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.journey-map .map-done { stroke: var(--map-done); stroke-width: 3.5; filter: drop-shadow(0 0 3px var(--map-done)); }
.journey-map .map-ahead { stroke: var(--map-ahead); stroke-width: 2.5; stroke-dasharray: 2 7; }
.journey[data-mode="world"] { aspect-ratio: 2 / 1; height: auto; }
.journey[data-mode="world"] .journey-map .map-done, .journey[data-mode="world"] .journey-map .map-ahead { opacity: .35; }
.journey-pins { position: absolute; inset: 0; }
.pin { position: absolute; width: 44px; height: 44px; margin: 0; padding: 0; transform: translate(-50%, -50%); display: grid; place-items: center; border: 0; background: none; color: var(--pin-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pin-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box; border: 2px solid var(--pin-line); background: var(--pin-bg); color: var(--pin-text); font: 800 11px/1 var(--font-display); }
.node.done .pin-dot { background: var(--node-glow, var(--map-done)); border-color: var(--pin-bg); color: #05060f; box-shadow: 0 0 8px var(--node-glow, var(--map-done)); }
.node.next .pin-dot { width: 30px; height: 30px; border: 3px solid var(--pin-text); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 0 16px var(--node-glow, var(--map-done)); }
.node.ahead { cursor: default; }
.node.ahead .pin-dot { width: 18px; height: 18px; border-style: dashed; font-size: 0; opacity: .8; }
.node[aria-pressed="true"] .pin-dot { outline: 3px solid var(--primary); outline-offset: 2px; }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-dot { outline: 3px solid var(--ring); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .node.next .pin-dot { animation: node-glow 1.6s ease-in-out infinite alternate; } }
@keyframes node-glow { from { box-shadow: 0 0 0 3px rgba(255, 255, 255, .2), 0 0 8px var(--node-glow, #00f5ff); } to { box-shadow: 0 0 0 5px rgba(255, 255, 255, .35), 0 0 24px var(--node-glow, #00f5ff); } }
.journey[data-mode="world"] .node { display: none; }
.pin-label { position: absolute; transform: translate(-50%, calc(-100% - 20px)); max-width: 46%; padding: 2px 8px; border-radius: 8px; background: var(--label-bg); color: var(--pin-text); font-size: 12px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; text-align: center; pointer-events: none; }
.start-pin .pin-dot { width: 18px; height: 18px; background: var(--primary); border-color: var(--pin-bg); }
.start-pin.current .pin-dot { width: 22px; height: 22px; box-shadow: 0 0 0 3px var(--map-done); }
.start-pin.picked .pin-dot { outline: 3px solid var(--primary); outline-offset: 3px; }
.pin-name { position: absolute; top: calc(50% + 12px); left: 50%; transform: translateX(-50%); max-width: 120px; padding: 1px 6px; border-radius: 6px; background: var(--label-bg); font-size: 11px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; text-align: center; pointer-events: none; }
.pin.name-above .pin-name { top: auto; bottom: calc(50% + 12px); }
.journey-detail { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; text-align: center; font-size: 15px; }
.journey-detail[hidden] { display: none; }
.journey-tools .link-btn, .run-first .link-btn { min-height: 44px; }
.journey-detail .button, .journey-confirm .button { min-height: 44px; min-width: 44px; }
.journey-step { font-size: 22px; line-height: 1; }
.journey-confirm { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); }
.journey-confirm .row { display: flex; flex-wrap: wrap; gap: 8px; }


.run-overlay .panel { max-height: 100%; overflow-y: auto; }
.seen { text-align: left; }
.seen h3 { font-size: 13px; font-weight: 700; opacity: .8; }
.seen-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scroll-snap-type: x proximity; }
.seen-card { flex: 0 0 150px; min-height: 64px; display: grid; align-content: start; gap: 2px; padding: 8px 10px; border-radius: 10px; background: #0d1220; border: 1px solid #2a3348; border-left: 4px solid var(--seen-accent, #9aa7bd); color: #eef2fa; text-decoration: none; font-size: 12px; line-height: 1.3; scroll-snap-align: start; position: relative; }
.seen-card strong { font-size: 14px; }
.seen-card span { color: #b9c3d6; }
.seen-sponsor { padding: 0; overflow: hidden; border-left-width: 1px; }
.seen-sponsor img { display: block; width: 100%; height: 75px; object-fit: contain; background: #0d1220; }
.seen-sponsor .seen-ad { position: absolute; top: 4px; left: 4px; padding: 1px 6px; border-radius: 4px; background: rgba(5, 5, 12, .82); color: #eef2fa; font-weight: 700; }
a.seen-card:focus-visible { outline: 2px solid #eef2fa; outline-offset: 2px; }
.journey-tools { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }
.run-btn { display: grid; gap: 2px; justify-items: center; }
.run-btn .run-main { font-size: 1.15em; }
.run-btn .run-sub { font-size: 13px; font-weight: 600; opacity: .85; }
.run-btn .run-sub:empty { display: none; }
.run-first { text-align: center; color: var(--muted); margin-top: -6px; }
.run-stage.sharing .run-hud { display: none; }
