/* tiny vienna. Map palette after the GTA VI map, HUD in Barlow Condensed, Bezirk in a brush script. */
/* weight 500 uses the 600 file: one file less on the way to the first picture */
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-600.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-600-ext.woff2) format("woff2"); font-weight: 600; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url(/fonts/yellowtail.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --land: #82A38D;
  --hud: rgb(9 15 26 / .82);
  --hud-solid: rgb(9 15 26 / .94);
  --hud-line: rgb(255 255 255 / .14);
  --fg: #F5F8FC;
  --dim: #AEBBCD;
  --ink: #0A121E;
  --hot: #FF3F9B;
  --route: #FF3D8F;
  --font-ui: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;
  --gap: 12px;
  --top: max(var(--gap), env(safe-area-inset-top, 0px));
  --edge-l: max(var(--gap), env(safe-area-inset-left, 0px));
  --edge-r: max(var(--gap), env(safe-area-inset-right, 0px));
  --edge-b: max(var(--gap), env(safe-area-inset-bottom, 0px));
  --radar-w: 232px;
  color-scheme: light;
}
* { box-sizing: border-box; }
/* the sea around the island: Safari takes its bar colours top and bottom from here */
html, body { height: 100%; margin: 0; background: #2E91B0; overflow: hidden; overscroll-behavior: none; }
/* the page itself never moves: iOS likes to leave it shifted up after the keyboard closes */
body { position: fixed; inset: 0; }
body { overflow: hidden; color: var(--fg); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
/* the map fills the window; in an iOS home-screen app the system draws the status bar above it (see boot.js) */
#app { position: fixed; inset: 0; overflow: hidden; }
/* space around the globe: a dusk sky turning lilac, night above, a pink and orange glow low down, a soft lilac haze around the earth */
html[data-city="welt"] #map { background:
  radial-gradient(circle farthest-side at 50% 50%, rgba(214, 150, 255, .5) 0%, rgba(214, 150, 255, .32) 32%, rgba(160, 90, 210, .16) 56%, rgba(0, 0, 0, 0) 78%),
  linear-gradient(180deg, #110B2B 0%, #241449 30%, #4E2470 55%, #8E3486 75%, #D2558E 90%, #F2916E 100%) !important; }
html[data-city="welt"] { background: #0B0A1C; }
#map { position: absolute; inset: 0; background: linear-gradient(#8DBBE8, #C6CFDA 42%, var(--land) 42%); }
/* loading screen until the live map has drawn, the way GTA does it: the picture full and bright,
   the logo large in the lower left, a tip along the bottom, a small spinner in the lower right */
.poster { position: absolute; inset: 0; z-index: 8; overflow: hidden; background: #05080D; transition: opacity .6s; }
.poster.gone { opacity: 0; pointer-events: none; }
.intro { position: absolute; inset: 0; z-index: 1; }
.intro p { margin: 0; }
.intro-logo { position: absolute; left: max(28px, env(safe-area-inset-left, 0px)); bottom: 76px; display: flex; flex-direction: column; align-items: flex-start; }
.intro-city { font: 400 clamp(68px, 11vw, 132px)/1.15 var(--font-script); color: #fff; -webkit-text-stroke: clamp(8px, 1.2vw, 13px) var(--ink); paint-order: stroke fill; text-shadow: 5px 7px 0 rgb(10 18 30 / .45); margin-left: -6px !important; }
.intro-sub { margin-top: -6px !important; padding: 5px 12px 6px; background: var(--ink); color: #fff; font: 700 clamp(16px, 2vw, 22px)/1 var(--font-ui); letter-spacing: .28em; text-transform: uppercase; }
.intro-tip { position: absolute; left: max(28px, env(safe-area-inset-left, 0px)); right: 90px; bottom: 26px; color: #fff; font: 600 16px/1.3 var(--font-ui); letter-spacing: .03em; text-shadow: 0 1px 3px var(--ink); }
.intro-hint { position: absolute; right: 70px; bottom: 26px; color: #fff; font: 700 15px/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 3px var(--ink); }
.hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .hint-mouse { display: inline; } .hint-touch { display: none; } }
.intro-spin { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 20px; width: 30px; height: 30px; }
.intro-spin span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid rgb(255 255 255 / .25); border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

html[data-map="loading"] .intro-hint { opacity: 0; }
@media (max-width: 640px) {
  .intro-logo { left: 18px; bottom: 96px; }
  .intro-tip { left: 18px; right: 18px; bottom: 50px; font-size: 14px; }
  .intro-hint { left: 18px; right: auto; bottom: 20px; font-size: 13px; }
  .intro-spin { right: 18px; bottom: 16px; width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .intro-spin span { animation-duration: 3s; } }
/* the HUD comes in with the live map, so nothing on screen looks pressable before it works */
html:not([data-map="ready"]) .legend, html:not([data-map="ready"]) .controls, html:not([data-map="ready"]) .radar,
html:not([data-map="ready"]) .where { opacity: 0; pointer-events: none; }
.legend, .controls, .radar, .where { transition: opacity .4s; }
@media (prefers-reduced-motion: reduce) { .intro-hint, .intro-bar span { animation: none; } }
.tile-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 7; overflow: hidden; pointer-events: none; background: rgb(166 77 240 / .18); }
.tile-bar span { display: block; width: 30%; height: 100%; background: var(--route); box-shadow: 0 0 8px var(--route); animation: load 1s ease-in-out infinite; }
.notice-link { color: #FF9CC8; font-weight: 700; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
.maplibregl-canvas:focus-visible { outline: 2px solid var(--hot); outline-offset: -2px; }
.maplibregl-marker { position: absolute; left: 0; top: 0; will-change: transform; }
.maplibregl-canvas-container.maplibregl-interactive { cursor: grab; }
.maplibregl-canvas-container.maplibregl-interactive:active { cursor: grabbing; }

/* the name of the blip under the pointer */
.tip { position: absolute; left: 0; top: 0; padding: 5px 10px 6px; max-width: 300px; background: var(--hud-solid); font: 700 17px/1.15 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translate(-50%, calc(-100% - 20px)); }
.tip small { display: block; font-weight: 600; font-size: 13px; letter-spacing: .08em; color: var(--dim); }

/* the player and the waypoint */
.player { width: 38px; height: 38px; cursor: grab; filter: drop-shadow(0 1px 1px rgb(10 18 30 / .5)); }
.player svg { display: block; width: 100%; height: 100%; }
.player path { fill: #fff; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.waypoint { width: 28px; height: 37px; cursor: pointer; filter: drop-shadow(0 2px 2px rgb(10 18 30 / .45)); }
.waypoint svg { display: block; width: 100%; height: 100%; }
.waypoint path { fill: var(--route); stroke: #fff; stroke-width: 1.8; }
.waypoint circle { fill: #fff; }
.wp-label { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); padding: 2px 7px 3px; background: var(--hud-solid); color: var(--fg); font: 700 14px/1.1 var(--font-ui); letter-spacing: .05em; white-space: nowrap; }
.wp-label:empty { display: none; }

/* legend, top left */
.legend { position: absolute; left: var(--edge-l); top: var(--top); width: 232px; max-height: calc(100% - 210px); display: flex; flex-direction: column; background: var(--hud); }
.legend-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px 8px 12px; border: 0; background: none; text-align: left; border-bottom: 1px solid var(--hud-line); }
.legend-title { font: 700 24px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.legend-total { margin-left: auto; font: 600 14px/1 var(--font-ui); letter-spacing: .04em; color: var(--dim); font-variant-numeric: tabular-nums; }
.chev { width: 12px; height: 12px; transition: transform .2s; }
.legend[data-open="false"] .chev { transform: rotate(-90deg); }
.legend[data-open="false"] .legend-list { display: none; }
.legend[data-open="false"] .legend-head { border-bottom: 0; }
.legend-list { list-style: none; margin: 0; padding: 4px 0 6px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .25) transparent; }
.kind { display: flex; align-items: center; gap: 8px; width: 100%; padding: 2px 10px 2px 8px; border: 0; background: none; font: 600 16px/1.3 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; text-align: left; }
.kind:hover { background: rgb(255 255 255 / .08); }
.kind[aria-pressed="false"] { color: rgb(245 248 252 / .38); }
.kind[aria-pressed="false"] img { opacity: .35; filter: grayscale(1); }
.kind[aria-pressed="false"] .n { color: rgb(174 187 205 / .4); }
.kind img { width: 22px; height: 22px; flex: none; margin: -2px 0; }
.kind .dot { width: 22px; flex: none; }
.kind .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kind .n { margin-left: auto; font-weight: 500; font-size: 14px; color: var(--dim); font-variant-numeric: tabular-nums; }
.list-all .kind { padding-top: 4px; padding-bottom: 4px; }
.city-link { color: var(--fg); text-decoration: none; }
.city-link .dot::before { content: ""; display: block; width: 8px; height: 8px; margin: 0 auto; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 2px #fff; }

/* camera, top right */
.controls { position: absolute; right: var(--edge-r); top: var(--top); display: flex; flex-direction: column; gap: 4px; }
.controls button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; background: var(--hud); font: 700 18px/1 var(--font-ui); letter-spacing: .04em; }
.controls button:hover { background: var(--hud-solid); }
.controls button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }
.controls svg { width: 20px; height: 20px; }
.controls .gap { margin-top: 8px; }
.controls button[data-done="true"] { background: var(--route); }
.controls button[data-busy="true"] svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.controls button[data-done="true"]::after { content: "Link kopiert"; position: absolute; right: calc(100% + 8px); padding: 6px 10px; background: var(--hud-solid); color: var(--fg); font: 700 15px/1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.controls button { position: relative; }

/* city markers on the Austria overview */
/* the marker is the pin; its name sits above it, or beside or below it where cities are close together */
.city-mark { display: block; width: 16px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; }
.city-pin { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--ink); order: 2; }
.city-name { padding: 3px 8px 4px; background: var(--hud-solid); color: var(--fg); font: 700 16px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.city-mark:hover .city-name { background: var(--route); }
.city-mark .city-name { position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); }
.city-mark[data-side="left"] .city-name { left: auto; right: calc(100% + 8px); bottom: auto; top: 50%; transform: translateY(-50%); }
.city-mark[data-side="right"] .city-name { left: calc(100% + 8px); bottom: auto; top: 50%; transform: translateY(-50%); }
.city-mark[data-side="below"] .city-name { bottom: auto; top: calc(100% + 7px); }

/* where each ride starts: the line and its departure */
.ride-badge { display: flex; align-items: center; gap: 4px; padding: 3px 6px 3px 3px; background: var(--hud-solid); color: var(--fg); font: 700 14px/1 var(--font-ui); letter-spacing: .04em; box-shadow: 0 2px 6px rgb(10 18 30 / .35); pointer-events: none; }
.ride-badge .line { min-width: 28px; padding: 3px 5px; font-size: 14px; }

/* iOS takes the status bar colour from what sits at the very top edge: a hairline of sea blue over everything,
   the loading screen included, so the bar is blue from the first frame */
.top-tint { position: fixed; left: 0; right: 0; top: 0; height: 2px; background: #2E91B0; z-index: 30; pointer-events: none; }

/* the wanted level, GTA style: six stars top right, filled ones white, empty ones grey, a blink when it rises */
.wanted { position: absolute; top: calc(var(--top) + 6px); right: calc(var(--edge-r) + 54px); z-index: 5; display: flex; gap: 1px; pointer-events: none; }
/* small flat stars as in the GTA VI HUD: white when earned, a dim grey when not */
.wanted svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .45)); }
.wanted .on path { fill: #FFFFFF; stroke: none; }
.wanted .off path { fill: rgb(40 48 60 / .55); stroke: none; }
/* police lights at the screen edges while you are wanted */
.lights { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .4s; }
html.hunted .lights { opacity: 1; animation: lights 0.9s steps(1) infinite; }
@keyframes lights {
  0% { box-shadow: inset 70px 0 90px -60px rgb(232 37 75 / .75), inset -70px 0 90px -60px rgb(45 107 255 / .0); }
  25% { box-shadow: inset 70px 0 90px -60px rgb(232 37 75 / .0), inset -70px 0 90px -60px rgb(45 107 255 / .8); }
  50% { box-shadow: inset 70px 0 90px -60px rgb(232 37 75 / .75), inset -70px 0 90px -60px rgb(45 107 255 / .0); }
  75% { box-shadow: inset 70px 0 90px -60px rgb(232 37 75 / .0), inset -70px 0 90px -60px rgb(45 107 255 / .8); }
}
@media (prefers-reduced-motion: reduce) { html.hunted .lights { animation: none; box-shadow: inset 0 0 60px -30px rgb(232 37 75 / .5); } }
.wanted.rise .on path { animation: starblink .5s steps(1) 6; }
.wanted.fading .on path { animation: starblink .4s steps(1) infinite; }
@keyframes starblink { 50% { fill: rgb(10 18 30 / .35); stroke: rgb(245 248 252 / .35); } }
.cheat { position: absolute; right: calc(var(--edge-r) + 52px); top: calc(var(--top) + 40px); z-index: 9; margin: 0; padding: 8px 16px; background: var(--hud-solid); color: var(--fg); font: 700 18px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
html.hunted .radar { animation: siren 1s steps(1) infinite; }
@keyframes siren { 0% { border-color: #E8254B; box-shadow: 0 0 18px #E8254B; } 50% { border-color: #2D6BFF; box-shadow: 0 0 18px #2D6BFF; } }
@media (max-width: 640px) {
  .city-pin { width: 11px; height: 11px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
  .city-name { padding: 2px 4px 3px; font-size: 10px; letter-spacing: .05em; }
  .city-mark { width: 11px; height: 11px; }
}
@media (max-width: 640px) { .wanted { right: auto; left: 50%; transform: translateX(-50%); top: 64px; } .wanted svg { width: 26px; height: 26px; } .cheat { right: auto; left: 50%; transform: translateX(-50%); top: 100px; } }
@media (prefers-reduced-motion: reduce) { .wanted.rise .on path, html.hunted .radar { animation: none; } }

/* legend groups */
.group { padding: 10px 12px 3px; font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* info card for a place, right side under the camera buttons */
.card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: min(340px, calc(100% - 140px)); max-height: min(70vh, calc(100% - 120px)); overflow-y: auto; padding: 14px; background: var(--hud-solid); box-shadow: 0 12px 40px rgb(5 8 13 / .55); }
.card-head { display: flex; align-items: flex-start; gap: 10px; }
.card-head img { width: 34px; height: 34px; flex: none; margin-top: -2px; }
.card-title { flex: 1; min-width: 0; }
.card h2 { margin: 0; font: 700 21px/1.1 var(--font-ui); letter-spacing: .03em; text-transform: uppercase; overflow-wrap: anywhere; }
.card-title p { margin: 3px 0 0; font: 600 14px/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.card-head button { width: 28px; height: 28px; flex: none; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--dim); }
.card-head button:hover { color: var(--fg); }
.card-head svg { width: 16px; height: 16px; }
.card-lines { display: flex; gap: 6px; margin-top: 10px; }
.line { min-width: 30px; padding: 3px 6px; color: #fff; font: 700 15px/1 var(--font-ui); letter-spacing: .04em; text-align: center; }
.card-status { margin: 10px 0 0; font: 700 16px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.card-status[data-open="true"] { color: #7CE6A2; }
.card-status[data-open="false"] { color: #FF8A8A; }
.card-hours { margin-top: 6px; font: 500 16px/1.35 var(--font-ui); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.card-row { display: block; margin: 8px 0 0; font: 500 16px/1.3 var(--font-ui); letter-spacing: .02em; color: var(--fg); overflow-wrap: anywhere; }
.card-link { color: #9FD4FF; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-route { display: block; width: 100%; margin-top: 12px; padding: 9px 12px; border: 0; background: var(--route); color: #fff; font: 700 17px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.card-route:hover { background: #B566F5; }

/* the trip to the waypoint, top centre */
.trip { position: absolute; left: 50%; top: var(--top); transform: translateX(-50%); display: flex; flex-direction: column; width: min(480px, calc(100% - 140px)); background: var(--hud-solid); z-index: 4; }
.ends { position: relative; display: grid; gap: 6px; padding: 10px 10px 6px; }
.end { display: flex; align-items: center; gap: 8px; padding: 0 2px 0 10px; background: rgb(255 255 255 / .07); }
.end input { flex: 1; min-width: 0; height: 38px; border: 0; background: none; color: var(--fg); font: 600 17px/1 var(--font-ui); letter-spacing: .02em; outline: none; }
.end input::placeholder { color: var(--dim); font-weight: 500; }
.end:focus-within { box-shadow: inset 0 0 0 2px var(--route); }
.end input::-webkit-search-cancel-button { display: none; }
.end-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; }
.end-dot.is-start { background: #fff; box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 4px #fff; }
.end-dot.is-goal { background: var(--route); box-shadow: 0 0 0 2px #fff; }
.end-btn { width: 34px; height: 34px; flex: none; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--dim); }
.end-btn:hover { color: var(--fg); }
.end-btn svg { width: 17px; height: 17px; }
.suggest { position: absolute; left: 10px; right: 10px; top: calc(100% - 2px); z-index: 7; list-style: none; margin: 0; padding: 4px 0; max-height: 50vh; overflow-y: auto; background: var(--hud-solid); box-shadow: 0 10px 24px rgb(10 18 30 / .45); }
.suggest button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; background: none; color: var(--fg); text-align: left; font: 600 16px/1.2 var(--font-ui); letter-spacing: .02em; }
.suggest button:hover, .suggest button[aria-selected="true"] { background: rgb(255 255 255 / .1); }
.suggest img { width: 22px; height: 22px; flex: none; }
.suggest .dot-s { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--route); transform: scale(.45); box-shadow: 0 0 0 3px #fff; }
.s-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-sub { margin-left: auto; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.s-note { padding: 7px 12px; color: var(--dim); font: 500 14px/1.2 var(--font-ui); letter-spacing: .04em; }
.trip-row { display: flex; align-items: center; gap: 10px; padding: 2px 10px 10px; }
.trip-ask { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 10px 10px; font: 700 16px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.trip-ask button { padding: 9px 12px; border: 0; background: var(--route); color: #fff; font: 700 14px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.trip-ask button + button { background: rgb(255 255 255 / .12); }
.when { display: flex; align-items: center; gap: 8px; padding: 0 10px 10px; }
.when-modes { display: flex; background: rgb(255 255 255 / .08); }
.when-modes button { padding: 7px 12px; border: 0; background: none; color: var(--dim); font: 700 14px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.when-modes button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }
.when input { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 0; background: rgb(255 255 255 / .08); color: var(--fg); font: 600 15px/1 var(--font-ui); color-scheme: dark; }
.options { display: grid; gap: 4px; padding: 0 10px 10px; max-height: 34vh; overflow-y: auto; }
.opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: rgb(255 255 255 / .06); color: var(--fg); text-align: left; font: 600 15px/1.2 var(--font-ui); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--route); background: rgb(166 77 240 / .16); }
.opt-times { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt-lines { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.opt-lines .line { min-width: 0; padding: 3px 5px; font-size: 13px; }
.opt-dur { margin-left: auto; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt-more { justify-self: start; padding: 6px 2px; border: 0; background: none; color: #FF9CC8; font: 700 14px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.go { margin: 0 10px 10px; padding: 12px; border: 0; background: var(--route); color: #fff; font: 700 18px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.go:hover { background: #B566F5; }
/* navigation: the next move large at the top, time left at the bottom (Bogen: "Navigation, phone 390") */
.nav-top { position: absolute; left: 50%; top: var(--top); transform: translateX(-50%); width: min(520px, calc(100% - 24px)); display: flex; align-items: stretch; background: var(--hud-solid); color: var(--fg); z-index: 6; }
.nav-turn { width: 92px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 0; background: var(--route); }
.nav-turn svg { width: 46px; height: 46px; }
.nav-turn span { font: 700 26px/1 var(--font-ui); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.nav-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 14px; }
.nav-what { font: 600 14px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.nav-street { font: 700 27px/1.05 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.nav-then { font: 600 14px/1.2 var(--font-ui); letter-spacing: .06em; color: var(--dim); }
.nav-then:empty { display: none; }
.nav-bottom { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100%); display: flex; align-items: center; gap: 12px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--hud-solid); color: var(--fg); border-radius: 14px 14px 0 0; z-index: 6; }
.nav-left { display: flex; flex-direction: column; gap: 3px; }
.nav-time { font: 700 34px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.nav-rest { font: 600 15px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.nav-voice { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: rgb(255 255 255 / .1); color: var(--fg); }
.nav-voice svg { width: 22px; height: 22px; }
.nav-voice[aria-pressed="false"] .wave { display: none; }
.nav-voice[aria-pressed="false"] { color: var(--dim); }
.nav-voice { position: relative; }
.nav-voice[data-state="loading"]::after { content: attr(data-loading); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 4px 8px; background: var(--hud-solid); color: var(--fg); font: 700 12px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.nav-end { margin-left: 0; padding: 12px 16px; border: 0; background: #C8102E; color: #fff; font: 700 16px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.nav-recenter { position: absolute; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 6; padding: 12px 18px; border: 0; background: var(--route); color: #fff; font: 700 16px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 18px rgb(10 18 30 / .4); }
.nav-gps { position: absolute; right: var(--edge-r); bottom: calc(110px + env(safe-area-inset-bottom, 0px)); z-index: 6; margin: 0; padding: 6px 10px; background: var(--hud-solid); color: #FFB45E; font: 700 13px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.navigating .controls { display: none !important; }
.navigating .legend, .navigating .controls > :not(#mode):not(#north), .navigating .trip, .navigating .card, .navigating .bezirk, .navigating .credit, .navigating .foot, .navigating .radar { display: none !important; }
.navigating .where { bottom: 110px; }
.ctx { position: absolute; z-index: 9; display: flex; flex-direction: column; min-width: 150px; background: var(--hud-solid); box-shadow: 0 8px 22px rgb(10 18 30 / .45); transform: translate(-50%, 10px); }
.ctx button { padding: 11px 14px; border: 0; background: none; color: var(--fg); text-align: left; font: 700 16px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.ctx button:hover { background: rgb(255 255 255 / .1); }
.ctx button + button { border-top: 1px solid var(--hud-line); }
.start-mark { cursor: grab; }
.start-mark { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px #fff, 0 2px 6px rgb(10 18 30 / .5); }
.trip-to { font: 700 18px/1.1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip-dist { flex: none; font: 600 17px/1.1 var(--font-ui); letter-spacing: .04em; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trip-row > button.unused { flex: none; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--dim); }
.trip-row > button:hover { color: var(--fg); }
.trip svg { width: 16px; height: 16px; }

.trip-modes { display: flex; flex: none; background: rgb(255 255 255 / .08); }
.trip-modes button { padding: 5px 9px; border: 0; background: none; color: var(--dim); font: 700 14px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.trip-modes button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }
.trip-legs { max-height: 40vh; overflow-y: auto; padding: 8px 12px; border-top: 1px solid var(--hud-line); }
.leg { display: flex; align-items: center; gap: 8px; padding: 3px 0; font: 500 15px/1.25 var(--font-ui); letter-spacing: .02em; }
.leg-time { width: 40px; flex: none; color: var(--dim); font-variant-numeric: tabular-nums; }
.leg-walk { padding: 2px 6px; border: 1px dashed var(--dim); color: var(--dim); font: 700 13px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; }
.leg-to { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-deps { margin-top: 10px; }
.deps-head { font: 700 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.dep + .deps-head { margin-top: 12px; }
.dep { display: flex; align-items: center; gap: 8px; padding: 3px 0; font: 500 16px/1.2 var(--font-ui); }
.dep .line { min-width: 34px; }
.dep-to { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-min { color: #7CE6A2; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dep-none { color: var(--dim); font: 500 15px/1.3 var(--font-ui); }

/* radar, bottom left: centred on the player, turning with the camera */
.radar { position: absolute; left: var(--edge-l); bottom: var(--edge-b); width: var(--radar-w); height: 150px; overflow: hidden; background: var(--land); border: 3px solid rgb(9 15 26 / .85); pointer-events: none; }
#radarMap { position: absolute; inset: 0; }
.radar-me { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; will-change: transform; z-index: 2; }
.radar-wp, .radar-n { position: absolute; left: 50%; top: 50%; will-change: transform; }
.radar-wp { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.radar-n { width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px/17px var(--font-ui); text-align: center; }

/* street and district under the pointer, bottom right */
.where { position: absolute; right: var(--edge-r); bottom: 30px; max-width: min(60%, 540px); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; padding-right: 4px; }
.sign { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; font: 600 19px/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 2px var(--ink), 0 1px 2px var(--ink), 1px 0 2px var(--ink), -1px 0 2px var(--ink), 0 -1px 2px var(--ink); }
.sign-nr { font-weight: 700; }
.bezirk { font: 400 52px/1.1 var(--font-script); color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 3px 4px 0 rgb(10 18 30 / .35); padding: 0 6px 6px 0; text-align: right; text-wrap: balance; transition: opacity .25s; }
.bezirk.is-changing { opacity: 0; }

/* one small line at the bottom: Impressum, Datenschutz, and the sources behind a tap */
.foot { position: absolute; left: calc(var(--edge-l) + var(--radar-w) + 12px); bottom: max(8px, env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; gap: 2px; }
.foot a, .foot button { padding: 4px 8px; border: 0; background: rgb(9 15 26 / .62); color: var(--fg); font: 600 12px/1.2 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.foot a:hover, .foot button:hover { background: var(--hud-solid); }
.credit { display: none; position: absolute; left: calc(var(--edge-l) + var(--radar-w) + 12px); bottom: calc(max(8px, env(safe-area-inset-bottom, 0px)) + 30px); z-index: 3; max-width: min(520px, calc(100% - var(--radar-w) - 40px)); margin: 0; padding: 10px 12px; background: var(--hud-solid); color: var(--fg); font: 500 13px/1.45 var(--font-ui); letter-spacing: .02em; }
.credit a { color: #FF9CC8; }
.credits-open .credit { display: block; }
.credits-open #creditToggle { background: var(--route); }

.notice { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: min(80%, 420px); margin: 0; padding: 14px 18px; background: var(--hud-solid); font: 600 18px/1.35 var(--font-ui); letter-spacing: .03em; text-align: center; }

@media (max-width: 900px) {
  .credit { max-width: calc(100% - var(--radar-w) - 30px - var(--edge-r)); }
  .where { bottom: 48px; }
  .bezirk { font-size: 44px; -webkit-text-stroke-width: 5px; }
}
@media (max-width: 640px) {
  .nav-top { top: max(8px, env(safe-area-inset-top, 0px)); width: calc(100% - 16px); }
  .nav-turn { width: 96px; }
  .nav-turn span { font-size: 28px; }
  .nav-street { font-size: 28px; }
  .legend { width: 190px; max-height: calc(100% - 220px); }
  .legend-title { font-size: 20px; }
  .kind { font-size: 15px; }
  .radar { display: none; }
  .tip { display: none !important; }
  /* fewer buttons: pinch zooms, so keep 3D, location, link and the compass */
  .controls #orbit, .controls #zin, .controls #zout, .controls #home { display: none; }
  .controls .gap { margin-top: 0; }
  /* one bottom sheet look for the place card and the trip */
  .card, .trip { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; transform: none; border-radius: 14px 14px 0 0; background: var(--hud-solid); box-shadow: 0 -6px 24px rgb(10 18 30 / .35); }
  .card::before, .trip::before { content: ""; display: block; width: 40px; height: 4px; margin: 8px auto 4px; border-radius: 2px; background: rgb(255 255 255 / .25); flex: none; }
  .card { max-height: 62%; z-index: 5; padding: 6px 14px 0; }
  .card-route { position: sticky; bottom: 0; margin: 14px -14px 0; width: calc(100% + 28px); padding: 15px 12px calc(15px + env(safe-area-inset-bottom, 0px)); }
  .trip { z-index: 4; max-height: 60%; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .trip { width: auto; }
  .trip-row { flex-wrap: wrap; gap: 8px 10px; padding: 2px 12px 10px; }
  .trip-dist { font-size: 18px; color: var(--fg); }
  .ends { padding: 4px 12px 8px; }
  .end input { height: 44px; font-size: 17px; }
  .suggest { position: static; max-height: 38vh; box-shadow: none; margin: 0 -2px; }
  .trip-modes { order: 5; flex-basis: 100%; }
  .trip-modes button { flex: 1; padding: 11px 8px; font-size: 15px; }
  .trip-legs { max-height: none; flex: 1; padding: 8px 16px 14px; }
  .leg { font-size: 16px; padding: 5px 0; }
  .card-open .where, .card-open .credit, .card-open .trip, .card-open .foot,
  .trip-open .where, .trip-open .credit, .trip-open .foot { display: none; }
  .where { left: var(--edge-l); max-width: none; bottom: calc(max(8px, env(safe-area-inset-bottom, 0px)) + 30px); }
  .sign { font-size: 16px; }
  .bezirk { font-size: 38px; -webkit-text-stroke-width: 5px; }
  .foot { left: var(--edge-l); }
  .credit { left: var(--edge-l); right: var(--edge-r); max-width: none; }
}
@media (max-height: 500px) {
  .radar { display: none; }
  .foot { left: var(--edge-l); }
  .credit { left: var(--edge-l); max-height: calc(100% - 60px); overflow-y: auto; }
  .legend { width: 200px; max-height: calc(100% - 24px); }
  .legend[data-open="true"] ~ .foot { left: calc(var(--edge-l) + 210px); }
  .controls { gap: 3px; }
  .controls button { width: 34px; height: 34px; }
  .controls .gap { margin-top: 0; }
  .controls #orbit, .controls #zin, .controls #zout, .controls #home { display: none; }
  .where { bottom: calc(max(8px, env(safe-area-inset-bottom, 0px)) + 28px); max-width: 46%; }
  .bezirk { font-size: 32px; -webkit-text-stroke-width: 4px; padding-bottom: 2px; }
  .sign { font-size: 14px; }
  .trip { max-height: calc(100% - 16px); top: 8px; bottom: auto; right: calc(var(--edge-r) + 44px); left: auto; width: min(380px, 55%); border-radius: 0; transform: none; }
  .card { max-height: calc(100% - 24px); width: min(380px, 60%); }
  .nav-top { top: 6px; }
  .nav-turn { width: 70px; } .nav-turn svg { width: 34px; height: 34px; } .nav-turn span { font-size: 20px; }
  .nav-street { font-size: 20px; }
  .nav-bottom { padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .nav-time { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bezirk, .chev { transition: none; }
}

/* Vice City sunset on the buttons that start something */
#navGo, .ask .primary { background: linear-gradient(100deg, #FF3D8F 0%, #FF6A5C 55%, #FFA23D 100%); }

/* the world: countries as an island */
.land-pick { position: relative; padding: 8px 12px 10px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.land-label { display: block; margin-bottom: 5px; color: var(--dim); font: 700 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.land-pick input { width: 100%; height: 34px; padding: 0 10px; border: 0; background: rgb(255 255 255 / .08); color: var(--fg); font: 600 15px/1 var(--font-ui); letter-spacing: .03em; }
.land-pick input:focus { outline: 2px solid var(--route); outline-offset: 0; }
.land-drop { position: absolute; left: 12px; right: 12px; top: 64px; z-index: 5; margin: 0; padding: 4px 0; list-style: none; background: var(--hud-solid); box-shadow: 0 10px 26px rgb(5 8 13 / .55); }
.land-drop button { display: block; width: 100%; padding: 7px 10px; border: 0; background: none; color: var(--fg); text-align: left; font: 700 15px/1.1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.land-drop button:hover, .land-drop button:focus { background: var(--route); color: #fff; }
.land-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.land-chips:empty { display: none; }
.land-chip { padding: 4px 8px; border: 0; background: var(--route); color: #fff; font: 700 13px/1.1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.land-acts { display: flex; gap: 4px; margin-top: 6px; }
.land-acts button { padding: 4px 8px; border: 0; background: rgb(255 255 255 / .1); color: var(--fg); font: 700 12px/1.1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.land-acts button:hover { background: #fff; color: var(--ink); }

/* the world's names, set like the GTA VI map */
.map-county { pointer-events: none; color: #fff; font: 700 clamp(13px, 1.25vw, 19px)/1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 1px 2px rgb(10 18 30 / .55), 0 0 10px rgb(10 18 30 / .25); }
.map-continent { pointer-events: none; color: rgb(255 255 255 / .9); font: 300 clamp(20px, 2.4vw, 34px)/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .45em;
  text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 3px rgb(10 18 30 / .35); }
.map-county[hidden], .map-continent[hidden] { display: none; }
