@font-face {
  font-family: Genos;
  src: url('../assets/Genos-Variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, sans-serif;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}
.brand {
  font-weight: 900;
  display: flex;
  align-items: center;
}
.brand i {
  font:
    10px Genos,
    sans-serif;
  margin-left: 18px;
  font-style: normal;
}
nav {
  display: flex;
  gap: 8px;
}
button {
  cursor: pointer;
  border: 1px solid #46616b;
  padding: 12px 15px;
}
button:disabled {
  cursor: default;
}
main,
.game-shell {
  position: relative;
  width: 100%;
  height: calc(100dvh - 58px);
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  outline: none;
}
.hud {
  position: absolute;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.hud-left,
.hud-right {
  background: #0b151de8;
  border: 1px solid #39515a;
  box-shadow: 4px 4px #0003;
}
.hud strong {
  display: block;
}
#heat {
  letter-spacing: 1px;
}
#heat span {
  margin-left: 6px;
}
.hud-right {
  text-align: right;
}
.meter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.meter b {
  width: 75px;
  height: 5px;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--mint);
}
#speed {
  margin-top: 10px;
}
.mission {
  position: absolute;
  bottom: 24px;
  left: 20px;
  pointer-events: none;
}
.mission strong {
  display: block;
}
#buzz {
  position: absolute;
  left: 20px;
  background: #0c1720e8;
  border: 1px solid #37515a;
  font:
    9px Genos,
    sans-serif;
  pointer-events: none;
}
#service {
  display: none;
  position: absolute;
  left: 20px;
  background: #101c25ef;
  border: 1px solid #c39ce7;
  pointer-events: none;
}
#toast {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #0b151ef5;
  border: 1px solid var(--mint);
  font:
    12px Genos,
    sans-serif;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  text-align: center;
  max-width: 45%;
  z-index: 4;
}
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.hidden {
  display: none !important;
}
.intro {
  text-align: center;
}
.intro h1,
.intro h2 {
  line-height: 0.95;
  margin: 0 0 30px;
}
.intro em {
  font-style: normal;
}
.intro p {
  color: #aec4c7;
  line-height: 1.7;
}
.intro small {
  display: block;
  margin-top: 20px;
}
.primary {
  font-weight: bold;
}
.modal {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #0610189c;
  padding: 24px;
}
.modal:has(.shop-layout) {
  background: #06101865;
}
#modal-content {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 120px);
  overflow: auto;
  border: 1px solid #57717d;
  outline: none;
}
.close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}
#modal-content h3 {
  margin: 24px 0 10px;
}
dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  margin: 0;
}
dt {
  color: #dbe9e6;
}
dd {
  margin: 0;
  color: #b7c9ce;
}
.shop-layout {
  display: grid;
}
.owner img {
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid #65808a;
}
.owner span {
  display: block;
  padding-top: 12px;
}
.shop-body {
  padding-top: 7px;
}
.shop-body h2 {
  max-width: 300px;
}
.shop-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.shop-options button {
  letter-spacing: 0;
}
.shop-options small {
  display: block;
  font-size: 9px;
  margin-top: 8px;
}
.paint-choice i {
  display: block;
  background: var(--paint);
  height: 23px;
  margin-bottom: 9px;
  border: 1px solid #e9ffff55;
  box-shadow:
    inset 0 3px #ffffff35,
    inset 0 -4px #0003;
}
.shop-options:has(#repair-full) {
  grid-template-columns: 1fr 1fr;
}
.shop-options b {
  display: block;
}
.shop-options span {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 8px;
}
#shop-wallet {
  font-family: Genos, sans-serif;
}
.live-note {
  margin-top: 22px;
}
#shop-message {
  min-height: 30px;
}
@media (max-width: 650px) {
  header {
    padding: 0 10px;
  }
  .brand i {
    display: none;
  }
  nav {
    gap: 4px;
  }
  nav button {
    padding: 10px;
  }
  .hud {
    left: 10px;
    right: 10px;
  }
  #service {
    left: 10px;
    max-width: 230px;
  }
  .mission {
    left: 10px;
    bottom: 15px;
  }
  #toast {
    top: 260px;
  }
  .modal {
    padding: 12px;
  }
  #modal-content {
    max-height: calc(100dvh - 90px);
  }
  .owner span {
    font-size: 7px;
  }
  .shop-options {
    grid-template-columns: repeat(2, 1fr);
  }
  dl {
    grid-template-columns: 115px 1fr;
    font-size: 11px;
  }
}
#map-toggle {
  position: absolute;
  right: 17px;
  bottom: 42px;
  width: 172px;
  height: 207px;
  border: 0;
  background: transparent;
  color: transparent;
  z-index: 3;
  padding: 0;
}
#map-toggle:hover {
  border: 1px solid #76eac8;
}
#map-toggle:focus-visible {
  color: #a9ffe3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}
.city-map {
  display: block;
  width: 100%;
  max-height: 58dvh;
  border: 1px solid #48646a;
  font-family: Genos, sans-serif;
}
@media (max-width: 650px) {
  #map-toggle {
    width: 124px;
    height: 159px;
    right: 17px;
    bottom: 42px;
  }
}
.help-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #3d5962;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.vehicle-card {
  background: #162a32;
  border: 1px solid #3a5660;
  padding: 12px;
}
.vehicle-card canvas {
  width: 100%;
  height: auto;
  background: #213740;
}
.vehicle-card h3 {
  margin: 10px 0 !important;
}
.achievement-list {
  display: grid;
  gap: 12px;
}
.achievement-card {
  display: flex;
  align-items: center;
  border: 1px solid #3d4d56;
  background: #15232c;
  opacity: 0.55;
}
.achievement-card.unlocked {
  opacity: 1;
}
.achievement-card > b {
  font-size: 35px;
  color: #d7be79;
}
.achievement-card h3 {
  margin: 0 0 5px !important;
}
.achievement-card p {
  margin: 0;
}
.achievement-card small {
  display: block;
  margin-top: 8px;
}
#achievement-toast {
  position: absolute;
  top: 85px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #dfc271;
  padding: 13px 20px;
  font:
    11px Genos,
    sans-serif;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 11;
  max-width: 70%;
  text-align: center;
}
@media (max-width: 650px) {
  .vehicle-grid {
    grid-template-columns: 1fr;
  }
  .help-tabs button {
    padding: 9px;
  }
  .vehicle-card p {
    min-height: 0;
  }
}
/* Glass surfaces: avoid continuously blurring the moving city behind HUD panels. */
header {
  height: 58px;
  border-color: var(--edge);
}
.brand {
  letter-spacing: -1px;
}
.brand i {
  font-family: inherit;
}
button {
  font:
    500 12px/1.3 Genos,
    -apple-system,
    BlinkMacSystemFont,
    Genos,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.primary {
  border-radius: 18px;
  padding: 15px 35px;
}
.hud {
  text-shadow: none;
  top: 18px;
}
.hud-left,
.hud-right,
.mission,
#buzz,
#service,
#toast,
#achievement-toast {
  border: 1px solid var(--edge);
}
.hud-left,
.hud-right {
  padding: 14px 17px;
}
.hud-right {
  min-width: 155px;
}
.hud strong {
  letter-spacing: -1px;
  margin: 6px 0;
}
.live {
  font:
    500 10px Genos,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0.6px;
}
#heat {
  font-size: 0;
}
#heat span {
  letter-spacing: 2px;
  margin: 0;
}
.meter {
  color: #c1d2d7;
}
.meter b,
.meter i {
  border-radius: 5px;
}
.meter b {
  overflow: hidden;
}
#speed {
  font-variant-numeric: tabular-nums;
}
#buzz {
  font-family: inherit;
  letter-spacing: 0;
}
#service {
  font:
    11px/1.4 Genos,
    'Segoe UI',
    sans-serif;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 280px;
}
.mission {
  min-width: 205px;
}
.mission > span {
  font:
    500 10px Genos,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0.3px;
}
.mission strong {
  font-weight: 600;
  letter-spacing: -0.2px;
}
.mission small {
  font:
    11px Genos,
    'Segoe UI',
    sans-serif;
}
#toast,
#achievement-toast {
  font:
    12px/1.4 Genos,
    'Segoe UI',
    sans-serif;
  padding: 11px 19px;
  border-radius: 16px;
  color: #edf7f5;
  max-width: 45%;
}
.overlay {
  backdrop-filter: none;
}
.intro {
  padding: 38px;
  border: 1px solid #ecf5ff2b;
  border-radius: 32px;
}
.intro h1,
.intro h2 {
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: -3px;
  font-weight: 750;
  margin-bottom: 25px;
}
.intro small {
  font:
    11px Genos,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0;
}
.modal,
.modal:has(.shop-layout) {
  background: #08121b66;
}
.modal:has(.fleet-grid) {
  background: #08121b88;
}
#modal-content {
  backdrop-filter: blur(12px) saturate(115%);
  max-width: 850px;
  padding: 30px;
}
.modal:has(.shop-layout) #modal-content {
  backdrop-filter: none;
}
.close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 0;
  border-radius: 50%;
  font-weight: 300;
}
#modal-content h2 {
  font-weight: 650;
  letter-spacing: -0.8px;
  margin: 10px 0 22px;
}
#modal-content h3 {
  font:
    600 14px Genos,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0;
}
.eyebrow {
  font:
    500 10px Genos,
    'Segoe UI',
    sans-serif;
  letter-spacing: 1.2px;
}
.help-tabs {
  border: 0;
  padding: 0;
  gap: 5px;
  border-radius: 15px;
  padding: 5px;
}
.help-tabs button {
  flex: 1;
  border-color: transparent;
  background: transparent;
  padding: 10px 8px;
}
.vehicle-card,
.achievement-card,
.fleet-card {
  background: linear-gradient(145deg, #e5f4ff0b, #e5fff503);
  border: 1px solid #e4f3ff1c;
  border-radius: 19px;
  overflow: hidden;
}
.vehicle-card canvas,
.fleet-card canvas {
  border-radius: 13px;
}
.vehicle-card p {
  min-height: 0;
}
.achievement-card {
  gap: 15px;
  padding: 16px;
}
.achievement-card small {
  font:
    10px Genos,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0.5px;
}
.shop-layout {
  grid-template-columns: 170px 1fr;
  gap: 25px;
}
.owner img {
  width: 170px;
  height: 210px;
  border-radius: 18px;
}
.owner span {
  font:
    9px Genos,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0.8px;
  line-height: 1.5;
}
.shop-options button {
  border-radius: 15px;
  padding: 13px 9px;
}
.paint-choice i {
  border-radius: 8px;
}
.live-note {
  font: 10px inherit !important;
}
#shop-wallet {
  font: 12px inherit !important;
}
.city-map {
  border-radius: 18px;
}
dl {
  gap: 11px;
}
dt {
  font-family: inherit;
}
.fleet-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-right: 22px;
}
.fleet-title strong {
  font-weight: 600;
}
.current-car {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 15px;
  padding: 13px 16px;
  margin-bottom: 20px;
}
.current-car span,
.current-car small {
  color: #a7c0ca;
}
.current-car small {
  margin-left: auto;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.fleet-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fleet-card canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 256/130;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.card-heading h3 {
  margin: 0 !important;
}
.card-heading small,
.car-stat {
  color: #a8c0cc;
}
.fleet-card button {
  width: 100%;
  margin-top: auto;
}
.empty-slot,
.slot-card {
  min-height: 190px;
  align-items: center;
  justify-content: center;
  color: #a9bfca;
  border-style: dashed;
}
.slot-card button {
  margin-top: 10px;
}
#modal-content > .primary {
  margin-top: 12px;
}
@media (max-width: 650px) {
  .hud {
    top: 12px;
  }
  .hud-right {
    min-width: 135px;
  }
  .hud-left,
  .hud-right {
    padding: 12px;
  }
  #buzz {
    left: 10px;
  }
  .mission {
    min-width: 0;
  }
  #modal-content {
    padding: 22px;
    border-radius: 22px;
  }
  .fleet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fleet-title {
    align-items: start;
  }
  .fleet-title strong {
    margin-top: 12px;
  }
  .current-car {
    gap: 7px;
  }
  .current-car small {
    width: 100%;
    margin: 0;
  }
  .shop-layout {
    grid-template-columns: 90px 1fr;
    gap: 15px;
  }
  .owner img {
    width: 90px;
    height: 125px;
    border-radius: 13px;
  }
  #toast {
    max-width: 85%;
  }
  .intro {
    padding: 28px;
  }
  .help-tabs {
    flex-wrap: wrap;
  }
  .help-tabs button {
    flex: auto;
  }
  .fleet-card {
    padding: 10px;
  }
  .card-heading {
    align-items: start;
    flex-direction: column;
  }
}
@supports not (backdrop-filter: blur(1px)) {
}

/* Genos has a compact x-height: retain readable physical sizes. */
body {
  font-family: Genos, 'Segoe UI', sans-serif;
  font-size: 16px;
}
button {
  font-size: 16px;
  line-height: 1.15;
}
nav button {
  font-size: 15px;
}
.brand {
  font-size: 28px;
}
.brand i {
  font-size: 13px;
  letter-spacing: 1px;
}
.hud {
  font-family: Genos, sans-serif;
}
.live {
  font-size: 13px;
}
.hud strong {
  font-size: 35px;
  line-height: 1.1;
}
#heat span {
  font-size: 17px;
}
.hud-right > span {
  font-size: 14px;
}
.meter {
  font-size: 11px;
  margin-top: 7px;
}
.meter label {
  width: 36px;
}
#speed {
  font-size: 32px;
  line-height: 1.05;
}
#speed small {
  font-size: 11px;
}
#buzz {
  font-size: 13px;
  top: 153px;
  padding: 5px 13px;
}
#service {
  font-size: 15px;
  top: 191px;
}
.mission > span {
  font-size: 14px;
  line-height: 1.1;
}
.mission strong {
  font-size: 21px;
  margin: 5px 0;
  line-height: 1.1;
}
.mission small {
  font-size: 15px;
}
#toast,
#achievement-toast {
  font-size: 16px;
  line-height: 1.15;
}
.primary {
  font-size: 19px;
}
.intro small {
  font-size: 14px;
}
.eyebrow {
  font-size: 13px;
}
.close {
  font-size: 27px;
}
#modal-content h2 {
  font-size: 36px;
  line-height: 1.1;
}
#modal-content h3 {
  font-size: 20px;
}
#modal-content p {
  font-size: 17px;
  line-height: 1.4;
}
.help-tabs button {
  font-size: 16px;
}
dl {
  font-size: 17px;
  line-height: 1.3;
}
.vehicle-card p {
  font-size: 16px !important;
}
.achievement-card small {
  font-size: 13px;
}
.owner span {
  font-size: 12px;
}
.shop-options b {
  font-size: 15px;
}
.shop-options span,
.shop-options small {
  font-size: 14px;
}
.live-note {
  font-size: 13px !important;
}
#shop-wallet {
  font-size: 17px !important;
}
.fleet-title strong {
  font-size: 26px;
}
.current-car {
  font-size: 17px;
  line-height: 1.2;
}
.current-car small {
  font-size: 15px;
}
.card-heading h3 {
  font-size: 18px !important;
}
.card-heading small,
.car-stat {
  font-size: 14px;
}
.empty-slot,
.slot-card {
  font-size: 18px;
}
.reward-label {
  font-size: 14px;
}
.map-legend {
  font-size: 15px !important;
}
@media (max-width: 650px) {
  nav button {
    font-size: 13px;
  }
  .brand {
    font-size: 25px;
  }
  .hud strong {
    font-size: 29px;
  }
  .hud-right > span {
    font-size: 12px;
  }
  .hud-left,
  .hud-right {
    min-width: 135px;
  }
  #buzz {
    font-size: 12px;
    top: 144px;
  }
  #service {
    font-size: 13px;
    top: 183px;
  }
  .mission > span {
    font-size: 12px;
  }
  .mission strong {
    font-size: 17px;
  }
  .mission small {
    font-size: 13px;
  }
  #toast {
    font-size: 14px;
  }
  .help-tabs button {
    font-size: 14px;
  }
  #modal-content h2 {
    font-size: 30px;
  }
  .fleet-title h2 {
    font-size: 30px !important;
  }
  .fleet-title strong {
    font-size: 23px;
  }
  .current-car {
    font-size: 15px;
  }
  .current-car small {
    font-size: 13px;
  }
  .card-heading h3 {
    font-size: 16px !important;
  }
  .card-heading small,
  .car-stat {
    font-size: 13px;
  }
  .fleet-card button {
    font-size: 14px;
  }
}
/* Dystopian night palette. Texture stays static; HUD surfaces remain blur-free. */
:root {
  --mint: #00f0ff;
  --ink: #d9eaf2;
  --bg: #0a0d14;
  --edge: #55708042;
  --glass:
    linear-gradient(132deg, #00f0ff09, transparent 38%, #ff007f07),
    repeating-linear-gradient(0deg, transparent 0 3px, #c0e4ff03 3px 4px), #0e1420ed;
}
body {
  background: #0a0d14;
  color: var(--ink);
}
header {
  background: linear-gradient(95deg, #1b2230f5, #0a0d14f8 70%, #2d1f38c0);
  border-bottom: 1px solid #00f0ff2e;
  box-shadow: 0 2px 12px #0005;
}
.brand span {
  color: #00f0ff;
}
.brand i {
  color: #88a8b9;
}
button {
  background: linear-gradient(145deg, #1b2230e8, #10151ff2);
  border-color: #68859a36;
  color: #c4dce7;
  box-shadow: inset 0 1px #bccfff0b;
  border-radius: 12px;
}
button:hover {
  background: #202337;
  border-color: #00f0ff88;
  color: #eaffff;
}
button:focus-visible {
  outline: 2px solid #ff007f;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.3;
}
.primary {
  background: #00f0ff;
  color: #0a0d14;
  border-color: #00f0ff;
  box-shadow: 0 0 19px #00f0ff1a;
}
.primary:hover {
  background: #8af9ff;
  color: #0a0d14;
}
.hud-left,
.hud-right,
.mission,
#buzz,
#service,
#toast,
#achievement-toast {
  background: var(--glass);
  border-color: #697d9840;
  box-shadow:
    inset 0 1px #a1e1ff0a,
    0 6px 22px #0005;
  border-radius: 17px;
}
.hud-left {
  border-top-color: #00f0ff69;
}
.hud-right {
  border-top-color: #ff007f60;
}
.live {
  color: #8fb5c5;
}
.hud strong {
  color: #e3f9ff;
}
#heat span {
  color: #ff62ad;
}
.hud-right > span {
  color: #9ccbd7;
}
.meter b {
  background: #91bed817;
}
#hullbar {
  background: #00f0ff;
}
#boostbar {
  background: #ff007f;
}
.meter label {
  color: #7898ad;
}
#speed {
  color: #d1e8f1;
}
#buzz {
  color: #8aa5b8;
  border-radius: 11px;
}
.mission {
  border-left: 2px solid #00f0ff;
}
.mission > span {
  color: #00f0ff;
}
.mission strong {
  color: #daeaf3;
}
.mission small {
  color: #899fb4;
}
#service {
  color: #e0accb;
  border-color: #ff007f40;
}
#toast {
  color: #bfe8ee;
  border-color: #00f0ff59;
}
#achievement-toast {
  color: #eace97;
  border-color: #d5a74480;
  background: #1b1923ef;
}
.intro {
  background: linear-gradient(130deg, #00f0ff09, transparent 45%, #ff007f0c), #0a0d14f0;
  border-color: #58647d6b;
  box-shadow:
    0 22px 80px #0008,
    inset 0 1px #00f0ff33;
}
.intro em {
  color: #00f0ff;
}
.intro h1,
.intro h2 {
  color: #d9e5ef;
}
.intro small {
  color: #738ca5;
}
.overlay {
  background: #050810b0;
}
.modal,
.modal:has(.shop-layout),
.modal:has(.fleet-grid) {
  background: #06081099;
}
#modal-content {
  background:
    linear-gradient(140deg, #00f0ff08, transparent 36%, #ff007f08),
    repeating-linear-gradient(0deg, #95a7ce03 0 1px, transparent 1px 4px), #101621f2;
  border-color: #00f0ff3d;
  box-shadow:
    inset 0 1px #badfff14,
    0 24px 85px #000a;
  border-radius: 24px;
}
.modal:has(.shop-layout) #modal-content {
  background-color: #101621fa;
}
.close {
  background: #1b2230;
  color: #90bec9;
  border-color: #00f0ff3b;
}
.eyebrow {
  color: #00f0ff;
}
#modal-content h2 {
  color: #e4eff5;
}
#modal-content h3 {
  color: #bddce6;
}
#modal-content p {
  color: #93aabd;
}
.help-tabs {
  background: #070a12aa;
}
.help-tabs [aria-selected='true'] {
  color: #00f0ff;
  background: #00f0ff0e;
  border-color: #00f0ff3b;
}
.vehicle-card,
.fleet-card,
.achievement-card {
  background: linear-gradient(140deg, #00f0ff04, #2d1f3833), #111824ad;
  border-color: #8a95b02b;
}
.fleet-card:hover {
  border-color: #00f0ff40;
}
.vehicle-card canvas,
.fleet-card canvas {
  background: radial-gradient(ellipse at 50% 60%, #00f0ff0c, #2d1f3820 60%, #0a0d140d);
}
.fleet-card button {
  background: #00f0ff0b;
  border-color: #00f0ff42;
}
.fleet-card button:hover {
  background: #00f0ff20;
}
.fleet-title strong {
  color: #00f0ff;
}
.current-car {
  background: #080c16a8;
}
.current-car span,
.current-car small,
.card-heading small,
.car-stat {
  color: #7896ad;
}
.current-car b {
  color: #b9dce6;
}
.slot-card,
.empty-slot {
  border-color: #70778b46;
  color: #7f96a9;
}
.slot-card button {
  border-color: #ff007f63;
  background: #ff007f0a;
  color: #f2accf;
}
.reward-label {
  color: #edc26d;
}
.fleet-card:has(.reward-label) {
  border-color: #cfa64b70;
}
.achievement-card.unlocked {
  background: #00f0ff08;
  border-color: #00f0ff59;
}
.achievement-card small {
  color: #87b9c7;
}
.owner img {
  border-color: #00f0ff38;
  filter: saturate(0.8) contrast(1.08);
}
.owner span {
  color: #829ab0;
}
.paint-choice i {
  border-color: #a1dbff3d;
}
.shop-options small {
  color: #8aa9b9;
}
.live-note {
  color: #ff67b3 !important;
}
.city-map {
  border-color: #00f0ff38;
  background: #0a0d14;
}
.map-legend {
  color: #8097ae !important;
}
#shop-wallet {
  color: #b6e0e7 !important;
}
#shop-message {
  color: #ff78bd !important;
}
#map-toggle:hover {
  border-color: #00f0ff55;
  background: #00f0ff05;
}
@supports not (backdrop-filter: blur(1px)) {
  #modal-content {
    background: #101621fa;
  }
}
/* Filled SVGs inherit CSS color; negative spaces remain transparent. */
.game-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.15em;
}
#heat {
  display: flex;
  gap: 5px;
  align-items: center;
}
#heat .heat-icon {
  width: 18px;
  height: 18px;
  color: #71818e;
  opacity: 0.45;
}
#heat .heat-icon.active {
  color: #ff9270;
  opacity: 1;
}
#buzz {
  display: flex;
  align-items: center;
  gap: 7px;
}
#buzz .game-icon {
  width: 22px;
  height: 22px;
  color: #f5d6a4;
}

/* Delivery messages live in a compact molded pager with an inset LCD. */
.mission {
  width: 310px;
  max-width: calc(100% - 205px);
  padding: 16px 35px 18px 15px;
  border: 2px solid #0a0c10;
  border-top-color: #50545c;
  border-left-color: #373b43;
  border-radius: 22px 24px 26px 20px;
  background: linear-gradient(160deg, #393c43 0%, #24272e 30%, #17191f 100%);
  box-shadow:
    inset 0 2px 2px #ffffff1a,
    inset 0 -5px 0 #090b1066,
    0 6px 0 #080a0e,
    0 11px 20px #0007;
  text-shadow: none;
}
.mission::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 22px;
  width: 8px;
  height: 5px;
  border-radius: 3px;
  background: #8eac69;
  box-shadow:
    inset 0 1px 2px #e2f6b355,
    0 0 4px #a1bd4325;
}
.mission::after {
  content: '';
  position: absolute;
  right: 9px;
  bottom: 26px;
  width: 15px;
  height: 21px;
  border: 1px solid #090b0e;
  border-top-color: #5b5e65;
  border-radius: 5px;
  background: linear-gradient(#41444b, #262930);
  box-shadow:
    0 3px 0 #0c0e13,
    inset 0 1px 0 #ffffff0b;
}
.pager-screen {
  padding: 10px 12px 11px;
  border: 3px solid #0b100c;
  border-bottom-color: #555d4c;
  border-right-color: #46503e;
  border-radius: 7px;
  background:
    repeating-linear-gradient(0deg, #23382006 0 1px, transparent 1px 3px),
    linear-gradient(125deg, #b4c594, #98ac7d);
  box-shadow:
    inset 2px 3px 5px #263f3540,
    0 1px 0 #ffffff15;
  color: #253523;
  font-family: Genos, sans-serif;
  overflow-wrap: anywhere;
}
.mission .pager-screen > span {
  display: block;
  color: #35482d;
  font:
    600 13px/1.2 Genos,
    sans-serif;
  letter-spacing: 0.5px;
}
.mission .pager-screen strong {
  color: #24311e;
  font:
    700 22px/1.05 Genos,
    sans-serif;
  letter-spacing: 0.4px;
  margin: 7px 0;
  text-shadow: 1px 1px #25351a18;
}
.mission .pager-screen small {
  display: block;
  color: #35482d;
  font:
    600 14px/1.2 Genos,
    sans-serif;
  letter-spacing: 0.5px;
}
@media (max-width: 650px) {
  .mission {
    max-width: calc(100% - 155px);
    padding: 12px 28px 14px 10px;
    border-radius: 17px 19px 21px 16px;
  }
  .pager-screen {
    padding: 8px;
  }
  .mission .pager-screen > span {
    font-size: 12px;
  }
  .mission .pager-screen strong {
    font-size: 19px;
  }
  .mission .pager-screen small {
    font-size: 13px;
  }
  .mission::before {
    right: 9px;
    top: 17px;
    width: 6px;
  }
  .mission::after {
    right: 7px;
    width: 13px;
    height: 18px;
    bottom: 23px;
  }
}

/* Give the pager display a little more vertical breathing room. */
.mission .pager-screen {
  padding-top: 16px;
  padding-bottom: 17px;
}
@media (max-width: 650px) {
  .mission .pager-screen {
    padding-top: 13px;
    padding-bottom: 13px;
  }
}

/* Neon cash readout and five-step pursuit signals. */
.hud-left {
  width: 260px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-shadow: none;
  align-self: flex-start;
}
.cash-display {
  position: relative;
  min-height: 68px;
  padding: 6px 18px;
  background: linear-gradient(130deg, #06202bfa, #050e17fa);
  border: 2px solid #00dfee;
  border-radius: 12px;
  clip-path: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
  box-shadow: inset 0 0 14px #00eaff26;
}
.cash-display::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #00dfea55;
  border-radius: 6px;
  pointer-events: none;
}
.hud .cash-display strong {
  margin: 0;
  color: #a6ffff;
  text-align: center;
  font:
    800 46px/1.12 Genos,
    sans-serif;
  letter-spacing: 2px;
  text-shadow:
    0 0 5px #00efff99,
    0 0 16px #00eaff55;
  font-variant-numeric: tabular-nums;
}
#heat.signal-row,
#buzz.signal-row {
  --signal: #ff493d;
  position: static;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 0;
  padding: 4px 11px;
  border: 1px solid var(--signal);
  border-radius: 8px;
  background: linear-gradient(100deg, #1b0c12f5, #0b0c14f5);
  box-shadow:
    inset 0 0 9px #ff3e3012,
    0 0 5px #ff3e3020;
  font:
    700 14px/1 Genos,
    sans-serif;
  letter-spacing: 0.5px;
  color: #e9eef2;
}
#buzz.signal-row {
  --signal: #00dfee;
  background: linear-gradient(100deg, #071d28f5, #080e17f5);
  box-shadow:
    inset 0 0 9px #00dfee12,
    0 0 5px #00dfee20;
}
#heat.signal-row .game-icon,
#buzz.signal-row .game-icon {
  width: 23px;
  height: 23px;
  color: var(--signal);
  opacity: 1;
  filter: drop-shadow(0 0 3px var(--signal));
}
.signal-label {
  width: 35px;
  text-transform: uppercase;
}
#heat .signal-diamonds,
#buzz .signal-diamonds {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 10px;
  margin: 0;
  padding: 0 3px;
  color: var(--signal);
}
.signal-diamonds i {
  display: block;
  width: 12px;
  height: 12px;
  flex: none;
  transform: rotate(45deg);
  border: 1px solid var(--signal);
  box-shadow:
    0 0 3px var(--signal),
    inset 0 0 2px var(--signal);
  background: transparent;
}
.signal-diamonds i.active {
  background: var(--signal);
  box-shadow:
    0 0 6px var(--signal),
    inset 0 0 2px #fff9;
}
@media (max-width: 650px) {
  .hud-left {
    width: 195px;
    min-width: 0;
  }
  .cash-display {
    min-height: 56px;
    padding: 6px 12px;
  }
  .hud .cash-display strong {
    font-size: 35px;
    letter-spacing: 1px;
  }
  #heat.signal-row,
  #buzz.signal-row {
    padding: 4px 8px;
    gap: 6px;
    min-height: 30px;
    font-size: 12px;
  }
  #heat.signal-row .game-icon,
  #buzz.signal-row .game-icon {
    width: 19px;
    height: 19px;
  }
  .signal-label {
    width: 29px;
  }
  #heat .signal-diamonds,
  #buzz .signal-diamonds {
    gap: 7px;
  }
  .signal-diamonds i {
    width: 9px;
    height: 9px;
  }
}

#heat .signal-label,
#buzz .signal-label {
  flex: none;
  width: 38px;
  margin: 0;
  color: #e9eef2;
  font-size: 14px;
  letter-spacing: 0.5px;
}
@media (max-width: 650px) {
  #heat .signal-label,
  #buzz .signal-label {
    width: 30px;
    font-size: 12px;
  }
}

/* GPU world sits beneath the transparent Canvas HUD and input surface. */
.pixi-world {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
#game {
  position: relative;
}

/* Shared frosted dialog surfaces; interior cards use tint without nested blur. */
:root {
  --glass-bg: rgba(13, 25, 38, 0.74);
  --glass-border: rgba(190, 230, 255, 0.28);
  --neon-cyan: #42e8f5;
  --neon-pink: #ff42d0;
}
.glass,
#modal-content {
  isolation: isolate;
  background: linear-gradient(
    135deg,
    rgba(110, 180, 210, 0.18),
    rgba(13, 25, 38, 0.74) 45%,
    rgba(13, 25, 38, 0.86)
  );
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow:
    0 18px 48px #0006,
    0 0 24px #42e8f512,
    inset 0 1px 0 #ffffff40,
    inset 0 -1px 0 #ffffff0c;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.modal,
.modal:has(.shop-layout),
.modal:has(.fleet-grid) {
  background: rgba(4, 8, 16, 0.45);
  backdrop-filter: none;
}
.modal:has(.shop-layout) #modal-content {
  max-width: 1040px;
  padding: 30px;
  background:
    linear-gradient(125deg, #ff42d012, transparent 30%, #42e8f509),
    linear-gradient(135deg, rgba(110, 180, 210, 0.15), var(--glass-bg) 45%, rgba(13, 25, 38, 0.84));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.glass--cyan {
  border-color: #42e8f5a6;
  box-shadow:
    0 0 16px #42e8f529,
    inset 0 1px 0 #fff3;
}
.glass--pink {
  border-color: #ff42d0a6;
  box-shadow:
    0 0 18px #ff42d038,
    inset 0 1px 0 #fff3;
}
#modal-content .close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  right: 16px;
  top: 16px;
  border: 1px solid #a9efff80;
  border-radius: 12px;
  background: linear-gradient(135deg, #8ce8ff25, #18304388);
  box-shadow:
    inset 0 1px 0 #fff4,
    0 0 14px #42e8f518;
  color: #d4faff;
  line-height: 1;
}
#modal-content .close:hover {
  background-color: #42e8f529;
  border-color: #b3f6ff;
}
.shop-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.55fr);
  gap: 30px;
  align-items: stretch;
}
.shop-layout .owner {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ff70dfb3;
  border-radius: 18px;
  background: #101421;
  box-shadow:
    0 0 18px #ff42d038,
    inset 0 1px 0 #fff4;
}
.shop-layout .owner img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  max-height: 540px;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 17px;
  filter: saturate(1.08);
}
.shop-layout .owner span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 35px 18px 18px;
  background: linear-gradient(transparent, #070d19ed);
  color: #d9faff;
  font-size: 16px;
  letter-spacing: 1px;
  text-shadow: 0 1px 5px #000;
}
.shop-body {
  min-width: 0;
  padding-top: 8px;
}
.shop-body .eyebrow {
  display: block;
  padding-right: 35px;
  color: var(--neon-cyan);
}
#modal-content .shop-body h2 {
  font-size: 46px;
  margin: 10px 0 18px;
  letter-spacing: -0.7px;
}
#modal-content #shop-wallet {
  padding: 13px 16px;
  margin: 0 0 16px;
  border: 1px solid #a9e8ff40;
  border-left-color: #e7bc6280;
  border-radius: 13px;
  background: linear-gradient(100deg, #d5a74412, #a1ddff0a);
  box-shadow: inset 0 1px 0 #fff2;
  color: #daf6ff !important;
  font-size: 18px !important;
}
.shop-options {
  gap: 10px;
}
.glass-card,
.shop-options button,
.fleet-card,
.vehicle-card,
.achievement-card {
  background: linear-gradient(135deg, #b9e9ff16, #142b3d66 55%, #20394a70);
  border: 1px solid #b9e9ff40;
  border-radius: 15px;
  box-shadow:
    inset 0 1px 0 #ffffff26,
    0 4px 12px #0002;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}
.shop-options button {
  min-height: 106px;
  padding: 14px 12px;
  color: #eefaff;
  font-size: 17px;
}
.shop-options button:not(:disabled):hover,
.glass-card:hover {
  transform: translateY(-2px);
  border-color: #b4f0ff99;
  background-color: #42e8f512;
  box-shadow:
    0 8px 24px #0004,
    0 0 14px #42e8f52e;
}
.shop-options button:active,
.glass-card:active {
  transform: translateY(0);
}
.paint-choice i {
  height: 32px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ffffff70;
  background: linear-gradient(165deg, #ffffff3d, transparent 55%, #00000020), var(--paint);
  box-shadow:
    inset 0 2px 5px #ffffff30,
    0 0 10px color-mix(in srgb, var(--paint), transparent 75%);
}
.shop-options small {
  margin-top: 3px;
  color: var(--neon-cyan);
  font-size: 16px;
}
.glass--selected,
.shop-options .paint-choice[aria-pressed='true'] {
  border-color: var(--neon-cyan);
  background-color: #42e8f51a;
  box-shadow:
    0 0 12px #42e8f559,
    inset 0 0 16px #42e8f514,
    inset 0 1px 0 #fff5;
}
.shop-body .live-note {
  border-top: 1px solid #42e8f540;
  padding-top: 12px;
  margin: 16px 0 0;
  color: #9fd5d7 !important;
}
#modal-content #shop-message {
  min-height: 0;
  margin: 0;
}
#modal-content #shop-message:not(:empty) {
  margin-top: 13px;
  padding: 12px 16px;
  border: 1px solid #53eed899;
  border-radius: 13px;
  background: linear-gradient(120deg, #00d8b02b, #00bfa610);
  box-shadow:
    inset 0 1px 0 #ffffff30,
    0 0 14px #00d8b020;
  color: #8fffe6 !important;
  font-size: 18px;
}
#modal-content #shop-message[data-state='error'] {
  border-color: #ff8bae99;
  background: #ff427515;
  color: #ffc6d6 !important;
}
.help-tabs [aria-selected='true'] {
  border-color: #42e8f580;
  background: #42e8f515;
  box-shadow: inset 0 1px 0 #fff2;
}
@media (max-width: 650px) {
  .modal:has(.shop-layout) #modal-content {
    padding: 20px;
  }
  .shop-layout {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 15px;
  }
  .shop-layout .owner img {
    min-height: 180px;
    max-height: none;
    object-position: 50% 30%;
  }
  .shop-layout .owner span {
    font-size: 11px;
    padding: 25px 8px 12px;
    letter-spacing: 0;
  }
  #modal-content .shop-body h2 {
    font-size: 32px;
  }
  #modal-content #shop-wallet {
    font-size: 15px !important;
    padding: 10px;
  }
  .shop-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .shop-options button {
    min-height: 90px;
    padding: 10px 8px;
    font-size: 15px;
  }
  .paint-choice i {
    height: 25px;
  }
}
@media (max-width: 420px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-layout .owner {
    height: 125px;
  }
  .shop-layout .owner img {
    min-height: 0;
    height: 125px;
    object-position: 50% 28%;
  }
  .shop-layout .owner span {
    padding: 25px 12px 10px;
  }
  .shop-body {
    padding-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .glass-card,
  .shop-options button,
  .fleet-card,
  .vehicle-card,
  .achievement-card {
    transition: none;
  }
  .shop-options button:not(:disabled):hover,
  .glass-card:hover {
    transform: none;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  #modal-content,
  .modal:has(.shop-layout) #modal-content {
    background: #122332f5;
  }
}

/* The pager accepts offers; accepted deliveries remain a readout. */
.mission:has(#pager-accept:not([hidden])) {
  pointer-events: auto;
}
#pager-accept {
  display: block;
  margin-top: 10px;
  padding: 6px 12px;
  border: 1px solid #34492b;
  border-radius: 3px;
  background: #8c9e72;
  color: #20331b;
  font:
    700 14px/1 Genos,
    sans-serif;
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 #dce9be66;
  text-shadow: none;
}
#pager-accept:hover {
  background: #c3d6a2;
}
#pager-accept[hidden] {
  display: none;
}
.home-slots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.locked-slot {
  justify-content: center;
  gap: 16px;
}
.locked-slot > .game-icon {
  width: 38px;
  height: 38px;
  color: #93afbf;
}
.reward-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #030711b8;
  border-radius: inherit;
}
.reward-dialog {
  position: relative;
  width: min(380px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 25px;
}
.reward-dialog .fleet-card {
  margin-top: 15px;
}
.reward-dialog .close {
  z-index: 1;
}
.reward-dialog h2 {
  padding-right: 35px;
}
@media (max-width: 650px) {
  .home-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .home-slots .fleet-card {
    padding: 9px;
  }
  .home-slots .fleet-card button {
    padding: 8px 4px;
    font-size: 12px;
  }
  .home-slots .card-heading {
    display: block;
  }
  .home-slots .card-heading h3 {
    font-size: 14px !important;
  }
  .home-slots .empty-slot {
    font-size: 14px;
  }
  .home-slots .slot-card {
    font-size: 14px;
  }
  .home-slots .locked-slot > .game-icon {
    width: 26px;
    height: 26px;
  }
}
