: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;
}

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: 20;
  display: grid;
  place-items: center;
  background: #050608;
  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);
  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;
}

.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 ---- */

.light-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 16;
  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.72);
  backdrop-filter: blur(12px);
  transition: opacity 200ms ease, visibility 200ms ease;
}

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

.light-preset {
  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"] {
  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.72);
  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 {
  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 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);
}

.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.72);
  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: 60px;
  right: 10px;
  z-index: 17;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 292px;
  max-width: calc(100vw - 20px);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(12, 8, 4, 0.8);
  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__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(6, 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.78;
  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(3, 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 {
  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: flex;
  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--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;
}

/* ════════════════════════════════════════════════
   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%); }
