/*
 * gta.css — the Sola Coast look for /gta: a sunset over the water, neon
 * pink and cyan, heavy italic lettering and comic-panel cards. Original
 * styling; css/style.css underneath only styles the pay window.
 */

:root {
  --nc-ink: #12061f;
  --nc-night: #1a0b2e;
  --nc-plum: #3a1255;
  --nc-pink: #ff2e88;
  --nc-hot: #ff5e3a;
  --nc-gold: #ffc53d;
  --nc-cyan: #23e6ff;
  --nc-text: #fff6f0;
  --nc-muted: #d8b9d6;
  --nc-card: rgba(26, 11, 46, 0.78);
  --nc-line: rgba(255, 255, 255, 0.14);
  --car: #ff2e88;
  --nc-display: Impact, "Haettenschweiler", "Arial Narrow Bold", "Franklin Gothic Heavy", "Arial Black", sans-serif;
  --nc-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* The pay window follows the theme. */
  --panel: #1f0d36;
  --text: var(--nc-text);
  --muted: var(--nc-muted);
  --accent: var(--nc-pink);
  --accent-2: var(--nc-gold);
}

body.nc {
  min-height: 100vh;
  margin: 0;
  color: var(--nc-text);
  font-family: var(--nc-body);
  /* One smooth sunset, top to bottom (no dark sea band along the bottom). */
  background: linear-gradient(180deg, #120624 0%, #2b0d48 26%, #7a1d6b 52%, #c93a6e 78%, #ff7a52 100%) fixed;
  overflow-x: hidden;
}

/* ---------- sky: sun and palms behind everything ---------- */

.nc-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.nc-sun {
  position: absolute;
  left: 50%;
  top: 38vh;
  width: min(60vw, 520px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe66d 0%, #ffb347 40%, #ff5e7e 78%);
  box-shadow: 0 0 120px 30px rgba(255, 110, 90, 0.45);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 28px);
  mask: linear-gradient(180deg, #000 52%, transparent 52%), repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px);
  mask-composite: add;
  opacity: 0.85;
}
.nc-palms {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 34vh;
}

/* ---------- top bar and logo ---------- */

.nc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px 0;
}
/* Back to the main app: always there, top left, easy to hit. */
.nc-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 0 16px 0 8px;
  border: 2px solid var(--nc-ink);
  border-radius: 999px;
  background: rgba(18, 6, 31, 0.78);
  box-shadow: 3px 3px 0 var(--nc-ink), 0 0 0 2px rgba(255, 255, 255, 0.85) inset;
  color: #fff;
  font: italic 400 18px/1 var(--nc-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.nc-back:hover { background: rgba(58, 18, 85, 0.92); }
.nc-back:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--nc-ink), 0 0 0 2px rgba(255, 255, 255, 0.85) inset; }
.nc-back svg { flex: none; width: 22px; height: 22px; }

/* Change picture: a round button, same look as Original mode. */
.nc-swap {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--nc-ink);
  border-radius: 50%;
  background: rgba(18, 6, 31, 0.78);
  box-shadow: 3px 3px 0 var(--nc-ink), 0 0 0 2px rgba(255, 255, 255, 0.85) inset;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nc-swap:hover { background: rgba(58, 18, 85, 0.92); }
.nc-swap:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--nc-ink), 0 0 0 2px rgba(255, 255, 255, 0.85) inset; }
.nc-swap.spin svg { animation: nc-swap-spin 0.4s ease; }

/* Padlock: open while the picture changes each visit, shut and gold once
   this picture is kept. */
.nc-lock .nc-lock-shut,
.nc-lock[aria-pressed="true"] .nc-lock-open { display: none; }
.nc-lock[aria-pressed="true"] .nc-lock-shut { display: inline; }
.nc-lock[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffe066, var(--nc-gold));
  color: var(--nc-ink);
}
@keyframes nc-swap-spin { to { transform: rotate(360deg); } }

/* ---------- first screen: poster background, panel on the right ---------- */

.nc-stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
}
/* BACK and PRO together top right, so the poster's headline (top left) is clear. */
.nc-stage .nc-top { width: 100%; max-width: none; margin: 0; box-sizing: border-box; padding: 14px 20px 0; justify-content: flex-end; gap: 10px; }
/* The Tesla-screen frame. Phones: no frame, the parts flow as they are. */
.nc-screen { display: contents; }
/* Car screens and up: the first screen is one fixed frame the size of the
   Tesla browser window, 773 × 505, laid out once in pixels. It sits at the
   top of the page, centred across, and the stage is exactly as tall as it,
   so the rest of the page follows right under it with no gap. Bigger
   windows show it at that size with the blurred poster at the sides;
   smaller ones shrink it as one piece (--k, set in index.html, never
   above 1). */
@media (min-width: 641px) {
  .nc-stage { height: calc(505px * var(--k, 1)); min-height: 0; }
  .nc-screen {
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
    width: 773px;
    height: 505px;
    margin: 0 0 0 -386.5px;
    transform: scale(var(--k, 1));
    transform-origin: 50% 0;
  }
  /* The buttons float over the poster's top-right corner, so they don't
     push the panel down. */
  .nc-stage .nc-top { position: absolute; top: 0; right: 0; z-index: 5; width: auto; padding: 12px 14px 0; gap: 8px; }
}
.nc-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--nc-night);
}
.nc-bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* Quick, so the new poster arrives with the tap. */
  transition: opacity 0.35s ease;
}
.nc-bg-layer.on { opacity: 1; }
.nc-bg-layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The whole poster, fitted to the screen, nothing cropped... */
.nc-bg-pic { object-fit: contain; object-position: center top; }
/* Car screens and up: the poster fills the Tesla-screen frame exactly
   (773 × 505 times --k), in the same place as .nc-screen. */
@media (min-width: 641px) {
  .nc-bg-layer .nc-bg-pic {
    inset: 0 auto auto 50%;
    width: calc(773px * var(--k, 1));
    height: calc(505px * var(--k, 1));
    transform: translateX(-50%);
    object-fit: fill;
  }
}
/* ...over a blurred, darker copy filling the strips it leaves. */
.nc-bg-fill { object-fit: cover; filter: blur(26px) brightness(0.5) saturate(1.2); transform: scale(1.12); }
/* No shade or fade over the poster: its white border always shows in full. */
.nc-stage { display: flex; flex-direction: column; }
/* Car screens: the panel sits on the left, always just below the poster's
   two headline lines, so the person on the right stays in view.
   The poster is fitted to the screen from the top: its height is
   min(screen height, width × 768/1376), and the headline ends at about
   33% of that (poster 3's big "get it now"); the panel starts lower, at
   44%, with clear air under the text. When the screen is wider than
   the poster, the panel lines up with the poster's left edge. */
/* One row: the gauge box and the minimap, lined up on the gauge box's
   bottom edge (in the Tesla-screen frame the map is left, gauges right). The
   row is only as tall as the gauge box (align-content: start). */
.nc-stage-in {
  flex: 1;
  display: grid;
  grid-template-columns: 318px 1fr;
  align-content: start;
  align-items: start;
}
/* In the frame: the panel starts at 176 px, just under the poster's two
   headline lines (they end at about a third of its height), and with the
   engine running (Stop engine + pedals) it still ends inside the 505 px. */
@media (min-width: 641px) {
  .nc-stage-in { position: absolute; inset: 0; padding: 176px 14px 6px; }
}

/* The gauge panel on top of the poster: a little under half the screen,
   see-through, and compact so it reads as one instrument. */
.nc-stage .nc-dash {
  width: auto;                 /* the grid column sets it (see .nc-stage-in) */
  margin: 0;
  padding: 10px 12px;
  box-sizing: border-box;
  border-radius: 10px;
  background: rgba(18, 6, 31, 0.55);
  backdrop-filter: blur(6px) saturate(1.15);
  -webkit-backdrop-filter: blur(6px) saturate(1.15);
  box-shadow: 6px 6px 0 rgba(18, 6, 31, 0.55);
}
/* Speed and gear on top with the selected car as a small picture to their
   right, and the rpm bar under them across the whole box. */
.nc-stage .nc-dash .nc-hud { gap: 8px 14px; grid-template-columns: auto auto 1fr; }
.nc-stage .nc-dash .nc-rpm-wrap { grid-column: 1 / -1; grid-row: 2; }
.nc-hud-car {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 160px;
  aspect-ratio: 16 / 7;
}
/* A button: tap the picture for the car's card. */
button.nc-hud-car { display: block; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.nc-hud-car[aria-expanded="true"] img { filter: drop-shadow(0 0 8px rgba(35, 230, 255, 0.8)); }
/* The car's motor park card, full park size, in the middle of the screen
   over a dimmed page. A tap outside it or on the X closes it. */
.nc-carpop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 3, 20, 0.6);
  animation: nc-pop-fade 0.18s ease-out;
}
.nc-carpop[hidden] { display: none; }
.nc-carpop-box {
  position: relative;
  width: min(360px, 100%);
  animation: nc-pop-in 0.2s ease-out;
}
@keyframes nc-pop-fade { from { opacity: 0; } }
@keyframes nc-pop-in { from { opacity: 0; transform: scale(0.94); } }
.nc-card-pop { width: 100%; cursor: default; }
.nc-card-pop:hover { transform: none; box-shadow: 6px 6px 0 var(--nc-ink); }
/* The X sits on the card's top-right corner, half outside it. */
.nc-pop-x {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid var(--nc-ink);
  border-radius: 50%;
  background: var(--nc-pink);
  color: #fff;
  font: 900 24px/1 var(--nc-body);
  box-shadow: 2px 2px 0 var(--nc-ink);
  cursor: pointer;
}
.nc-hud-car img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}
.nc-stage .nc-speed { font-size: 42px; }
.nc-stage .nc-unit { font-size: 13px; }
.nc-stage .nc-gear-wrap { width: 48px; height: 48px; border-width: 2px; }
.nc-stage .nc-gear { font-size: 24px; }
.nc-stage .nc-gear-wrap small { margin-top: -12px; font-size: 8px; }
.nc-stage .nc-rpm-bar { height: 28px; gap: 3px; }
.nc-stage .nc-rpm-line { margin-top: 4px; font-size: 14px; }
.nc-stage .nc-rpm-line > span:first-child { white-space: nowrap; }
.nc-stage .nc-start { min-height: 40px; margin: 8px 0 4px; font-size: 21px; border-width: 2px; box-shadow: 3px 3px 0 var(--nc-ink); }
.nc-stage .nc-status { min-height: 0; margin: 0 0 6px; font-size: 13px; }
/* Over the poster only warnings and errors get a line; plain hints would
   push the panel up over the headline. */
.nc-stage .nc-status:empty,
.nc-stage .nc-status[data-kind=""] { display: none; }
.nc-stage .nc-pedals { gap: 8px; margin: 4px 0 8px; }
.nc-stage .nc-pedal { min-height: 54px; font-size: 19px; border-width: 2px; box-shadow: 3px 3px 0 var(--nc-ink); }
.nc-stage .nc-rev { min-width: 70px; }
.nc-stage .nc-pedals-gps .nc-rev { min-height: 46px; }
/* GPS mode: the Rev row only takes room once the engine runs. */
body:not(.engine-on) .nc-stage .nc-pedals-gps { display: none; }
.nc-stage .nc-controls { gap: 6px 8px; }
.nc-stage .nc-seg button { min-height: 34px; padding: 0 8px; font-size: 12px; }
/* In the Tesla-screen frame: a slightly smaller gauge box, starting lower,
   so a poster's second headline line ("get it now") stays in view. */
@media (min-width: 641px) {
  /* The gauge box in the poster's bottom-right corner, mirroring the
     minimap; it grows upwards when the engine runs. */
  .nc-stage-in { grid-template-columns: 1fr 296px; padding: 196px 18px 18px; align-content: end; }
  .nc-stage .nc-dash { grid-column: 2; padding: 8px 10px; }
  .nc-stage .nc-speed { font-size: 36px; }
  .nc-stage .nc-gear-wrap { width: 42px; height: 42px; }
  .nc-stage .nc-gear { font-size: 21px; }
  .nc-stage .nc-dash .nc-hud { gap: 6px 12px; }
  .nc-hud-car { max-width: 136px; }
  .nc-stage .nc-rpm-bar { height: 24px; }
  .nc-stage .nc-start { min-height: 36px; margin: 6px 0 4px; font-size: 19px; }
  .nc-stage .nc-pedals { margin: 4px 0 6px; }
  .nc-stage .nc-pedal { min-height: 48px; font-size: 17px; }
  .nc-stage .nc-pedals-gps .nc-rev { min-height: 40px; }
  .nc-stage .nc-seg button { min-height: 30px; font-size: 11px; }
  /* The minimap in the poster's bottom-left corner, just inside its
     white border, out of the grid row so it doesn't follow the gauges. */
  .nc-stage .nc-minimap { position: absolute; left: 18px; bottom: 18px; width: 264px; }
  /* Volume: upright, just right of the minimap and as tall as it (264 wide
     at 16:10 = 165 px), the speaker icon at its foot. */
  .nc-stage .nc-vol-side {
    position: absolute;
    left: calc(18px + 264px + 10px);
    bottom: 18px;
    z-index: 4;
    flex-direction: column;
    gap: 4px;
    width: 38px;
    height: 165px;
    margin: 0;
    padding: 8px 0 6px;
    box-sizing: border-box;
    border-radius: 10px;
    background: rgba(18, 6, 31, 0.55);
    backdrop-filter: blur(6px) saturate(1.15);
    -webkit-backdrop-filter: blur(6px) saturate(1.15);
    box-shadow: 4px 4px 0 rgba(18, 6, 31, 0.55);
  }
  .nc-stage .nc-vol-icon { order: 0; }
  .nc-stage .nc-vol-track { flex: 1; position: relative; width: 100%; }
  /* A sideways slider turned upright: its length is the track's height
     (165 − 14 padding − 22 icon − 4 gap = 125 px); up is louder. */
  .nc-stage .nc-vol-side input {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 125px;
    min-height: 0;
    height: 26px;
    transform: translate(-50%, -50%) rotate(-90deg);
  }
}

/* ---------- minimap: right of the gauge box, bottoms lined up ---------- */

.nc-minimap {
  position: relative;
  z-index: 4;
  justify-self: end;
  align-self: end;
  width: 216px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 16px;
  /* Neon frame: a pink-to-cyan border around the dark map. */
  background:
    linear-gradient(#1b1430, #1b1430) padding-box,
    linear-gradient(135deg, var(--nc-pink), #b04cff 50%, var(--nc-cyan)) border-box;
  box-shadow: 0 0 16px rgba(255, 46, 136, 0.5), 0 0 28px rgba(35, 230, 255, 0.25), 4px 4px 0 var(--nc-ink);
  cursor: pointer;
}
.nc-minimap[hidden] { display: none; }
/* More specific than MapLibre's own .maplibregl-map rule (position: relative),
   which loads later and would otherwise collapse the map to no height. */
.nc-minimap .nc-mm-map,
.nc-minimap .nc-mm-map.maplibregl-map { position: absolute; inset: 0; border-radius: 13px; overflow: hidden; }
.nc-mm-map canvas { outline: none; }
/* The car: a white arrow in the middle, always pointing up (the map turns). */
.nc-mm-car {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: -11px 0 0 -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 20px solid #fff;
  filter: drop-shadow(0 0 2px var(--nc-ink)) drop-shadow(0 0 6px rgba(35, 230, 255, 0.8));
}
.nc-minimap.waiting .nc-mm-car { display: none; }
/* N on the frame's edge, moved by minimap.js toward north. */
.nc-mm-north {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nc-ink);
  border: 1.5px solid #fff;
  color: #fff;
  font: 800 11px/1 var(--nc-body);
}
.nc-minimap.waiting .nc-mm-north { display: none; }
.nc-mm-note {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--nc-text);
  font: 700 13px/1.3 var(--nc-body);
  text-align: center;
  background:
    repeating-linear-gradient(-8deg, transparent 0 18px, rgba(255, 255, 255, 0.04) 18px 20px),
    #1b1430;
}
.nc-mm-note[hidden] { display: none; }
.nc-mm-credit {
  position: absolute;
  right: 8px;
  bottom: 3px;
  color: rgba(255, 255, 255, 0.55);
  font: 500 8px/1.2 var(--nc-body);
  pointer-events: none;
}
/* Phones: under the gauges, full width, not over the poster. */
@media (max-width: 640px) {
  .nc-minimap { justify-self: stretch; align-self: start; width: auto; aspect-ratio: auto; height: 150px; margin-top: 12px; }
}

/* ---------- splash ---------- */

.nc-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: var(--nc-ink);
  cursor: pointer;
  /* Fades out into the page (which shows the same poster behind it). */
  transition: opacity 0.8s ease, visibility 0.8s;
  /* Goes away by itself even if the script never runs. */
  animation: nc-splash-out 0.8s 5s forwards;
}
.nc-splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes nc-splash-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.nc-splash img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Like the background: the poster in the Tesla-screen frame (773 × 505
   times --k), at the top, centred across, on black. It fades in from black once it has loaded
   (index.html adds .in). --sh is the poster's height on screen. */
.nc-splash {
  --sh: calc(505px * var(--k, 1));
  background: #000;
}
.nc-splash-blur { display: none; }
.nc-splash .nc-splash-img {
  inset: 0 auto auto 50%;
  width: calc(773px * var(--k, 1));
  height: var(--sh);
  transform: translateX(-50%);
  object-fit: fill;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.nc-splash .nc-splash-img.in { opacity: 1; }
.nc-splash-bar {
  position: absolute;
  left: 50%;
  /* Just above the poster's bottom white line (about 2% of its height). */
  top: calc(var(--sh) * 0.975 - 18px);
  width: min(320px, 60vw);
  height: 8px;
  transform: translateX(-50%);
  border: 2px solid var(--nc-ink);
  background: rgba(18, 6, 31, 0.7);
}
.nc-splash-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--nc-pink), var(--nc-gold));
  animation: nc-splash-load 1.8s ease-out forwards;
}
@keyframes nc-splash-load { to { width: 100%; } }
.nc-pro {
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nc-pink), var(--nc-hot));
  font: 900 14px/1.4 var(--nc-body);
  letter-spacing: 0.12em;
}

.nc-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.nc-logo {
  margin: 18px 0 22px;
  text-align: center;
  font-family: var(--nc-display);
  font-weight: 400;
  font-style: italic;
  line-height: 0.86;
  text-transform: uppercase;
  transform: rotate(-3deg);
}
.nc-logo span { display: block; }
.nc-logo-1,
.nc-logo-2 {
  font-size: clamp(56px, 13vw, 132px);
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff3b0 0%, #ffc53d 35%, #ff5e3a 70%, #ff2e88 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px var(--nc-ink);
  filter: drop-shadow(5px 5px 0 var(--nc-ink)) drop-shadow(0 0 22px rgba(255, 46, 136, 0.55));
}
.nc-logo-2 { margin-left: 0.6em; }
.nc-logo-3 {
  display: inline-block !important;
  margin-top: 10px;
  padding: 4px 16px 6px;
  font-size: clamp(20px, 4vw, 34px);
  letter-spacing: 0.32em;
  color: var(--nc-cyan);
  background: var(--nc-ink);
  text-shadow: 0 0 12px rgba(35, 230, 255, 0.9);
}

/* The logo lives small in the top-right corner of the car picture, with the
   class badge under it, so it takes no room of its own. */
.nc-panel-tr {
  position: absolute;
  z-index: 2;
  top: 5%;
  right: 4%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.nc-panel-tr .nc-class { position: static; }
/* GTA cars / Standard cars, centred just above the picture, so it never
   covers the car. */
.nc-pic { min-width: 0; display: grid; gap: 10px; }
.nc-pic .nc-set { justify-self: center; }
.nc-set { background: rgba(18, 6, 31, 0.85); border-color: var(--nc-ink); box-shadow: 3px 3px 0 var(--nc-ink); }
.nc-set[hidden] { display: none; }
.nc-set button { min-height: 34px; padding: 0 12px; color: var(--nc-text); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.nc-panel .nc-logo { margin: 0; text-align: right; }
.nc-panel .nc-logo-1,
.nc-panel .nc-logo-2 {
  font-size: clamp(22px, 4.6vw, 52px);
  /* Room for the italic lean, or the gradient fill cuts the last letter. */
  padding-right: 0.14em;
  -webkit-text-stroke: 1px var(--nc-ink);
  filter: drop-shadow(3px 3px 0 var(--nc-ink)) drop-shadow(0 0 10px rgba(255, 46, 136, 0.5));
}
.nc-panel .nc-logo-1 { margin-right: 0.5em; }
.nc-panel .nc-logo-2 { margin-left: 0; }
.nc-panel .nc-logo-3 {
  margin-top: 4px;
  padding: 2px 8px 3px;
  font-size: clamp(8px, 1.3vw, 14px);
  letter-spacing: 0.26em;
}

/* ---------- collage: city and crew, tilted comic panels ---------- */

.nc-collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, minmax(120px, 15vw));
  gap: 10px;
  margin: 0 0 26px;
  padding: 10px;
  background: var(--nc-ink);
  transform: rotate(-1deg);
  box-shadow: 10px 10px 0 rgba(18, 6, 31, 0.6);
}
.nc-collage[hidden] { display: none; }
.nc-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--nc-plum);
  border: 3px solid #fff6f0;
}
.nc-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 6s ease-out;
}
.nc-shot:hover img { transform: scale(1.06); }
.nc-shot-city { grid-column: 1 / 4; grid-row: 1 / 3; clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); }
.nc-shot-1 { grid-column: 4 / 5; grid-row: 1; }
.nc-shot-2 { grid-column: 5 / 6; grid-row: 1; }
.nc-shot-3 { grid-column: 6 / 7; grid-row: 1 / 3; }
.nc-shot-4 { grid-column: 4 / 5; grid-row: 2; }
.nc-shot-5 { grid-column: 5 / 6; grid-row: 2; }
.nc-shot-6 { display: none; }
.nc-shot-1, .nc-shot-5 { clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%); }
.nc-shot-3 { clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%); }

/* ---------- Pro gate ---------- */

.nc-gate {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  /* Clear air between the poster and this box. */
  margin: 28px 0 18px;
  padding: 16px 18px;
  border: 2px solid var(--nc-gold);
  border-radius: 6px;
  background: rgba(18, 6, 31, 0.85);
  box-shadow: 6px 6px 0 var(--nc-ink);
  font-size: 17px;
  line-height: 1.45;
}
.nc-gate[hidden] { display: none; }
.nc-gate b { color: var(--nc-gold); }
.nc-gate-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.nc-btn {
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--nc-text);
  border-radius: 4px;
  background: transparent;
  color: var(--nc-text);
  font: 800 16px var(--nc-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.nc-btn-hot {
  border-color: var(--nc-ink);
  background: linear-gradient(90deg, var(--nc-pink), var(--nc-hot));
  box-shadow: 4px 4px 0 var(--nc-ink);
}

/* ---------- hero: the picked car on a comic panel ---------- */

.nc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  scroll-margin-top: 12px;
}
/* Pro: no gate box in between, so the same clear air as the gate gets
   between the poster and the GTA cars / Standard cars switch. */
.nc-gate[hidden] + .nc-hero { margin-top: 28px; }
.nc-panel {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 4px solid var(--nc-ink);
  clip-path: polygon(0 4%, 100% 0, 97% 100%, 2% 96%);
  overflow: hidden;
  background: var(--nc-night);
}
.nc-panel-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 62%, #ffe66d 0 9%, #ff9f5a 9.5% 13%, transparent 13.5%),
    linear-gradient(180deg, #2b0d48 0%, #a12a75 42%, #ff6a5a 62%, #ffb05a 66%, #2c1a52 66.5%, #170b2c 100%);
}
.nc-panel-sky::before {
  /* Speed lines in the car's colour. */
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-8deg, transparent 0 26px, color-mix(in srgb, var(--car) 35%, transparent) 26px 29px);
  mask: linear-gradient(90deg, #000, transparent 70%);
  -webkit-mask: linear-gradient(90deg, #000, transparent 70%);
}
.nc-panel-sky::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 66%;
  bottom: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 150, 100, 0.22) 0 2px, transparent 2px 10px);
}
.nc-art {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 6%;
  width: 92%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  animation: nc-roll-in 0.45s cubic-bezier(.2, .9, .3, 1.2);
}
/* A painted picture is a whole scene: it fills the panel. */
.nc-panel.has-photo .nc-art {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.nc-panel.has-photo .nc-panel-sky { display: none; }
.nc-card-art.has-photo { padding: 0; }
.nc-card-art.has-photo img { object-fit: cover; }

@keyframes nc-roll-in {
  from { transform: translateX(-12%) skewX(-6deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
/* Top left of the picture: which car is running, and how to pick another. */
.nc-running {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: 4%;
  max-width: 68%;
  display: grid;
  gap: 2px;
  padding: 7px 14px 8px;
  background: rgba(18, 6, 31, 0.78);
  border: 2px solid var(--nc-ink);
  box-shadow: 3px 3px 0 var(--nc-ink);
  transform: rotate(-2deg);
}
.nc-running-label {
  color: var(--nc-cyan);
  font: 900 12px/1.2 var(--nc-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nc-running-name {
  color: var(--nc-gold);
  font: italic 400 clamp(20px, 2.6vw, 30px)/1.05 var(--nc-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--nc-ink);
}
.nc-running-hint { color: var(--nc-text); font: 600 12px/1.3 var(--nc-body); opacity: 0.9; }
@media (max-width: 640px) {
  .nc-running { padding: 5px 10px 6px; max-width: 56%; }
  .nc-panel-tr { gap: 5px; }
  .nc-panel-tr .nc-class { padding: 1px 8px; font-size: 11px; }
  .nc-set button { min-height: 28px; padding: 0 8px; font-size: 11px; }
  .nc-running-label, .nc-running-hint { font-size: 10px; }
  .nc-running-name { font-size: 18px; }
}

/* The class badge moves to the top right, clear of the caption. */
.nc-class {
  position: absolute;
  top: 7%;
  right: 5%;
  padding: 3px 12px;
  background: var(--car);
  color: #fff;
  font: 900 15px/1.4 var(--nc-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--nc-ink);
  box-shadow: 3px 3px 0 var(--nc-ink);
  transform: rotate(-4deg);
}

.nc-id { min-width: 0; }
.nc-brand {
  color: var(--nc-cyan);
  font: 900 18px var(--nc-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(35, 230, 255, 0.6);
}
.nc-model {
  margin: 2px 0 6px;
  font: italic 400 clamp(46px, 7vw, 76px)/0.95 var(--nc-display);
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 1.5px var(--nc-ink);
  text-shadow: 4px 4px 0 var(--nc-ink), 0 0 26px color-mix(in srgb, var(--car) 70%, transparent);
  overflow-wrap: anywhere;
}
.nc-tag { color: var(--nc-muted); font-size: 17px; line-height: 1.45; margin-bottom: 14px; }

.nc-stats { display: grid; gap: 8px; }
.nc-stat {
  display: grid;
  grid-template-columns: 92px 1fr 104px;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.nc-stat span { color: var(--nc-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.nc-stat em {
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--nc-ink);
  transform: skewX(-18deg);
  overflow: hidden;
}
.nc-stat i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--nc-gold), var(--nc-pink));
  transition: width 0.5s cubic-bezier(.2, .9, .3, 1);
}
.nc-stat b { text-align: right; font-variant-numeric: tabular-nums; }
.nc-gearbox { margin-top: 10px; color: var(--nc-muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- dash: HUD, start, pedals ---------- */

.nc-dash {
  margin: 26px 0 30px;
  padding: 18px;
  border: 2px solid var(--nc-line);
  border-radius: 8px;
  background: var(--nc-card);
  backdrop-filter: blur(8px);
  box-shadow: 8px 8px 0 rgba(18, 6, 31, 0.7);
}
/* First thing on the page: sits right under the back link. */
.nc-dash-top { margin-top: 4px; }

.nc-hud {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 22px;
  align-items: center;
}
.nc-speed-wrap { display: flex; align-items: baseline; gap: 8px; }
.nc-speed {
  min-width: 2.2ch;
  text-align: right;
  font: italic 400 clamp(64px, 11vw, 104px)/0.9 var(--nc-display);
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 3px 3px 0 var(--nc-ink), 0 0 20px rgba(255, 46, 136, 0.6);
}
.nc-unit { color: var(--nc-cyan); font-weight: 900; letter-spacing: 0.12em; }
.nc-gear-wrap {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 3px solid var(--nc-cyan);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(35, 230, 255, 0.5), inset 0 0 12px rgba(35, 230, 255, 0.3);
}
.nc-gear { font: italic 400 40px/1 var(--nc-display); }
.nc-gear-wrap small { margin-top: -18px; font-size: 10px; color: var(--nc-muted); text-transform: uppercase; letter-spacing: 0.14em; }

.nc-rpm-bar {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  height: 34px;
}
.nc-rpm-bar span {
  background: rgba(255, 255, 255, 0.1);
  transform: skewX(-18deg);
}
.nc-rpm-bar span.red { background: rgba(255, 46, 70, 0.28); }
.nc-rpm-bar span.on { background: var(--nc-cyan); box-shadow: 0 0 10px rgba(35, 230, 255, 0.7); }
.nc-rpm-bar span.hot { background: var(--nc-pink); box-shadow: 0 0 12px rgba(255, 46, 136, 0.9); }
.nc-rpm-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--nc-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.nc-rpm-line b { color: var(--nc-text); }
.nc-throttle { flex: 0 1 180px; height: 6px; background: rgba(255, 255, 255, 0.12); }
.nc-throttle i { display: block; height: 100%; width: 0; background: var(--nc-gold); }

.nc-start {
  display: block;
  width: 100%;
  min-height: 72px;
  margin: 18px 0 8px;
  border: 3px solid var(--nc-ink);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--nc-pink), var(--nc-hot) 60%, var(--nc-gold));
  box-shadow: 6px 6px 0 var(--nc-ink);
  color: #fff;
  font: italic 400 34px/1 var(--nc-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--nc-ink);
  cursor: pointer;
  transition: transform 0.08s;
}
.nc-start:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--nc-ink); }
.nc-start.on { background: linear-gradient(90deg, #23365e, #1a0b2e); border-color: var(--nc-cyan); box-shadow: 0 0 22px rgba(35, 230, 255, 0.45); }
.nc-status { min-height: 22px; margin: 0 0 10px; color: var(--nc-muted); font-size: 15px; }
.nc-status[data-kind="error"] { color: #ff6b81; }
.nc-status[data-kind="warn"] { color: var(--nc-gold); }

.nc-pedals {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  margin: 6px 0 14px;
}
.nc-pedals-gps { grid-template-columns: 1fr; justify-items: center; }
body.mode-demo .gps-only { display: none; }
body:not(.engine-on) .nc-pedals { opacity: 0.45; pointer-events: none; }
.nc-pedal {
  min-height: 120px;
  border: 3px solid var(--nc-ink);
  border-radius: 6px;
  color: #fff;
  font: italic 400 30px var(--nc-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  touch-action: none;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--nc-ink);
}
.nc-gas { background: linear-gradient(180deg, #3dffa8, #0b8f5e); }
.nc-brake { background: linear-gradient(180deg, #ff6b81, #a3122e); }
.nc-rev {
  min-width: 110px;
  background: linear-gradient(180deg, var(--nc-gold), #d26a00);
  visibility: hidden;
}
.nc-pedals-gps .nc-rev { width: min(320px, 100%); min-height: 80px; }
.nc-rev.shown { visibility: visible; }
.nc-pedal.active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--nc-ink); filter: brightness(1.2); }

.nc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}
.nc-seg { display: inline-flex; border: 2px solid var(--nc-line); border-radius: 4px; overflow: hidden; }
.nc-seg button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--nc-muted);
  font: 800 15px var(--nc-body);
  cursor: pointer;
}
.nc-seg button[aria-pressed="true"] { background: var(--nc-cyan); color: var(--nc-ink); }
/* Volume: a row under the minimap on phones; upright beside it on bigger
   screens (see the Tesla-screen frame rules). */
.nc-vol-side { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--nc-text); cursor: pointer; }
.nc-vol-icon { order: -1; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.nc-vol-track { flex: 1; display: flex; }
.nc-vol-side input { flex: 1; margin: 0; accent-color: var(--nc-pink); min-height: 44px; }

/* ---------- motor park ---------- */

/* Clear air between the big car view above and the motor park title. */
.nc-park { margin-top: 44px; }
.nc-park-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.nc-park h2 {
  margin: 0;
  font: italic 400 clamp(36px, 6vw, 56px)/1 var(--nc-display);
  text-transform: uppercase;
  color: var(--nc-gold);
  text-shadow: 3px 3px 0 var(--nc-ink);
}
.nc-count { color: var(--nc-muted); font-weight: 700; }
.nc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.nc-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--nc-ink);
  /* Solid, so the chips read clearly over the sunset behind them. */
  background: linear-gradient(180deg, #4a1a6e, #2a0d45);
  box-shadow: 3px 3px 0 var(--nc-ink);
  color: var(--nc-text);
  font: 800 14px var(--nc-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: skewX(-12deg);
  cursor: pointer;
}
.nc-chip:hover { background: linear-gradient(180deg, #5c2386, #36105a); }
.nc-chip[aria-pressed="true"] { background: linear-gradient(180deg, #ff4f9e, var(--nc-pink)); color: #fff; }

.nc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.nc-card {
  position: relative;
  display: grid;
  /* One column exactly the card's width: without it, long stats made the
     content wider than the card and cut off the front of the car. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  padding: 0 0 12px;
  border: 3px solid var(--nc-ink);
  border-radius: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 45%, #1a0b2e) 0%, #1a0b2e 62%);
  color: var(--nc-text);
  text-align: left;
  box-shadow: 6px 6px 0 var(--nc-ink);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nc-card[hidden] { display: none; }
.nc-card:hover { transform: translate(-2px, -2px) rotate(-0.6deg); box-shadow: 9px 9px 0 var(--nc-ink); }
.nc-card[aria-current="true"] { outline: 3px solid var(--nc-cyan); outline-offset: 3px; box-shadow: 6px 6px 0 var(--nc-ink), 0 0 26px rgba(35, 230, 255, 0.55); }
.nc-card-no {
  position: absolute;
  top: 6px;
  right: 10px;
  font: italic 400 34px/1 var(--nc-display);
  color: rgba(255, 255, 255, 0.16);
}
.nc-card-art {
  display: block;
  aspect-ratio: 16 / 7;
  padding: 10px 6px 0;
  background:
    linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.35) 70%),
    repeating-linear-gradient(-8deg, transparent 0 22px, rgba(255, 255, 255, 0.05) 22px 24px);
}
.nc-card-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Under the picture: the name on the left, the car's stats on the right, so
   they can be compared while scrolling the park. */
.nc-card-info {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 12px 0 14px;
}
.nc-card-text { flex: 1 1 auto; min-width: 0; display: grid; justify-items: start; container-type: inline-size; }
.nc-card-brand {
  color: var(--nc-cyan);
  font: 900 12px var(--nc-body);
  /* Long brands (LAMBORGHINI) shrink to fit the column; see --word. */
  font-size: max(8px, min(12px, calc(100cqi / var(--word, 1))));
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.nc-card-model {
  max-width: 100%;
  font: italic 400 clamp(20px, 3vw, 28px)/1.05 var(--nc-display);
  /* --word (gta.js) is the longest word's width in em: shrink the name until
     that word fits the column, with room for the italic lean and shadow. */
  font-size: max(13px, min(clamp(20px, 3vw, 28px), calc((100cqi - 6px) / var(--word, 1))));
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--nc-ink);
  overflow-wrap: anywhere;
}
/* The model code in brackets, on a small line under the name. */
.nc-card-code { display: block; margin-top: 2px; font-size: max(11px, 0.5em); letter-spacing: 0.06em; opacity: 0.85; }
.nc-card-stats { flex: 0 0 50%; display: grid; gap: 4px; padding-bottom: 2px; }
.nc-cs-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 6px;
  font: 700 10px/1.2 var(--nc-body);
}
.nc-cs-row > span { color: var(--nc-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.nc-cs-row em { display: block; height: 5px; background: rgba(255, 255, 255, 0.14); transform: skewX(-18deg); }
.nc-cs-row i { display: block; height: 100%; background: linear-gradient(90deg, var(--nc-gold), var(--nc-pink)); }
.nc-cs-row b { color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nc-card-cls {
  margin: 4px 0 0;
  padding: 1px 8px;
  background: var(--c);
  border: 1.5px solid var(--nc-ink);
  font: 800 11px/1.5 var(--nc-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nc-card-lock {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 10px;
  background: var(--nc-gold);
  color: var(--nc-ink);
  font: 900 12px/1.5 var(--nc-body);
  letter-spacing: 0.16em;
  border: 2px solid var(--nc-ink);
}
body:not(.is-pro) .nc-card-lock { display: block; }
body:not(.is-pro) .nc-card-art img { filter: saturate(0.75) brightness(0.85); }

/* ---------- footer ---------- */

.nc-foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px 40px;
  color: var(--nc-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(18, 6, 31, 0.9);
}
.nc-foot a { color: var(--nc-text); }

/* The pay window, themed. */
.nc .modal-card { border: 3px solid var(--nc-ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--nc-ink), 0 0 40px rgba(255, 46, 136, 0.35); }
.nc .modal-card h2 { font: italic 400 34px var(--nc-display); text-transform: uppercase; color: var(--nc-gold); }
.nc .segmented { background: rgba(255, 255, 255, 0.06); }

/* ---------- narrow screens ---------- */

/* Half a screen is too narrow for speed, gear and rpm side by side. */
@media (max-width: 1100px) {
  .nc-stage .nc-hud { grid-template-columns: auto auto; justify-content: start; }
  .nc-stage .nc-rpm-wrap { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .nc-bg-layer, .nc-splash { transition: none; }
}
/* Phones: too narrow for half, so the panel spans the width, still on top
   of the poster. */
@media (max-width: 640px) {
  .nc-stage .nc-top { padding: 12px 16px 0; gap: 6px; }
  /* Four buttons in one row: keep Original mode on one line. */
  .nc-back { min-height: 38px; padding: 0 10px 0 5px; font-size: 15px; white-space: nowrap; }
  .nc-back svg { width: 18px; height: 18px; }
  .nc-swap { width: 38px; height: 38px; flex: none; }
  .nc-stage-in { grid-template-columns: 1fr; padding: 10px 16px 24px; }
  .nc-stage .nc-dash { width: 100%; }
  /* The gauges are on top here, so the poster sits at the bottom, in room
     of its own (its height, 768/1376 of the width), clear of the minimap. */
  .nc-bg-pic { object-position: center bottom; }
  .nc-stage { padding-bottom: calc(55.81vw + 8px); }
}
@media (max-width: 820px) {
  .nc-collage { grid-template-columns: repeat(3, 1fr); grid-template-rows: 46vw repeat(2, 42vw); }
  .nc-shot-city { grid-column: 1 / -1; grid-row: 1; clip-path: none; }
  .nc-shot-1, .nc-shot-2, .nc-shot-3, .nc-shot-4, .nc-shot-5, .nc-shot-6 { display: block; grid-column: auto; grid-row: auto; clip-path: none; }
  .nc-hero { grid-template-columns: 1fr; }
  .nc-hud { grid-template-columns: auto auto; }
  .nc-rpm-wrap { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .nc-stat { grid-template-columns: 74px 1fr 88px; font-size: 13px; }
  .nc-pedal { min-height: 100px; font-size: 24px; }
  .nc-rev { min-width: 80px; }
  .nc-grid { grid-template-columns: 1fr; }
}
