:root {
  --bg: #060b12;
  --panel: rgba(10, 18, 30, 0.82);
  --panel-strong: rgba(8, 14, 23, 0.94);
  --line: rgba(152, 190, 255, 0.18);
  --text: #eff5ff;
  --muted: rgba(233, 242, 255, 0.66);
  --accent: #2fc7ff;
  --accent-2: #8ce7ff;
  --green: #58f2a0;
  --yellow: #ffd864;
  --red: #ff6c6c;
  --shadow: 0 34px 92px rgba(0, 0, 0, 0.45);
  --sidebar-width: minmax(300px, 420px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(38, 102, 171, 0.35), transparent 38%),
    radial-gradient(circle at bottom right, rgba(8, 18, 36, 0.9), transparent 42%),
    linear-gradient(180deg, #0a1322 0%, #05080e 100%);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
}

html.tg-miniapp,
html.tg-miniapp body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html.tg-miniapp body {
  background: #060b12;
}

html.tg-miniapp .preview-page {
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
}

html.tg-miniapp .device-wrap {
  width: 100%;
  height: 100%;
  place-items: stretch;
}

html.tg-miniapp .device {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

html.tg-miniapp .status-glow {
  box-shadow: none;
}

html.tg-miniapp .shared-topbar,
html.tg-miniapp .race-header {
  padding-top: calc(env(safe-area-inset-top, 0px) + 70px);
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
}

html.tg-miniapp .screen-scroll {
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

html.tg-miniapp .race-hud {
  padding-bottom: calc(176px + env(safe-area-inset-bottom, 0px));
}

html.tg-miniapp .race-stage {
  min-height: 220px;
}

html.tg-miniapp .gauge {
  min-height: 88px;
}

html.tg-miniapp .bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding-left: calc(8px + env(safe-area-inset-left, 0px));
  padding-right: calc(8px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

body:not(.app-ready) .device {
  opacity: 0;
}

body.app-ready .device {
  opacity: 1;
  transition: opacity 160ms ease;
}

button {
  font: inherit;
  color: inherit;
}

.preview-page {
  display: flex;
  justify-content: center;
  width: min(460px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 12px 0 24px;
}

.preview-copy {
  display: none;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11px;
  color: var(--accent-2);
}

.preview-copy h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lede {
  margin: 0;
  max-width: 38ch;
  line-height: 1.62;
  color: var(--muted);
}

.screen-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.switcher-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: 180ms ease;
}

.switcher-chip.is-active,
.switcher-chip:hover {
  border-color: rgba(94, 196, 255, 0.45);
  background: rgba(49, 142, 214, 0.24);
}

.copy-notes {
  display: grid;
  gap: 12px;
}

.note-card {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  background: rgba(10, 17, 30, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(18px);
}

.note-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: var(--accent-2);
}

.device-wrap {
  display: grid;
  place-items: center;
}

.device {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #060b12;
  box-shadow: var(--shadow);
}

.status-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 22px rgba(86, 170, 255, 0.05);
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.screen-bg,
.screen-overlay,
.screen-overlay-garage,
.race-overlay-top,
.race-overlay-bottom {
  position: absolute;
  inset: 0;
}

.screen-bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.screen-bg-home {
  background-image: url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/bg_home.png");
}

.screen-bg-garage {
  background-image: url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/bg_garage.png");
}

.screen-bg-race {
  background-image: url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/bg_race.png");
}

.screen-bg-shop {
  background-image: url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/bg_shop.png");
}

.screen-overlay {
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.18) 0%, rgba(6, 10, 18, 0.34) 35%, rgba(4, 7, 13, 0.84) 100%);
}

.screen-overlay-garage {
  background:
    linear-gradient(180deg, rgba(8, 13, 22, 0.16) 0%, rgba(10, 16, 27, 0.16) 48%, rgba(4, 7, 13, 0.9) 100%);
}

.race-overlay-top {
  background: linear-gradient(180deg, rgba(4, 7, 12, 0.82) 0%, rgba(4, 7, 12, 0.14) 34%, transparent 56%);
}

.race-overlay-bottom {
  background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 14, 0.2) 36%, rgba(5, 8, 14, 0.88) 100%);
}

.shared-topbar,
.screen-scroll,
.race-header,
.race-stage,
.race-hud,
.bottom-nav {
  position: relative;
  z-index: 1;
}

.shared-topbar,
.race-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.screen-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 52%;
  flex: 1 1 auto;
}

.screen-title {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.screen-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.level-badge {
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle at 30% 30%, rgba(120, 212, 255, 0.3), rgba(8, 17, 30, 0.8));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.level-number {
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

.level-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.hud-currency {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
  min-width: 0;
  max-width: 52%;
  flex: 0 1 auto;
}

.compact-currency .currency-pill {
  min-width: auto;
}

.currency-pill,
.shop-badge,
.race-banner,
.garage-chip {
  backdrop-filter: blur(18px);
}

.currency-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 108px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 23, 37, 0.92), rgba(9, 15, 26, 0.72));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.currency-pill-rp {
  min-width: 118px;
}

.currency-icon {
  display: block;
  width: 28px;
  height: 28px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  flex: 0 0 auto;
}

.coin-icon {
  background-image: url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/IconCoin.png");
}

.rp-icon {
  background-image: url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/IconRP.png");
}

.fuel-icon {
  font-size: 16px;
  text-align: center;
  line-height: 28px;
}

.currency-value {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currency-pill-fuel {
  min-width: 102px;
}

.currency-plus {
  margin-left: auto;
  color: var(--accent-2);
  font-weight: 700;
}

.screen-scroll {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: clip;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 16px 16px 104px;
}

.screen-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.home-utility-grid,
.stat-grid,
.hero-actions,
.workshop-grid,
.shop-card-list,
.race-controls {
  display: grid;
  gap: 12px;
}

.home-utility-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.utility-card,
.hero-card,
.garage-stage-card,
.shop-pack {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.62), rgba(8, 13, 22, 0.86));
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.28);
}

.utility-card {
  min-height: 146px;
}

.utility-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.utility-image-gift {
  background-image: url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/bg_mystery_gift.png");
}

.utility-image-tasks {
  background-image: url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/bg_daily_tasks_card.png");
}

.utility-copy,
.hero-copy,
.spotlight-copy {
  position: relative;
  z-index: 1;
}

.utility-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 24, 0.05), rgba(8, 15, 24, 0.22) 46%, rgba(8, 15, 24, 0.5) 100%);
}

.utility-copy {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.utility-kicker,
.mode-meta,
.race-label,
.shop-type,
.stat-name,
.gauge-label,
.gear-caption {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.utility-card strong,
.shop-pack strong,
.spotlight-copy strong,
.mode-label {
  font-size: 21px;
  line-height: 1.02;
}

.utility-subtitle,
.mode-meta,
.shop-meta {
  color: var(--muted);
  font-size: 12px;
}

.hero-card,
.garage-stage-card {
  padding: 18px 16px 18px;
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.64), rgba(8, 13, 22, 0.88)),
    url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/bg_general_carbon.png") center/cover;
}

.hero-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.garage-stage-card {
  background:
    linear-gradient(180deg, rgba(8, 13, 22, 0.26), rgba(8, 13, 22, 0.72)),
    radial-gradient(circle at 50% 42%, rgba(117, 196, 255, 0.16), transparent 56%),
    url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/bg_general_carbon.png") center/cover;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 188px;
  cursor: pointer;
}

.hero-copy {
  display: grid;
  gap: 3px;
  min-height: 46px;
  padding-right: 8px;
}

.hero-card .screen-title {
  font-size: 25px;
  line-height: 0.94;
}

.hero-card .screen-subtitle {
  line-height: 1.18;
}

.stat-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}

.stat-chip {
  display: grid;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-chip strong {
  font-size: 18px;
}

.hero-actions {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  margin-top: 10px;
}

.cta-button,
.shop-buy,
.pedal-btn,
.nitro-btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  cursor: pointer;
}

.cta-race,
.shop-buy {
  background:
    linear-gradient(180deg, rgba(116, 255, 198, 0.92), rgba(25, 176, 111, 0.92)),
    url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/btn-standart-green.png") center/cover;
  color: #07110b;
  box-shadow: 0 18px 28px rgba(15, 91, 54, 0.4);
}

.cta-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/button3.png") center/cover;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-list,
.workshop-grid {
  display: grid;
  gap: 12px;
}

.mode-frame,
.workshop-frame,
.spotlight-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(9, 14, 23, 0.74);
  padding: 0;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.mode-frame.is-selected,
.workshop-frame.is-selected,
.shop-buy.is-selected,
.cta-button.is-selected {
  box-shadow:
    0 0 0 1px rgba(110, 205, 255, 0.45),
    0 18px 32px rgba(0, 0, 0, 0.24);
}

.mode-frame img,
.workshop-frame img,
.spotlight-frame img {
  display: block;
  width: 100%;
}

.mode-frame::after,
.workshop-frame::after,
.spotlight-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.04), rgba(5, 8, 14, 0.2) 46%, rgba(5, 8, 14, 0.76) 100%);
}

.mode-label,
.workshop-frame .mode-label {
  position: absolute;
  left: 16px;
  bottom: 28px;
  z-index: 1;
}

.mode-frame .mode-meta,
.workshop-frame .mode-meta {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 1;
}

.garage-scroll {
  gap: 18px;
}

.garage-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 17, 28, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}

.car-shell {
  --rear-rim-x: 13.67%;
  --front-rim-x: 78.79%;
  --rim-top: 64.92%;
  --rim-size: 11.18%;
  --rim-scale: 1;
  --rim-top-adjust: 8%;
  --rim-x-adjust: 4.2%;
  --rim-x-px-adjust: 0px;
  --rim-y-px-adjust: 0px;
  position: relative;
  width: 100%;
  aspect-ratio: var(--car-aspect, 322 / 130);
  overflow: visible;
}

.car-bmw {
  --rear-rim-x: 13.67%;
  --front-rim-x: 78.79%;
  --rim-top: 64.92%;
  --rim-size: 11.18%;
}

.car-audi {
  --rear-rim-x: 6.83%;
  --front-rim-x: 68.94%;
  --rim-top: 63.38%;
  --rim-size: 11.18%;
}

.car-alfa {
  --rear-rim-x: 11.18%;
  --front-rim-x: 70.50%;
  --rim-top: 78.77%;
  --rim-size: 11.18%;
}

.car-aston {
  --rear-rim-x: 9.75%;
  --front-rim-x: 74.91%;
  --rim-top: 65.46%;
  --rim-size: 11.18%;
}

.car-blizzard {
  --rear-rim-x: 11.8%;
  --front-rim-x: 72.5%;
  --rim-top: 71%;
  --rim-size: 8.9%;
}

.car-generic {
  --rear-rim-x: 10%;
  --front-rim-x: 72%;
  --rim-top: 52%;
  --rim-size: 11%;
}

.home-car {
  width: min(100%, 320px);
  justify-self: center;
  margin-top: 6px;
}

.garage-car {
  --rim-scale: 1;
  --rim-top-adjust: 8%;
  --rim-x-adjust: 4.2%;
  --rim-x-px-adjust: 0px;
  --rim-y-px-adjust: 0px;
  width: min(100%, 330px);
  justify-self: center;
  margin-top: 0;
}

.race-car {
  position: absolute;
  --rim-top-adjust: 8%;
  --rim-x-adjust: 4.2%;
  --rim-x-px-adjust: 0px;
  --rim-y-px-adjust: 0px;
  width: 54%;
  max-width: 234px;
  transition: transform 80ms linear;
  will-change: transform;
}

.race-car.player {
  left: 9%;
  bottom: 106px;
}

.race-car.opponent {
  left: 12%;
  bottom: 220px;
  width: 50%;
}

.car-shadow {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 82%;
  height: 20px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.54), transparent 72%);
  filter: blur(8px);
  z-index: 0;
}

.car-body,
.car-body-tint,
.car-detail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}

.car-body {
  z-index: 2;
  transition:
    opacity 120ms ease,
    filter 120ms ease;
}

.car-body-tint {
  z-index: 2;
  opacity: 0;
  background: var(--body-paint, transparent);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.car-detail {
  z-index: 4;
  pointer-events: none;
  transition:
    opacity 120ms ease,
    filter 120ms ease;
}

.car-wheel {
  position: absolute;
  top: calc(var(--rim-top) + var(--rim-top-adjust) + var(--rim-y-px-adjust));
  width: var(--rim-size);
  aspect-ratio: 1;
  transform: translate(calc((1 - var(--rim-scale)) * 50%), calc((1 - var(--rim-scale)) * 50%)) scale(var(--rim-scale));
  transform-origin: top left;
  z-index: 1;
}

.car-wheel::before,
.car-wheel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.car-wheel::before {
  inset: 24%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 204, 210, 0.16) 0%, rgba(96, 102, 110, 0.14) 45%, rgba(12, 15, 19, 0.2) 76%, transparent 77%),
    radial-gradient(circle at 50% 50%, var(--brake-paint, rgba(255, 90, 90, 0.88)) 0%, color-mix(in srgb, var(--brake-paint, rgba(255, 90, 90, 0.88)) 66%, #10141a) 68%, transparent 72%);
  opacity: var(--brake-opacity, 0);
  z-index: 0;
}

.car-wheel::after {
  left: 11%;
  top: 11%;
  width: 78%;
  height: 78%;
  background: var(--rim-paint, transparent);
  -webkit-mask-image: var(--rim-mask);
  mask-image: var(--rim-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: var(--rim-tint-opacity, 0);
  z-index: 1;
  mix-blend-mode: normal;
}

.rear-wheel {
  left: calc(var(--rear-rim-x) + var(--rim-x-adjust) + var(--rim-x-px-adjust));
}

.front-wheel {
  left: calc(var(--front-rim-x) + var(--rim-x-adjust) + var(--rim-x-px-adjust));
}

.wheel-tire {
  position: absolute;
  inset: -13%;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 35%, rgba(74, 79, 88, 0.98) 0%, rgba(26, 31, 39, 0.99) 46%, rgba(5, 7, 10, 1) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 14px rgba(0, 0, 0, 0.34),
    0 4px 9px rgba(0, 0, 0, 0.34);
}

.wheel-rim {
  position: absolute;
  left: 11%;
  top: 11%;
  width: 78%;
  height: 78%;
  object-fit: contain;
  transform-origin: 50% 50%;
  image-rendering: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.34));
  z-index: 1;
}

.car-shell.is-rims-hidden .car-wheel {
  display: none;
}

@keyframes wheelIdle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.shop-badge {
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 24, 0.7);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
}

.shop-scroll {
  gap: 16px;
}

.spotlight-frame {
  min-height: 190px;
}

.spotlight-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  z-index: 1;
}

.shop-card-list {
  align-content: start;
}

.shop-pack {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.shop-pack-art {
  display: block;
  width: 88px;
  border-radius: 18px;
}

.shop-pack-copy {
  display: grid;
  gap: 6px;
}

.shop-buy {
  padding-inline: 14px;
}

.shop-donate-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(8, 13, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-donate-head {
  display: grid;
  gap: 6px;
}

.shop-donate-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

#donateAmountInput {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 8, 14, 0.85);
  color: var(--text);
  min-height: 46px;
  padding: 0 12px;
}

.shop-donate-note {
  color: var(--muted);
  font-size: 12px;
  min-height: 18px;
}

.shop-donate-note.is-error {
  color: #ff8d8d;
}

.shop-donate-note.is-success {
  color: #a8d8ff;
}

.hud-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  min-width: 240px;
  max-width: min(92vw, 420px);
  padding: 14px 18px;
  border-radius: 16px;
  transform: translateX(-50%) translateY(24px);
  background: rgba(8, 14, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.24);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.hud-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.overlay-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.overlay-shell.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.7);
  backdrop-filter: blur(10px);
}

.overlay-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(84vh, 880px);
  overflow: hidden auto;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(10, 17, 28, 0.96), rgba(6, 12, 21, 0.98)),
    radial-gradient(circle at top left, rgba(49, 126, 209, 0.18), transparent 32%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
}

.overlay-close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 12px 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 14px;
  cursor: pointer;
  z-index: 2;
}

.overlay-content {
  padding: 14px 18px 20px;
}

.overlay-block {
  display: grid;
  gap: 14px;
}

.overlay-title {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.overlay-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.overlay-grid {
  display: grid;
  gap: 12px;
}

.overlay-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.overlay-card-title {
  font-size: 20px;
  font-weight: 800;
}

.overlay-card-meta {
  color: var(--muted);
  font-size: 13px;
}

.overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overlay-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.overlay-btn[disabled] {
  opacity: 0.56;
  cursor: default;
}

.overlay-btn-primary {
  background:
    linear-gradient(180deg, rgba(116, 255, 198, 0.92), rgba(25, 176, 111, 0.92)),
    url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/btn-standart-green.png") center/cover;
  color: #07110b;
}

.overlay-btn-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/button3.png") center/cover;
}

.overlay-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overlay-stat {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overlay-stat strong {
  display: block;
  font-size: 20px;
}

.overlay-mini {
  color: var(--muted);
  font-size: 12px;
}

.range-grid {
  display: grid;
  gap: 12px;
}

.range-row {
  display: grid;
  gap: 8px;
}

.range-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.range-row input[type="range"] {
  width: 100%;
}

.range-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.choice-filter {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 9px 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  cursor: pointer;
}

.choice-filter.is-selected {
  border-color: rgba(90, 205, 255, 0.45);
  background: rgba(49, 142, 214, 0.24);
  box-shadow: 0 0 0 1px rgba(90, 205, 255, 0.18);
}

.choice-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.choice-card.is-selected {
  border-color: rgba(90, 205, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(90, 205, 255, 0.18);
}

.choice-card-car {
  align-content: start;
  min-height: 290px;
}

.choice-card img {
  width: 100%;
  display: block;
}

.choice-card > img {
  width: min(100%, 108px);
  justify-self: center;
  padding: 10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.28), rgba(6, 12, 21, 0.88));
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.choice-car-art {
  --rim-scale: 0.98;
  --rim-top-adjust: 0%;
  --rim-x-adjust: 0%;
  --rim-x-px-adjust: 0px;
  --rim-y-px-adjust: 0px;
  width: min(100%, 220px);
  justify-self: center;
  margin-bottom: 4px;
}

.choice-card .choice-car-art,
.overlay-card .choice-car-art {
  margin-inline: auto;
}

.choice-card-car .choice-car-art {
  width: min(100%, 232px);
  margin-bottom: 8px;
}

.paintshop-preview .car-shell {
  --rim-scale: 1;
  --rim-top-adjust: 8%;
  --rim-x-adjust: 4.2%;
  --rim-x-px-adjust: 0px;
  --rim-y-px-adjust: 0px;
}

.race-car {
  --rim-scale: 0.9;
  --rim-top-adjust: 8%;
  --rim-x-adjust: 4.2%;
  --rim-x-px-adjust: 0px;
  --rim-y-px-adjust: 0px;
}

.workshop-car-art {
  --rim-scale: 1;
  --rim-top-adjust: 8%;
  --rim-x-adjust: 4.2%;
  --rim-x-px-adjust: 0px;
  --rim-y-px-adjust: 0px;
  width: min(100%, 292px);
  justify-self: center;
}

.rim-choice-art {
  --rim-scale: 1;
  --rim-top-adjust: 8%;
  --rim-x-adjust: 4.2%;
  --rim-x-px-adjust: 0px;
  --rim-y-px-adjust: 0px;
  width: min(100%, 228px);
  justify-self: center;
}

.workshop-car-preview {
  padding: 14px 16px 10px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.workshop-car-preview .car-body,
.workshop-car-preview .car-body-tint,
.workshop-car-preview .car-detail {
  transform: translateY(var(--preview-body-drop, 0px));
}

.workshop-car-preview .car-wheel {
  top: calc(var(--rim-top) + var(--rim-top-adjust) + var(--rim-y-px-adjust) + var(--preview-body-drop, 0px));
}

.workshop-car-preview .rear-wheel {
  transform: translate(calc((1 - var(--rim-scale)) * 50%), calc((1 - var(--rim-scale)) * 50%)) scale(var(--rim-scale)) rotate(calc(var(--preview-wheel-camber, 0deg) * -1));
}

.workshop-car-preview .front-wheel {
  transform: translate(calc((1 - var(--rim-scale)) * 50%), calc((1 - var(--rim-scale)) * 50%)) scale(var(--rim-scale)) rotate(var(--preview-wheel-camber, 0deg));
}

.choice-card .car-shadow,
.overlay-card .car-shadow {
  bottom: 4px;
  height: 16px;
  opacity: 0.72;
}

.paintshop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: 14px;
  align-items: start;
}

.paintshop-preview,
.paintshop-sidebar {
  display: grid;
  gap: 12px;
}

.paintshop-preview {
  padding: 12px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 224px;
  align-content: center;
}

.paintshop-preview-frame {
  display: grid;
  min-height: 188px;
  align-items: center;
}

.paint-part-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.paint-part-tab {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
}

.paint-part-tab span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.52);
}

.paint-part-tab strong {
  font-size: 14px;
}

.paint-part-tab.is-selected {
  border-color: rgba(90, 205, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(90, 205, 255, 0.18);
  background: linear-gradient(180deg, rgba(44, 113, 184, 0.22), rgba(12, 26, 44, 0.52));
}

.paint-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.paint-meta-line strong {
  display: block;
  font-size: 22px;
}

.paint-meta-value {
  min-width: 92px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.paint-spectrum-board {
  position: relative;
  min-height: 164px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  cursor: crosshair;
}

.paint-spectrum-cursor,
.paint-hue-cursor {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(4, 8, 14, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.paint-hue-strip {
  position: relative;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, #ff2f2f 0%, #ffe053 16%, #57ff72 33%, #3ff0ff 49%, #537dff 66%, #c14dff 82%, #ff2f85 100%);
  cursor: ew-resize;
}

.paint-hue-cursor {
  top: 50%;
}

.paint-mini-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.paint-mini-row > div {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.paint-mini-row span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.15;
  min-height: 22px;
  display: grid;
  align-items: end;
  text-transform: uppercase;
}

.paint-mini-row strong {
  font-size: 18px;
}

.upgrade-grid {
  gap: 14px;
}

.overlay-card-upgrade {
  gap: 12px;
}

.upgrade-head {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.upgrade-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.upgrade-icon img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.upgrade-dots {
  display: flex;
  gap: 7px;
}

.upgrade-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.upgrade-dot.is-on {
  background: linear-gradient(180deg, rgba(116, 255, 198, 0.96), rgba(29, 182, 115, 0.96));
  box-shadow: 0 0 10px rgba(64, 223, 154, 0.42);
}

.screen-race {
  grid-template-rows: auto auto 1fr auto auto;
}

.race-header {
  align-items: start;
}

.screen-race .race-stage {
  min-height: 220px;
}

.race-header-group {
  display: grid;
  gap: 4px;
}

.race-header-group strong {
  font-size: 18px;
  line-height: 1.05;
}

.race-header-right {
  justify-items: end;
  text-align: right;
}

.race-banner {
  justify-self: center;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 16, 27, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}

.race-toolbar {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.distance-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.distance-chip {
  min-width: 62px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 27, 0.64);
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  cursor: pointer;
}

.distance-chip.is-selected {
  color: #08130c;
  background: linear-gradient(180deg, rgba(116, 255, 198, 0.94), rgba(27, 177, 110, 0.94));
  border-color: rgba(116, 255, 198, 0.48);
}

.race-progress-strip {
  position: relative;
  height: 28px;
  border-radius: 999px;
  background: rgba(7, 13, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.race-progress-line {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(94, 204, 255, 0.32));
}

.race-progress-car {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 16px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.race-progress-car.player {
  left: 14px;
}

.race-progress-car.opponent {
  left: 14px;
  opacity: 0.76;
}

.race-stage {
  min-height: 398px;
  overflow: hidden;
}

.track-layers {
  position: absolute;
  inset: 0;
}

.track-strip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 124%;
  background-position: 0 50%;
  background-repeat: repeat-x;
  background-size: auto 100%;
}

.track-strip-back {
  bottom: 148px;
  height: 154px;
  background-image: url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/night_road_start.png");
  filter: brightness(0.78);
}

.track-strip-front {
  bottom: 44px;
  height: 172px;
  background-image: url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/road_start_1.png");
  filter: brightness(0.88) saturate(0.9);
}

.track-line {
  position: absolute;
  left: 10%;
  width: 80%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 214, 85, 0.85) 0 18px, transparent 18px 34px);
}

.track-line-top {
  bottom: 256px;
}

.track-line-mid {
  bottom: 168px;
}

.traffic-lights {
  position: absolute;
  left: 50%;
  top: 10px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5, 9, 16, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.light {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  opacity: 0.2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.light.is-on {
  opacity: 1;
}

.light-red {
  background: var(--red);
}

.light-yellow {
  background: var(--yellow);
}

.light-green {
  background: var(--green);
}

.light-red.is-on {
  box-shadow:
    0 0 16px rgba(255, 100, 89, 0.82),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.light-yellow.is-on {
  box-shadow:
    0 0 16px rgba(255, 214, 94, 0.78),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.light-green.is-on {
  box-shadow:
    0 0 16px rgba(88, 239, 154, 0.78),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.race-result {
  position: absolute;
  inset: 50% 18px auto;
  transform: translateY(-50%) scale(0.96);
  display: grid;
  gap: 10px;
  padding: 20px 18px;
  border-radius: 22px;
  background: rgba(6, 12, 21, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 4;
}

.race-result.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.race-result strong {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.race-result span {
  color: var(--muted);
}

.race-restart {
  width: 100%;
}

.race-hud {
  display: grid;
  gap: 8px;
  padding: 0 10px 136px;
}

.gauge-shift-arc {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent var(--shift-arc-start, 126deg),
      rgba(255, 219, 84, 0.96) var(--shift-arc-start, 126deg) var(--shift-yellow-end, 292deg),
      rgba(96, 239, 112, 0.92) var(--shift-yellow-end, 292deg) var(--shift-green-end, 302deg),
      rgba(255, 90, 96, 0.98) var(--shift-green-end, 302deg) var(--shift-arc-end, 344deg),
      transparent var(--shift-arc-end, 344deg) 360deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 12px) 99%, transparent 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 12px) 99%, transparent 100%);
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
}

.gauge-cluster {
  display: grid;
  grid-template-columns: 1fr 0.82fr 1fr;
  align-items: end;
  gap: 8px;
  padding: 8px 8px 4px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(9, 15, 24, 0.72), rgba(8, 13, 22, 0.9)),
    url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/panel.png") center/cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gauge {
  position: relative;
  aspect-ratio: 1;
  min-height: 112px;
}

.gauge-speed {
  order: 1;
}

.gauge-center {
  order: 2;
}

.gauge-rpm {
  order: 3;
}

.gauge-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
  opacity: 0.96;
  filter: drop-shadow(0 0 12px rgba(82, 194, 255, 0.16));
  z-index: 1;
}

.gauge-needle-wrap {
  position: absolute;
  inset: 10%;
  transform: rotate(-108deg);
  transition: transform 90ms linear;
  z-index: 3;
}

.gauge-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 45%;
  transform: translate(-86%, -50%);
  transform-origin: 86% 50%;
  filter: drop-shadow(0 0 4px rgba(255, 108, 86, 0.42));
}

.gauge-readout {
  position: absolute;
  inset: auto 0 6px;
  display: grid;
  justify-items: center;
  gap: 2px;
  z-index: 4;
}

.gauge-readout strong {
  font-size: 26px;
  line-height: 1;
}

.gauge-center {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-self: stretch;
  padding-bottom: 8px;
}

.shift-lights {
  display: flex;
  gap: 6px;
}

.shift-lights span {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.shift-lights span.is-on {
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 216, 100, 0.62);
}

.shift-lights span.is-danger {
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 108, 108, 0.62);
}

.gear-readout-large,
.race-timer {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.gear-readout-large strong,
.race-timer strong {
  font-size: 34px;
  line-height: 1;
}

.race-controls {
  grid-template-columns: 0.95fr 1.15fr 0.95fr;
  align-items: stretch;
  gap: 8px;
  position: relative;
  z-index: 3;
  margin-top: 4px;
  margin-bottom: 26px;
}

#opponentCarRace.is-hidden,
#opponentProgressCar.is-hidden {
  display: none !important;
}

#shiftDownBtn {
  display: none;
}

.pedal-btn,
.nitro-btn {
  position: relative;
  overflow: hidden;
  min-height: 74px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.78), rgba(8, 13, 22, 0.9)),
    url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/button3.png") center/cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.22);
  border-radius: 18px;
  padding: 8px 10px;
}

.pedal-btn span,
.nitro-btn span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.pedal-btn img,
.nitro-btn img {
  display: block;
  max-width: none;
  height: auto;
  transition:
    transform 120ms ease,
    filter 120ms ease;
}

#shiftDownBtn img {
  width: 220%;
  transform: translateX(-29%);
}

#shiftUpBtn img {
  width: 210%;
  transform: translateX(2%);
}

#gasBtn {
  background:
    linear-gradient(180deg, rgba(116, 255, 198, 0.88), rgba(27, 177, 110, 0.92)),
    url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/btn-standart-green.png") center/cover;
  color: #08130c;
  min-height: 78px;
}

#gasBtn img {
  width: 180%;
  transform: translateX(0) translateY(-1px);
}

#nitroBtn img {
  width: 126%;
  transform: translateX(0);
}

#nitroBtn {
  background:
    linear-gradient(180deg, rgba(95, 193, 255, 0.32), rgba(20, 80, 140, 0.42)),
    url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/button3.png") center/cover;
  min-height: 74px;
  border-radius: 18px;
}

#shiftUpBtn {
  min-height: 76px;
}

#nitroBtn.is-disabled {
  opacity: 0.5;
  filter: grayscale(0.55);
}

#shiftUpBtn.is-active img,
#shiftUpBtn.is-fired img {
  transform: translateX(-66.666%);
}

#gasBtn.is-active img {
  transform: translateX(-66.666%) translateY(-2px);
}

#nitroBtn.is-active img {
  transform: translateX(-50%);
}

.pedal-btn.is-active,
.nitro-btn.is-active {
  transform: translateY(2px) scale(0.99);
  filter: brightness(1.12);
  box-shadow: inset 0 10px 18px rgba(255, 255, 255, 0.08);
}

.pedal-btn.is-fired,
.nitro-btn.is-fired {
  animation: pedalFlash 180ms ease;
}

.pedal-btn.is-ready,
.nitro-btn.is-ready {
  box-shadow:
    0 0 0 1px rgba(104, 206, 255, 0.22),
    0 0 18px rgba(60, 178, 255, 0.18),
    0 16px 24px rgba(0, 0, 0, 0.22);
}

@keyframes pedalFlash {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(0.98);
    filter: brightness(1.18);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 9, 16, 0.78) 42%, rgba(5, 9, 16, 0.96) 100%);
}

.nav-btn {
  display: grid;
  place-items: center;
  min-height: 56px;
  border: 0;
  background:
    url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/bottom_menu_btn.png") center/100% 100% no-repeat;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.nav-btn.is-active {
  background-image: url("/analysis/assetripper_export/ExportedProject/Assets/Texture2D/bottom_menu_btn_act.png");
  color: #ffffff;
}

.nav-label {
  transform: translateY(2px);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .preview-page {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 8px;
  }

  .preview-copy {
    width: min(100%, 520px);
  }

  .device-wrap {
    order: -1;
    width: min(100%, 430px);
  }

  .device {
    width: min(100%, 430px);
  }
}

@media (max-width: 520px) {
  .paintshop-layout {
    grid-template-columns: 1fr;
  }

  .preview-page {
    width: calc(100vw - 12px);
    gap: 18px;
    padding-top: 12px;
    padding-bottom: 20px;
  }

  .preview-copy {
    gap: 14px;
  }

  .preview-copy h1 {
    font-size: 34px;
  }

  .lede {
    font-size: 14px;
  }

  .device {
    border-radius: 28px;
  }

  .screen-title {
    font-size: 24px;
  }

  .currency-pill {
    min-width: auto;
    padding: 9px 10px;
  }

  .screen-heading {
    max-width: 58%;
  }

  .hud-currency {
    max-width: 42%;
    gap: 6px;
  }

  .currency-value {
    font-size: 12px;
  }

  .home-utility-grid,
  .stat-grid,
  .hero-actions,
  .workshop-grid,
  .shop-card-list,
  .race-controls {
    gap: 8px;
  }

  .shop-pack {
    grid-template-columns: 74px 1fr;
    align-items: start;
  }

  .shop-buy {
    grid-column: span 2;
    width: 100%;
  }

  .shop-pack-art {
    width: 74px;
  }

  .gauge-cluster {
    gap: 6px;
    padding-inline: 6px;
  }

  .gauge-readout strong,
  .gear-readout-large strong,
  .race-timer strong {
    font-size: 26px;
  }

  .pedal-btn,
  .nitro-btn {
    min-height: 82px;
  }

  .race-car.player {
    left: 8%;
    width: 62%;
  }

  .race-car.opponent {
    left: 10%;
    width: 56%;
  }
}
