:root {
  --black: #050505;
  --white: #f5f5f5;
  --soft-white: #d8d8d8;
  --muted: #a4a4a4;
  --red: #ef1111;
  --border: rgba(255, 255, 255, 0.13);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(239, 17, 17, 0.13), transparent 22rem),
    radial-gradient(circle at 96% 42%, rgba(239, 17, 17, 0.11), transparent 20rem),
    linear-gradient(180deg, #000 0%, #070707 45%, #111 100%);
  color: var(--white);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.10;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 34px 34px;
}

a { color: inherit; }

p, li, dd, dt, summary, .btn, .nav-links a, small {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(1160px, calc(100% - 36px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1.25rem;
  text-shadow: 2px 2px 0 #000, 3px 3px 0 var(--red);
  transition: transform 180ms ease, color 180ms ease;
}

.brand:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(239, 17, 17, 0.55));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.nav-links a {
  position: relative;
  color: #e6e6e6;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:not(.nav-register)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.32rem;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-register {
  padding: 0.62rem 0.9rem;
  background: var(--red);
  color: #fff !important;
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 #000;
}

.nav-register:hover {
  background: #fff;
  color: #000 !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #111;
  color: #fff;
  font-size: 1.35rem;
  padding: 0.35rem 0.65rem;
}

.mobile-float-signup {
  display: none;
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  background: var(--red);
  color: #fff;
  border: 2px solid #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  padding: 0.8rem 1rem;
  box-shadow: 5px 5px 0 #000;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 390px;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-top: 70px;
  padding-bottom: 58px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.86rem;
}

h1, h2, h3 {
  margin: 0;
  line-height: 0.98;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.6rem, 7vw, 6.35rem);
  text-shadow: 3px 3px 0 #000, 5px 5px 0 var(--red);
}

h1 span {
  display: block;
  color: var(--red);
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #fff;
}

h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  text-shadow: 2px 2px 0 #000, 4px 4px 0 rgba(239, 17, 17, 0.65);
}

h3 { font-size: clamp(1.35rem, 2.7vw, 2.05rem); }

.hero-text, .section-heading p, .award-copy p, .location p, .card p, .split-panel p, .final-cta p, .director-copy p {
  max-width: 660px;
  color: var(--soft-white);
  font-size: 1rem;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
  border: 2px solid #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 950;
  box-shadow: 4px 4px 0 #000;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform;
}

.btn:hover {
  box-shadow: 7px 7px 0 #000;
  filter: drop-shadow(0 0 10px rgba(239, 17, 17, 0.45));
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: #fff; color: #000; }

.btn-secondary {
  background: #fff;
  color: #050505;
}
.btn-secondary:hover { background: #111; color: #fff; }

.hero-art, .image-card, .map-card, .director-photo {
  position: relative;
  justify-self: center;
  padding: 0.9rem;
  border: 1px solid rgba(239, 17, 17, 0.65);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.hero-art {
  width: min(390px, 100%);
  transform: rotate(-1.5deg);
}
.hero-art:hover, .image-card:hover, .map-card:hover, .director-photo:hover {
  transform: translateY(-6px);
  border-color: #fff;
  box-shadow: 0 22px 70px rgba(239, 17, 17, 0.22);
}

.hero-art img, .image-card img, .map-card img, .director-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-art img { max-height: 360px; object-fit: contain; }

.countdown-card {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(239,17,17,0.12), rgba(255,255,255,0.03)),
    #090909;
  box-shadow: var(--shadow);
  max-width: 520px;
}

.countdown-title {
  margin: 0 0 0.7rem;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.countdown-grid div {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.countdown-grid strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--white);
}

.countdown-grid span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

.section-heading { margin-bottom: 2rem; }

.card-grid, .race-stats, .bring-grid {
  display: grid;
  gap: 1rem;
}

.card-grid { grid-template-columns: repeat(3, 1fr); }
.race-stats { grid-template-columns: repeat(3, 1fr); margin-top: 1rem; }
.bring-grid { grid-template-columns: repeat(3, 1fr); }

.card, .quick-card, .modifier, details, .split-panel, .stat, .bring-card, .director-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    #0c0c0c;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card, .quick-card, .modifier, .stat, .bring-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  will-change: transform;
}

.card:hover, .quick-card:hover, .modifier:hover, .stat:hover, .bring-card:hover {
  border-color: rgba(239, 17, 17, 0.85);
  box-shadow: 0 22px 55px rgba(239, 17, 17, 0.16);
  background:
    linear-gradient(135deg, rgba(239,17,17,0.13), rgba(255,255,255,0.03)),
    #0c0c0c;
}

.card, .bring-card { padding: 1.25rem; overflow: hidden; }
.card-number {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--red);
  font-size: 2.8rem;
  line-height: 1;
  opacity: 0.92;
}

.stat {
  padding: 1rem;
  text-align: center;
}
.stat strong {
  display: block;
  color: var(--red);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--soft-white);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.split-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.modifier-list {
  display: grid;
  gap: 0.75rem;
}
.modifier {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-left: 5px solid var(--red);
}
.modifier strong { color: #fff; text-transform: uppercase; }
.modifier span { color: var(--soft-white); }

.roll-box {
  padding: 1rem;
  border: 1px solid rgba(239, 17, 17, 0.65);
  background:
    radial-gradient(circle at center, rgba(239,17,17,0.20), transparent 60%),
    #080808;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.roll-box:hover {
  border-color: #fff;
  box-shadow: 0 20px 55px rgba(239, 17, 17, 0.20);
}
.roll-box p {
  margin: 0 0 0.55rem;
  color: var(--red);
  font-weight: 950;
  text-transform: uppercase;
}
.roll-box button {
  cursor: pointer;
  border: 2px solid #fff;
  background: var(--red);
  color: #fff;
  padding: 0.55rem 1.1rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #000;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.roll-box button:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}
#rollResult {
  margin: 0.6rem auto 0.25rem;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #000;
  border: 5px solid #111;
  box-shadow: 6px 6px 0 var(--red);
  font-size: 3rem;
  line-height: 1;
  transform: rotate(-3deg);
}
#rollResult.rolled { animation: diePop 420ms ease; }
.roll-box small { display: block; color: var(--muted); font-size: 0.74rem; }

@keyframes diePop {
  0% { transform: rotate(-3deg) scale(1); }
  45% { transform: rotate(5deg) scale(1.18); }
  100% { transform: rotate(-3deg) scale(1); }
}

.map-card { max-width: 100%; }
.map-card img { border: 1px solid rgba(255,255,255,0.08); }

.awards, .location {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 2rem;
  align-items: center;
}

.image-card { max-width: 520px; }
.image-card img { aspect-ratio: 1 / 1; object-fit: cover; }

.bring-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--soft-white);
  line-height: 1.6;
}

.director-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
}
.director-photo img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.rules-section { padding-top: 40px; }

.accordion {
  display: grid;
  gap: 0.78rem;
}
details {
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
details:hover {
  border-color: rgba(239, 17, 17, 0.75);
  box-shadow: 0 18px 50px rgba(239, 17, 17, 0.11);
}
summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-size: 0.98rem;
  font-weight: 950;
  text-transform: uppercase;
  background: #111;
  border-left: 5px solid var(--red);
  transition: background 180ms ease, color 180ms ease;
}
summary:hover { background: var(--red); color: #fff; }
.details-content { padding: 0.25rem 1.15rem 1.15rem; }
.details-content p {
  margin: 0.8rem 0 0;
  color: #ddd;
  line-height: 1.55;
}

.quick-card { padding: 1.25rem; }
.quick-card h3 {
  margin-bottom: 1rem;
  color: var(--red);
}
dl { margin: 0; }
dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
dl div:last-child { border-bottom: 0; }
dt {
  color: var(--red);
  font-weight: 950;
  text-transform: uppercase;
}
dd { margin: 0; color: #ececec; }

.final-cta {
  text-align: center;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at center, rgba(239,17,17,0.24), transparent 42%),
    #070707;
  padding-left: 1rem;
  padding-right: 1rem;
}
.final-cta h2 { margin: 0 auto; }
.centered-actions { justify-content: center; }

.footer {
  text-align: center;
  padding: 1.6rem 1rem;
  border-top: 1px solid var(--border);
  background: #000;
  color: #bdbdbd;
}
.footer p { margin: 0.35rem 0; font-size: 0.92rem; }
.footer a {
  color: #fff;
  font-weight: 900;
  text-decoration-color: var(--red);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .brand, .nav-links a, .card, .quick-card, .modifier, .hero-art, .btn, .mobile-float-signup {
    transition: none;
  }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: #050505;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.85rem;
    border: 1px solid var(--border);
  }

  .hero, .split-panel, .awards, .location, .director-card {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 48px; }
  .hero-art { width: min(330px, 100%); }
  .card-grid, .race-stats, .bring-grid { grid-template-columns: 1fr; }
  .modifier { display: block; }
  .modifier strong { display: block; margin-bottom: 0.25rem; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-float-signup { display: inline-flex; }
}

@media (max-width: 560px) {
  .section, .nav {
    width: min(100% - 24px, 1160px);
  }

  .section { padding: 54px 0; }

  h1 { font-size: clamp(3.1rem, 15vw, 4.6rem); }
  h2 { font-size: clamp(2rem, 10vw, 3.35rem); }

  .btn { width: 100%; }
  .brand span { font-size: 1.05rem; }
  .brand img { width: 32px; height: 32px; }

  dl div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}


/* Alan/countdown update */
.countdown-section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 22px;
}

.countdown-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  border: 1px solid rgba(239, 17, 17, 0.75);
  background:
    radial-gradient(circle at right, rgba(239, 17, 17, 0.18), transparent 45%),
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
    #070707;
  box-shadow: var(--shadow);
}

.countdown-inner h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.countdown-inner .countdown-card {
  margin: 0;
  max-width: none;
  background: rgba(0,0,0,0.35);
}

.director-subtitle {
  margin-top: 0.5rem;
  color: var(--red);
  text-shadow: 2px 2px 0 #000;
}

@media (max-width: 920px) {
  .countdown-inner {
    grid-template-columns: 1fr;
  }

  .countdown-section {
    width: min(100% - 24px, 1160px);
  }
}


/* Countdown moved into the hero image spot */
.hero-countdown {
  justify-self: center;
  width: min(430px, 100%);
  padding: 1.35rem;
  border: 1px solid rgba(239, 17, 17, 0.75);
  background:
    radial-gradient(circle at top right, rgba(239, 17, 17, 0.26), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    #070707;
  box-shadow: var(--shadow);
}

.hero-countdown h2 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  margin-bottom: 1rem;
}

.hero-countdown .countdown-grid {
  grid-template-columns: repeat(2, 1fr);
}

.hero-countdown .countdown-grid div {
  padding: 1rem 0.7rem;
}

.hero-countdown .countdown-grid strong {
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--red);
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #fff;
}

.countdown-signup {
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 920px) {
  .hero-countdown {
    width: 100%;
  }
}
