/* ============================================================
   SUPERCARS BY TEJ — quiz + DIY workshop
   Dark glass / neon racing theme · mobile first · no dependencies
   ============================================================ */

/* self-hosted fonts: guaranteed Latin display + Devanagari rendering */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/noto-sans-devanagari-400.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/noto-sans-devanagari-700.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

:root {
  --bg: #05060b;
  --bg-2: #080b14;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-2: rgba(255, 255, 255, 0.20);
  --text: #eaf2fd;
  --muted: rgba(234, 242, 253, 0.62);
  --dim: rgba(234, 242, 253, 0.42);
  --cyan: #22e6ff;
  --pink: #ff2e88;
  --lime: #9dff3c;
  --amber: #ffb300;
  --violet: #8b5cf6;
  --ok: #29e08a;
  --bad: #ff4d5e;
  --radius: 22px;
  --radius-sm: 14px;
  --glow: #00e5ff;
  --display: "Archivo Black", "Noto Sans Devanagari", "Arial Black", Impact, "Helvetica Neue", Arial, sans-serif;
  --body: "Noto Sans Devanagari", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, "Nirmala UI", Arial, sans-serif;
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.95);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html.lang-hi body { line-height: 1.7; }

h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; }
a { color: var(--cyan); }
canvas { display: block; }

[hidden] { display: none !important; }

::selection { background: rgba(34, 230, 255, 0.32); color: #fff; }

/* ---------------- background FX ---------------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #131a2c 0%, rgba(6, 8, 15, 0) 60%),
    linear-gradient(180deg, #05060b 0%, #04050a 100%);
}
.bg-grid {
  position: absolute;
  inset: -40% -10% -10%;
  background-image:
    linear-gradient(rgba(34, 230, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 136, 0.04) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  transform: perspective(720px) rotateX(58deg) translateY(-8%);
  transform-origin: top center;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  opacity: 0.75;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: floaty 18s ease-in-out infinite;
}
.bg-orb-a { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #7a1fd0; }
.bg-orb-b { width: 40vw; height: 40vw; right: -10vw; top: 8vh; background: #0b6f8f; animation-delay: -6s; }
.bg-orb-c { width: 34vw; height: 34vw; left: 32vw; bottom: -20vw; background: #a3124d; animation-delay: -11s; }

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2vw, 3vh, 0) scale(1.08); }
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ---------------- top bar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(14px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(5, 6, 11, 0.94), rgba(5, 6, 11, 0.62));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-mark { display: inline-flex; filter: drop-shadow(0 0 14px rgba(34, 230, 255, 0.35)); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.14em;
  line-height: 1.1;
  background: linear-gradient(92deg, #ffffff 10%, var(--cyan) 60%, var(--pink) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text small {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-domain { color: rgba(34, 230, 255, 0.7); }

.topbar-tools { display: flex; align-items: center; gap: 10px; }

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(157, 255, 60, 0.4);
  background: rgba(157, 255, 60, 0.08);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #d8ffb4;
}
.score-pill b { font-family: var(--display); font-size: 14px; }
.score-pill-lbl { font-weight: 700; opacity: 0.75; }

.lang-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  gap: 2px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.lang-btn:hover { color: #fff; }
.lang-btn.is-active {
  color: #04121a;
  background: linear-gradient(120deg, var(--cyan), #8ef0ff);
  box-shadow: 0 6px 18px -8px rgba(34, 230, 255, 0.9);
}

/* ---------------- layout ---------------- */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(14px, 4vw, 40px) 60px;
}

.hero { padding: clamp(10px, 2vw, 22px) 0 clamp(18px, 3vw, 30px); }

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(30px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  background: linear-gradient(96deg, #ffffff 0%, #cfefff 42%, var(--cyan) 72%, var(--pink) 118%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(34, 230, 255, 0.12);
}

html.lang-hi .hero-title { font-size: clamp(26px, 5vw, 50px); line-height: 1.25; letter-spacing: 0; }

.hero-sub {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16.5px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hstat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  min-width: 96px;
}
.hstat b {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #fff;
}
.hstat span { font-size: 9.5px; letter-spacing: 0.18em; color: var(--dim); text-transform: uppercase; }

/* ---------------- tabs ---------------- */
.tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(18px, 3vw, 28px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.tab.is-active {
  color: #04121a;
  background: linear-gradient(115deg, var(--cyan) 0%, #a6f7ff 45%, #ffffff 100%);
  box-shadow: 0 14px 34px -18px rgba(34, 230, 255, 0.95);
}
.tab-ico { font-size: 15px; }

/* ---------------- cards ---------------- */
.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018) 46%, rgba(255, 255, 255, 0.008));
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.4vw, 26px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 60% at 0% 0%, rgba(34, 230, 255, 0.10), transparent 60%);
  opacity: 0.8;
  z-index: 0;
}
.card > * { position: relative; z-index: 1; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.card-head h2 { font-size: clamp(18px, 2.2vw, 23px); }

.muted { color: var(--muted); }
.small { font-size: 13px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.chip b { color: #fff; font-family: var(--display); letter-spacing: 0.04em; }
.chip-mode { color: var(--cyan); border-color: rgba(34, 230, 255, 0.35); background: rgba(34, 230, 255, 0.08); }
.chip-score { color: #d8ffb4; border-color: rgba(157, 255, 60, 0.35); background: rgba(157, 255, 60, 0.08); }
.chip-score b { color: #eaffd6; }
.chip-neon { color: var(--pink); border-color: rgba(255, 46, 136, 0.4); background: rgba(255, 46, 136, 0.10); }
.chip-tiny { font-size: 10px; padding: 4px 9px; letter-spacing: 0.1em; }
.chip-live { color: var(--lime); border-color: rgba(157, 255, 60, 0.3); background: rgba(157, 255, 60, 0.08); }
.chip-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------------- buttons ---------------- */
.btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.015em;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.995); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(115deg, #19d6f5 0%, #7ef0ff 45%, #b8fbff 100%);
  color: #03141b;
  box-shadow: 0 18px 40px -20px rgba(34, 230, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-primary:hover { box-shadow: 0 22px 48px -18px rgba(34, 230, 255, 1); }
.btn-neon {
  background: linear-gradient(115deg, var(--pink), #ff7ac0 60%, #ffd0e6);
  color: #2a0016;
  box-shadow: 0 18px 40px -22px rgba(255, 46, 136, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--stroke-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-tiny { padding: 8px 13px; font-size: 12.5px; border-radius: 11px; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; border-radius: 16px; }
.btn-wide { width: 100%; }
.btn-wide + .btn-wide { margin-top: 10px; }

.btn-wa {
  background: linear-gradient(115deg, #128c4a 0%, #25d366 52%, #63e89a 100%);
  color: #04240f;
  box-shadow: 0 18px 40px -22px rgba(37, 211, 102, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-wa:hover { box-shadow: 0 22px 48px -18px rgba(37, 211, 102, 1); }
.btn-wa svg { flex: none; }

.btn-danger {
  color: #ffb4b4;
  border-color: rgba(255, 86, 86, 0.35);
  background: rgba(255, 70, 70, 0.08);
}
.btn-danger:hover { background: rgba(255, 70, 70, 0.18); border-color: rgba(255, 86, 86, 0.55); }

/* ---------------- vault: mode picker ---------------- */
.start-card { margin-bottom: 20px; }

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
}
.mode-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mode-card:hover { transform: translateY(-3px); border-color: rgba(34, 230, 255, 0.35); }
.mode-card.is-active {
  border-color: rgba(34, 230, 255, 0.85);
  background: linear-gradient(165deg, rgba(34, 230, 255, 0.18), rgba(34, 230, 255, 0.045));
  box-shadow: 0 18px 40px -26px rgba(34, 230, 255, 0.9), inset 0 0 0 1px rgba(34, 230, 255, 0.18);
}
.mode-ico { font-size: 24px; line-height: 1; }
.mode-name { font-weight: 900; font-size: 15px; letter-spacing: 0.01em; }
.mode-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.start-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------- vault: quiz ---------------- */
.quiz-card { max-width: 940px; }

.quiz-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.quiz-head .chip-score { margin-left: auto; }

.meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 20px;
}
.meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  box-shadow: 0 0 18px rgba(34, 230, 255, 0.55);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stimulus { margin-bottom: 18px; }

/* sound */
.sound-stage {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(90% 120% at 12% 20%, rgba(34, 230, 255, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.025);
}
.rev-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px 16px 20px;
  border-radius: 999px;
  border: 1px solid rgba(34, 230, 255, 0.5);
  background: radial-gradient(120% 140% at 20% 10%, rgba(34, 230, 255, 0.28), rgba(11, 22, 34, 0.9));
  color: #eafdff;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 24px 50px -28px rgba(34, 230, 255, 0.9), inset 0 0 30px rgba(34, 230, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.rev-btn:hover { transform: scale(1.03); }
.rev-btn:active { transform: scale(0.97); }
.rev-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.rev-emoji { font-size: 22px; }
.rev-ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(34, 230, 255, 0.28);
  pointer-events: none;
}
.rev-btn.is-pulsing .rev-ring { animation: revPulse 0.7s ease-out; }
.rev-btn.is-pulsing .rev-emoji { animation: revShake 0.55s ease-in-out; }
@keyframes revPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes revShake {
  0%, 100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-9deg) scale(1.12); }
  60% { transform: rotate(7deg) scale(1.06); }
}

.audio-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 40ch;
}
.audio-status.is-loading { color: var(--cyan); }
.audio-status.is-fallback { color: var(--amber); }

/* logo */
.badge-stage {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}
.badge-plate {
  width: clamp(140px, 24vw, 190px);
  height: clamp(140px, 24vw, 190px);
  padding: 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 60%),
    linear-gradient(160deg, #10141f, #070a12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 60px -30px #000, 0 0 44px -18px rgba(34, 230, 255, 0.6);
  animation: plateIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.badge-plate svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6)); }
@keyframes plateIn {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* specs */
.spec-stage {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(100deg, rgba(139, 92, 246, 0.16), rgba(34, 230, 255, 0.05) 60%),
    rgba(255, 255, 255, 0.02);
}
.spec-icon { font-size: 30px; }
.spec-topic {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 800;
  flex: 1;
}
.spec-value {
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 32px);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.32);
}

.quiz-question {
  font-size: clamp(19px, 2.8vw, 27px);
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}

html.lang-hi .quiz-question { line-height: 1.55; }

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 15px 17px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.option:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(34, 230, 255, 0.5);
  background: rgba(34, 230, 255, 0.08);
}
.option:disabled { cursor: default; }
.option-letter {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--stroke-2);
  font-family: var(--display);
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}
.option-text { flex: 1; }

.option.is-correct {
  border-color: rgba(41, 224, 138, 0.85);
  background: linear-gradient(120deg, rgba(41, 224, 138, 0.22), rgba(41, 224, 138, 0.06));
  box-shadow: 0 0 0 1px rgba(41, 224, 138, 0.35), 0 20px 44px -30px rgba(41, 224, 138, 0.9);
  animation: popCorrect 0.4s ease;
}
.option.is-correct .option-letter { background: rgba(41, 224, 138, 0.9); color: #04231a; border-color: transparent; }
.option.is-wrong {
  border-color: rgba(255, 77, 94, 0.8);
  background: linear-gradient(120deg, rgba(255, 77, 94, 0.20), rgba(255, 77, 94, 0.05));
  animation: shakeWrong 0.42s ease;
}
.option.is-wrong .option-letter { background: rgba(255, 77, 94, 0.9); color: #2b0007; border-color: transparent; }
.option.is-picked { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18); }
.option:disabled:not(.is-correct):not(.is-wrong) { opacity: 0.55; }

@keyframes popCorrect {
  0% { transform: scale(1); }
  45% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@keyframes shakeWrong {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  55% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}

.quiz-feedback {
  min-height: 26px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 14.5px;
}
.quiz-feedback.is-ok { color: var(--ok); }
.quiz-feedback.is-bad { color: #ff98a2; }

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ---------------- result ---------------- */
.result-card {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.result-ring {
  --pct: 0deg;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(from -90deg, var(--cyan) 0 var(--pct), rgba(255, 255, 255, 0.08) var(--pct) 360deg);
  box-shadow: 0 0 46px -12px rgba(34, 230, 255, 0.65);
  margin-bottom: 6px;
}
.result-ring::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #080b14;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.result-ring span {
  position: relative;
  font-family: var(--display);
  font-size: 32px;
  color: #fff;
}
.result-ring.is-perfect {
  background: conic-gradient(from -90deg, var(--lime) 0 300deg, var(--cyan) 300deg 360deg);
  box-shadow: 0 0 60px -8px rgba(157, 255, 60, 0.8);
}
.result-card h2 { font-size: clamp(23px, 3.4vw, 34px); }
.result-card > .muted { max-width: 52ch; }

.result-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0 4px;
}
.rstat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 104px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}
.rstat b { font-family: var(--display); font-size: 21px; }
.rstat span { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

/* ---------------- workshop ---------------- */
.workshop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.stage-card { padding-bottom: 18px; }

.stage {
  --glow: #00e5ff;
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, #070a12 0%, #0b1018 62%, #06080e 100%);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(12px, 2vw, 22px) clamp(12px, 2.4vw, 28px) clamp(16px, 2.4vw, 26px);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 112%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 62%);
  z-index: 0;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 76% at 50% 44%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 76% at 50% 44%, #000 20%, transparent 80%);
  pointer-events: none;
  opacity: 0.8;
}
.stage-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.car-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 280;
  z-index: 1;
}
.car-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 14px;
}
.sticker-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sticker-chip {
  position: absolute;
  width: 8.8%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-2.5deg);
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
  animation: decalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticker-art, .sticker-chip svg { display: block; width: 100%; height: 100%; }
@keyframes decalIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7) rotate(-14deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2.5deg); }
}

.slot-marker {
  position: absolute;
  width: clamp(28px, 5%, 44px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed rgba(34, 230, 255, 0.75);
  background: rgba(34, 230, 255, 0.12);
  color: var(--cyan);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(2px);
  transition: transform 0.18s ease, background 0.18s ease;
  animation: markerPulse 2.4s ease-in-out infinite;
}
.slot-marker:hover { transform: translate(-50%, -50%) scale(1.14); background: rgba(34, 230, 255, 0.24); }
@keyframes markerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 230, 255, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(34, 230, 255, 0); }
}

.stage-floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 4%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  z-index: 0;
}

.stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}
.mini-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }

/* controls — four groups in a 2-up grid under the full-width stage */
.controls-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 4vw, 48px);
  row-gap: 2px;
  align-items: start;
}
.controls-card > .card-head { grid-column: 1 / -1; }

.ctrl {
  position: relative;
  z-index: 1;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.ctrl:nth-of-type(1), .ctrl:nth-of-type(2) { border-top: 0; padding-top: 4px; }

.ctrl-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.ctrl-title span:first-child { font-size: 15px; letter-spacing: 0; }

.ctrl-hint { font-size: 12.5px; color: var(--dim); margin: -4px 0 12px; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: var(--sw, #22d3ee);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px -8px #000;
}
.swatch:hover { transform: translateY(-2px) scale(1.05); }
.swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(34, 230, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.swatch-sm { width: 25px; height: 25px; border-radius: 8px; }

.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
input[type="color"] {
  width: 46px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--stroke-2);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }

.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { flex-wrap: wrap; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--stroke-2);
  transition: background 0.2s ease, border-color 0.2s ease;
  flex: 0 0 auto;
}
.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8f4ff;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.switch input:checked + .switch-track {
  background: linear-gradient(120deg, var(--cyan), #7ef0ff);
  border-color: transparent;
  box-shadow: 0 0 20px -4px rgba(34, 230, 255, 0.8);
}
.switch input:checked + .switch-track .switch-knob { transform: translateX(20px); background: #03141b; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--cyan); outline-offset: 3px; }
.switch-label { font-size: 13px; color: var(--muted); font-weight: 700; }

/* segmented */
.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 3px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
  flex-wrap: wrap;
}
.seg-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.seg-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.seg-btn.is-active {
  background: linear-gradient(120deg, rgba(34, 230, 255, 0.9), rgba(126, 240, 255, 0.85));
  color: #03141b;
  box-shadow: 0 10px 22px -14px rgba(34, 230, 255, 0.95);
}

/* slots + decals */
.slot-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.slot-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}
.slot-tab:hover { color: #fff; border-color: var(--stroke-2); }
.slot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.slot-tab.is-filled .slot-dot { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.slot-tab.is-active {
  color: #03141b;
  background: linear-gradient(120deg, #a6f7ff, #eafdff);
  border-color: transparent;
  box-shadow: 0 12px 26px -18px rgba(34, 230, 255, 0.95);
}
.slot-tab.is-active .slot-dot { background: #0a5f74; }

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}
.sticker-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 6px 9px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.sticker-tile:hover { transform: translateY(-2px); border-color: rgba(34, 230, 255, 0.45); }
.sticker-tile.is-applied {
  border-color: rgba(157, 255, 60, 0.6);
  background: linear-gradient(165deg, rgba(157, 255, 60, 0.13), rgba(157, 255, 60, 0.02));
}
.sticker-tile-art { width: 40px; height: 40px; display: block; }
.sticker-tile-art svg { width: 100%; height: 100%; display: block; }
.sticker-tile-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}
.sticker-tile.is-applied .sticker-tile-label { color: #d8ffb4; }

/* ---------------- export ---------------- */
.export-card {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}
.export-info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.export-info h2 {
  font-size: clamp(22px, 3vw, 30px);
  background: linear-gradient(96deg, #fff, #bfe9ff 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.export-info .chip { align-self: flex-start; }

.field-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 800;
  margin-top: 4px;
}
.text-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.text-input::placeholder { color: rgba(234, 242, 253, 0.3); font-weight: 500; }
.text-input:focus {
  outline: none;
  border-color: rgba(34, 230, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 230, 255, 0.16);
  background: rgba(34, 230, 255, 0.05);
}

.hint { font-size: 12.5px; color: var(--muted); min-height: 18px; }
.hint.is-ok { color: var(--ok); }
.hint.is-bad { color: #ff98a2; }
.hint.is-busy { color: var(--cyan); }

.export-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: var(--dim);
}
.export-facts li { display: flex; align-items: center; gap: 9px; }
.export-facts li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 10px;
  color: #03141b;
  background: rgba(157, 255, 60, 0.85);
  flex: 0 0 auto;
}

.export-preview { position: relative; z-index: 1; }
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 800;
}
#posterPreview {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid var(--stroke-2);
  background: #06080e;
  box-shadow: 0 30px 60px -34px #000, 0 0 40px -26px rgba(34, 230, 255, 0.8);
}

/* ---------------- footer ---------------- */
.site-footer {
  margin-top: 40px;
  padding: clamp(26px, 4vw, 40px) clamp(16px, 5vw, 40px) 34px;
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(0, 0, 0, 0.35));
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}
.footer-line {
  max-width: 92ch;
  margin: 0 auto 8px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}
.footer-main { color: rgba(234, 242, 253, 0.82); font-weight: 600; }
.footer-main a { color: var(--cyan); text-decoration: none; }
.footer-tech {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-hindi { font-size: 12px; color: var(--muted); }
.footer-disclaimer {
  margin-top: 16px;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(234, 242, 253, 0.36);
  max-width: 100ch;
}
.footer-disclaimer-hindi { font-size: 10.5px; line-height: 1.8; color: rgba(234, 242, 253, 0.34); max-width: 100ch; }

/* ---------------- my garage ---------------- */
.garage-card .hint { margin: 0 0 12px; }

.garage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.garage-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.garage-row:hover { border-color: var(--stroke-2); background: rgba(255, 255, 255, 0.06); }
.garage-row.is-active {
  border-color: rgba(34, 230, 255, 0.55);
  background: rgba(34, 230, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(34, 230, 255, 0.18), 0 14px 34px -22px rgba(34, 230, 255, 0.95);
}

.garage-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), 0 0 12px -2px rgba(255, 255, 255, 0.45);
}

.garage-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.garage-name {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.garage-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.garage-empty {
  margin: 4px 0 0;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* ---------------- toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 24px);
  z-index: 1200;
  max-width: min(92vw, 460px);
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(34, 230, 255, 0.35);
  background: rgba(8, 14, 22, 0.94);
  color: #eafdff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 22px 50px -20px #000, 0 0 30px -14px rgba(34, 230, 255, 0.9);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.has-action.is-visible { pointer-events: auto; }
.toast-msg { display: inline; }
.toast-action {
  margin-left: 12px;
  padding: 2px 6px;
  border: 0;
  border-radius: 8px;
  background: rgba(34, 230, 255, 0.14);
  color: var(--cyan);
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.toast-action:hover { background: rgba(34, 230, 255, 0.24); }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .workshop-grid { grid-template-columns: minmax(0, 1fr); }
  .export-card { grid-template-columns: minmax(0, 1fr); }
  .export-preview { order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .controls-card { grid-template-columns: minmax(0, 1fr); }
  .garage-list { grid-template-columns: minmax(0, 1fr); }
  .garage-row { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; padding: 9px 10px; }
  .garage-row .btn-tiny { padding: 7px 10px; font-size: 12px; }
  .ctrl { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 14px; }
  .ctrl:nth-of-type(1), .ctrl:nth-of-type(2) { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 14px; }
  .ctrl:first-of-type { border-top: 0; padding-top: 4px; }
  .topbar { padding: 11px 14px; }
  .brand-text strong { font-size: 15.5px; letter-spacing: 0.1em; }
  .brand-text small { font-size: 9px; }
  .brand-domain { display: none; }
  .options { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { gap: 8px; }
  .hstat { min-width: 0; flex: 1 1 calc(50% - 8px); padding: 9px 12px; }
  .hstat b { font-size: 17px; }
  .tabs { width: 100%; }
  .tab { flex: 1 1 auto; justify-content: center; padding: 11px 14px; }
  .sticker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result-actions .btn { flex: 1 1 auto; }
  .quiz-actions .btn { flex: 1 1 auto; }
  .score-pill { display: none; }
}

@media (max-width: 520px) {
  main { padding: 14px 12px 44px; }
  .card { border-radius: 18px; }
  .mode-grid { grid-template-columns: minmax(0, 1fr); }
  .mode-card { flex-direction: row; align-items: center; gap: 12px; padding: 13px 14px; }
  .mode-card .mode-ico { font-size: 22px; }
  .mode-card .mode-name { flex: 0 0 auto; }
  .mode-card .mode-desc {
    font-size: 11.5px;
    text-align: right;
    margin-left: auto;
    max-width: 46%;
  }
  .sound-stage { gap: 12px; padding: 14px; }
  .rev-btn { width: 100%; justify-content: center; }
  .audio-status { max-width: none; }
  .badge-plate { border-radius: 24px; }
  .start-row .btn { width: 100%; }
  .segmented { width: 100%; }
  .seg-btn { flex: 1 1 auto; }
  .car-svg { border-radius: 10px; }
  .footer-line { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
