.fun-mode-launch { width: 100%; margin-bottom: 1.25rem; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: center; border: 1px solid #454969; border-radius: 12px; color: #f2f4ff; background: linear-gradient(110deg, #14182e, #292044); cursor: pointer; font: inherit; text-align: left; }
.fun-mode-launch span { font-weight: 600; }
.fun-mode-launch small { color: #c5c6e6; font-size: .85rem; }
.fun-mode-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; overflow: auto; overscroll-behavior: contain; background: #080c1b; color: #eef3ff; color-scheme: dark; }
.fun-mode-dialog::backdrop { background: #080c1b; }
.fun-mode-dialog .ru-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 3rem); background: #0c1022; border-bottom: 1px solid #262b47; }
.fun-mode-dialog .ru-toolbar > span { font-size: .7rem; letter-spacing: .15em; color: #a5b0d1; }
.fun-mode-dialog .ru-toolbar button { flex-shrink: 0; font: inherit; font-size: .85rem; color: #eff3ff; background: #1a203b; border: 1px solid #424b71; border-radius: 25px; padding: .65rem 1rem; min-height: 44px; cursor: pointer; }
.running-underground { padding: 1.8rem clamp(1rem, 3vw, 3rem) 2rem; min-height: calc(100dvh - 78px); background: radial-gradient(ellipse at 25% 50%, #25205266, transparent 55%), radial-gradient(ellipse at 75% 10%, #133a4b44, transparent 50%), #080c1b; color: #eef3ff; }
.running-underground .ru-eyebrow { font-size: .7rem; letter-spacing: .17em; color: #9eafdf; }
.running-underground h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.05em; margin: .45rem 0; }
.running-underground .ru-intro { font-size: .9rem; line-height: 1.6; color: #a9b5d4; }
.running-underground .ru-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 3vw, 3rem); margin-top: 1.4rem; }
.running-underground .ru-stage { min-width: 0; }
.running-underground .ru-themes { display: flex; flex-wrap: wrap; gap: .45rem; }
.running-underground .ru-themes button { font: inherit; font-size: .8rem; padding: .55rem .85rem; border: 1px solid #394366; border-radius: 20px; color: #bdc9e8; background: #11182c; cursor: pointer; min-height: 44px; }
.running-underground .ru-themes button[aria-pressed="true"] { background: #c6b8ff; color: #14152a; border-color: #c6b8ff; }
.running-underground .ru-map { width: 100%; height: max(440px, calc(100dvh - 340px)); margin: .5rem 0; }
.running-underground .ru-map svg { width: 100%; height: 100%; display: block; cursor: crosshair; }
.running-underground .ru-map-label { font: 13px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: .04em; fill: #e0e9ff; stroke: #080c1b; stroke-width: 4px; paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.running-underground .ru-key { color: #a0aecf; font-size: .72rem; line-height: 1.6; }
.running-underground .ru-panel { align-self: start; background: #11182bd9; border: 1px solid #2e3755; border-radius: 18px; padding: 1.3rem; min-width: 0; }
.running-underground .ru-summary { margin-top: .8rem; padding-bottom: 1rem; border-bottom: 1px solid #303b58; font-size: .85rem; line-height: 1.7; color: #d4ddf1; }
.running-underground .ru-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; font-size: .8rem; color: #c7d2ed; }
.running-underground .ru-timeline { width: 100%; min-height: 40px; accent-color: #c6b8ff; }
.running-underground .ru-chooser { width: 100%; min-width: 0; margin-top: .6rem; font: inherit; font-size: 1rem; padding: .65rem; border: 1px solid #414d70; border-radius: 8px; color: #eff2ff; background: #151e35; }
.running-underground .ru-run { margin-top: 1.2rem; font-size: .8rem; line-height: 1.8; overflow-wrap: anywhere; color: #b4c1df; }
.running-underground .ru-run a { color: #bcaeff; font-size: 1rem; text-underline-offset: 3px; }
.fun-mode-dialog :focus-visible, .fun-mode-launch:focus-visible { outline: 3px solid #80d5ff; outline-offset: 3px; }
@media (max-width: 850px) { .running-underground .ru-workspace { grid-template-columns: minmax(0, 1fr); } .running-underground .ru-panel { width: 100%; } .running-underground .ru-map { height: 490px; } }
@media (max-width: 480px) { .running-underground { padding-top: 1.2rem; } .fun-mode-dialog .ru-toolbar > span { max-width: 110px; line-height: 1.6; font-size: .65rem; } }
.running-underground .ru-lenses { display: flex; flex-wrap: wrap; gap: .35rem; padding-bottom: .7rem; border-bottom: 1px solid #303b58; }
.running-underground .ru-lenses button { font: inherit; font-size: .9rem; padding: .6rem .9rem; min-height: 44px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #a9b5d4; cursor: pointer; }
.running-underground .ru-lenses button[aria-pressed="true"] { color: #baf7ea; border-color: #527a78; background: #173735; }
.running-underground .ru-lens-note { min-height: 2.7em; color: #abbcd6; font-size: .8rem; line-height: 1.5; margin: .75rem 0; }
.running-underground .ru-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0; }
.running-underground .ru-metrics > div { padding: .6rem; background: #1a2440; border-radius: 8px; }
.running-underground .ru-metrics dt { color: #9badce; font-size: .7rem; }
.running-underground .ru-metrics dd { margin: .2rem 0 0; color: #e8f3ff; font-size: .95rem; font-variant-numeric: tabular-nums; }
.running-underground .ru-place { border-top: 1px solid #303b58; padding-top: .8rem; }

@media (min-width: 851px) {
  .running-underground { padding-top: 1rem; }
  .running-underground .ru-header .ru-eyebrow { margin: 0; }
  .running-underground .ru-intro { margin: .3rem 0; }
  .running-underground .ru-map { height: max(310px, calc(100dvh - 390px)); }
  .running-underground .ru-panel { padding: 1rem; }
  .running-underground .ru-summary { line-height: 1.5; margin-top: .6rem; padding-bottom: .7rem; }
  .running-underground .ru-label { margin-top: .8rem; }
  .running-underground .ru-run { margin-top: .8rem; line-height: 1.5; }
  .running-underground .ru-metrics { margin: .7rem 0; }
}

.running-underground .ru-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .8rem; }
.running-underground .ru-navigation button, .running-underground .ru-related button { font: inherit; font-size: .78rem; color: #d5e4ff; background: #16233c; border: 1px solid #435877; border-radius: 9px; min-height: 44px; padding: .55rem .8rem; cursor: pointer; }
.running-underground .ru-navigation button:hover, .running-underground .ru-related button:hover { background: #274060; border-color: #80d5ff; }
.running-underground .ru-zoom-value { min-width: 3.3rem; text-align: center; font: .75rem ui-monospace, monospace; color: #b9d9ee; }
.running-underground .ru-map svg { touch-action: none; cursor: grab; user-select: none; }
.running-underground .ru-map .ru-star { cursor: grab; }
.running-underground .ru-map .ru-map-label { pointer-events: auto; cursor: zoom-in; }
.running-underground .ru-dragging svg, .running-underground .ru-dragging .ru-star { cursor: grabbing; }
.running-underground .ru-related { border-top: 1px solid #303b58; padding-top: .5rem; }
.running-underground .ru-related button { display: block; width: 100%; margin: .4rem 0; text-align: left; }

.running-underground .ru-navigation button[aria-pressed="true"] { color: #d9f8f1; background: #25453f; border-color: #5a897f; }
.running-underground .ru-navigation button[aria-label="Find longest run"] { color: #fff1b4; border-color: #8a7950; }
.running-underground .ru-size-guide { color: #bac9e4; font-size: .78rem; margin: .5rem 0; }
.running-underground .ru-size-guide summary { cursor: pointer; padding: .65rem 0; min-height: 44px; }
.running-underground .ru-size-guide svg { display: block; width: 100%; max-width: 360px; height: auto; }
