/* ============================================
   Big Car Weekend — Main Stylesheet
   ============================================ */

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

:root {
  --orange-hot: #E8530E;
  --orange-warm: #F27B35;
  --amber-gold: #F5A623;
  --cream: #FDF5E6;
  --cream-dark: #F0E6D0;
  --charcoal: #1A1A18;
  --charcoal-mid: #2A2A28;
  --charcoal-light: #3A3A38;
  --rust: #8B3A1A;
  --text-dark: #1A1A18;
  --text-muted: #5C564E;
  --text-light: #9A9288;
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--orange-hot) var(--charcoal);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth, .lenis.lenis-smooth [data-lenis-prevent] { scroll-behavior: auto; }
/* Webkit scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb {
  background: var(--orange-hot);
  border-radius: 5px;
  border: 2px solid var(--charcoal);
}
::-webkit-scrollbar-thumb:hover { background: var(--orange-warm); }

body {
  background: var(--cream); color: var(--text-dark);
  font-family: var(--font-body); line-height: 1.6; overflow-x: hidden;
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid var(--orange-hot);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--amber-gold); outline-offset: 2px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 3rem;
  background: rgba(26,26,24,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(253,245,230,0.06);
  transition: all 0.6s var(--ease-out-expo);
}
.nav.scrolled { background: rgba(26,26,24,0.95); }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
.nav-logo span {
  font-family: var(--font-display); font-size: 1.4rem;
  letter-spacing: 0.08em; color: var(--cream); transition: color 0.4s;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; color: rgba(253,245,230,0.8); transition: color 0.3s; position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--amber-gold);
  transition: width 0.3s var(--ease-out-expo);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:hover { color: var(--amber-gold); }
.nav-cta {
  background: var(--orange-hot) !important; color: var(--cream) !important;
  padding: 0.65rem 1.5rem !important; border-radius: 6px;
  font-weight: 600 !important; transition: all 0.4s var(--ease-out-expo) !important;
  box-shadow: 0 2px 8px rgba(232,83,14,0.25);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav-cta:hover { background: var(--rust) !important; transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(232,83,14,0.35) !important; }
.nav-cta i { width: 16px; height: 16px; }
.nav-mobile-toggle { display: none; background: none; border: none; color: var(--cream); cursor: pointer; padding: 0.5rem; width: 40px; height: 40px; position: relative; z-index: 301; }
.nav-sidebar { display: none; }
.hamburger-bars { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 100%; height: 100%; }
.hamburger-bars span {
  display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.nav-mobile-toggle.active .hamburger-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.active .hamburger-bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-toggle.active .hamburger-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero-3d {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: auto 1fr; gap: 0;
  overflow: hidden; background: var(--charcoal);
}
.hero-3d::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(125deg, transparent 28%, rgba(232,83,14,0.1) 28%, rgba(232,83,14,0.1) 34%, transparent 34%),
    linear-gradient(125deg, transparent 42%, rgba(245,166,35,0.07) 42%, rgba(245,166,35,0.07) 50%, transparent 50%),
    linear-gradient(125deg, transparent 58%, rgba(242,123,53,0.05) 58%, rgba(242,123,53,0.05) 68%, transparent 68%);
  pointer-events: none; z-index: 1;
}
.hero-3d-content {
  position: relative; z-index: 3; padding: 6rem 1rem 2rem 3rem;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
}
.hero-presented {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(253,245,230,0.8); margin-bottom: 1.5rem;
  line-height: 1.8;
}
.hero-presented-logo-link {
  flex-shrink: 0; line-height: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.hero-presented-logo-link:hover {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(245,166,35,0.5));
}
.hero-presented-logo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover;
}
.hero-logo-wrap {
  position: relative;
  width: min(30vw, 40vh, 440px); height: min(30vw, 40vh, 440px); margin-bottom: 1.5rem;
}
.hero-logo {
  width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
  filter: drop-shadow(0 8px 32px rgba(232,83,14,0.4));
}
.hero-logo-kim {
  display: none;
}
@keyframes logoCrossfade {
  0%, 10% { opacity: 1; filter: blur(0); }
  45%, 55% { opacity: 0; filter: blur(6px); }
  90%, 100% { opacity: 1; filter: blur(0); }
}
@keyframes logoCrossfadeAlt {
  0%, 10% { opacity: 0; filter: blur(6px); }
  45%, 55% { opacity: 1; filter: blur(0); }
  90%, 100% { opacity: 0; filter: blur(6px); }
}
.hero-date {
  font-family: Helvetica, Arial, sans-serif; font-size: 2rem; font-weight: 700;
  color: var(--amber-gold); margin: 0.5rem 0 0.5rem;
}
.hero-venue {
  font-family: var(--font-body); font-size: 0.95rem;
  color: rgba(253,245,230,0.75); margin-top: 0.5rem; margin-bottom: 0.5rem;
  display: flex; align-items: flex-start; gap: 0.4rem;
}
.hero-venue i { width: 14px; height: 14px; flex-shrink: 0; margin-top: 0.2em; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-charity {
  font-family: var(--font-body);
  font-size: 0.95rem; color: rgba(253,245,230,0.75); margin-top: 1.2rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.hero-charity i { width: 14px; height: 14px; flex-shrink: 0; }

/* Hero photo mosaic */
.hero-mosaic {
  position: relative; z-index: 2; min-width: 0; min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 8px;
  padding: 90px 12px 12px 0;
  overflow: hidden;
}
.mosaic-item {
  border-radius: 12px; overflow: hidden; position: relative; min-width: 0; min-height: 0;
}
.mosaic-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.mosaic-item.mosaic-large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.hero-mosaic::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 120px;
  background: linear-gradient(90deg, var(--charcoal) 0%, transparent 100%);
  z-index: 4; pointer-events: none;
}

/* ===== 3D CAR VIEWPORT (embedded in info section) ===== */
.info-3d-viewport {
  position: relative; width: 100%; height: 100%; min-height: 400px;
  border-radius: 20px; overflow: hidden;
  background: var(--charcoal-mid);
}
.info-3d-viewport canvas {
  width: 100% !important; height: 100% !important; display: block;
}
.car-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  color: rgba(253,245,230,0.3); font-size: 0.85rem; font-family: var(--font-body);
  z-index: 5;
}
.car-loading-spinner {
  width: 40px; height: 40px; border: 3px solid rgba(253,245,230,0.1);
  border-top-color: var(--orange-hot); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.car-controls {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  z-index: 10; display: flex; flex-direction: column; gap: 0.6rem;
}
.car-control-btn {
  width: 44px; height: 44px;
  background: rgba(26,26,24,0.5); backdrop-filter: blur(8px);
  color: rgba(253,245,230,0.5); border: 1px solid rgba(253,245,230,0.1);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease-out-expo);
  padding: 0;
}
.car-control-btn i { width: 18px; height: 18px; }
.car-control-btn:hover {
  background: rgba(232,83,14,0.7); border-color: var(--orange-hot);
  color: var(--cream); transform: scale(1.1);
}
.car-control-btn.active {
  background: rgba(232,83,14,0.6); border-color: var(--orange-hot);
  color: var(--cream);
}
.interact-hint {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500; font-family: var(--font-body);
  color: rgba(253,245,230,0.3); letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.5s;
}
.interact-hint i { width: 14px; height: 14px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--orange-hot); color: var(--cream);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  padding: 1rem 2rem; border: none; border-radius: 8px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(232,83,14,0.3);
  transition: all 0.4s var(--ease-out-expo); position: relative; overflow: hidden;
}
.btn-primary:hover { background: var(--rust); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(232,83,14,0.4); }
.btn-primary i { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out-expo); }
.btn-primary:hover i { transform: translateX(3px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--cream);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  padding: 1rem 2rem; border: 2px solid rgba(253,245,230,0.3);
  border-radius: 8px; cursor: pointer; transition: all 0.4s var(--ease-out-expo); text-decoration: none;
}
.btn-secondary:hover { border-color: var(--cream); background: rgba(253,245,230,0.08); transform: translateY(-2px); }
.btn-secondary i { width: 18px; height: 18px; }

/* ===== SECTION SHARED ===== */
.section-label {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange-warm); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.section-label i { width: 14px; height: 14px; }
.section-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.03em; line-height: 1; color: var(--charcoal); margin-bottom: 1rem;
}
.section-subtitle {
  font-family: var(--font-heading); font-size: 1.15rem; font-style: italic;
  color: var(--text-muted); max-width: 500px;
}

/* ===== WHAT'S ON ===== */
.whats-on {
  background: #1E1610; color: var(--cream); padding: 7rem 3rem;
  position: relative; overflow: hidden;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--orange-hot), var(--amber-gold), transparent) 1;
}
.whats-on::before {
  content: ''; position: absolute; inset: 0;
  background: url('../../assets/images/kimberley-building.jpg') center/cover no-repeat;
  opacity: 0.28;
}
.whats-on::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,22,16,0.95) 0%, rgba(30,22,16,0.7) 30%, rgba(30,22,16,0.7) 70%, rgba(30,22,16,0.95) 100%);
}
.whats-on > * { position: relative; z-index: 1; }
.whats-on .section-label { color: var(--amber-gold); }
.whats-on .section-title { color: var(--cream); }
.whats-on .section-subtitle { color: rgba(253,245,230,0.75); }
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.schedule-card {
  background: linear-gradient(165deg, var(--charcoal-mid), var(--charcoal-light));
  border-radius: 20px; overflow: hidden; transition: all 0.5s var(--ease-out-expo);
}
.schedule-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.schedule-card-header {
  padding: 1.75rem 1.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(232,83,14,0.15), rgba(245,166,35,0.08));
  border-bottom: 1px solid rgba(253,245,230,0.06); position: relative;
}
.schedule-card-header::after {
  content: ''; position: absolute; bottom: -1px; left: 1.75rem; right: 1.75rem; height: 1px;
  background: linear-gradient(90deg, var(--orange-hot), var(--amber-gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out-expo);
}
.schedule-card:hover .schedule-card-header::after { transform: scaleX(1); }
.schedule-card-number {
  font-family: var(--font-display); font-size: 4rem; line-height: 1;
  color: rgba(253,245,230,0.06); position: absolute; top: 0.75rem; right: 1.25rem;
  transition: color 0.5s;
}
.schedule-card:hover .schedule-card-number { color: rgba(253,245,230,0.1); }
.schedule-day { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.08em; color: var(--cream); }
.schedule-time {
  font-family: var(--font-body); font-size: 0.85rem; color: rgba(253,245,230,0.4);
  margin-top: 0.15rem; display: flex; align-items: center; gap: 0.35rem;
}
.schedule-time i { width: 13px; height: 13px; }
.schedule-card-body { padding: 1.5rem 1.75rem 1.75rem; }
.schedule-item {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0;
  font-size: 0.95rem; color: rgba(253,245,230,0.8);
  border-bottom: 1px solid rgba(253,245,230,0.04);
  transition: transform 0.3s var(--ease-out-expo), color 0.3s;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item:hover { transform: translateX(6px); color: var(--cream); }
.schedule-item-icon {
  width: 36px; height: 36px; background: rgba(232,83,14,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--orange-warm); transition: all 0.4s var(--ease-out-expo);
}
.schedule-item-icon i { width: 18px; height: 18px; }
.schedule-item:hover .schedule-item-icon { background: rgba(232,83,14,0.2); transform: scale(1.1) rotate(-5deg); }
.schedule-card.info-card-alt {
  background: linear-gradient(165deg, rgba(232,83,14,0.12), rgba(245,166,35,0.06));
  border: 1px solid rgba(245,166,35,0.15);
}
.schedule-card.info-card-alt .schedule-card-header { background: rgba(245,166,35,0.08); }
.schedule-card.info-card-alt .schedule-item-icon { background: rgba(245,166,35,0.15); color: var(--amber-gold); }

/* ===== TICKETS ===== */
.tickets { text-align: center; padding: 7rem 3rem; position: relative; overflow: hidden; }
.tickets::before {
  content: ''; position: absolute; top: 0; right: -100px; bottom: 0; width: 400px; opacity: 0.03;
  background: repeating-linear-gradient(-45deg, var(--charcoal) 0px, var(--charcoal) 4px, transparent 4px, transparent 12px);
  pointer-events: none;
}
.ticket-split {
  display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; margin-top: 3rem; align-items: stretch;
}
.ticket-cards-col { display: flex; flex-direction: column; gap: 2rem; }
.ticket-card {
  background: white; border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.06);
  transition: all 0.5s var(--ease-out-expo); display: flex; flex-direction: column; text-align: left;
  position: relative; z-index: 1;
}
.ticket-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 60px rgba(0,0,0,0.1); }
.ticket-card.featured { box-shadow: 0 1px 3px rgba(232,83,14,0.08), 0 12px 40px rgba(232,83,14,0.12); border: 2px solid var(--orange-hot); }
.ticket-card.featured:hover { box-shadow: 0 24px 60px rgba(232,83,14,0.18); }
.ticket-card-top { background: var(--charcoal); padding: 2rem 2rem 1.5rem; position: relative; }
.ticket-card.featured .ticket-card-top { background: linear-gradient(135deg, var(--orange-hot), var(--rust)); }
.ticket-badge {
  position: absolute; top: 1rem; right: 1rem; background: var(--amber-gold); color: var(--charcoal);
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 20px;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.4); } 50% { box-shadow: 0 0 0 6px rgba(245,166,35,0); } }
.ticket-day { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.06em; color: var(--cream); }
.ticket-date { font-family: var(--font-heading); font-style: italic; font-size: 0.95rem; color: rgba(253,245,230,0.5); }
.ticket-tear { height: 0; position: relative; margin: 0 1rem; border: none; border-top: 2px dashed rgba(26,26,24,0.1); }
.ticket-tear::before, .ticket-tear::after { content: ''; position: absolute; top: -12px; width: 24px; height: 24px; background: var(--cream); border-radius: 50%; }
.ticket-tear::before { left: -24px; } .ticket-tear::after { right: -24px; }
.ticket-card-body { padding: 1.75rem 2rem 2rem; display: flex; flex-direction: column; flex: 1; }
.ticket-price-row { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.25rem; }
.ticket-price { font-family: var(--font-display); font-size: 4rem; color: var(--orange-hot); line-height: 1; }
.ticket-price-label { font-family: var(--font-body); font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.ticket-door-price {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; padding: 0.6rem 0.85rem;
  background: var(--cream); border-radius: 8px; display: flex; align-items: center; gap: 0.4rem;
}
.ticket-door-price i { width: 14px; height: 14px; color: var(--text-light); flex-shrink: 0; }
.ticket-door-price s { color: var(--text-light); }
.ticket-door-price .save-tag { margin-left: auto; color: var(--orange-hot); font-weight: 700; font-size: 0.8rem; }
.ticket-features { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.ticket-features li {
  padding: 0.45rem 0; font-size: 0.9rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.6rem; transition: transform 0.3s var(--ease-out-expo);
}
.ticket-features li:hover { transform: translateX(4px); color: var(--text-dark); }
.ticket-features li i { width: 16px; height: 16px; color: var(--orange-hot); flex-shrink: 0; transition: transform 0.3s; }
.ticket-features li:hover i { transform: scale(1.2); }
.ticket-booking-col {
  background: var(--charcoal); border-radius: 20px; position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15); z-index: 1;
}
.ticket-booking-col::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--orange-hot), var(--amber-gold));
}
.ticket-booking-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2.5rem 2rem; height: 100%;
}
.ticket-booking-logo { width: 180px; height: auto; margin-bottom: 1.5rem; border-radius: 50%; }
.ticket-booking-heading {
  font-family: var(--font-display); font-size: 2.2rem; letter-spacing: 0.06em;
  color: var(--cream); margin-bottom: 0.75rem;
}
.ticket-booking-sub {
  font-family: var(--font-body); font-size: 0.95rem; color: rgba(253,245,230,0.75);
  line-height: 1.6; margin-bottom: 1.75rem; max-width: 280px;
}
.btn-primary-lg { font-size: 1.1rem; padding: 1rem 2.25rem; width: 100%; justify-content: center; }
.ticket-booking-divider {
  display: flex; align-items: center; gap: 1rem; width: 100%; margin: 1.75rem 0;
}
.ticket-booking-divider::before, .ticket-booking-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--amber-gold);
}
.ticket-booking-divider span {
  font-family: var(--font-body); font-size: 0.75rem; color: var(--amber-gold);
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
}
.ticket-booking-qr { margin-bottom: 1.5rem; }
.ticket-booking-qr img { border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.ticket-booking-note {
  font-size: 0.8rem; color: rgba(253,245,230,0.6); display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-weight: 500;
}
.ticket-booking-note i { width: 14px; height: 14px; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,8,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 10;
  background: rgba(253,245,230,0.1); border: none; color: var(--cream); cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease-out-expo);
}
.lightbox-close:hover { background: var(--orange-hot); transform: scale(1.1); }
.lightbox-close i { width: 24px; height: 24px; }
.lightbox-content {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; max-width: 1100px; width: 90%;
  max-height: 85vh; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  transform: scale(0.92) translateY(20px); transition: transform 0.5s var(--ease-out-expo);
}
.lightbox.active .lightbox-content { transform: scale(1) translateY(0); }
.lightbox-img-wrap {
  background: var(--charcoal); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.lightbox-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.lightbox-info {
  background: var(--charcoal-mid); padding: 3rem 2.5rem; display: flex; flex-direction: column; justify-content: center;
}
.lightbox-car-year {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--amber-gold); margin-bottom: 0.5rem;
}
.lightbox-car-name {
  font-family: var(--font-display); font-size: 2.8rem; letter-spacing: 0.04em;
  color: var(--cream); line-height: 1.1; margin-bottom: 1.25rem;
}
.lightbox-car-desc {
  font-family: var(--font-body); font-size: 1.05rem; color: rgba(253,245,230,0.7);
  line-height: 1.7;
}
.lightbox-badge {
  margin-top: auto; padding-top: 2rem;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber-gold);
  display: flex; align-items: center; gap: 0.5rem;
}
.lightbox-badge i { width: 14px; height: 14px; display: flex; }
.lightbox-content {
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1), filter 0.35s cubic-bezier(0.16,1,0.3,1), transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.lightbox.transitioning .lightbox-content {
  opacity: 0; filter: blur(12px); transform: scale(0.95) translateY(10px);
}
.lightbox-slider { display: none; }
.lightbox-nav {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; padding: 0 1.5rem; pointer-events: none;
}
.lightbox-prev, .lightbox-next {
  pointer-events: auto; background: rgba(253,245,230,0.1); border: none; color: var(--cream); cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease-out-expo);
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--orange-hot); transform: scale(1.1); }
.lightbox-prev i, .lightbox-next i { width: 24px; height: 24px; }
@media (max-width: 882px) {
  .lightbox-content { grid-template-columns: 1fr; max-height: 90vh; width: 95%; }
  .lightbox-img-wrap { max-height: 45vh; }
  .lightbox-info { padding: 2rem 1.5rem; }
  .lightbox-car-name { font-size: 2rem; }
  .lightbox-nav { display: none; }
  .lightbox-slider {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    width: 70%; display: flex; align-items: center; gap: 0.75rem; z-index: 10;
  }
  .lightbox-slider input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
    background: rgba(253,245,230,0.15); border-radius: 4px; outline: none;
  }
  .lightbox-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
    background: var(--orange-hot); cursor: pointer; border: 2px solid var(--cream);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .lightbox-slider input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--orange-hot); cursor: pointer; border: 2px solid var(--cream);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .lightbox-slider-count {
    font-family: var(--font-body); font-size: 0.7rem; color: rgba(253,245,230,0.5);
    white-space: nowrap; font-weight: 500;
  }
}

/* ===== GALLERY ===== */
.gallery { background: var(--charcoal); padding: 7rem 3rem; color: var(--cream); }
.gallery .section-label { color: var(--amber-gold); } .gallery .section-title { color: var(--cream); } .gallery .section-subtitle { color: rgba(253,245,230,0.75); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 0.75rem; margin-top: 3rem; }
.gallery-more {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 16px; border: 2px dashed rgba(253,245,230,0.15);
  background: rgba(253,245,230,0.03); padding: 1rem;
}
.gallery-more span {
  font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.06em;
  color: var(--amber-gold);
}
.gallery-item { border-radius: 16px; overflow: hidden; position: relative; cursor: pointer; transition: all 0.5s var(--ease-out-expo); }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:hover { transform: scale(1.02); box-shadow: 0 12px 40px rgba(0,0,0,0.4); z-index: 2; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out-expo); }
.gallery-item:hover .gallery-img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(26,26,24,0.9));
  opacity: 0; transition: opacity 0.5s;
  display: flex; align-items: flex-end; padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-info { transform: translateY(10px); transition: transform 0.5s var(--ease-out-expo); }
.gallery-item:hover .gallery-info { transform: translateY(0); }
.gallery-car-name {
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.04em;
  color: var(--cream); line-height: 1.2;
}
.gallery-car-year {
  font-family: Helvetica, Arial, sans-serif; font-size: 0.75rem; font-weight: 700;
  color: var(--amber-gold); margin-bottom: 0.3rem;
}
.gallery-car-desc {
  font-family: var(--font-body); font-size: 0.8rem; color: rgba(253,245,230,0.7);
  line-height: 1.4;
}

/* ===== INFO ===== */
.info-section { padding: 7rem 3rem; }
.info-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; align-items: stretch; }
.info-cards-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.info-3d-col { border-radius: 20px; overflow: hidden; min-height: 400px; }
.info-card {
  background: white; border-radius: 16px; padding: 2rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.04);
  transition: all 0.5s var(--ease-out-expo); position: relative; overflow: hidden;
}
.info-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange-hot), var(--amber-gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out-expo);
}
.info-card:hover::after { transform: scaleX(1); }
.info-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.info-icon {
  width: 52px; height: 52px; background: linear-gradient(135deg, var(--orange-hot), var(--orange-warm));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: white; box-shadow: 0 4px 12px rgba(232,83,14,0.2);
  transition: all 0.5s var(--ease-out-expo);
}
.info-icon i { width: 24px; height: 24px; }
.info-card:hover .info-icon { transform: scale(1.1) rotate(-5deg); }
.info-title { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.info-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ===== MAP ===== */
.map-section { background: var(--cream-dark); padding: 7rem 3rem; }
.map-wrapper { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; margin-top: 3rem; align-items: stretch; }
.map-embed {
  background: var(--charcoal); border-radius: 20px; min-height: 380px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.map-embed { position: relative; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-overlay {
  position: absolute; inset: 0; z-index: 2; cursor: pointer;
  background: rgba(26,26,24,0.25); border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s, visibility 0.4s;
}
.map-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.map-overlay-pill {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(26,26,24,0.85); backdrop-filter: blur(8px);
  color: var(--cream); font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.7rem 1.4rem; border-radius: 50px;
  border: 1px solid rgba(253,245,230,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: pillPulse 2.5s ease-in-out infinite;
  transition: all 0.3s var(--ease-out-expo);
}
.map-overlay:hover .map-overlay-pill {
  background: var(--orange-hot); border-color: var(--orange-hot);
  transform: scale(1.05); box-shadow: 0 6px 24px rgba(232,83,14,0.4);
}
.map-overlay-pill i { width: 16px; height: 16px; }
@keyframes pillPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 0 rgba(232,83,14,0.3); }
  50% { box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 8px rgba(232,83,14,0); }
}
.map-info { display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; }
.map-info-card {
  background: white; border-radius: 16px; padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); display: flex; gap: 1rem; align-items: flex-start;
  transition: all 0.4s var(--ease-out-expo);
}
.map-info-card:hover { transform: translateX(6px); }
.map-info-icon {
  width: 42px; height: 42px; background: var(--cream); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--orange-hot);
  transition: all 0.4s var(--ease-out-expo);
}
.map-info-icon i { width: 20px; height: 20px; }
.map-info-card:hover .map-info-icon { background: var(--orange-hot); color: white; }
.map-info-label { font-family: var(--font-body); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.2rem; }
.map-info-value { font-family: var(--font-body); font-size: 1rem; color: var(--text-dark); line-height: 1.5; }

/* ===== PARTNERS ===== */
.partners { text-align: center; padding: 5rem 3rem; }
.partners-row { display: flex; gap: 3rem; justify-content: center; align-items: center; margin-top: 2.5rem; flex-wrap: wrap; }
.partner-logo-wrap {
  width: 120px; height: 120px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); padding: 1rem;
  transition: all 0.5s var(--ease-out-expo); overflow: hidden;
}
.partner-logo-wrap:hover { transform: scale(1.12) rotate(-3deg); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.partner-logo-wrap img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

/* ===== FOOTER ===== */
.footer { background: var(--charcoal); color: rgba(253,245,230,0.5); padding: 5rem 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: 0.06em; color: var(--cream); margin-bottom: 0.75rem; line-height: 1; }
.footer-tagline { font-family: var(--font-heading); font-style: italic; font-size: 0.95rem; color: rgba(253,245,230,0.55); margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 40px; height: 40px; background: rgba(253,245,230,0.06); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(253,245,230,0.4); text-decoration: none; transition: all 0.4s var(--ease-out-expo);
}
.footer-social a:hover { background: var(--orange-hot); color: var(--cream); transform: translateY(-3px) rotate(-5deg); }
.footer-social a i { width: 18px; height: 18px; }
.footer-col-title { font-family: var(--font-body); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(253,245,230,0.7); margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.9rem; color: rgba(253,245,230,0.6); text-decoration: none; transition: all 0.3s var(--ease-out-expo); display: flex; align-items: center; gap: 0.35rem; }
.footer-links a:hover { color: var(--amber-gold); transform: translateX(4px); }
.footer-links a i { width: 14px; height: 14px; }
.footer-bottom { border-top: 1px solid rgba(253,245,230,0.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.footer-charity { color: var(--amber-gold); font-style: italic; font-family: var(--font-heading); display: flex; align-items: center; gap: 0.35rem; }
.footer-charity i { width: 14px; height: 14px; animation: heartBeat 2s ease-in-out infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.15); } 28% { transform: scale(1); } 42% { transform: scale(1.15); } 56% { transform: scale(1); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .info-split { grid-template-columns: 1fr; }
  .info-3d-col { min-height: 350px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .map-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-3d-content { padding: 6rem 2rem 2rem; }
  .hero-presented { font-size: 0.75rem; margin-bottom: 1rem; }
}

@media (max-width: 882px) {
  .nav { padding: 0.75rem 1.5rem; z-index: 301; }
  .nav-links { display: none; }
  .nav-sidebar {
    display: flex; list-style: none;
    position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
    flex-direction: column; justify-content: flex-start; gap: 0;
    background: var(--charcoal); border-left: 2px solid var(--orange-hot);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), visibility 0.45s;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
    z-index: 300;
  }
  .nav-sidebar.open { transform: translateX(0); visibility: visible; }
  .nav-sidebar li {
    opacity: 0; transform: translateX(20px); filter: blur(6px);
    transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1), transform 0.35s cubic-bezier(0.16,1,0.3,1), filter 0.35s cubic-bezier(0.16,1,0.3,1);
    border-bottom: 1px solid rgba(253,245,230,0.06);
  }
  .nav-sidebar li:last-child { border-bottom: none; }
  .nav-sidebar.open li { opacity: 1; transform: translateX(0); filter: blur(0); }
  .nav-sidebar.open li:nth-child(1) { transition-delay: 0.08s; }
  .nav-sidebar.open li:nth-child(2) { transition-delay: 0.14s; }
  .nav-sidebar.open li:nth-child(3) { transition-delay: 0.2s; }
  .nav-sidebar.open li:nth-child(4) { transition-delay: 0.26s; }
  .nav-sidebar.open li:nth-child(5) { transition-delay: 0.32s; }
  .nav-sidebar a {
    display: block; padding: 0.85rem 0; font-size: 0.95rem; font-weight: 500; color: var(--cream);
    text-decoration: none; font-family: var(--font-body);
  }
  .nav-sidebar a:hover { color: var(--amber-gold); }
  .nav-sidebar .nav-cta {
    margin-top: 0.75rem; justify-content: center; align-items: center; display: inline-flex;
    background: var(--orange-hot); color: var(--cream); padding: 0.65rem 1.5rem;
    border-radius: 6px; font-weight: 600; gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(232,83,14,0.25);
  }
  .nav-sidebar .nav-cta i { width: 16px; height: 16px; }
  .nav-sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 299;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1), visibility 0.4s;
  }
  .nav-sidebar-overlay.active { opacity: 1; visibility: visible; }
  .nav-mobile-toggle { display: block; }

  /* Hero — stack layout on mobile */
  .hero-3d { min-height: 100vh; grid-template-columns: 1fr; }
  .hero-3d-content {
    width: 100%; padding: 7rem 1.5rem 2rem; text-align: center; align-items: center;
  }
  .hero-presented { font-size: 0.8rem; letter-spacing: 0.15em; margin-bottom: 1.5rem; }
  .hero-presented-logo-link { display: none; }
  .hero-logo-wrap { width: 240px; height: 240px; margin: 0 auto 1.5rem; }
  .hero-logo-bcw { animation: none; }
  .hero-logo-kim { display: none; }
  .hero-date { font-size: 1.8rem; }
  .hero-venue { font-size: 1rem; justify-content: center; text-align: center; line-height: 1.5; }
  .hero-venue i, .hero-venue svg { display: none; }
  .venue-break { font-size: 0; }
  .venue-break::after { content: '\A'; white-space: pre; }
  .hero-charity { justify-content: center; }
  .hero-ctas { justify-content: center; flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { font-size: 0.85rem; padding: 0.7rem 1.4rem; justify-content: center; width: 100%; }
  .hero-mosaic { display: none; }
  .info-3d-col { min-height: 300px; }
  .car-controls { bottom: auto; top: 0.75rem; right: 0.75rem; }
  .race-timer { font-size: 1.2rem !important; padding: 0.25rem 0.8rem 0.15rem !important; }
  .race-position { top: auto !important; right: auto !important; bottom: 3.2rem !important; left: 50% !important; transform: translateX(-50%) !important; font-size: 0.65rem !important; padding: 0.15rem 0.6rem !important; }
  .race-best-time { font-size: 0.65rem !important; padding: 0.15rem 0.6rem !important; bottom: 5rem !important; }
  .race-speed-gauge { width: auto !important; bottom: auto !important; top: 0.5rem !important; left: 0.75rem !important; }
  .gauge-svg { display: none !important; }
  .gauge-text { position: static !important; transform: none !important; }
  .speed-value { font-size: 1.6rem !important; }
  .speed-unit { font-size: 0.6rem !important; }

  .whats-on, .tickets, .info-section, .gallery, .map-section, .partners { padding: 4rem 1.5rem; }
  .ticket-split { grid-template-columns: 1fr; }
  .info-cards-col { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ===== RACE UI OVERLAYS ===== */

.race-timer {
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 2.8rem; letter-spacing: 0.05em;
  color: #FDF5E6; background: rgba(26,26,24,0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 1.4rem 0.25rem; border-radius: 999px;
  z-index: 20; pointer-events: none; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

.race-best-time {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  color: var(--amber-gold); letter-spacing: 0.06em;
  background: rgba(26,26,24,0.7); padding: 0.3rem 1rem; border-radius: 999px;
  z-index: 20; pointer-events: none; white-space: nowrap;
}

.race-position {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.06em;
  color: #FDF5E6; background: rgba(26,26,24,0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 0.2rem 1rem; border-radius: 999px;
  z-index: 20; pointer-events: none; line-height: 1;
}
.race-position.pos-1st { color: #FFD700; }
.race-position.pos-2nd { color: #C0C0C0; }
.race-position.pos-3rd { color: #CD7F32; }

.race-split {
  position: absolute; top: 5.6rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.04em;
  z-index: 20; pointer-events: none;
  transition: opacity 0.3s;
}
.race-split.split-ahead { color: #22C55E; }
.race-split.split-behind { color: #EF4444; }
.race-split.split-neutral { color: #FDF5E6; }

.race-countdown {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 10rem; letter-spacing: 0.05em;
  z-index: 25; pointer-events: none;
  animation: countdown-pop 0.6s var(--ease-out-expo) both;
}
.race-countdown.countdown-red { color: #EF4444; }
.race-countdown.countdown-amber { color: #F5A623; }
.race-countdown.countdown-green { color: #22C55E; }
.race-countdown.countdown-go { color: #FDF5E6; text-shadow: 0 0 40px rgba(253,245,230,0.6); }

@keyframes countdown-pop {
  0%   { transform: scale(0.3); opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.race-results {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: rgba(26,26,24,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: results-fadein 0.4s ease-out both;
  padding: 2rem;
}

@keyframes results-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.results-close-btn {
  position: absolute; top: 0.8rem; right: 0.8rem;
  background: none; border: 2px solid rgba(253,245,230,0.3); color: rgba(253,245,230,0.6);
  font-size: 1.6rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: border-color 0.3s, color 0.3s;
}
.results-close-btn:hover { border-color: rgba(253,245,230,0.6); color: #FDF5E6; }

.results-title {
  font-family: var(--font-display); font-size: 2.6rem; letter-spacing: 0.08em;
  color: #FDF5E6;
}
.crash-title { color: #ee3333;
}

.results-new-best {
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.1em;
  color: #FFD700;
  animation: glow-pulse 1.5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(255,215,0,0.4); }
  50%      { text-shadow: 0 0 24px rgba(255,215,0,0.8), 0 0 48px rgba(255,215,0,0.3); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(232,83,14,0.2); }
  50%      { box-shadow: 0 0 20px rgba(232,83,14,0.5), 0 0 40px rgba(232,83,14,0.15); }
}

.results-table {
  display: flex; flex-direction: column; gap: 0.35rem;
  width: 100%; max-width: 400px;
}

.results-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.8rem; border-radius: 6px;
  font-family: var(--font-body); font-size: 0.95rem; color: rgba(253,245,230,0.8);
}
.results-row.results-player {
  background: rgba(232,83,14,0.2); border: 1px solid rgba(232,83,14,0.4);
  color: #FDF5E6;
}
.results-pos {
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.06em;
  min-width: 3rem; color: #FDF5E6;
}
.results-name { flex: 1; }
.results-time { font-variant-numeric: tabular-nums; }

.results-prev-best {
  font-family: var(--font-body); font-size: 0.85rem;
  color: rgba(253,245,230,0.45); margin-top: 0.25rem;
}

.results-buttons {
  display: flex; gap: 0.75rem; margin-top: 0.5rem;
}

.results-btn {
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.08em;
  padding: 0.6rem 1.8rem; border-radius: 6px;
  background: none; cursor: pointer; transition: all 0.3s var(--ease-out-expo);
}
.results-btn-restart {
  color: #FDF5E6; border: 2px solid #E8530E;
}
.results-btn-restart:hover {
  background: #E8530E; color: #FDF5E6;
}

.race-speed-gauge {
  position: absolute; bottom: 0.8rem; left: 0.8rem;
  width: clamp(100px, 15vw, 140px); z-index: 30;
  pointer-events: none;
}
.gauge-svg { width: 100%; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.gauge-fill { transition: stroke-dashoffset 0.1s; }
.gauge-text {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  text-align: center; font-family: 'Bebas Neue', sans-serif;
  line-height: 1;
}
.speed-value {
  font-size: clamp(1.4rem, 3.5vw, 2rem); color: #FDF5E6;
  letter-spacing: 0.02em;
}
.speed-unit {
  font-size: clamp(0.55rem, 1.2vw, 0.7rem); color: rgba(253,245,230,0.4);
  letter-spacing: 0.06em; display: block; margin-top: -0.2rem;
}

/* Poster Lightbox */
.poster-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}
.poster-lightbox.active { opacity: 1; visibility: visible; }
.poster-lightbox img {
  max-width: min(90vw, 600px); max-height: 90vh;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  cursor: default;
  transform: scale(0.92); transition: transform 0.3s ease;
}
.poster-lightbox.active img { transform: scale(1); }
.poster-lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; color: #fff;
  font-size: 2.5rem; line-height: 1; cursor: pointer;
  opacity: 0.7; transition: opacity 0.2s;
}
.poster-lightbox-close:hover { opacity: 1; }
