/* ZIVO garage ("game mode"): the signed-in customer area.
   No sidebar and no header. A floating back button, a bar that slides down when the pointer touches the top edge,
   and a dock on phones. Same tokens as the site, re-mapped to a dark scheme so every page inside (garage, booking,
   car, checkout) restyles itself without extra markup. Saturation stays low; gold is the only action colour. */

body.game-mode {
  --card: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --text: #EAF0F6;
  --muted: #A5B4C4;
  --muted-2: #7D8EA1;
  --paper-2: rgba(255, 255, 255, .08);
  --brand-50: rgba(214, 165, 72, .12);
  --brand-600: #D6A548;
  --ok-50: rgba(30, 142, 78, .18);
  --warn-50: rgba(214, 165, 72, .16);
  --bad-50: rgba(194, 54, 46, .2);
  --accent-50: rgba(214, 165, 72, .14);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .04) inset;
  --shadow-2: 0 14px 34px -12px rgba(0, 0, 0, .6);
  --shadow-3: 0 30px 70px -24px rgba(0, 0, 0, .7);
  --header-h: 64px;
  background: #0A1118;
  color: var(--text);
  color-scheme: dark;
}
body.game-mode #site-header, body.game-mode #site-footer, body.game-mode #bottom-nav { display: none !important; }
body.game-mode #view { position: relative; z-index: 1; min-height: 100vh; }
body.game-mode h1, body.game-mode h2, body.game-mode h3 { color: #fff; }
body.game-mode .card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.game-mode .muted, body.game-mode .small.muted, body.game-mode .xs.muted { color: var(--muted); }
body.game-mode .input, body.game-mode .select, body.game-mode .textarea { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--line-2); }
body.game-mode .input:focus, body.game-mode .select:focus, body.game-mode .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(214, 165, 72, .18); }
body.game-mode .select option { background: #111E29; color: #fff; }
body.game-mode .chip { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--line-2); }
body.game-mode .chip:hover { border-color: var(--accent); }
body.game-mode .chip[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
body.game-mode .btn-brand { --fill: var(--accent); --fill-fg: var(--on-accent); background: #2A4A5F; color: #fff; border-color: #2A4A5F; }
body.game-mode .btn-ghost { color: #fff; border-color: var(--line-2); background: transparent; }
body.game-mode .link-btn, body.game-mode a.small { color: var(--accent); }
body.game-mode .back-link { color: var(--muted); }
/* white "paper" islands keep their own light tokens so printed-style parts stay legible */
body.game-mode .pass, body.game-mode .pass-bottom { --text: #14232F; --muted: #5A6470; --line: #DDD7CA; --card: #fff; color: #14232F; }
body.game-mode .pass h1, body.game-mode .pass h2, body.game-mode .pass h3, body.game-mode .pass strong { color: inherit; }
body.game-mode .pass-top, body.game-mode .pass-top strong { color: #fff; }
body.game-mode .plan, body.game-mode .addon { background: rgba(255, 255, 255, .04); border-color: var(--line); }
body.game-mode .notice.info { background: rgba(94, 160, 224, .14); color: #cfe3f6; }
body.game-mode .success-badge { background: var(--ok-50); }
body.game-mode .price-total strong { color: #fff; }
body.game-mode .progress-steps .stepper-label { color: var(--muted); }
body.game-mode .skeleton { background: rgba(255, 255, 255, .07); }
body.game-mode .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent); }

/* ---- Animated backdrop: a road grid rolling toward the viewer, a slow glow and drifting speed streaks ---- */
body.game-mode::before {
  content: ''; position: fixed; z-index: 0; left: -40%; right: -40%; bottom: 0; height: 62vh; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(214, 165, 72, .22) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(120, 170, 220, .2) 0 1px, transparent 1px 70px);
  transform-origin: 50% 100%; transform: perspective(520px) rotateX(64deg);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 92%); mask-image: linear-gradient(to top, #000 10%, transparent 92%);
  animation: g-road 2.6s linear infinite;
}
body.game-mode::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 12%, rgba(27, 76, 122, .55), transparent 70%),
    radial-gradient(45% 40% at 8% 90%, rgba(214, 165, 72, .09), transparent 70%),
    repeating-linear-gradient(100deg, transparent 0 140px, rgba(255, 255, 255, .035) 140px 142px, transparent 142px 300px);
  background-size: auto, auto, 600px 100%;
  animation: g-streak 7s linear infinite;
}
@keyframes g-road { to { background-position: 0 70px, 0 70px; } }
@keyframes g-streak { to { background-position: 0 0, 0 0, -600px 0; } }

/* ---- HUD: floating back button, hover-down bar, phone dock ---- */
#game-hud { position: relative; z-index: 90; }
#game-hud[hidden] { display: none; }
.g-backwrap { position: fixed; left: clamp(12px, 2vw, 24px); top: clamp(12px, 2vw, 22px); z-index: 95; }
.g-back { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: rgba(8, 20, 34, .72); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .7); transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s; position: relative; overflow: hidden; }
.g-back::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateX(-102%); transition: transform .4s var(--ease); z-index: 0; }
.g-back svg { width: 22px; height: 22px; position: relative; z-index: 1; transition: transform .3s var(--ease); }
.g-back:hover, .g-back:focus-visible { color: var(--on-accent); border-color: var(--accent); transform: translateX(-2px); }
.g-back:hover::before, .g-back:focus-visible::before { transform: translateX(0); }
.g-back:hover svg { transform: translateX(-3px); }
.g-back:active { transform: scale(.94); }
.g-zone { position: fixed; top: 0; left: 0; right: 0; height: 18px; z-index: 92; display: grid; place-items: start center; }
.g-zone i { width: 72px; height: 4px; border-radius: 0 0 6px 6px; background: rgba(214, 165, 72, .55); animation: g-pulse 2.4s ease-in-out infinite; }
@keyframes g-pulse { 50% { opacity: .35; transform: scaleX(.7); } }
.g-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 94; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(72px, 8vw, 96px) 12px clamp(72px, 8vw, 96px); background: rgba(10, 17, 24, .88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transform: translateY(-110%); transition: transform .45s var(--ease); }
.g-zone:hover + .g-bar, .g-bar:hover, .g-bar:focus-within { transform: translateY(0); }
.g-bar nav { display: flex; gap: 6px; }
.g-bar nav a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; color: #C6D3E0; font-weight: 600; font-size: .92rem; transition: background .25s, color .25s, transform .25s var(--ease); }
.g-bar nav a svg { width: 18px; height: 18px; }
.g-bar nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateY(-1px); }
.g-bar nav a[aria-current='page'] { background: var(--accent); color: var(--on-accent); }
.g-user { display: flex; align-items: center; gap: 10px; }
.g-user .avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #2A4A5F; color: #fff; font-weight: 800; font-size: .85rem; }
.g-out { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #C6D3E0; border: 1px solid var(--line-2); transition: .25s; }
.g-out:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.g-out svg { width: 18px; height: 18px; }
.g-dock { display: none; }
@media (max-width: 899px) {
  .g-zone, .g-bar { display: none; }
  .g-dock { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 94; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 6px; border-radius: 22px; background: rgba(10, 17, 24, .9); backdrop-filter: blur(18px); border: 1px solid var(--line); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8); }
  .g-dock a, .g-dock button { display: grid; justify-items: center; gap: 3px; padding: 9px 2px; border-radius: 16px; color: #A5B4C4; font-size: .66rem; font-weight: 700; transition: .25s; }
  .g-dock svg { width: 20px; height: 20px; }
  .g-dock a[aria-current='page'] { background: var(--accent); color: var(--on-accent); }
  body.game-mode #view { padding-bottom: 96px; }
}

/* ---- Shared game UI ---- */
.g-page { width: min(1180px, 100%); margin: 0 auto; padding: calc(var(--header-h) + 18px) clamp(20px, 5vw, 48px) 64px; display: grid; gap: clamp(20px, 3vw, 32px); }
.g-kicker { display: inline-flex; align-items: center; gap: 8px; font: 800 .72rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.g-kicker::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.g-title { display: grid; gap: 10px; }
.g-title h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.04em; }
.g-title p { color: var(--muted); max-width: 56ch; font-size: 1.05rem; }
.g-meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; position: relative; }
.g-meter > i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #B98A32, #D6A548); position: relative; }
.g-meter > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: g-sheen 2.8s ease-in-out infinite; }
.g-meter.is-ok > i { background: linear-gradient(90deg, #1E8E4E, #3BAA6B); }
.g-meter.is-bad > i { background: var(--bad); }
@keyframes g-sheen { 55%, 100% { transform: translateX(100%); } }
.g-skel { border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.g-skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); animation: shimmer 1.3s infinite; }

/* Hub */
.g-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: linear-gradient(135deg, rgba(27, 76, 122, .5), rgba(8, 24, 42, .6)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.g-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(214, 165, 72, .25); box-shadow: 0 0 0 36px rgba(214, 165, 72, .04), 0 0 0 78px rgba(214, 165, 72, .025); animation: g-ring 9s ease-in-out infinite; }
@keyframes g-ring { 50% { transform: scale(1.12); } }
.g-player { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; }
.g-avatar { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font: 800 2rem var(--font-display); color: var(--on-accent); background: linear-gradient(135deg, #D6A548, #B98A32); box-shadow: 0 14px 30px -10px rgba(214, 165, 72, .5); animation: g-float 4.5s ease-in-out infinite; }
@keyframes g-float { 50% { transform: translateY(-5px) rotate(-2deg); } }
.g-player h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -.03em; margin: 8px 0 6px; }
.g-rank { color: var(--muted); font-size: .95rem; }
.g-rank b { color: #fff; }
.g-xp { min-width: min(100%, 280px); display: grid; gap: 8px; position: relative; z-index: 1; }
.g-xp span { font-size: .82rem; color: var(--muted); text-align: right; }
.g-xp b { color: var(--accent); font: 800 1.15rem var(--font-display); }
.g-mission-card { border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid rgba(214, 165, 72, .4); box-shadow: 0 0 0 1px rgba(214, 165, 72, .08), 0 24px 60px -30px rgba(214, 165, 72, .35); display: grid; gap: 18px; }
.g-mission-card.is-idle, .g-mission-card.is-draft { border-color: var(--line); box-shadow: none; }
.g-mc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.g-mc-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 8px 0 6px; letter-spacing: -.03em; }
.g-mc-head p { color: var(--muted); }
.g-mission-card .tracker { margin: 0; }
.g-mission-card .tracker.card { background: rgba(0, 0, 0, .18); box-shadow: none; padding: 20px; }
.g-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-tile { position: relative; display: grid; gap: 6px; align-content: start; padding: 24px; min-height: 190px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), border-color .3s, background .3s; }
.g-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(214, 165, 72, .16), transparent 60%); opacity: 0; transition: opacity .4s; }
.g-tile:hover { transform: translateY(-6px) rotate(-.4deg); border-color: rgba(214, 165, 72, .6); }
.g-tile:hover::before { opacity: 1; }
.g-tile-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(214, 165, 72, .14); color: var(--accent); margin-bottom: 10px; transition: transform .4s var(--ease), background .3s, color .3s; position: relative; }
.g-tile:hover .g-tile-ico { transform: scale(1.1) rotate(-6deg); background: var(--accent); color: var(--on-accent); }
.g-tile-ico svg { width: 26px; height: 26px; }
.g-tile strong { font: 800 1.4rem var(--font-display); color: #fff; position: relative; }
.g-tile > span:not(.g-tile-ico) { color: var(--muted); font-size: .92rem; position: relative; }
.g-tile .g-meter { margin-top: 10px; position: relative; }
.g-tile > i { position: absolute; right: 20px; bottom: 20px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: #fff; transition: .35s var(--ease); }
.g-tile:hover > i { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: translateX(4px); }
.g-tile > i svg { width: 18px; height: 18px; }
.g-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-stats-row li { display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.g-stats-row b { font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--font-display); color: #fff; letter-spacing: -.03em; }
.g-stats-row span { color: var(--muted); font-size: .9rem; }
@media (max-width: 799px) { .g-menu, .g-stats-row { grid-template-columns: 1fr; } .g-tile { min-height: 0; } .g-stats-row { grid-template-columns: repeat(3, 1fr); } .g-stats-row li { padding: 16px 12px; } }

/* Garage: a snap carousel of cars, like picking from a game's car list */
.g-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.g-chip { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; color: #C6D3E0; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); transition: .25s var(--ease); }
.g-chip b { font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.g-chip:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.g-chip[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.g-chip[aria-pressed='true'] b { background: rgba(20, 35, 47, .16); }
.g-rail { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 22px; margin: 0 -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; cursor: grab; outline: none; perspective: 1200px; }
.g-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.g-rail:focus-visible { box-shadow: 0 0 0 3px rgba(214, 165, 72, .4); border-radius: 12px; }
.g-slot { flex: 0 0 min(86%, 380px); scroll-snap-align: center; }
.g-slot[hidden] { display: none; }
.g-car { display: grid; height: 100%; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), border-color .3s, box-shadow .4s; user-select: none; }
.g-car:hover { transform: translateY(-8px) scale(1.015); border-color: rgba(214, 165, 72, .65); box-shadow: 0 30px 60px -24px rgba(214, 165, 72, .3); }
.g-car.is-dead { filter: saturate(.4); opacity: .8; }
.g-car-art { position: relative; aspect-ratio: 16/10; background: radial-gradient(circle at 50% 80%, rgba(214, 165, 72, .18), transparent 62%), #0a1d31; overflow: hidden; }
.g-car-art .car-img, .g-car-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-car:hover .g-car-img { transform: scale(1.07); }
.g-tag { position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(10, 17, 24, .75); color: #fff; border: 1px solid var(--line-2); }
.g-tag.is-vvip { color: var(--accent); border-color: rgba(214, 165, 72, .6); }
.g-state { position: absolute; right: 14px; top: 14px; padding: 5px 11px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(8px); }
.g-state.ok { background: var(--ok); } .g-state.warn { background: var(--accent); color: var(--on-accent); } .g-state.bad { background: var(--bad); } .g-state.brand { background: #2A4A5F; }
.g-car-body { padding: 20px; display: grid; gap: 12px; align-content: start; }
.g-car-body h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.g-route { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: .95rem; flex-wrap: wrap; }
.g-route svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.g-when { color: var(--muted); font-size: .85rem; }
.g-stats { display: grid; gap: 8px; padding: 12px 0; border-block: 1px dashed var(--line-2); }
.g-stats > div { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 12px; }
.g-stats dt { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.g-stats dt svg { width: 15px; height: 15px; }
.g-stats dd { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.g-stats dd b { font-size: .8rem; color: #fff; min-width: 38px; text-align: right; }
.g-stats .g-meter { height: 6px; }
.g-mission { display: grid; gap: 7px; }
.g-mission-top { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-weight: 600; }
.g-mission-top b { color: var(--accent); }
.g-car-foot { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.g-ref { font: 700 .78rem var(--font-body); letter-spacing: .1em; color: var(--muted); }
.g-car-foot strong { margin-left: auto; color: #fff; font: 800 1.1rem var(--font-display); }
.g-go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: .85rem; }
.g-go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.g-car:hover .g-go svg { transform: translateX(5px); }
.g-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: .85rem; }
.g-hint svg { width: 16px; height: 16px; }
.g-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 64px 20px; border-radius: var(--r-xl); border: 1px dashed var(--line-2); color: var(--muted); }
.g-empty svg { width: 220px; max-width: 70%; color: #fff; }
.g-empty h3 { font-size: 1.6rem; }
.g-empty .btn { margin-top: 10px; }

/* Licence: stepped form with progress */
.g-form { display: grid; gap: 20px; max-width: 640px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.g-steps { display: flex; justify-content: space-between; gap: 8px; }
.g-steps li { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; color: var(--muted-2); transition: color .3s; }
.g-steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; border: 1.5px solid var(--line-2); transition: .35s var(--ease); }
.g-steps li.is-now { color: #fff; } .g-steps li.is-now span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: scale(1.12); }
.g-steps li.is-done { color: var(--ok); } .g-steps li.is-done span { background: var(--ok); color: #fff; border-color: var(--ok); }
.g-form-bar > i { transition: width .6s var(--ease); width: var(--p); }
.g-pane { display: grid; gap: 16px; }
.g-pane[hidden] { display: none; }
.g-field { display: grid; gap: 7px; }
.g-field label { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.g-field input, .g-field select { height: 52px; padding: 0 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); border: 1.5px solid var(--line-2); color: #fff; font-size: 1rem; transition: .25s; width: 100%; }
.g-field input::placeholder { color: var(--muted-2); }
.g-field input:hover, .g-field select:hover { border-color: var(--muted-2); }
.g-field input:focus, .g-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(214, 165, 72, .18); background: rgba(255, 255, 255, .09); }
.g-field input:disabled { opacity: .55; }
.g-field small { color: var(--muted-2); font-size: .78rem; }
.g-field select option { background: #111E29; }
.g-error, .a-error { color: #ff9b94; font-weight: 600; font-size: .88rem; }
.g-form-nav { display: flex; gap: 12px; }
.g-form-nav .btn-block { flex: 1; }

/* Tracker + goal-gradient bar (shared by hub and booking page) */
body.game-mode .track-step::before { background: rgba(255, 255, 255, .14); }
body.game-mode .track-step.is-done::before { background: var(--ok); }
body.game-mode .track-dot { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: var(--muted); }
body.game-mode .is-done .track-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
body.game-mode .track-phase { color: var(--accent); }
body.game-mode .track-step strong { color: #fff; }
.track-goal { display: grid; gap: 8px; margin-bottom: 22px; }
.track-goal-top { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--muted); }
.track-goal-top b { color: var(--accent); font: 800 1rem var(--font-display); }
.track-goal .g-meter { height: 10px; }
body:not(.game-mode) .g-meter { background: var(--paper-2); }
body:not(.game-mode) .track-goal-top b { color: var(--accent-700); }

/* Car image placeholder (no photo yet) */
.car-img-ph { display: grid; place-items: center; align-content: center; gap: 8px; background: linear-gradient(160deg, var(--ink-2), var(--night)); color: rgba(255, 255, 255, .7); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; min-height: 100%; width: 100%; aspect-ratio: 16/10; }
.car-img-ph svg { width: 54px; height: 54px; color: var(--accent); }

/* ---- Auth: calm split screen, dark to match the rest ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--night); color: #fff; }
.auth-art { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(28px, 5vw, 64px); background: linear-gradient(150deg, #0e3558 0%, #101D28 55%, #0C161E 100%); }
.auth-grid { position: absolute; left: -30%; right: -30%; bottom: -8%; height: 62%; background: repeating-linear-gradient(90deg, rgba(214, 165, 72, .22) 0 1px, transparent 1px 70px), repeating-linear-gradient(0deg, rgba(120, 170, 220, .18) 0 1px, transparent 1px 56px); transform-origin: 50% 100%; transform: perspective(420px) rotateX(62deg); -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); animation: g-road 2.4s linear infinite; }
.auth-glow { position: absolute; width: 420px; height: 420px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 165, 72, .22), transparent 65%); animation: g-ring 8s ease-in-out infinite; }
.auth-art-copy { position: relative; display: grid; gap: 14px; max-width: 30rem; }
.auth-art-copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; color: #fff; }
.auth-art-copy p { color: rgba(255, 255, 255, .72); font-size: 1.05rem; }
.auth-saved { display: flex !important; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(30, 142, 78, .16); border: 1px solid rgba(30, 142, 78, .45); color: #bfe8cf !important; font-size: .92rem !important; }
.auth-saved svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #4ec283; }
.auth-panel { display: grid; place-items: center; padding: calc(var(--header-h) + 24px) clamp(20px, 5vw, 56px) 48px; }
.auth-card { width: min(440px, 100%); display: grid; gap: 6px; }
.auth-logo { margin-bottom: 18px; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.03em; color: #fff; }
.auth-alt { color: var(--muted-2, #A5B4C4); margin: 4px 0 22px; }
.auth-alt a { color: var(--accent); font-weight: 700; }
.a-field { display: grid; gap: 7px; }
.a-field label { font-size: .8rem; font-weight: 700; color: #A5B4C4; letter-spacing: .03em; }
.a-field label small { font-weight: 500; opacity: .8; }
.a-field input { height: 54px; padding: 0 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .2); color: #fff; font-size: 1rem; width: 100%; transition: .25s; }
.a-field input::placeholder { color: #7D8EA1; }
.a-field input:hover { border-color: #7D8EA1; }
.a-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(214, 165, 72, .18); background: rgba(255, 255, 255, .09); }
.a-pw { position: relative; }
.a-pw input { padding-right: 52px; }
.a-eye { position: absolute; right: 6px; top: 6px; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #A5B4C4; transition: .2s; }
.a-eye:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.a-eye svg { width: 20px; height: 20px; }
.a-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid rgba(255, 255, 255, .14); transition: .25s; }
.a-check:hover { border-color: rgba(214, 165, 72, .6); }
.a-check input { appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #7D8EA1; flex: none; margin-top: 1px; display: grid; place-items: center; transition: .2s; cursor: pointer; }
.a-check input:checked { background: var(--accent); border-color: var(--accent); }
.a-check input:checked::after { content: ''; width: 10px; height: 6px; border: solid var(--on-accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.a-check input:focus-visible { outline: 3px solid rgba(214, 165, 72, .5); outline-offset: 2px; }
.a-check span { display: grid; gap: 2px; }
.a-check b { color: #fff; font-size: .95rem; }
.a-check small { color: #A5B4C4; font-size: .8rem; }
@media (max-width: 899px) { .auth { grid-template-columns: 1fr; } .auth-art { min-height: 260px; align-items: flex-end; } .auth-panel { padding-top: 32px; } }

@media (prefers-reduced-motion: reduce) {
  body.game-mode::before, body.game-mode::after, .auth-grid, .auth-glow, .g-meter > i::after, .g-avatar, .g-hero::after, .g-zone i { animation: none; }
}

.car-go, .car-book { white-space: nowrap; }
.car-card-foot { flex-wrap: wrap; gap: 8px; }

/* Search / car / checkout pages restyled for the dark garage */
body.game-mode .car-card { background: rgba(255, 255, 255, .055); backdrop-filter: blur(12px); }
body.game-mode .car-card-media { background: #0a1d31; }
body.game-mode .trip-bar { background: rgba(8, 20, 34, .88); }
body.game-mode .trip-bar-leg > svg, body.game-mode .feature-list svg, body.game-mode .checklist svg { color: var(--accent); }
body.game-mode .car-go { background: rgba(255, 255, 255, .12); }
body.game-mode .car-card .car-price, body.game-mode .car-card h3 { color: #fff; }
body.game-mode .stepper { background: rgba(255, 255, 255, .08); }
body.game-mode .stepper button { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
body.game-mode .stepper-dot { background: rgba(255, 255, 255, .1); color: var(--text); }
body.game-mode .progress-steps .done .stepper-dot { background: var(--ok); color: #fff; }
body.game-mode .progress-steps .now .stepper-dot { background: var(--accent); color: var(--on-accent); }
body.game-mode .check input { background: rgba(255, 255, 255, .06); border-color: var(--line-2); }
body.game-mode .check input:checked { background: var(--accent); border-color: var(--accent); }
body.game-mode .check input:checked::after { border-color: var(--on-accent); }
body.game-mode .plan:has([aria-checked="true"]) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214, 165, 72, .18); }
body.game-mode .plan-head[aria-checked="true"] .plan-radio { border-color: var(--accent); }
body.game-mode .plan-head[aria-checked="true"] .plan-radio::after { background: var(--accent); }
body.game-mode .addon.is-on { border-color: var(--accent); }
body.game-mode .addon-ico { background: rgba(255, 255, 255, .08); }
body.game-mode .pick-row:hover { background: rgba(255, 255, 255, .06); }
body.game-mode .badge.dark { background: rgba(255, 255, 255, .14); }
body.game-mode .badge.brand { color: var(--accent); }
body.game-mode .buybar { background: rgba(10, 17, 24, .94); color: #fff; }
body.game-mode .car-sold { background: rgba(10, 17, 24, .72); color: #fff; }

/* ---- Menu pull-tab (hangs from the top on a rope) + glass menu ---- */
.g-zone { left: 50%; right: auto; width: 132px; height: 86px; transform: translateX(-50%); transform-origin: 50% 0; display: flex; flex-direction: column; align-items: center; animation: g-sway 5s ease-in-out infinite; }
.g-zone:hover, #game-hud.is-open .g-zone { animation-play-state: paused; }
@keyframes g-sway { 0%, 100% { transform: translateX(-50%) rotate(-1.6deg); } 50% { transform: translateX(-50%) rotate(1.6deg); } }
.g-rope { width: 2px; height: 30px; background: linear-gradient(#D6A548, rgba(214, 165, 72, .35)); border-radius: 2px; transition: height .4s var(--ease); }
.g-zone:hover .g-rope, #game-hud.is-open .g-rope { height: 38px; }
.g-pull { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px 0 12px; border-radius: 14px; color: #fff; font: 700 .8rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .22); transition: background .3s, color .3s, border-color .3s, transform .35s var(--ease); }
.g-pull i { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; transition: .35s var(--ease); }
.g-zone:hover .g-pull, .g-pull:focus-visible, #game-hud.is-open .g-pull { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: translateY(2px); }
.g-zone:hover .g-pull i, #game-hud.is-open .g-pull i { width: 12px; box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor; }
.g-bar { left: 50%; right: auto; top: 12px; width: min(940px, calc(100% - 176px)); padding: 10px 14px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .26); backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6); box-shadow: 0 28px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .3); transform: translate(-50%, -150%) scale(.96); opacity: 0; pointer-events: none; transition: transform .6s cubic-bezier(.34, 1.45, .5, 1), opacity .3s; }
.g-zone:hover + .g-bar, .g-bar:hover, .g-bar:focus-within, #game-hud.is-open .g-bar { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.g-bar nav a, .g-bar .logo, .g-user { opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .5s var(--ease), background .25s, color .25s; }
.g-zone:hover + .g-bar nav a, .g-zone:hover + .g-bar .logo, .g-zone:hover + .g-bar .g-user, .g-bar:hover nav a, .g-bar:hover .logo, .g-bar:hover .g-user, .g-bar:focus-within nav a, #game-hud.is-open .g-bar nav a, #game-hud.is-open .g-bar .logo, #game-hud.is-open .g-bar .g-user { opacity: 1; transform: none; }
.g-bar nav a:nth-child(1) { transition-delay: .08s, .08s, 0s, 0s; } .g-bar nav a:nth-child(2) { transition-delay: .14s, .14s, 0s, 0s; } .g-bar nav a:nth-child(3) { transition-delay: .2s, .2s, 0s, 0s; } .g-bar nav a:nth-child(4) { transition-delay: .26s, .26s, 0s, 0s; }
.g-bar nav a { color: #E3EBF3; }
.g-bar nav a:hover { background: rgba(255, 255, 255, .16); }
@media (max-width: 899px) { .g-zone, .g-bar { display: none; } }

/* ---- Results page fits the screen: tighter card media so the whole card is visible ---- */
body.game-mode .car-card-media { aspect-ratio: 16 / 8.5; }
body.game-mode .car-card-body { padding: 16px; gap: 10px; }
body.game-mode .results { padding-bottom: 40px; }
body.game-mode .car-card .badge.ok { background: rgba(8, 24, 18, .8); color: #5fd392; border: 1px solid rgba(95, 211, 146, .5); backdrop-filter: blur(6px); }
body.game-mode .car-card .car-cat { backdrop-filter: blur(6px); background: rgba(10, 17, 24, .7); }
.sf-stations { grid-template-columns: 1fr !important; }

/* ---- Buttons: label and arrow always sit on one row ---- */
.btn { white-space: nowrap; }
.btn > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn > span > svg { flex: none; }

/* ---- Licence summary (shown once details are saved) ---- */
.g-summary { max-width: 640px; display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--card); border: 1px solid rgba(30, 142, 78, .5); box-shadow: 0 0 0 1px rgba(30, 142, 78, .1), 0 24px 60px -34px rgba(30, 142, 78, .45); backdrop-filter: blur(14px); }
.g-summary[hidden] { display: none; }
.g-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.g-saved { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--ok-50); color: #5fd392; font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.g-saved svg { width: 16px; height: 16px; }
.g-facts { display: grid; gap: 2px; }
.g-facts li { display: grid; grid-template-columns: 24px 130px 1fr; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.g-facts li:last-child { border-bottom: 0; }
.g-facts svg { width: 18px; height: 18px; color: var(--accent); }
.g-facts span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.g-facts b { color: #fff; font-weight: 700; letter-spacing: .02em; overflow-wrap: anywhere; }
.g-form[hidden] { display: none; }

/* ---- Recent = green, Past = red (colour psychology: go / done) ---- */
.g-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.g-chip.is-recent i { background: #3BAA6B; box-shadow: 0 0 0 4px rgba(59, 170, 107, .22); animation: g-pulse 2.4s ease-in-out infinite; }
.g-chip.is-past i { background: #D9584F; box-shadow: 0 0 0 4px rgba(217, 88, 79, .2); }
.g-chip.is-recent[aria-pressed="true"] { background: #1E8E4E; border-color: #1E8E4E; color: #fff; }
.g-chip.is-past[aria-pressed="true"] { background: #B5382F; border-color: #B5382F; color: #fff; }
.g-chip.is-recent[aria-pressed="true"] i, .g-chip.is-past[aria-pressed="true"] i { background: #fff; box-shadow: none; animation: none; }
.g-car.is-recent { border-color: rgba(59, 170, 107, .55); box-shadow: 0 0 0 1px rgba(59, 170, 107, .12), 0 26px 60px -34px rgba(59, 170, 107, .55); }
.g-car.is-recent:hover { border-color: #3BAA6B; box-shadow: 0 30px 64px -26px rgba(59, 170, 107, .6); }
.g-car.is-recent .g-car-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(30, 142, 78, .32), transparent); pointer-events: none; }
.g-car.is-past { border-color: rgba(217, 88, 79, .5); box-shadow: 0 26px 60px -38px rgba(217, 88, 79, .5); }
.g-car.is-past:hover { border-color: #D9584F; box-shadow: 0 30px 64px -26px rgba(217, 88, 79, .55); }
.g-car.is-past .g-car-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(181, 56, 47, .34), transparent); pointer-events: none; }
.g-car.is-past .g-car-img { filter: saturate(.7); }
.g-car.is-dead { opacity: 1; }
.g-age { position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: 4px 11px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.g-car.is-recent .g-age { background: #1E8E4E; }
.g-car.is-past .g-age { background: #B5382F; }
.g-car.is-recent .g-go { color: #5fd392; } .g-car.is-past .g-go { color: #ff9b94; }

/* ---- Auth: no site header; background scene + side "Return to homepage" button ---- */
body.auth-mode #site-header, body.auth-mode #site-footer, body.auth-mode #bottom-nav { display: none !important; }
.auth { position: relative; isolation: isolate; background: radial-gradient(90% 70% at 20% 10%, #123f6a 0%, #101D28 45%, #040d18 100%); overflow: hidden; }
.auth-art { background: transparent; z-index: 0; }
.auth-skyline { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.auth-stars circle { animation: auth-twinkle 4s ease-in-out infinite; }
.auth-stars circle:nth-child(3n) { animation-delay: 1.2s; } .auth-stars circle:nth-child(3n+1) { animation-delay: 2.4s; }
@keyframes auth-twinkle { 50% { opacity: .1; } }
.auth-train { animation: auth-train 22s linear infinite; }
@keyframes auth-train { from { transform: translateX(0); } to { transform: translateX(1700px); } }
.auth-rail path:last-child { animation: g-rail-move 1.2s linear infinite; }
@keyframes g-rail-move { to { stroke-dashoffset: -17; } }
.auth-panel { position: relative; z-index: 1; padding-top: 40px; }
.auth-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .22); }
.auth-home { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 20; display: inline-flex; align-items: center; height: 56px; width: 56px; border-radius: 0 18px 18px 0; color: #fff; background: rgba(8, 20, 34, .7); border: 1px solid rgba(255, 255, 255, .2); border-left: 0; backdrop-filter: blur(14px); overflow: hidden; transition: width .5s var(--ease), color .3s; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
.auth-home-fill { position: absolute; inset: 0; background: var(--accent); transform: translateX(-102%); transition: transform .5s var(--ease); z-index: 0; border-radius: inherit; }
.auth-home-ico { position: relative; z-index: 1; width: 54px; height: 100%; flex: none; display: grid; place-items: center; }
.auth-home-ico svg { width: 22px; height: 22px; }
.auth-home-text { position: relative; z-index: 1; white-space: nowrap; font-weight: 700; font-size: .9rem; padding-right: 20px; opacity: 0; transform: translateX(-8px); transition: opacity .3s .1s, transform .4s .1s var(--ease); }
.auth-home:hover, .auth-home:focus-visible { width: 226px; color: var(--on-accent); }
.auth-home:hover .auth-home-fill, .auth-home:focus-visible .auth-home-fill { transform: translateX(0); }
.auth-home:hover .auth-home-text, .auth-home:focus-visible .auth-home-text { opacity: 1; transform: none; }
.auth-logo { display: none; }
@media (max-width: 899px) { .auth-home { top: 16px; transform: none; } .auth-art { min-height: 230px; } }

/* ---- Admin shares the dark garage skin ---- */
body.admin-mode {
  --card: rgba(255, 255, 255, .055); --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .22);
  --text: #EAF0F6; --muted: #A5B4C4; --muted-2: #7D8EA1; --paper: #101C27; --paper-2: rgba(255, 255, 255, .08);
  --brand-50: rgba(214, 165, 72, .12); --brand-600: #D6A548; --ok-50: rgba(30, 142, 78, .18); --warn-50: rgba(214, 165, 72, .16); --bad-50: rgba(194, 54, 46, .2); --accent-50: rgba(214, 165, 72, .14);
  background: #0A1118; color: var(--text); color-scheme: dark;
}
body.admin-mode h1, body.admin-mode h2, body.admin-mode h3, body.admin-mode strong { color: #fff; }
body.admin-mode .a-side { background: #0D1822; border-right: 1px solid var(--line); }
body.admin-mode .a-side nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
body.admin-mode .a-top { background: rgba(10, 17, 24, .86); border-bottom: 1px solid var(--line); }
body.admin-mode .bar i { background: linear-gradient(var(--accent), #B98A32); }
body.admin-mode .input, body.admin-mode .select, body.admin-mode .textarea { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--line-2); }
body.admin-mode .select option { background: #111E29; color: #fff; }
body.admin-mode .btn-ghost { color: #fff; border-color: var(--line-2); }
body.admin-mode .btn-brand { background: #2A4A5F; border-color: #2A4A5F; }
body.admin-mode .chip { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--line-2); }
body.admin-mode .chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
body.admin-mode .table th { background: rgba(255, 255, 255, .06); color: var(--muted); }
body.admin-mode .table td, body.admin-mode .table th { border-color: var(--line); }
body.admin-mode .badge { background: rgba(255, 255, 255, .1); color: #dfe8f1; }
body.admin-mode .badge.ok { background: var(--ok-50); color: #5fd392; } body.admin-mode .badge.warn { background: var(--warn-50); color: var(--accent); } body.admin-mode .badge.bad { background: var(--bad-50); color: #ff9b94; }
.auth-art { position: static; overflow: visible; }
.auth-art-copy { align-self: end; }
body.admin-mode .table-wrap, body.game-mode .table-wrap { background: rgba(255, 255, 255, .04); }
body.admin-mode .table td { color: var(--text); }

/* ---- Orders walkthrough: stepper ---- */
.trk { display: grid; gap: 20px; --line: 0%; }
.trk-top { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.trk-count b { color: var(--accent); }
.trk-driver { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--ok-50); color: #5fd392; font-size: .78rem; font-weight: 700; }
.trk-driver svg { width: 14px; height: 14px; }
.trk-pct { margin-left: auto; font: 800 1.2rem var(--font-display); color: var(--accent); }
.trk-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; }
.trk-rail { position: absolute; left: 10%; right: 10%; top: 25px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.trk-rail i { display: block; height: 100%; width: var(--line); border-radius: 4px; background: linear-gradient(90deg, var(--ok), var(--accent)); box-shadow: 0 0 14px rgba(214, 165, 72, .5); }
.trk-step { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; z-index: 1; }
.trk-node { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #111E29; border: 2px solid rgba(255, 255, 255, .22); color: var(--muted); transition: background .4s, border-color .4s, color .4s; }
.trk-node svg { width: 22px; height: 22px; }
.trk-step.is-done .trk-node { background: var(--ok); border-color: var(--ok); color: #fff; }
.trk-step.is-current .trk-node { background: var(--accent); border-color: var(--accent); color: var(--on-accent); animation: trk-pulse 2s ease-out infinite; }
@keyframes trk-pulse { 0% { box-shadow: 0 0 0 0 rgba(214, 165, 72, .6); } 100% { box-shadow: 0 0 0 16px rgba(214, 165, 72, 0); } }
.trk-step strong { font-size: .86rem; line-height: 1.25; color: #fff; }
.trk-step:not(.is-done):not(.is-current) strong { color: var(--muted); }
.trk-step small { font-size: .74rem; color: var(--muted-2); }
.trk-step.is-current small { color: var(--accent); font-weight: 700; }
.trk-now { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.trk-now.is-ok { border-left-color: var(--ok); }
.trk-now > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.trk-now-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--accent); }
.trk-now-ico svg { width: 22px; height: 22px; }
.trk-phase { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.trk-now strong { color: #fff; } .trk-now p { margin: 0; font-size: .85rem; color: var(--muted); }
.trk-live { font-style: normal; font-weight: 700; color: #5fd392; }
@media (max-width: 720px) {
  .trk-steps { grid-template-columns: 1fr; gap: 14px; }
  .trk-rail { left: 25px; right: auto; top: 26px; bottom: 26px; width: 4px; height: auto; }
  .trk-rail i { width: 100%; height: var(--line); }
  .trk-step { grid-template-columns: 52px 1fr; justify-items: start; text-align: left; column-gap: 14px; align-items: center; }
  .trk-step .trk-node { grid-row: span 2; } .trk-step strong, .trk-step small { grid-column: 2; }
  .trk-now { flex-wrap: wrap; }
}
/* hub stats: four clean tiles */
.g-stats-row { grid-template-columns: repeat(4, 1fr); }
.g-stat-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--accent); margin-bottom: 6px; }
.g-stat-ico svg { width: 18px; height: 18px; }
@media (max-width: 799px) { .g-stats-row { grid-template-columns: 1fr 1fr; } }
body .g-mc-head .btn, body .btn { white-space: nowrap; flex: none; }
body .btn > span { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 8px; white-space: nowrap; }
body .btn > span > svg { flex: none; }

/* Dialogs / sheets follow the dark skin */
body.game-mode .sheet, body.admin-mode .sheet { background: #0d1f33; border: 1px solid var(--line-2); color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
body.game-mode .sheet .btn-ghost, body.admin-mode .sheet .btn-ghost { color: #fff; border-color: var(--line-2); }
body.game-mode .sheet-head h3, body.admin-mode .sheet-head h3 { color: #fff; }

.trk-steps { grid-template-columns: repeat(var(--n, 5), 1fr); }
.trk-rail { left: calc(50% / var(--n, 5)); right: calc(50% / var(--n, 5)); }
.trk { margin-bottom: 8px; }
.trk-kind { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 720px) { .trk-steps { grid-template-columns: 1fr; } .trk-rail { left: 25px; right: auto; } }

/* ---- Portal car catalogue (top picks grid) ---- */
.cars-tools { display: grid; gap: 12px; margin-bottom: 22px; min-width: 0; }
.cars-search { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 0 16px; height: 48px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); color: var(--muted); }
.cars-search svg { width: 18px; height: 18px; flex: none; }
.cars-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; }
.cars-search:focus-within { border-color: var(--accent); }
.cars-rail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 24px 2px 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.cars-rail::-webkit-scrollbar { display: none; }
.cars-chip { flex: none; white-space: nowrap; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, .05); color: #fff; font-weight: 600; font-size: .86rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s; }
.cars-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.cars-chip[aria-pressed='true'] { background: #fff; color: #111E29; border-color: #fff; }
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.cars-card { position: relative; display: grid; gap: 10px; padding: 14px 14px 18px; border-radius: 22px; background: #fff; color: #111E29; text-decoration: none; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .7); transition: transform .35s var(--ease), box-shadow .35s; }
.cars-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -26px rgba(214, 165, 72, .45); }
.cars-tag { position: absolute; left: 24px; top: 24px; z-index: 1; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #e4e7ec; font-size: .74rem; font-weight: 700; color: #344054; }
.cars-img { aspect-ratio: 4 / 3; border-radius: 16px; background: #f2f4f7; overflow: hidden; display: grid; place-items: center; }
.cars-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cars-card:hover .cars-img img { transform: scale(1.07); }
.cars-card h3 { color: #111E29; font-size: 1.1rem; margin: 4px 4px 0; }
.cars-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 4px; padding: 0; list-style: none; color: #667085; font-size: .8rem; }
.cars-specs li { display: inline-flex; align-items: center; gap: 5px; } .cars-specs svg { width: 15px; height: 15px; }
.cars-price { display: flex; align-items: baseline; gap: 5px; margin: 2px 4px 0; } .cars-price small { color: #98a2b3; font-size: .74rem; } .cars-price b { font: 800 1.35rem var(--font-display); color: #111E29; }
.cars-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
@media (max-width: 560px) { .cars-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .cars-card { padding: 10px 10px 14px; border-radius: 18px; } .cars-tag { left: 18px; top: 18px; } }
body.game-mode .cars-card h3, body.game-mode .cars-card .cars-price b { color: #111E29; }
body.game-mode .cars-card .cars-specs { color: #667085; }

body.game-mode #view { padding-bottom: 72px; }
body.game-mode .g-page, body.game-mode #view > section:last-child { margin-bottom: 24px; }
