/* Rampart Rush UI
   Sections: 1 tokens (skin), 2 base, 3 screens & panels, 4 buttons, 5 title, 6 missions carousel, 7 HUD,
   8 world labels & stick, 9 legal, 10 responsive, 11 reduced motion.
   Reskin by editing section 1; components only reference tokens. */

/* 1. Tokens ------------------------------------------------------------------ */
:root {
  --bg: #120f24;
  --panel: rgba(20, 16, 40, 0.86);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.11);
  --surface-dim: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.15);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f3f1fb;
  --muted: #bdb7d6;          /* >= 4.5:1 on --panel */
  --accent: #ffc53d;         /* coin gold */
  --accent-ink: #1d1404;
  --teal: #3fd6c4;           /* the soldier */
  --gem: #c78bff;
  --red: #ff5a52;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --legal-h: 0px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
}

/* 2. Base --------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; overscroll-behavior: none; touch-action: manipulation; }
button, a, .legal, .btn, .icon-btn, .car-card { touch-action: manipulation; }
body { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#app { position: fixed; inset: 0; overflow: hidden; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, .car-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: 0.01em; }
h2 { font-size: 24px; font-weight: 800; }
#flash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(255, 60, 60, 0) 40%, rgba(255, 40, 40, 0.55)); opacity: 0; transition: opacity 0.35s; }
#flash.on { opacity: 1; transition: none; }

/* 3. Screens & panels --------------------------------------------------------- */
.screen {
  position: absolute; top: 0; left: 0; right: 0; bottom: var(--legal-h);
  display: flex; align-items: center; justify-content: center;
  padding: calc(16px + var(--sat)) calc(16px + var(--sar)) 16px calc(16px + var(--sal));
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(10, 8, 24, 0.3), rgba(10, 8, 24, 0.62));
  animation: fadeIn 0.22s ease-out;
}
.screen-dim { background: rgba(10, 8, 24, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.panel {
  width: min(460px, 100%); margin: auto; padding: 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: rise 0.28s cubic-bezier(.2, .8, .2, 1);
}
.panel-narrow { width: min(380px, 100%); text-align: center; }
.panel-wide { width: min(620px, 100%); }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { flex: 1; min-width: 0; font-size: 22px; }
.eyebrow { margin: 0 0 4px; color: var(--accent); font-size: 16px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 4. Buttons ------------------------------------------------------------------ */
.btn-stack { display: grid; gap: 10px; margin-top: 8px; }
.btn {
  min-height: 52px; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 17px; font-weight: 700;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)); border: 1px solid var(--line-strong); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.08s, background 0.15s;
}
.btn:hover { background: var(--surface-hover); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(180deg, #ffe08a 0%, #ffc53d 48%, #ffad14 52%, #ffbd33 100%); color: var(--accent-ink); border-color: rgba(255, 224, 150, 0.95);
  box-shadow: 0 3px 0 #b26b06, 0 8px 22px rgba(255, 170, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.65); font-weight: 900; letter-spacing: 0.03em;
}
.btn-primary:hover { background: linear-gradient(180deg, #ffe7a1 0%, #ffcd55 48%, #ffb52a 52%, #ffc445 100%); }
.btn-primary[disabled] { cursor: not-allowed; color: var(--muted); background: #221c3a; border-color: var(--line); box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-block { width: 100%; margin-top: 14px; }
.icon-btn {
  width: 48px; height: 48px; min-width: 48px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: linear-gradient(180deg, rgba(44, 36, 82, 0.86), rgba(14, 10, 30, 0.86)); border: 1px solid var(--line-strong); fill: currentColor;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.icon-btn[disabled] { opacity: 0.45; cursor: default; }

/* 5. Title -------------------------------------------------------------------- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px 0 6px; margin: -10px 0 2px -8px;
  border-radius: var(--radius-sm); color: var(--muted); font-size: 16px; font-weight: 600; text-decoration: none;
}
.back-link:hover { color: var(--text); background: var(--surface); }
.brand { text-align: center; margin-bottom: 18px; }
.emblem { width: 56px; height: 56px; color: var(--accent); margin-bottom: 4px; }
.brand h1 { font-size: clamp(34px, 9vw, 46px); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1;
  font-family: "Arial Black", "Segoe UI Black", "Helvetica Neue", Impact, system-ui, sans-serif; color: #ffc53d; text-shadow: 4px 4px 0 #1a1203; }
.tagline { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.title-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.points-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 16px; white-space: nowrap; }
.points-chip strong { color: var(--gem); font-variant-numeric: tabular-nums; }
.how { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.gem-ico { display: inline-block; width: 16px; height: 16px; flex: none; background: linear-gradient(135deg, #f1dcff, #c78bff 45%, #7c3ce0); clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); }
.coin-ico { display: inline-block; width: 18px; height: 18px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c2, #ffc53d 45%, #c27a06); box-shadow: inset 0 0 0 2px rgba(120, 70, 0, 0.45); }

/* 6. Missions carousel -------------------------------------------------------- */
.result { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.result.lost .eyebrow { color: #ff8a84; }
.result-line { margin: 0; color: var(--text); font-size: 16px; line-height: 1.4; }
.carousel { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 8px; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.car-track::-webkit-scrollbar { display: none; }
.car-card { position: relative; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 16px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-strong); border-top: 4px solid var(--tint, var(--line-strong)); color: var(--text); text-align: left; }
.car-card .car-art { position: absolute; inset: 0; }
.car-card .car-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 24, 0) 25%, rgba(10, 8, 24, 0.9) 78%); }
.car-card > * { position: relative; }
.car-num { display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: rgba(10, 8, 24, 0.75); border: 1px solid var(--line-strong); font-size: 16px; font-weight: 700; margin-bottom: auto; }
.car-name { margin: 8px 0 2px; font-size: 26px; font-weight: 900; letter-spacing: 0.02em; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.car-blurb { margin: 0; color: #e2ddf3; font-size: 16px; line-height: 1.35; }
.car-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.car-tag { padding: 4px 10px; border-radius: 999px; background: rgba(10, 8, 24, 0.78); border: 1px solid var(--line); font-size: 16px; color: #e2ddf3; }
.car-tag.done { border-color: rgba(255, 197, 61, 0.7); color: var(--accent); }
.car-card.locked .car-art { filter: grayscale(0.85) brightness(0.55); }
.car-lock { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 8, 24, 0.85); border: 1px solid var(--line-strong); font-size: 16px; }
.car-lock svg { width: 16px; height: 16px; fill: currentColor; }
.car-dots { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.car-dots button { width: 48px; height: 48px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.car-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.car-dots button[aria-current="true"]::before { background: var(--accent); width: 22px; border-radius: 5px; }

/* 7. HUD ---------------------------------------------------------------------- */
#hud {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: 10px;
  padding: calc(10px + var(--sat)) calc(12px + var(--sar)) 12px calc(12px + var(--sal));
  pointer-events: none; background: linear-gradient(180deg, rgba(10, 8, 24, 0.6), rgba(10, 8, 24, 0));
}
#hud .icon-btn { pointer-events: auto; }
.hud-left { display: flex; flex-direction: column; gap: 6px; }
.hearts { display: flex; gap: 4px; }
.hearts svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.hearts .on { fill: #ff4d5e; stroke: #ffd3d8; stroke-width: 1.4; }
.hearts .off { fill: rgba(20, 14, 34, 0.7); stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.4; }
.hearts .lose { animation: heartLose 0.5s ease-out; }
@keyframes heartLose { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
.hud-coins, .hud-gems {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 32px; padding: 2px 12px 2px 8px; border-radius: 999px;
  background: rgba(10, 8, 24, 0.72); border: 1px solid rgba(255, 197, 61, 0.45); font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; color: #ffe08a; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}
.hud-gems { border-color: rgba(199, 139, 255, 0.55); color: #ead6ff; }
.hud-gems .gem-ico { width: 18px; height: 18px; }
.hud-mid { flex: 1; min-width: 0; padding-top: 10px; }
.hud-right { display: flex; align-items: flex-start; gap: 8px; }
.wavebar { position: relative; height: 10px; margin: 0 auto; max-width: 340px; border-radius: 6px; background: rgba(10, 8, 24, 0.62); border: 1px solid rgba(255, 255, 255, 0.22); overflow: visible; }
#waveFill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #ffad14, #ff5a52); box-shadow: 0 0 8px rgba(255, 120, 60, 0.7); }
.wave-skull { position: absolute; right: -8px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffb0b6, #ff3344 60%, #8a0f1c); box-shadow: 0 0 8px #ff4455; }
.bossbar { position: relative; max-width: 420px; margin: 0 auto; height: 24px; border-radius: 8px; background: rgba(10, 8, 24, 0.82); border: 1px solid rgba(255, 90, 100, 0.6); overflow: hidden; }
#bossFill { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #8f1626, #e23a3a); transition: width 0.12s linear; }
.bossbar em { position: relative; display: block; font-style: normal; font-size: 16px; font-weight: 800; line-height: 22px; text-align: center; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
.banner { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); padding: 12px 22px; border-radius: 14px; background: rgba(10, 8, 24, 0.82); border: 1px solid rgba(255, 90, 100, 0.7);
  font-size: clamp(20px, 5vw, 30px); font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: #ffd0cc; white-space: nowrap; pointer-events: none; animation: bannerIn 0.4s cubic-bezier(.2, 1.4, .4, 1); }
.banner.good { border-color: rgba(255, 197, 61, 0.8); color: #ffe08a; }
@keyframes bannerIn { from { transform: translate(-50%, -50%) scale(0.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.hint { position: absolute; left: 50%; bottom: calc(40px + var(--sab)); transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; background: rgba(10, 8, 24, 0.9); border: 1px solid var(--line-strong);
  font-size: 16px; font-weight: 700; pointer-events: none; white-space: nowrap; animation: fadeIn 0.3s; }

/* 8. World labels & stick ------------------------------------------------------ */
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wl { position: absolute; left: 0; top: 0; will-change: transform; white-space: nowrap; font-weight: 900; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85), 0 0 6px rgba(0, 0, 0, 0.6); }
.wl-pad { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border-radius: 999px; background: #120e22; border: 2px solid #ffc53d; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); font-size: 17px; font-weight: 800; color: #ffe08a; }
.wl-pad.short { color: #ffb2ad; border-color: rgba(255, 110, 100, 0.65); }
.wl-pad.max { color: #ead6ff; border-color: rgba(199, 139, 255, 0.7); }
.wl-pad .nm { font-weight: 700; color: #f3f1fb; font-size: 16px; }
.wl-pop { font-size: 18px; color: #ffe08a; transition: none; }
#stick { position: absolute; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14)); border: 2px solid rgba(255, 255, 255, 0.35); }
.stick-knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffffff, #c9c4e6 60%, #8f88b8); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }

/* 9. Legal -------------------------------------------------------------------- */
.legal { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px calc(16px + var(--sar)) calc(10px + var(--sab)) calc(16px + var(--sal)); text-align: center; font-size: 16px; color: var(--muted); background: rgba(10, 8, 24, 0.86); border-top: 1px solid var(--line); }
.noscript { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; }

/* 10. Responsive -------------------------------------------------------------- */
@media (max-width: 520px) {
  .panel { padding: 18px; }
  .car-card { min-height: 200px; }
  .carousel { grid-template-columns: minmax(0, 1fr); }
  .car-nav { display: none; }
  .hearts svg { width: 26px; height: 26px; }
  .wavebar { max-width: none; }
}
@media (max-height: 520px) {
  .brand { margin-bottom: 8px; } .emblem { display: none; } .how { display: none; }
  .car-card { min-height: 150px; }
  .banner { top: 40%; }
}

/* 11. Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .screen, .panel, .banner, .hint, .hearts .lose { animation: none; }
  .car-track { scroll-behavior: auto; }
}

/* r2: keep the mission Play button in view on short screens (sticks to the bottom of the scrolling screen). */
#btnMissionPlay { position: sticky; bottom: 8px; z-index: 2; }
/* r2: landscape phones. The stuck Play button covered the mission card, so short landscape screens use two columns
   (heading, result and Play on the left; the card and dots on the right). Play is in view without sticking. */
@media (max-height: 520px) and (min-width: 560px) and (orientation: landscape) {
  #scrLevels .panel-wide { width: min(820px, 100%); padding: 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "head car" "result car" ". car" "play dots"; grid-template-rows: auto auto 1fr auto; column-gap: 16px; align-items: start; }
  #scrLevels .panel-head { grid-area: head; margin-bottom: 6px; }
  #scrLevels .result { grid-area: result; margin: 0; padding: 8px 12px; }
  #scrLevels .carousel { grid-area: car; grid-template-columns: minmax(0, 1fr); }
  #scrLevels .car-nav { display: none; }
  #scrLevels .car-dots { grid-area: dots; margin-top: 2px; }
  #scrLevels #btnMissionPlay { grid-area: play; position: static; margin-top: 8px; align-self: center; }
  #scrLevels .car-card { min-height: 0; padding: 10px 14px; }
  #scrLevels .car-name { margin-top: 6px; }
  #scrLevels .car-meta { margin-top: 6px; }
}

/* r3: short screens put Play straight under the result (not sticky), so it never sits on the dots or the card. */
@media (max-width: 520px) and (max-height: 800px), (min-width: 521px) and (min-height: 521px) and (max-height: 700px) {
  #scrLevels .panel-wide { display: flex; flex-direction: column; }
  #scrLevels .panel-wide > * { order: 2; }
  #scrLevels .panel-head { order: 0; }
  #scrLevels .result, #scrLevels #btnMissionPlay { order: 1; }
  #scrLevels #btnMissionPlay { position: static; margin: 0 0 12px; }
}
/* r3: short landscape two-column: Play under the heading, the card column no longer waits for the result text, compact card. */
@media (max-height: 520px) and (min-width: 560px) and (orientation: landscape) {
  #scrLevels .panel-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-areas: "head car" "play car" "result car" "result dots" "result ."; grid-template-rows: auto auto auto auto 1fr; }
  #scrLevels #btnMissionPlay { margin: 0 0 8px; align-self: start; }
  #scrLevels .car-name { font-size: 22px; margin-top: 4px; }
  #scrLevels .car-meta { margin-top: 4px; }
}

/* r4: short portrait end screen fits Play, card and dots above the legal bar (tighter gaps, compact card). */
@media (max-width: 520px) and (max-height: 800px) {
  #scrLevels .panel-wide { padding: 12px; }
  #scrLevels .panel-head { margin-bottom: 4px; }
  #scrLevels .result { padding: 8px 12px; margin-bottom: 6px; }
  #scrLevels .result-line { line-height: 1.3; }
  #scrLevels #btnMissionPlay { margin: 0 0 6px; }
  #scrLevels .car-card { min-height: 0; padding: 10px 14px; }
  #scrLevels .car-name { font-size: 22px; margin-top: 4px; }
  #scrLevels .car-meta { margin-top: 4px; }
  #scrLevels .car-blurb { line-height: 1.3; }
  #scrLevels .car-dots { margin-top: 0; }
}
/* r4: short landscape two-column: tighter left column so the Overrun text clears the legal bar. */
@media (max-height: 520px) and (min-width: 560px) and (orientation: landscape) {
  #scrLevels .panel-wide { padding: 10px 16px; }
  #scrLevels .panel-head { margin-bottom: 2px; }
  #scrLevels .result { padding: 6px 12px; }
  #scrLevels .result-line { line-height: 1.3; }
  #scrLevels #btnMissionPlay { margin: 0 0 6px; }
}
/* r4: short desktop windows use the two-column end panel instead of the phone stack. */
@media (min-width: 600px) and (min-height: 521px) and (max-height: 700px) {
  #scrLevels .panel-wide { width: min(820px, 100%); padding: 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-areas: "head car" "play car" "result car" "result dots" "result ."; grid-template-rows: auto auto auto auto 1fr; column-gap: 16px; align-items: start; }
  #scrLevels .panel-wide > * { order: 0; }
  #scrLevels .panel-head { grid-area: head; margin-bottom: 6px; }
  #scrLevels .result { grid-area: result; margin: 0; padding: 8px 12px; }
  #scrLevels .carousel { grid-area: car; grid-template-columns: minmax(0, 1fr); }
  #scrLevels .car-nav { display: none; }
  #scrLevels .car-dots { grid-area: dots; margin-top: 2px; }
  #scrLevels #btnMissionPlay { grid-area: play; position: static; margin: 0 0 8px; align-self: start; }
}

/* r5: short landscape with notch safe areas (812x375, 844x390, 852x393): tighter card and legal bar so text and dots clear the bar. */
@media (max-height:520px) and (min-width:560px) and (orientation:landscape){
  .legal{padding-bottom:max(10px,var(--sab))}
  #scrLevels .panel-wide{padding:8px 16px}
  #scrLevels .panel-head{gap:8px}
  #scrLevels .panel-head h2{font-size:18px;line-height:1.2}
  #scrLevels .car-card{padding:8px 12px}
  #scrLevels .car-name{font-size:20px;margin-top:2px}
  #scrLevels .car-meta{margin-top:2px}
  #scrLevels .car-dots{margin-top:0}
}

#rez-billboard[hidden] { display: none !important; }
#rez-billboard {
  position: absolute; left: 8px; bottom: 8px; z-index: 5; max-width: 11rem;
  padding: 0.35rem 0.55rem; background: #14304a; color: #f7f4ee;
  border: 2px solid #e2b657; font: 700 12px/1.2 system-ui, sans-serif; letter-spacing: 0.04em;
}
