:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  --accent: #fd6305;
  --accent-soft: rgba(253, 99, 5, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050608;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  touch-action: none; /* sprečava scroll/zoom gestove dok se prevlači po sceni na dodir ekranima */
}

canvas.is-dragging {
  cursor: grabbing;
}

/* ---- Premium mouse HUD ---- */

.premium-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 58px;
  height: 58px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 180ms ease;
  mix-blend-mode: screen;
}

body.has-premium-pointer .premium-cursor {
  opacity: 1;
}

.premium-cursor__ring,
.premium-cursor__dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.premium-cursor__ring {
  border: 1px solid rgba(253, 99, 5, 0.72);
  box-shadow:
    0 0 18px rgba(253, 99, 5, 0.38),
    inset 0 0 18px rgba(253, 99, 5, 0.12);
  transform: scale(0.82);
  transition: transform 140ms ease, border-color 140ms ease;
}

.premium-cursor__dot {
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #fff4e7;
  box-shadow: 0 0 12px rgba(253, 99, 5, 0.78);
  transform: translate(-50%, -50%);
}

body.pointer-is-down .premium-cursor__ring,
canvas.is-dragging ~ .premium-cursor .premium-cursor__ring {
  border-color: rgba(255, 244, 231, 0.92);
  transform: scale(0.58);
}

.motion-bars {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(7, 46px);
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 200ms ease, visibility 200ms ease;
}

.motion-bars span {
  position: relative;
  height: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 245, 233, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.motion-bars span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(253, 99, 5, 0.1), rgba(253, 99, 5, 0.95));
  box-shadow: 0 0 16px rgba(253, 99, 5, 0.46);
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
  transition: transform 120ms ease;
}

.motion-dots {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 15;
  display: grid;
  gap: 11px;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.motion-dots span {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 245, 233, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
  transform: scale(0.82);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.motion-dots span.is-active {
  border-color: rgba(253, 99, 5, 0.92);
  background: rgba(253, 99, 5, 0.9);
  box-shadow: 0 0 16px rgba(253, 99, 5, 0.55);
  transform: scale(1);
}

/* ---- Loading ---- */

.loading {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  /* Darken the whole viewport by 75%; keep the logo and progress fully visible. */
  background: rgba(5, 6, 8, 0.75);
  color: rgba(255, 245, 233, 0.84);
  transition: opacity 600ms ease, visibility 600ms ease;
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(400px, 80vw);
  padding: 28px;
  background: transparent;
  text-align: center;
}

.loading__title {
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

.loading__inner p {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 245, 233, 0.56);
}

.loading__track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading__bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 200ms ease;
}

.loading__sound {
  display: none;
  margin-top: 2px;
  padding: 9px 15px;
  border: 1px solid rgba(253, 99, 5, 0.48);
  border-radius: 999px;
  background: rgba(253, 99, 5, 0.12);
  color: rgba(255, 245, 233, 0.88);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.loading__sound:hover {
  border-color: rgba(253, 99, 5, 0.82);
  background: rgba(253, 99, 5, 0.22);
}

.loading__sound:active {
  transform: scale(0.97);
}

/* ---- Start screen ---- */

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(253, 99, 5, 0.12), transparent 55%),
    rgba(5, 6, 8, 0.92);
  backdrop-filter: blur(4px);
  transition: opacity 500ms ease, visibility 500ms ease;
}

.start-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-screen__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  user-select: none;
}

.start-screen__label {
  font-size: clamp(11px, 1.5vw, 14px);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
}

.start-screen__title {
  font-size: clamp(44px, 8vw, 110px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: #f7f4ee;
}

.start-screen__sub {
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 500;
  color: rgba(242, 235, 227, 0.46);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.start-screen__btn {
  margin-top: 24px;
  padding: 0 40px;
  height: 52px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.start-screen__btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ---- HUD controls hint ---- */

.hud {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.hud.is-hidden {
  opacity: 0;
  visibility: hidden;
}

body.showroom-active .hud {
  opacity: 0;
  visibility: hidden;
}

.hud.is-faded {
  opacity: 0.18;
}

.hud__controls {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ---- Movement joystick ---- */
/* Prvenstveno za tablete/telefone (touch), ali radi i mišem na desktopu
   (dimuje se i pomera pored HUD teksta umesto preko njega, vidi media query niže). */

.movement-joystick {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 16;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(12, 8, 4, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.34);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.movement-joystick.is-hidden,
body.showroom-active .movement-joystick {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.movement-joystick__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(253, 99, 5, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
  will-change: transform;
}

.movement-joystick.is-active {
  background: rgba(12, 8, 4, 0.8);
  border-color: var(--accent);
}

/* Desktop (miš, hover-capable): manji i providniji — i dalje funkcionalan klikom/drag-om. */
@media (hover: hover) and (pointer: fine) {
  .movement-joystick {
    right: 54px; /* 30px levo od početnih 24px (desktop); na dodir ekranima ostaje 24px */
    width: 96px;
    height: 96px;
    opacity: 0.75;
  }
  .movement-joystick:hover,
  .movement-joystick.is-active {
    opacity: 1;
  }
  .movement-joystick__knob {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
  }
}

/* Touch uređaji: tastaturni/miš hint (WASD, LMB...) je irelevantan, joystick uzima taj ugao */
@media (pointer: coarse) {
  .hud {
    display: none;
  }
}

.hud__row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(242, 235, 227, 0.6);
}

.hud__row span {
  margin-left: 2px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 245, 233, 0.82);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
}

/* ---- Brand label ---- */

.brand-label {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 60px));
  z-index: 5;
  padding: 8px 22px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: rgba(5, 6, 8, 0.82);
  color: rgba(255, 245, 233, 0.92);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.brand-label.is-hidden {
  opacity: 0;
  visibility: hidden;
}

body.showroom-active .brand-label,
body.showroom-active .premium-cursor,
body.showroom-active .motion-bars,
body.showroom-active .motion-dots {
  opacity: 0;
  visibility: hidden;
}

/* ---- Light panel ---- */

/* Desni gornji stub, odozgo: zvuk (top 10) → svetlo (top 60) → Quality (top 140).
   Ako se visina light panela promeni, pomeri i top kod .expo-quality. */
.light-panel {
  position: fixed;
  top: 60px;
  right: 10px;
  width: 292px;
  max-width: calc(100vw - 20px);
  z-index: 17;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(12, 8, 4, 0.54);
  backdrop-filter: blur(12px);
  transition: opacity 200ms ease, visibility 200ms ease;
}

.light-panel__presets {
  display: flex;
  gap: 5px;
}

.expo-paint-controls {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 5px 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 11px;
  color: rgba(255,245,233,.9);
}
.expo-paint-controls input { width: 100%; min-width: 0; margin: 0; accent-color: var(--accent); cursor: pointer; }
.expo-paint-controls output { text-align: right; font-variant-numeric: tabular-nums; }
.expo-paint-controls button {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.light-preset {
  flex: 1;
  font-size: 11px;
  font-family: inherit;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
}

.light-preset:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.light-preset.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 700;
}

.light-panel.is-hidden,
body.showroom-active .light-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.light-panel__label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 210, 140, 0.82);
  cursor: pointer;
}

.light-panel__label input[type="range"] {
  flex: 1;
  min-width: 0;
  width: 110px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ---- Scene A top menu ---- */

.expo-menu {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 17;
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 8, 4, 0.54);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  transition: opacity 200ms ease, visibility 200ms ease;
}

.expo-menu.is-hidden,
body.showroom-active .expo-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.expo-menu button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 245, 233, 0.86);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.expo-menu__count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #17110a;
  font-size: 9px;
  font-weight: 900;
}

.expo-menu__count[hidden] { display: none; }

.expo-menu button:hover {
  border-color: var(--accent);
  background: rgba(122, 46, 12, 0.78);
  color: #fff;
}

.expo-menu button[title] {
  border-color: rgba(253, 99, 5, 0.32);
}

.expo-menu button.is-active,
.expo-menu button[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(253, 99, 5, 0.22);
  color: #fff;
  box-shadow: 0 0 0 2px var(--accent-soft);
}

/* Guide Pro — mala PRO oznaka da se vizuelno razlikuje od klasičnog Guide dugmeta */
#menu-guide-pro {
  position: relative;
}

#menu-guide-pro::after {
  content: "PRO";
  position: absolute;
  top: -7px;
  right: -6px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #17110a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(253, 99, 5, 0.5);
  pointer-events: none;
}

.expo-sound {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 17;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 8, 4, 0.54);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  transition: opacity 200ms ease, visibility 200ms ease;
}

.expo-sound.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.showroom-active .expo-sound {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 42;
}

.expo-sound button {
  height: 34px;
  min-width: 76px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(253, 99, 5, 0.2);
  color: rgba(255, 245, 233, 0.92);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.expo-sound button[aria-pressed="false"] {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 245, 233, 0.54);
  box-shadow: none;
}

.expo-sound input {
  width: 88px;
  accent-color: var(--accent);
}

.expo-quality {
  position: fixed;
  top: var(--expo-quality-top, 230px);
  right: 10px;
  z-index: 17;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 292px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - var(--expo-quality-top, 230px) - 10px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(12, 8, 4, 0.6);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  transition: opacity 200ms ease, visibility 200ms ease;
}

.expo-quality.is-hidden,
body.showroom-active .expo-quality {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.expo-quality__summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.expo-quality__toggle {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 245, 233, 0.9);
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.expo-quality__toggle span,
.expo-quality__head > span,
.expo-quality__badge {
  color: rgba(255, 245, 233, 0.54);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expo-quality__toggle strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expo-quality__badge {
  flex: 0 0 auto;
  padding: 7px 8px;
  border: 1px solid rgba(253, 99, 5, 0.35);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(253, 99, 5, 0.14);
}

.expo-quality__panel {
  display: grid;
  gap: 9px;
}

.expo-quality:not(.is-open) .expo-quality__panel,
.expo-quality:not(.is-open) .expo-quality__toast {
  display: none;
}

.expo-quality__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.expo-quality__metrics span {
  min-width: 0;
  padding: 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 245, 233, 0.44);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expo-quality__metrics strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 245, 233, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
}

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

.expo-quality__presets button,
.expo-quality__actions button {
  height: 30px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 245, 233, 0.74);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expo-quality__presets button:hover,
.expo-quality__presets button.is-active,
.expo-quality__actions button:hover {
  border-color: var(--accent);
  background: rgba(253, 99, 5, 0.2);
  color: #fff;
}

.expo-quality__presets--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.expo-quality__glass {
  display: grid;
  gap: 6px;
}

.expo-quality__glass > span {
  color: rgba(255, 245, 233, 0.66);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Dugme stakla je obojeno bojom stila (--swatch iz JS-a), aktivno ima narandžasti prsten */
.expo-quality__glass .expo-quality__presets button[data-glass-style] {
  height: 20px;
  padding: 0 3px;
  font-size: 9px;
  letter-spacing: 0.02em;
  background: var(--swatch, rgba(255, 255, 255, 0.08));
  color: var(--swatch-text, #fff);
  border-color: rgba(255, 255, 255, 0.28);
}

.expo-quality__glass .expo-quality__presets button[data-glass-style]:hover {
  border-color: var(--accent);
  filter: brightness(1.18);
}

.expo-quality__glass .expo-quality__presets button[data-glass-style].is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.expo-quality__manual {
  display: grid;
  gap: 7px;
}

.expo-quality__manual label {
  display: grid;
  grid-template-columns: minmax(0, 82px) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: rgba(255, 245, 233, 0.66);
  font-size: 11px;
  font-weight: 700;
}

.expo-quality__manual label > span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-transform: uppercase;
}

.expo-quality__manual label > span:first-child {
  white-space: nowrap;
}

.expo-quality__manual output {
  color: var(--accent);
}

.expo-quality__manual input[type="range"] {
  min-width: 0;
  width: 100%;
  accent-color: var(--accent);
}

.expo-quality__manual select {
  min-width: 0;
  width: 100%;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 245, 233, 0.86);
  font: inherit;
  font-size: 11px;
  color-scheme: dark;
}

.expo-quality__manual select option {
  background: rgba(12, 8, 4, 0.96);
  color: rgba(255, 245, 233, 0.92);
}

.expo-quality__manual .expo-quality__check {
  grid-template-columns: 16px minmax(0, 1fr);
}

.expo-quality__check input {
  accent-color: var(--accent);
}

.expo-quality__actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.expo-quality__actions button {
  min-width: 74px;
  flex: 0 1 auto;
}

.expo-quality__toast {
  min-height: 18px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(253, 99, 5, 0.14);
  color: rgba(255, 245, 233, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.expo-quality__toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.quality-battery .premium-cursor,
body.quality-battery .motion-bars,
body.quality-battery .motion-dots {
  display: none;
}

body.quality-ui-off .premium-cursor,
body.quality-ui-off .motion-bars,
body.quality-ui-off .motion-dots {
  display: none;
}

body.quality-battery .brand-intro,
body.quality-ui-off .brand-intro,
body.quality-battery .scene-fade,
body.quality-ui-off .scene-fade {
  transition-duration: 120ms;
}

.brand-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 3, 5, 0.72);
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.brand-modal.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-modal__panel {
  width: min(1200px, calc(100vw - 40px));
  max-height: min(820px, calc(100vh - 48px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(11, 12, 15, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.brand-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: rgba(255, 245, 233, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-modal__head button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 245, 233, 0.86);
  cursor: pointer;
}

.brand-modal__head button:hover {
  border-color: var(--accent);
  background: rgba(122, 46, 12, 0.78);
}

.brand-modal__body {
  display: grid;
  grid-template-columns: 166px 1fr;
  gap: 14px;
  align-items: start;
}

.pyramid-minimap {
  display: grid;
  grid-template-columns: repeat(4, 30px);
  grid-template-rows: repeat(9, 30px);
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.pyramid-minimap button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 245, 233, 0.68);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pyramid-minimap button:hover,
.pyramid-minimap button.is-active {
  border-color: var(--accent);
  background: rgba(253, 99, 5, 0.22);
  color: #fff;
  transform: scale(1.06);
}

.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-height: calc(min(820px, 100vh - 48px) - 74px);
  overflow-y: auto;
  padding-right: 4px;
}

.brand-logo-card {
  position: relative;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(14, 16, 20, 0.82);
  backdrop-filter: blur(10px);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.brand-logo-card:hover {
  border-color: rgba(253, 99, 5, 0.55);
  background: rgba(22, 18, 12, 0.92);
  transform: translateY(-2px);
}

.brand-logo-card img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: contain;
  padding: 16px;
}

.brand-logo-card__name {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  padding: 28px 10px 0;
  background: linear-gradient(to top, rgba(8, 9, 11, 0.90) 35%, transparent 100%);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-align: center;
  text-transform: uppercase;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 39;
  display: flex;
  justify-content: flex-end;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(2, 3, 5, 0.78) 72%);
  backdrop-filter: blur(2px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.about-modal.is-hidden,
body.showroom-active .about-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.about-modal__close {
  position: fixed;
  top: 118px;
  right: 28px;
  z-index: 41;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(8, 9, 12, 0.62);
  color: rgba(255, 245, 233, 0.9);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, background 160ms ease;
}

.about-modal__close:hover {
  border-color: var(--accent);
  background: rgba(122, 46, 12, 0.78);
}

.about-modal__content {
  width: min(500px, 100vw);
  min-height: 100%;
  padding: clamp(92px, 13vh, 150px) 56px 70px 48px;
  background: rgba(5, 6, 8, 0.74);
  color: rgba(255, 245, 233, 0.82);
  box-shadow: -24px 0 90px rgba(0, 0, 0, 0.38);
  overflow-y: auto;
}

.about-card h2 {
  margin: 0 0 34px;
  color: rgba(255, 245, 233, 0.96);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 750;
  letter-spacing: 0;
}

.about-card p {
  margin: 0 0 36px;
  color: rgba(255, 245, 233, 0.72);
  font-size: 15px;
  line-height: 1.72;
  text-align: justify;
}

.about-details {
  display: grid;
  gap: 0;
  margin: 0 0 58px;
}

.about-details div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-details div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-details dt {
  color: rgba(255, 245, 233, 0.36);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.about-details dd {
  margin: 0;
  color: rgba(255, 245, 233, 0.88);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.about-details a {
  color: #a879ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-logo {
  display: block;
  width: min(260px, 78%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 18px rgba(253, 99, 5, 0.28));
}

.brand-intro {
  position: fixed;
  top: 88px;
  left: 16px;
  z-index: 18;
  width: min(390px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 8, 11, 0.82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}

.brand-intro.is-hidden,
body.showroom-active .brand-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}

.brand-intro-card {
  display: grid;
  grid-template-columns: 184px 1fr;
  gap: 18px;
  align-items: center;
}

.brand-intro-card__logo {
  width: 184px;
  height: 128px;
  object-fit: contain;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

.brand-intro-card__eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-intro-card h2 {
  margin: 0 0 6px;
  color: rgba(255, 245, 233, 0.96);
  font-size: 19px;
  line-height: 1.1;
}

.brand-intro-card__copy {
  margin: 0;
  color: rgba(255, 245, 233, 0.66);
  font-size: 12px;
  line-height: 1.48;
}

.scene-fade {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: #020305;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.scene-fade.is-active {
  opacity: 0.75;
  visibility: visible;
}

/* ---- Loading logo ---- */

.loading__logo {
  width: clamp(140px, 22vw, 220px);
  height: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 18px rgba(253, 99, 5, 0.45));
}

.loading.loading--brand .loading__logo {
  width: clamp(200px, 28vw, 320px);
  max-height: 200px;
  object-fit: contain;
  padding: 20px 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.55));
}

@media (max-width: 720px) {
  .premium-cursor,
  .motion-bars,
  .motion-dots {
    display: none;
  }

  .brand-modal__body {
    grid-template-columns: 1fr;
  }

  .pyramid-minimap {
    grid-template-columns: repeat(6, 30px);
    grid-template-rows: repeat(5, 30px);
    justify-content: center;
  }

  .brand-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-intro-card {
    grid-template-columns: 140px 1fr;
  }

  .brand-intro-card__logo {
    width: 140px;
    height: 96px;
  }
}

/* ---- Expo corner (top-left) ---- */

.expo-corner {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.expo-corner.is-hidden,
body.showroom-active .expo-corner {
  opacity: 0;
  visibility: hidden;
}

.expo-logo {
  width: clamp(180px, 20vw, 260px);
  height: auto;
  filter: drop-shadow(0 0 8px rgba(253, 99, 5, 0.35));
}

/* ---- Car info panel ---- */

.car-panel {
  pointer-events: auto;
  width: 270px;
  background: rgba(5, 6, 8, 0.90);
  border: 1px solid rgba(253, 99, 5, 0.30);
  border-radius: 10px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: opacity 280ms ease, transform 280ms ease, visibility 280ms ease;
}

.car-panel.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  pointer-events: none;
}

.car-panel__name {
  padding: 12px 14px 2px;
  font-size: 15px;
  font-weight: 700;
  color: #f7f4ee;
  letter-spacing: 0.02em;
}

.car-panel__brand {
  padding: 0 14px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.car-panel__body {
  max-height: max(120px, calc(100dvh - 380px));
  overflow-y: auto;
  padding: 8px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.car-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.5;
}

.car-panel__row-label {
  color: rgba(255, 245, 233, 0.45);
  flex-shrink: 0;
}

.car-panel__row-value {
  color: rgba(255, 245, 233, 0.88);
  text-align: right;
}

.car-panel__engines {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
  color: rgba(255, 245, 233, 0.55);
  line-height: 1.7;
}

.car-panel__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.car-panel__btn {
  flex: 1;
  height: 34px;
  border: none;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.car-panel__btn:hover { opacity: 0.85; }

.car-panel__btn:disabled {
  cursor: default;
  opacity: 0.72;
}

.car-panel__btn--garage {
  grid-column: 1 / -1;
  border: 1px solid rgba(253, 99, 5, 0.48);
  background: rgba(253, 99, 5, 0.14);
  color: rgba(255, 245, 233, 0.94);
}

.car-panel__btn--buy {
  background: var(--accent);
  color: #fff;
}

.car-panel__btn--customize {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 245, 233, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.car-panel__hint {
  padding: 5px 14px;
  background: rgba(253, 99, 5, 0.10);
  border-top: 1px solid rgba(253, 99, 5, 0.15);
  font-size: 10px;
  color: rgba(253, 99, 5, 0.65);
  text-align: center;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ---- Visual private garage ---- */

body.garage-active .expo-corner,
body.garage-active .hud,
body.garage-active .light-panel,
body.garage-active .expo-menu,
body.garage-active .expo-sound,
body.garage-active .expo-quality,
body.garage-active .brand-label,
body.garage-active .premium-cursor,
body.garage-active .motion-bars,
body.garage-active .motion-dots {
  display: none !important;
}

body.garage-active #scene { cursor: grab; }
body.garage-active #scene:active { cursor: grabbing; }
body.garage-active .movement-joystick {
  right: auto;
  left: 24px;
  bottom: 72px;
}

.garage-ui {
  position: fixed;
  inset: 0;
  z-index: 38;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.garage-ui.is-hidden,
body.showroom-active .garage-ui {
  opacity: 0;
  visibility: hidden;
}

.garage-ui__header {
  position: absolute;
  top: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.garage-ui__identity {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 11px 16px 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(5, 6, 8, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.garage-ui__identity {
  position: relative;
  border-color: rgba(253, 99, 5, 0.3);
  border-radius: 4px 16px 4px 16px;
  background: linear-gradient(120deg, rgba(19, 25, 32, 0.9), rgba(5, 6, 8, 0.83));
}

.garage-ui__identity::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -1px;
  width: 70px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(253, 99, 5, 0.55);
}

.garage-ui__identity img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.garage-ui__identity p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.garage-ui__identity h1 {
  margin: 0;
  color: rgba(255, 245, 233, 0.96);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  text-transform: uppercase;
}

.garage-ui__identity h1 span {
  margin-left: 8px;
  color: rgba(255, 245, 233, 0.42);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.garage-ui__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.garage-ui__close,
.garage-ui__photo,
.garage-selection__actions button {
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(7, 8, 11, 0.78);
  color: rgba(255, 245, 233, 0.88);
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.garage-ui__close,
.garage-ui__photo {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.garage-ui__photo {
  border-color: rgba(253, 99, 5, 0.52);
  background: rgba(253, 99, 5, 0.18);
}

.garage-ui__photo:disabled {
  opacity: 0.5;
  cursor: wait;
}

.garage-ui__close:hover,
.garage-ui__photo:hover:not(:disabled),
.garage-selection__actions button:hover {
  border-color: var(--accent);
  background: rgba(253, 99, 5, 0.2);
  color: #fff;
}

.garage-photo-status {
  position: absolute;
  top: 78px;
  right: 24px;
  max-width: min(300px, calc(100vw - 48px));
  padding: 10px 14px;
  border: 1px solid rgba(253, 99, 5, 0.3);
  border-radius: 10px;
  background: rgba(5, 6, 8, 0.86);
  color: rgba(255, 245, 233, 0.88);
  font-size: 11px;
}

.garage-photo-status[hidden] { display: none; }

.garage-loading {
  position: absolute;
  top: 122px;
  left: 50%;
  width: min(460px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid rgba(253, 99, 5, 0.25);
  border-radius: 12px;
  background: rgba(5, 6, 8, 0.8);
  color: rgba(255, 245, 233, 0.74);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.garage-loading[hidden] { display: none; }

.garage-loading__track {
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.garage-loading__track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(253, 99, 5, 0.7);
  transition: width 160ms ease;
}

.garage-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(460px, calc(100vw - 42px));
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 25px 30px;
  border: 1px solid rgba(253, 99, 5, 0.24);
  border-radius: 16px;
  background: rgba(5, 6, 8, 0.72);
  text-align: center;
  transform: translate(-50%, -38%);
  backdrop-filter: blur(12px);
}

.garage-empty[hidden] { display: none; }

.garage-empty__number {
  color: var(--accent) !important;
  font-size: 38px !important;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.14em;
}

.garage-empty strong {
  color: rgba(255, 245, 233, 0.94);
  font-size: 18px;
  text-transform: uppercase;
}

.garage-empty span:not(.garage-empty__number) {
  max-width: 390px;
  color: rgba(255, 245, 233, 0.54);
  font-size: 12px;
  line-height: 1.6;
}

.garage-selection {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(330px, calc(100vw - 48px));
  padding: 20px;
  border: 1px solid rgba(253, 99, 5, 0.3);
  border-top: 2px solid var(--accent);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(253, 99, 5, 0.14), transparent 42%),
    rgba(5, 6, 8, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
  backdrop-filter: blur(15px);
}

.garage-selection[hidden] { display: none; }

.garage-selection > p {
  margin: 0 0 5px;
  overflow: hidden;
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.garage-selection h2 {
  margin: 0 0 15px;
  overflow: hidden;
  color: rgba(255, 245, 233, 0.96);
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.garage-selection__specs {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.garage-selection__spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
}

.garage-selection__spec span { color: rgba(255, 245, 233, 0.4); }
.garage-selection__spec strong {
  overflow: hidden;
  color: rgba(255, 245, 233, 0.82);
  font-weight: 650;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.garage-selection__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.garage-selection__actions button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 9px;
}

#garage-configure {
  border-color: rgba(253, 99, 5, 0.52);
  background: rgba(253, 99, 5, 0.18);
}

#garage-remove {
  grid-column: 1 / -1;
  min-height: 30px;
  color: rgba(255, 245, 233, 0.45);
}

.garage-ui__hint {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(5, 6, 8, 0.66);
  color: rgba(255, 245, 233, 0.52);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.garage-ui__hint span { display: flex; align-items: center; gap: 4px; }
.garage-ui__hint kbd {
  min-width: 20px;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 245, 233, 0.78);
  font: inherit;
  text-align: center;
}

@media (max-width: 900px) {
  .expo-menu {
    max-width: calc(100vw - 20px);
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .expo-menu::-webkit-scrollbar { display: none; }
}

@media (max-width: 600px) {
  .garage-ui__header { top: 10px; left: 10px; right: 10px; gap: 8px; }
  .garage-ui__identity { gap: 8px; padding: 8px 10px 8px 8px; }
  .garage-ui__identity img { width: 38px; height: 38px; }
  .garage-ui__identity h1 { font-size: 18px; }
  .garage-ui__identity h1 span { display: block; margin: 4px 0 0; }
  .garage-ui__identity p { display: none; }
  .garage-ui__actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .garage-ui__close, .garage-ui__photo { height: 32px; padding: 0 12px; font-size: 9px; }
  .garage-loading { top: 94px; }
  .garage-photo-status { top: 94px; right: 10px; max-width: calc(100vw - 20px); }
  .garage-selection { right: 10px; bottom: 10px; width: min(315px, calc(100vw - 20px)); padding: 15px; }
  .garage-ui__hint { display: none; }
  body.garage-active .movement-joystick { left: 10px; bottom: 10px; }
}

/* ════════════════════════════════════════════════
   SHOWROOM (Scene B) — kia2 style
   Svi paneli skriveni; vidljivi samo kad body.showroom-active
   ════════════════════════════════════════════════ */

/* Shared kia2 component styles (used inside sr- panels) */

.material-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(250, 247, 241, 0.92);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.material-panel__head button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(250, 247, 241, 0.9);
  cursor: pointer;
}

.material-panel__head button:hover {
  border-color: var(--accent);
  background: rgba(122, 46, 12, 0.78);
}

.material-control {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.material-control--scene {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.material-control span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(242, 235, 227, 0.74);
  font-size: 12px;
  font-weight: 600;
}

.material-control output {
  min-width: 38px;
  color: rgba(255, 245, 233, 0.9);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.material-control input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.material-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.material-controls-grid .material-control {
  margin-top: 8px;
}

.fx-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  margin-top: 9px;
  color: rgba(242, 235, 227, 0.8);
  font-size: 12px;
  font-weight: 650;
}

.fx-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.section-label {
  margin-top: 12px;
  margin-bottom: 6px;
  color: rgba(242, 235, 227, 0.48);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-label--sep {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.preset-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.preset-buttons button {
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(250, 247, 241, 0.82);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.preset-buttons button:hover,
.preset-buttons button.is-active {
  border-color: var(--accent);
  background: rgba(122, 46, 12, 0.78);
  color: #fff;
}

.scene-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.scene-row > span {
  flex-shrink: 0;
  width: 54px;
  color: rgba(242, 235, 227, 0.50);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scene-row .preset-buttons { flex: 1; }

.rim-label {
  color: rgba(242, 235, 227, 0.46);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-right: 2px;
}

.color-picker {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- Showroom transition overlay ---- */

.sr-loading {
  position: fixed;
  inset: 0;
  z-index: 280;
  background:
    radial-gradient(circle at 50% 42%, rgba(253, 99, 5, 0.10), transparent 38%),
    #08090b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateZ(0);
  transition: opacity 280ms ease, visibility 280ms ease;
}

.sr-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sr-loading__logo {
  width: clamp(120px, 16vw, 180px);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 18px rgba(253, 99, 5, 0.42));
  animation: sr-logo-pulse 2s ease-in-out infinite;
}

@keyframes sr-logo-pulse {
  0%, 100% { opacity: 0.82; }
  50%       { opacity: 1;    }
}

.sr-loading__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 245, 233, 0.45);
}

.sr-loading__track {
  width: min(420px, calc(100vw - 64px));
  height: 3px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(253, 99, 5, 0.08);
}

.sr-loading__bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(253, 99, 5, 0.55), var(--accent), rgba(255, 206, 160, 0.92));
  border-radius: inherit;
  transition: width 180ms ease;
  box-shadow: 0 0 18px rgba(253, 99, 5, 0.46);
}

.sr-loading__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(420px, calc(100vw - 64px));
  margin: -8px 0 0;
  color: rgba(255, 245, 233, 0.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sr-loading__meta span:first-child {
  color: rgba(255, 245, 233, 0.74);
}

.sr-loading__meta span:last-child {
  color: var(--accent);
}

/* ── Base: all sr-panels hidden ── */

.sr-panel {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Visible when showroom is active ── */

body.showroom-active .sr-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.showroom-active .sr-exit-block,
body.showroom-active .sr-brand-block,
body.showroom-active .sr-material-panel,
body.showroom-active .sr-postfx-panel {
  display: block !important;
}

body.showroom-active .sr-model-nav,
body.showroom-active .sr-controls,
body.showroom-active .sr-rim-swatches,
body.showroom-active .sr-paint-swatches {
  display: flex !important;
}

body.showroom-active .sr-camera-presets {
  display: grid !important;
}

/* ── Exit / close button (top right) ── */

.sr-exit-block {
  position: fixed;
  top: 65px;
  right: 10px;
  z-index: 40;
  pointer-events: auto;
}

.sr-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(13, 14, 17, 0.72);
  color: rgba(250, 247, 241, 0.82);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.sr-back-btn:hover {
  border-color: var(--accent);
  background: rgba(122, 46, 12, 0.78);
  color: #fff;
}

.sr-back-btn--close {
  background: rgba(160, 18, 18, 0.78);
  border-color: rgba(220, 55, 55, 0.55);
  color: #fff;
}

.sr-back-btn--close:hover {
  background: rgba(210, 20, 20, 0.94);
  border-color: rgba(255, 80, 80, 0.88);
}

/* ── Brand block: logo + model + brand (top left) ── */

.sr-brand-block {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 31;
  max-width: min(360px, calc(100vw - 36px));
  pointer-events: auto;
  text-transform: uppercase;
  text-shadow: 0 10px 44px rgba(0, 0, 0, 0.7);
}

.sr-exit-logo {
  display: block;
  height: 68px;
  width: auto;
  object-fit: contain;
  opacity: 0.88;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease;
}

.sr-exit-logo:hover,
.sr-exit-logo:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.sr-brand-block p {
  margin: 0;
  color: var(--accent);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 600;
}

.sr-brand-block h1 {
  margin: 0;
  color: #f7f4ee;
  font-size: clamp(32px, 6.4vw, 86px);
  font-weight: 650;
  line-height: 0.92;
}

/* ── Model switcher (top center) ── */

.sr-model-nav {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 31;
  align-items: center;
  gap: 8px;
  padding: 8px;
  width: min(864px, calc(100vw - 610px));
  min-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(13, 14, 17, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.sr-model-switcher {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.sr-model-switcher::-webkit-scrollbar { display: none; }

.sr-model-scroll {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(253, 99, 5, 0.42);
  border-radius: 50%;
  background: rgba(253, 99, 5, 0.18);
  color: rgba(255, 245, 233, 0.9);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(253, 99, 5, 0.08), 0 0 16px rgba(253, 99, 5, 0.18);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.sr-model-scroll:hover {
  border-color: var(--accent);
  background: rgba(122, 46, 12, 0.78);
  color: #fff;
}

.sr-model-scroll:disabled {
  opacity: 0.28;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 245, 233, 0.44);
  box-shadow: none;
}

.sr-model-switcher button {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(250, 247, 241, 0.86);
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease;
}

.sr-model-switcher button:hover,
.sr-model-switcher button.is-active {
  border-color: var(--accent);
  background: rgba(122, 46, 12, 0.78);
  color: #fff;
}

@media (max-width: 1180px) {
  .sr-model-nav {
    top: 114px;
    width: min(760px, calc(100vw - 32px));
  }
}

/* ── Material panel (left) ── */

.sr-material-panel {
  position: fixed;
  top: clamp(152px, 20vw, 220px);
  left: 10px;
  z-index: 31;
  width: min(300px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(13, 14, 17, 0.75);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

/* ── PostFX panel (right) ── */

.sr-postfx-panel {
  position: fixed;
  top: clamp(82px, 8vw, 104px);
  right: 10px;
  z-index: 31;
  width: min(250px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(13, 14, 17, 0.75);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

/* ── Camera controls (bottom right) ── */

.sr-controls {
  position: fixed;
  right: 10px;
  bottom: clamp(222px, 25vw, 256px);
  z-index: 31;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.controls__row {
  display: flex;
  gap: 6px;
}

.controls__row--tools { opacity: 0.82; }

#sr-anim-toggle.is-hidden {
  display: none;
}

.sr-controls button {
  min-width: 62px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 16, 19, 0.72);
  color: rgba(250, 247, 241, 0.92);
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background 160ms ease, border-color 160ms ease;
}

.sr-controls button:hover,
.sr-controls button[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(122, 46, 12, 0.78);
}

/* ── Camera presets (bottom right) ── */

.sr-camera-presets {
  position: fixed;
  right: 10px;
  bottom: clamp(120px, 14vw, 148px);
  z-index: 31;
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 6px;
}

.sr-camera-presets button {
  width: 58px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 16, 19, 0.72);
  color: rgba(250, 247, 241, 0.92);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background 160ms ease, border-color 160ms ease;
}

.sr-camera-presets button:hover,
.sr-camera-presets button.is-active {
  border-color: var(--accent);
  background: rgba(122, 46, 12, 0.78);
}

/* ── Rim swatches ── */

.sr-rim-swatches {
  position: fixed;
  right: 10px;
  bottom: 68px;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(13, 14, 17, 0.66);
  backdrop-filter: blur(14px);
}

.sr-rim-swatch {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.38), transparent 26%),
    var(--swatch-color);
  box-shadow: inset 0 -5px 10px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.sr-rim-swatch:hover { border-color: var(--accent); transform: translateY(-1px); }

.sr-rim-swatch.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 -5px 10px rgba(0,0,0,0.3), 0 0 0 2px var(--accent-soft), 0 6px 16px rgba(0,0,0,0.4);
}

/* ── Paint swatches (bottom) ── */

.sr-paint-swatches {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(13, 14, 17, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.sr-swatch {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.42), transparent 28%),
    var(--swatch-color);
  box-shadow: inset 0 -8px 14px rgba(0,0,0,0.26), 0 8px 20px rgba(0,0,0,0.34);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.sr-swatch:hover { border-color: var(--accent); transform: translateY(-1px); }

.sr-swatch.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 -8px 14px rgba(0,0,0,0.26), 0 0 0 3px var(--accent-soft), 0 10px 26px rgba(0,0,0,0.42);
}

.swatch--custom {
  position: relative;
  overflow: hidden;
}

.swatch--custom::before,
.swatch--custom::after {
  content: "";
  position: absolute;
  background: var(--accent);
  pointer-events: none;
}

.swatch--custom::before { width: 12px; height: 2px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.swatch--custom::after  { width: 2px; height: 12px; left: 50%; top: 50%; transform: translate(-50%,-50%); }

/* Pro configurator: direct choices, with technical controls kept in a drawer. */
body.showroom-active .studio-config { display:block!important; }
.studio-config { position:fixed;left:18px;top:124px;width:270px;max-height:calc(100dvh - 148px);overflow:auto;z-index:35;padding:18px;border:1px solid #ffffff22;border-radius:16px;background:rgba(16,18,21,.94);box-shadow:0 16px 50px #0005;box-sizing:border-box;color:#f2f2ee; }
.studio-config__head { display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:700; }
.studio-config h2 { font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#b4b8be;margin:0 0 10px; }
.studio-config__section { margin-top:19px; }
.studio-config button,.studio-advanced button { cursor:pointer; }
.studio-config__head button,.studio-config__actions button,.studio-ambiences button { border:1px solid #ffffff26;border-radius:8px;background:#ffffff08;color:inherit;font-size:11px;padding:9px 10px; }
.studio-config button:hover,.studio-config button.is-active { border-color:#fa6505;background:#9d3b102e; }
.studio-config button:focus-visible,.studio-config summary:focus-visible { outline:2px solid #ff8b3d;outline-offset:3px; }
.studio-config button:disabled { opacity:.35;cursor:default; }
.studio-config__actions { display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:22px; }
#sr-config-save { background:#e75c00;border-color:#e75c00;color:white; }
#sr-config-status { font-size:11px;line-height:1.5;color:#aeb5bd;margin:12px 0 0;min-height:30px; }
#sr-share-link { width:100%;margin-top:8px;font-size:11px;color:#eee;background:#151515;border:1px solid #777;padding:8px;box-sizing:border-box; }
.studio-ambiences { display:flex;gap:5px; }
.studio-config .sr-paint-swatches,.studio-config .sr-rim-swatches { position:static;transform:none;width:auto;padding:0;border:0;background:none;backdrop-filter:none;flex-wrap:wrap;justify-content:flex-start;gap:7px;box-shadow:none; }
.studio-config .sr-swatch { width:28px;height:28px;flex:0 0 28px; }
.studio-config .sr-rim-swatch { width:26px;height:26px;flex:0 0 26px; }
.studio-config .rim-label { display:none; }
.studio-config .preset-buttons { display:grid;grid-template-columns:repeat(4,1fr);gap:4px; }
.studio-config .preset-buttons button { min-width:0;padding:8px 3px;font-size:10px; }
.studio-advanced { position:fixed;right:18px;top:116px;width:294px;max-height:calc(100dvh - 136px);overflow:auto;z-index:40;border:1px solid #ffffff26;border-radius:14px;background:#121418f5;padding:10px; }
.studio-advanced[hidden] { display:none!important; }
.studio-advanced .sr-material-panel,.studio-advanced .sr-postfx-panel { position:static;width:auto;max-width:none;padding:12px;box-shadow:none;backdrop-filter:none;border:0;background:none; }
.studio-advanced .sr-material-panel > .section-label:first-of-type { display:none; }
body:not(.showroom-active) .studio-advanced { display:none; }
body.showroom-active .sr-brand-block { top:14px;left:18px;max-width:235px; }
body.showroom-active .sr-brand-block h1 { font-size:20px;line-height:1.15;margin-top:5px; }
body.showroom-active .sr-exit-logo { max-width:90px;max-height:42px;object-fit:contain; }
body.showroom-active .sr-model-nav { left:310px;right:190px;top:20px;width:auto;max-width:none;transform:none; }
body.showroom-active .sr-exit-block { top:23px;right:18px; }
body.showroom-active .sr-controls { bottom:96px;right:18px; }
body.showroom-active .sr-camera-presets { bottom:20px;right:18px;grid-template-columns:repeat(6,44px); }
body.showroom-active .sr-camera-presets button { width:44px;height:34px; }
body.showroom-active .studio-advanced .expo-sound { position:static;display:flex;flex-wrap:wrap;margin-bottom:12px; }
@media(max-width:800px) {
 .studio-config { left:10px;right:10px;top:auto;bottom:10px;width:auto;max-height:35dvh;padding:12px 16px; }
 .studio-config__section { margin-top:12px; }
 body.showroom-active .sr-model-nav { top:72px;left:10px;right:10px; }
 body.showroom-active .sr-brand-block h1 { font-size:16px; }
 body.showroom-active .sr-controls { bottom:calc(35dvh + 52px);right:10px; }
 body.showroom-active .sr-camera-presets { bottom:calc(35dvh + 14px);right:10px; }
 .studio-advanced { top:116px;right:10px;max-height:calc(65dvh - 126px);width:min(294px,calc(100vw - 44px)); }
}

/* Test drive owns the screen and a separate renderer only while it is open. */
.expo-test-drive { position: fixed; inset: 0; z-index: 20000; background: #080e14; display: flex; flex-direction: column; }
.expo-test-drive[hidden] { display: none; }
.expo-test-drive > header { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 18px; background: #101317; border-bottom: 1px solid #ff69003d; color: #fff1e4; }
.expo-test-drive > header strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expo-test-drive > header button { flex-shrink: 0; border: 1px solid #ff6900; border-radius: 20px; padding: 9px 15px; background: #2b180d; color: #fff1e4; font-weight: 700; cursor: pointer; }
.expo-test-drive > iframe { width: 100%; flex: 1; min-height: 0; border: 0; }
.expo-test-drive__status { position: absolute; z-index: 1; top: 52px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 10px 16px; border-radius: 10px; background: #101317ed; color: #ffb777; font-size: 12px; text-align: center; pointer-events: none; }
.test-drive-active > #scene, .test-drive-active > .garage-ui, .test-drive-active > .expo-menu, .test-drive-active > .showroom-ui { visibility: hidden; }
.car-panel__btn--drive { grid-column: 1 / -1; border: 1px solid #ff6900; background: #ff690022; }
#sr-test-drive { width: 100%; margin: 8px 0 12px; border: 1px solid #ff6900; padding: 11px; border-radius: 8px; background: #ff69001a; color: #fff1e4; cursor: pointer; font-weight: 700; }
#garage-test-drive { border-color: #ff6900; color: #ffb777; }
#garage-remove { grid-column: auto; }
@media(max-width: 600px) { .expo-test-drive > header { padding: 7px 10px; } .expo-test-drive > header strong { font-size: 11px; } }

/* Use the standard dark frame; keep Denza's wordmark above its caption. */
.brand-logo-card[data-brand="denza"] img { object-position:center calc(50% - 8px); }
.brand-logo-card[data-brand="denza"] .brand-logo-card__name { padding-top:0; }
.brand-intro-card__logo[src$="denza.png"],
.brand-intro-card__logo[src$="f1.svg"] { background:#fff; }

/* Formula 1 is an inspection studio; vehicle appearance is locked. */
body.studio-view-only #sr-config-panel,
body.studio-view-only #sr-advanced-panel,
body.studio-view-only #sr-light-toggle,
body.studio-view-only #sr-anim-toggle { display:none!important; }
#sr-view-only-note { position:absolute;top:124px;left:18px;width:268px;padding:14px 16px;border:1px solid #fd63054d;border-radius:12px;background:#101519d9;color:#f4e9df;font-size:12px;line-height:1.6;pointer-events:none; }
#sr-view-only-note[hidden] { display:none; }
