/* Display: dark, minimal in-car style. Everything drawn for this project; no brand assets. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Themes ------------------------------------------------------------------- */
:root,
body[data-theme='standard'] {
  --bg: #0b0c0e;
  --panel: #15171b;
  --panel-2: #1d2025;
  --line: #2a2e35;
  --text: #eceef1;
  --muted: #8b919a;
  --accent: #3d6df2;
  --accent-text: #fff;
  --good: #3fbf6f;
  --radius: 18px;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --car-edge: #9aa1ab;
  --car-mid: #e4e7eb;
  --car-glass-a: #20252d;
  --car-glass-b: #0d1014;
  --car-line: rgba(0, 0, 0, .28);
  --car-shadow: rgba(0, 0, 0, .55);
  --wheel: #050607;
  --m-ground: #1a1c20;
  --m-block: #202328;
  --m-park: #1b2a21;
  --m-water: #15233a;
  --m-road-minor: #2d3138;
  --m-road-major: #3a3f47;
  --m-road-center: #4a505a;
  --m-label: #7d838d;
  --m-me: #3d6df2;
  --banner-bg: rgba(30, 33, 38, .96);
  --overlay: rgba(0, 0, 0, .55);
  --app-phone: #2fb36b;
  --app-music: #e0464f;
  --app-cal: #f2f2f2;
  --app-cam: #6d7480;
  --app-game: #9258e6;
  --app-energy: #33b36b;
  --app-more: #3a3f47;
}

body[data-theme='hell'] {
  --bg: #e9ebee;
  --panel: #f7f8f9;
  --panel-2: #ffffff;
  --line: #d6d9de;
  --text: #171a20;
  --muted: #6a707a;
  --accent: #3d6df2;
  --car-edge: #8c939d;
  --car-mid: #ffffff;
  --car-glass-a: #39404a;
  --car-glass-b: #1b1f25;
  --car-shadow: rgba(0, 0, 0, .18);
  --m-ground: #eef0ec;
  --m-block: #e2e4e1;
  --m-park: #cfe5c9;
  --m-water: #b8d4f0;
  --m-road-minor: #ffffff;
  --m-road-major: #fbe8a6;
  --m-road-center: #f3d36b;
  --m-label: #6f747c;
  --banner-bg: rgba(255, 255, 255, .97);
  --overlay: rgba(20, 22, 26, .35);
  --app-more: #c9cdd3;
}

body[data-theme='weihnachten'] {
  --bg: #0b1a12;
  --panel: #10261a;
  --panel-2: #163222;
  --line: #24452f;
  --text: #fff6e6;
  --muted: #b9c9b6;
  --accent: #d23b3b;
  --good: #e8c15a;
  --car-edge: #8e1d1d;
  --car-mid: #e04848;
  --car-glass-a: #1f2b23;
  --car-glass-b: #0a110c;
  --m-ground: #13281b;
  --m-block: #183222;
  --m-park: #1d4a2a;
  --m-water: #18324a;
  --m-road-minor: #2b4a35;
  --m-road-major: #f4f1ea;
  --m-road-center: #d23b3b;
  --m-label: #cfe0c8;
  --m-me: #e8c15a;
  --banner-bg: rgba(16, 38, 26, .97);
}

body[data-theme='party'] {
  --bg: #14061f;
  --panel: rgba(40, 10, 60, .78);
  --panel-2: rgba(70, 20, 100, .8);
  --line: #5b2a85;
  --text: #fff;
  --muted: #d9b8f5;
  --accent: #ff3fa4;
  --good: #3ff2d0;
  --car-edge: #2bd5ff;
  --car-mid: #ff5cc8;
  --car-glass-a: #2a0f45;
  --car-glass-b: #12051e;
  --m-ground: #1e0a30;
  --m-block: #2a0f45;
  --m-park: #18354a;
  --m-water: #301060;
  --m-road-minor: #5d2a8a;
  --m-road-major: #ff3fa4;
  --m-road-center: #ffd23f;
  --m-label: #f2d6ff;
  --m-me: #3ff2d0;
  --banner-bg: rgba(60, 15, 90, .96);
}

body[data-theme='retro'] {
  --bg: #008080;
  --panel: #c0c0c0;
  --panel-2: #dfdfdf;
  --line: #808080;
  --text: #000;
  --muted: #333;
  --accent: #000080;
  --accent-text: #fff;
  --good: #008000;
  --radius: 0;
  --font: 'Tahoma', 'Verdana', 'Arial', sans-serif;
  --car-edge: #000080;
  --car-mid: #ffff00;
  --car-glass-a: #00a0a0;
  --car-glass-b: #006060;
  --car-line: #000;
  --car-shadow: rgba(0, 0, 0, .3);
  --m-ground: #000;
  --m-block: #003300;
  --m-park: #004400;
  --m-water: #000066;
  --m-road-minor: #00aa00;
  --m-road-major: #00ff00;
  --m-road-center: #000;
  --m-label: #00ff00;
  --m-me: #ff00ff;
  --banner-bg: #c0c0c0;
  --overlay: rgba(0, 0, 0, .2);
}

/* ---- Base ------------------------------------------------------------------------ */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
body { transition: background-color .6s ease, color .6s ease; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ic.sm { width: 20px; height: 20px; }
.ic.lg { width: 44px; height: 44px; }
.ic.xl { width: 72px; height: 72px; stroke-width: 1.5; }

/* ---- Layout ---------------------------------------------------------------------- */
.app {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(300px, 37%) 1fr;
  grid-template-rows: clamp(44px, 6.5vh, 64px) 1fr clamp(64px, 9.5vh, 96px);
  gap: 0;
}
.topbar { grid-column: 1 / -1; }
.bottombar { grid-column: 1 / -1; }

@media (max-aspect-ratio: 1/1) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(44px, 5vh, 64px) 44% 1fr clamp(64px, 7vh, 96px);
  }
}

.panel { position: relative; overflow: hidden; }

/* ---- Top bar ------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px 0 clamp(14px, 2vw, 32px); /* right: room for the close button */
  font-size: clamp(14px, 1.9vh, 20px);
  font-weight: 500;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.tb-left, .tb-right, .tb-center { display: flex; align-items: center; gap: 14px; }
.tb-center { color: var(--muted); gap: 8px; }
.gears { display: inline-flex; gap: 10px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.gears b { font-weight: 600; }
.gears b.on { color: var(--text); }
.battery { display: inline-flex; align-items: center; gap: 8px; }
.batt-shell {
  position: relative;
  width: 34px;
  height: 15px;
  border: 1.6px solid var(--muted);
  border-radius: 4px;
  padding: 1.5px;
}
.batt-shell::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 3.5px;
  width: 3px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: var(--muted);
}
.batt-fill { display: block; height: 100%; width: 78%; border-radius: 2px; background: var(--good); transition: width .8s ease, background-color .4s; }
.batt-fill.low { background: #e5a33a; }
.signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.signal i { display: block; width: 3.5px; border-radius: 1px; background: var(--text); }
.signal i:nth-child(1) { height: 25%; }
.signal i:nth-child(2) { height: 50%; }
.signal i:nth-child(3) { height: 75%; }
.signal i:nth-child(4) { height: 100%; }
.signal.weak i:nth-child(n+2) { background: var(--line); }
.signal.off i { background: var(--line); }
.lte { font-size: .72em; font-weight: 700; color: var(--muted); }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; }
.otemp { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- Vehicle panel -------------------------------------------------------------- */
.vehicle {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(14px, 2.4vh, 32px) 20px;
  background: var(--bg);
}
.veh-head { text-align: center; }
.veh-name { font-size: clamp(22px, 3.4vh, 38px); font-weight: 600; letter-spacing: -.01em; }
.veh-sub { margin-top: 4px; color: var(--muted); font-size: clamp(13px, 1.8vh, 18px); }
.car {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 340px;
  margin: clamp(8px, 2vh, 24px) 0;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25));
}
.car-body-edge { stop-color: var(--car-edge); }
.car-body-mid { stop-color: var(--car-mid); }
.car-glass-a { stop-color: var(--car-glass-a); }
.car-glass-b { stop-color: var(--car-glass-b); }
.car-outline { stroke: var(--car-line); stroke-width: 1.5; transition: fill .6s; }
.car-body-solid { fill: var(--car-edge); }
.car-glass { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.car-roofbar { stroke: rgba(255, 255, 255, .07); stroke-width: 3; }
.car-line { fill: none; stroke: var(--car-line); stroke-width: 2; }
.car-light-front { fill: none; stroke: #f6f8ff; stroke-width: 5; stroke-linecap: round; opacity: .9; }
.car-light-rear { fill: none; stroke: #d42a2a; stroke-width: 5; stroke-linecap: round; opacity: .85; }
.car-seat { fill: rgba(255, 255, 255, .07); }
.car-wheel { fill: var(--wheel); }
.car-shadow { fill: var(--car-shadow); filter: blur(10px); }
.veh-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: clamp(13px, 1.7vh, 16px);
  font-weight: 500;
}
.chip:active { transform: scale(.97); }
.veh-hint { min-height: 1.4em; margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---- Map -------------------------------------------------------------------------- */
.mapwrap { background: var(--m-ground); border-left: 1px solid var(--line); }
@media (max-aspect-ratio: 1/1) { .mapwrap { border-left: 0; border-top: 1px solid var(--line); } }
.map { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s ease; transform-origin: 53% 60%; }
.map.zoom1 { transform: scale(1.25); }
.map.zoom2 { transform: scale(1.55); }
.map.zoom-1 { transform: scale(.85); }
.m-ground { fill: var(--m-ground); }
.m-blocks rect { fill: var(--m-block); }
.m-park { fill: var(--m-park); }
.m-water { fill: var(--m-water); }
.m-road-minor path { fill: none; stroke: var(--m-road-minor); stroke-width: 12; stroke-linecap: round; }
.m-road-major path { fill: none; stroke: var(--m-road-major); stroke-width: 26; stroke-linecap: round; }
.m-road-major-center path { fill: none; stroke: var(--m-road-center); stroke-width: 2; stroke-dasharray: 18 16; }
.m-label text { fill: var(--m-label); font-family: var(--font); font-size: 22px; font-weight: 500; letter-spacing: .02em; }
.m-label .m-label-park { fill: #6fa67f; font-style: italic; }
.m-label .m-label-water { fill: #6b8fc4; font-style: italic; }
.m-pin circle { fill: #d23b3b; stroke: #fff; stroke-width: 3; }
.m-pin path { fill: #fff; }
.m-me-halo { fill: var(--m-me); opacity: .18; animation: halo 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.m-me-dot { fill: var(--m-me); stroke: #fff; stroke-width: 4; }
.m-me-arrow { fill: #fff; }
@keyframes halo { 0%, 100% { opacity: .12; transform: scale(.92); } 50% { opacity: .24; transform: scale(1.08); } }

.map-search {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(340px, 60%);
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--panel);
  color: var(--muted);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  font-size: clamp(14px, 1.9vh, 18px);
}
.map-tools { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--panel);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}

.media {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.cover {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ff7a59, #b33dc6 55%, #3d6df2);
  flex: none;
}
.media-info { flex: 1; min-width: 0; }
.track { font-weight: 600; font-size: clamp(15px, 2vh, 19px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist { color: var(--muted); font-size: clamp(13px, 1.7vh, 16px); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-progress { margin-top: 10px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.media-progress span { display: block; height: 100%; width: 30%; background: var(--text); border-radius: 2px; }
.media-ctl { display: flex; gap: 4px; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; }
.icon-btn:active, .round:active, .app-ic:active { transform: scale(.94); }

/* ---- Bottom bar -------------------------------------------------------------------- */
.bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(10px, 1.6vw, 28px);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.bb-left, .bb-right { display: flex; align-items: center; gap: 4px; }
.climate { display: flex; align-items: center; }
.cabin { min-width: 3.2em; text-align: center; font-size: clamp(18px, 2.6vh, 26px); font-weight: 600; font-variant-numeric: tabular-nums; }
.apps { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 22px); }
.app-ic {
  width: clamp(44px, 6vh, 58px);
  height: clamp(44px, 6vh, 58px);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
}
.a-phone { background: var(--app-phone); }
.a-music { background: var(--app-music); }
.a-cal { background: var(--app-cal); color: #d23b3b; }
.a-cam { background: var(--app-cam); }
.a-game { background: var(--app-game); }
.a-energy { background: var(--app-energy); }
.a-more { background: var(--app-more); color: var(--text); }
.vol-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; margin: 0 6px; }
.vol-bars i { display: block; width: 4px; border-radius: 2px; background: var(--line); }
.vol-bars i.on { background: var(--text); }
@media (max-width: 900px) { .apps .a-cam, .apps .a-cal, .apps .a-more { display: none; } }

/* ---- Effects ----------------------------------------------------------------------- */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }

.banner {
  position: fixed;
  top: clamp(56px, 8vh, 80px);
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(680px, calc(100vw - 40px));
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--banner-bg);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  transform: translate(-50%, 0);
  animation: bannerIn .45s cubic-bezier(.2, .9, .3, 1.15);
}
.banner.out { animation: bannerOut .35s ease forwards; }
@keyframes bannerIn { from { transform: translate(-50%, -140%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes bannerOut { to { transform: translate(-50%, -140%); opacity: 0; } }
.banner-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-text);
  flex: none;
}
.banner-body { flex: 1; min-width: 0; }
.banner-title { font-weight: 650; font-size: clamp(17px, 2.3vh, 22px); }
.banner-text { color: var(--muted); margin-top: 3px; font-size: clamp(15px, 2vh, 19px); line-height: 1.35; }
.banner-time { align-self: stretch; width: 4px; border-radius: 2px; background: var(--line); overflow: hidden; display: flex; align-items: flex-end; }
.banner-time span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: bottom; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .3s ease;
}
.overlay.solid { background: var(--bg); backdrop-filter: none; }
@keyframes fadeIn { from { opacity: 0; } }

.modal {
  width: min(560px, calc(100vw - 48px));
  padding: 30px 30px 24px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  text-align: center;
  animation: popIn .35s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes popIn { from { transform: scale(.9); opacity: 0; } }
.modal-ic { color: var(--accent); margin-bottom: 8px; }
.modal h2 { margin: 0 0 8px; font-size: clamp(22px, 3vh, 30px); font-weight: 650; }
.modal p { margin: 0 0 24px; color: var(--muted); font-size: clamp(16px, 2.1vh, 20px); line-height: 1.4; white-space: pre-line; }
.modal-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.modal-buttons button {
  flex: 1 1 140px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: clamp(16px, 2.1vh, 19px);
}
.modal-buttons button:first-child { background: var(--accent); color: var(--accent-text); border-color: transparent; }

.update-box, .update-punch { width: min(620px, calc(100vw - 48px)); text-align: center; }
.update-box h2, .update-punch h2 { margin: 18px 0 6px; font-size: clamp(26px, 3.6vh, 38px); font-weight: 650; }
.update-line { margin: 0 0 26px; color: var(--muted); font-size: clamp(17px, 2.3vh, 22px); }
.progress { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 5px; transition: width .4s linear; }
.update-sub { margin-top: 14px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: clamp(14px, 1.9vh, 18px); }
.update-punch { animation: popIn .5s cubic-bezier(.2, .9, .3, 1.2); }
.update-punch p { color: var(--muted); font-size: clamp(18px, 2.5vh, 24px); line-height: 1.4; }
.spin { animation: bob 2.4s ease-in-out infinite; color: var(--accent); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.reveal-card {
  text-align: center;
  padding: 44px 56px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: popIn .5s cubic-bezier(.2, .9, .3, 1.25);
}
.reveal-card .ic { color: var(--accent); }
.reveal-card h1 { margin: 14px 0 8px; font-size: clamp(44px, 8vh, 88px); font-weight: 750; letter-spacing: -.02em; }
.reveal-card p { margin: 0; font-size: clamp(22px, 3.4vh, 36px); color: var(--muted); }
.reveal-card .reveal-hint { margin-top: 22px; font-size: 14px; opacity: .7; }

.toast {
  position: fixed;
  left: 50%;
  bottom: clamp(84px, 12vh, 120px);
  transform: translateX(-50%);
  z-index: 55;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  font-size: 16px;
  animation: fadeIn .25s ease;
}

/* ---- Start screen ------------------------------------------------------------------- */
.start {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--bg);
  cursor: pointer;
}
.start-inner { position: relative; display: grid; justify-items: center; gap: 10px; }
.start-logo { width: 96px; height: 96px; margin-bottom: 14px; }
.start-logo circle { fill: none; stroke: var(--muted); stroke-width: 2.5; }
.start-logo path { fill: var(--text); }
.start-title { font-size: 30px; font-weight: 600; }
.start-sub { color: var(--muted); font-size: 18px; }
.start-ring {
  position: absolute;
  top: -12px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: .5;
  animation: ring 3.2s ease-in-out infinite;
}
@keyframes ring { 0%, 100% { transform: scale(.94); opacity: .25; } 50% { transform: scale(1.06); opacity: .55; } }

/* ---- Safety controls (always visible) -------------------------------------------------- */
.close-btn, .fs-btn {
  position: fixed;
  z-index: 100;
  top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(127, 127, 127, .22);
  color: var(--text);
  opacity: .7;
}
.close-btn { right: 8px; }
.fs-btn { right: 52px; }
.close-btn:active, .fs-btn:active { opacity: 1; }

/* ---- Theme extras --------------------------------------------------------------------- */
body[data-theme='weihnachten'] .topbar {
  background-image: radial-gradient(circle at 10px 4px, #e8c15a 2.5px, transparent 3px), radial-gradient(circle at 30px 4px, #d23b3b 2.5px, transparent 3px), radial-gradient(circle at 50px 4px, #3fbf6f 2.5px, transparent 3px);
  background-size: 60px 10px;
  background-repeat: repeat-x;
}
body[data-theme='weihnachten'] .cover { background: linear-gradient(135deg, #d23b3b, #e8c15a); }

body[data-theme='party'] { background: linear-gradient(135deg, #1a0630, #2b0838 50%, #071a35); }
body[data-theme='party'] .topbar, body[data-theme='party'] .bottombar, body[data-theme='party'] .vehicle { background: transparent; }
body[data-theme='party'] .app { background: linear-gradient(135deg, #1a0630, #2b0838 50%, #071a35); }
body[data-theme='party'] .veh-name { animation: hue 12s linear infinite; color: #ff7ad1; }
body[data-theme='party'] .car { animation: hue 12s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }

body[data-theme='retro'] { font-size: 15px; }
body[data-theme='retro'] .topbar,
body[data-theme='retro'] .bottombar {
  background: #c0c0c0;
  color: #000;
  border-color: #fff #808080 #808080 #fff;
  border-style: solid;
  border-width: 2px;
}
body[data-theme='retro'] .vehicle,
body[data-theme='retro'] .mapwrap {
  margin: 10px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  padding-top: 34px;
}
body[data-theme='retro'] .vehicle::before,
body[data-theme='retro'] .mapwrap::before {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  z-index: 2;
  height: 24px;
  padding: 3px 8px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
body[data-theme='retro'] .vehicle::before { content: 'AUTO.EXE'; }
body[data-theme='retro'] .mapwrap::before { content: 'KARTE.EXE - [Unbenannt]'; }
body[data-theme='retro'] .map { top: 28px; height: calc(100% - 28px); }
body[data-theme='retro'] .chip,
body[data-theme='retro'] .round,
body[data-theme='retro'] .media,
body[data-theme='retro'] .map-search,
body[data-theme='retro'] .modal,
body[data-theme='retro'] .banner,
body[data-theme='retro'] .reveal-card,
body[data-theme='retro'] .modal-buttons button,
body[data-theme='retro'] .app-ic,
body[data-theme='retro'] .toast {
  border-radius: 0;
  background: #c0c0c0;
  color: #000;
  border: 2px solid;
  border-color: #fff #808080 #808080 #fff;
  box-shadow: 1px 1px 0 #000;
}
body[data-theme='retro'] .map-search { top: 46px; }
body[data-theme='retro'] .modal-buttons button:first-child { background: #c0c0c0; color: #000; outline: 1px dotted #000; outline-offset: -5px; }
body[data-theme='retro'] .banner-ic, body[data-theme='retro'] .cover { border-radius: 0; background: #000080; }
body[data-theme='retro'] .overlay.solid { background: #000080; color: #fff; }
body[data-theme='retro'] .overlay.solid .update-line,
body[data-theme='retro'] .overlay.solid .update-sub { color: #fff; }
body[data-theme='retro'] .progress { border-radius: 0; background: #fff; border: 2px inset #808080; height: 22px; }
body[data-theme='retro'] .progress span { border-radius: 0; background: repeating-linear-gradient(90deg, #000080 0 14px, transparent 14px 17px); }
body[data-theme='retro'] .m-label text { font-family: 'Courier New', monospace; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
