@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;1,700;1,800;1,900&display=swap');

/* =====================
   CSS VARIABLES
   ===================== */
:root {
  --primary: #000000;
  --secondary: #ffffff;
  --accent: #d90e14;
  --font-body: 'Inter Tight', sans-serif;
  --font-heading: 'Inter Tight', sans-serif;
  --nav-height: 60px;
  --banner-height: 40px;
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--primary);
  color: var(--secondary);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* =====================
   TYPOGRAPHY
   ===================== */
.heading-style {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.02em;
}

.section-heading .accent { color: var(--accent); }

/* =====================
   ANNOUNCEMENT BANNER
   ===================== */
.announcement-banner {
  background: var(--accent);
  color: var(--secondary);
  text-align: center;
  padding: 0 16px;
  height: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1000;
}

.announcement-banner .btn-register {
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: transparent;
}

.announcement-banner .btn-register:hover {
  background: var(--secondary);
  color: var(--accent);
}

/* =====================
   FIXED SITE HEADER
   ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--primary);
}

/* Push page content below the fixed header */
body {
  padding-top: calc(var(--banner-height) + var(--nav-height));
}

/* =====================
   NAVIGATION
   ===================== */
.site-nav {
  background: var(--primary);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-svg {
  width: 38px;
  height: 38px;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > span {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--secondary);
  transition: color 0.2s;
  cursor: pointer;
  white-space: nowrap;
  text-transform: none;
}

.nav-links > li > a:hover,
.nav-links > li > span:hover {
  color: rgba(255,255,255,0.7);
}

.nav-links > li.active > a {
  background: var(--accent);
  color: var(--secondary);
  padding: 8px 12px;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s;
}

.nav-links > li:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 160px;
  z-index: 100;
}

.nav-links > li:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--secondary);
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: rgba(255,255,255,0.08);
}

.nav-search-btn {
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-search-btn:hover { opacity: 1; }

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--banner-height) + var(--nav-height));
  left: 0;
  right: 0;
  background: #0a0a0a;
  z-index: 998;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a,
.mobile-nav span {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}

.mobile-nav .mobile-section-label {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 10px 24px 4px;
  border-bottom: none;
  cursor: default;
}

.mobile-nav .mobile-sub {
  padding-left: 40px;
  background: rgba(255,255,255,0.03);
  font-size: 13px;
}

/* =====================
   PAGE HEADERS
   ===================== */

/* Cover type (Home page - fullscreen) */
.header-cover {
  position: relative;
  height: calc(100vh - var(--banner-height) - var(--nav-height));
  min-height: 500px;
  overflow: hidden;
  /* Fallback image while video loads or if autoplay is blocked */
  background: #000 url('../assets/images/champ-hero.jpg') center 20% / cover no-repeat;
}

.header-cover .header-bg {
  display: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.header-cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 56px;
}

.header-cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-cover-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Banner type (inner pages) */
.header-banner {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-banner .header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
}

.header-banner-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--secondary);
  letter-spacing: 0.01em;
}

/* Specific background images for each page */
.bg-championships {
  background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45)), url('../assets/images/champ-hero.jpg');
  background-position: center 40%;
}
.bg-teams {
  background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45)), url('../assets/images/teams-hero.jpg');
  background-position: center 40%;
}
.bg-standings {
  background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45)), url('../assets/images/standings-hero.jpg');
  background-position: center 40%;
}
.bg-calendar {
  background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45)), url('../assets/images/calendar-hero.jpg');
  background-position: center 40%;
}
.bg-media {
  background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45)), url('../assets/images/media-hero.jpg');
  background-position: center 40%;
}
.bg-rules {
  background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45)), url('../assets/images/rules-hero.jpg');
  background-position: center 40%;
}
.bg-points {
  background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45)), url('../assets/images/home-hero.jpg');
  background-position: center 20%;
}
.bg-register {
  background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.45)), url('../assets/images/register-hero.jpg');
  background-position: center 40%;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--secondary);
}

.btn-primary:hover {
  background: #b80c11;
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--primary);
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--secondary);
}

.btn-wide {
  min-width: 240px;
  text-align: center;
}

/* =====================
   SECTIONS
   ===================== */
.section {
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-center { text-align: center; }

.section-dark {
  background: var(--primary);
}

.section-title-block {
  text-align: center;
  margin-bottom: 48px;
}

/* =====================
   HOME HERO TEXT SECTION
   ===================== */
.hero-text-section {
  background: var(--secondary);
  color: var(--primary);
  padding: 56px 24px;
  text-align: center;
}

.hero-text-section .hero-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text-section .hero-heading .accent { color: var(--accent); }

.hero-text-section p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.7;
  color: #222;
}

/* =====================
   FEATURE CARDS
   ===================== */
.cards-section {
  background: var(--secondary);
  color: var(--primary);
  padding: 0 24px 56px;
}

.cards-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.feature-card {
  padding: 24px 20px;
  border-right: 1px solid rgba(0,0,0,0.1);
}

.feature-card:last-child { border-right: none; }

.feature-card-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.feature-card p {
  font-size: 12.5px;
  color: #444;
  line-height: 1.5;
}

/* =====================
   FEATURED CLASSES
   ===================== */
.featured-classes-section {
  background: var(--primary);
  padding: 64px 24px;
}

.featured-classes-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.class-card {
  display: flex;
  flex-direction: column;
}

.class-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a1a;
}

.class-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.class-card-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.class-card-badge.v8 { color: var(--secondary); }

/* Coming soon overlay */
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: #c0c0c0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  padding: 0 0 16px 0;
}

.coming-soon-diagonal {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.coming-soon-diagonal::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 160%;
  background: var(--accent);
  transform: rotate(-10deg);
  transform-origin: top left;
}

.coming-soon-text {
  position: absolute;
  top: 30%;
  left: 5%;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  text-transform: uppercase;
  color: var(--secondary);
  transform: rotate(-10deg);
  transform-origin: center;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.coming-soon-brand {
  position: absolute;
  bottom: 16px;
  right: 16px;
  text-align: right;
}

.coming-soon-brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.class-card-content {
  padding: 20px 0;
}

.class-card-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.class-card-content p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 12px;
}

.class-card-content a {
  color: var(--accent);
  font-size: 13px;
  text-decoration: underline;
}

.class-card-content ul {
  margin-top: 8px;
  list-style: none;
}

.class-card-content ul li {
  font-size: 13.5px;
  color: rgba(255,255,255,0.8);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.class-card-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* =====================
   NEXT ROUND SECTION
   ===================== */
.next-round-section {
  background: var(--primary);
  padding: 0 24px 64px;
}

.next-round-card {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
}

.next-round-label {
  background: var(--accent);
  color: var(--secondary);
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  grid-column: 1 / -1;
}

.next-round-info {
  padding: 24px;
}

.next-round-rnd {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.next-round-venue {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: none;
  font-style: italic;
  color: var(--secondary);
  margin-bottom: 16px;
}

.next-round-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.next-round-track {
  background: var(--accent);
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.next-round-track svg {
  width: 160px;
  height: auto;
  opacity: 0.9;
}

/* =====================
   CTA SECTION
   ===================== */
.cta-section {
  background: var(--accent);
  padding: 56px 24px;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  color: var(--secondary);
}

/* =====================
   CHAMPIONSHIPS PAGE - DETAILED
   ===================== */
.champ-classes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.champ-class-block .class-image-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center 30%;
  margin-bottom: 24px;
}

.champ-class-block h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.champ-class-block p {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}

.champ-car-list {
  list-style: none;
  margin-top: 16px;
}

.champ-car-list li {
  padding: 6px 0;
}

.champ-car-list li a {
  color: var(--accent);
  font-size: 13.5px;
  text-decoration: underline;
  display: block;
  margin-bottom: 4px;
}

.champ-car-list li p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  padding-left: 16px;
  margin-bottom: 0;
}

/* =====================
   TEAMS PAGE
   ===================== */
.teams-header-content {
  text-align: center;
  margin-bottom: 40px;
}

.teams-header-content h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.teams-header-content h1 .accent { color: var(--accent); }

.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: 860px;
  margin: 0 auto;
}

.team-card {
  background: #0d0d0d;
  text-align: center;
  overflow: hidden;
}

.team-card-logo {
  width: 100%;
  aspect-ratio: 4/3;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-logo-placeholder {
  width: 100%;
  height: 100%;
  background: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card-logo-placeholder svg {
  width: 50%;
  height: 50%;
  opacity: 0.5;
}

.team-card-info {
  padding: 16px 12px 20px;
}

.team-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.team-meta {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 4px;
}

.team-looking {
  color: var(--accent);
  font-size: 12.5px;
  margin-bottom: 12px;
}

.team-looking span {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

/* =====================
   STANDINGS PAGE
   ===================== */
.standings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.standings-col h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}

.standings-col h2 .accent { color: var(--accent); }

.standings-embed {
  width: 100%;
  background: #fff;
  border: none;
  display: block;
}

.standings-updated {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 24px;
  font-style: italic;
}

/* =====================
   CALENDAR PAGE
   ===================== */
.calendar-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.calendar-round {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.calendar-round:last-child {
  border-bottom: none;
}

.calendar-round.final {
  background: rgba(217, 14, 20, 0.05);
  margin: 0 -24px;
  padding: 32px 24px;
  border: 1px solid rgba(217, 14, 20, 0.3);
}

.round-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.1;
}

.round-title .rnd-num {
  color: var(--accent);
  margin-right: 8px;
}

.round-title.final-race .rnd-num {
  color: #c8a84b;
}

.round-title.final-race .rnd-label {
  color: #c8a84b;
}

.round-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

/* =====================
   MEDIA PAGE
   ===================== */
.stream-section {
  text-align: center;
  padding: 56px 24px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.yt-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #1a1a1a;
  margin-top: 32px;
  border: 1px solid rgba(255,255,255,0.1);
}

.yt-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.replays-section {
  padding: 40px 24px 64px;
  max-width: 1000px;
  margin: 0 auto;
}

.replays-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.replay-card {
  background: #1a1a1a;
}

.replay-thumb {
  aspect-ratio: 16/9;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 11px;
}

.replay-title {
  padding: 10px 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

/* =====================
   RULES PAGE
   ===================== */
.rules-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px;
}

.toc-section {
  margin-bottom: 48px;
}

.toc-section h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
}

.toc-section h2 .accent { color: var(--accent); }

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px;
}

.toc-list a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
  transition: color 0.2s;
}

.toc-list a:hover { color: var(--accent); }

.rules-section-block {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}

.rules-section-block h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.rule-item {
  margin-bottom: 28px;
  scroll-margin-top: 80px;
}

.rule-item h3 {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rule-item p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

.rules-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.8;
}

.rules-meta a {
  color: var(--accent);
  text-decoration: underline;
}

/* =====================
   POINTS SYSTEM PAGE
   ===================== */
.points-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 24px;
}

.points-table-wrapper {
  overflow-x: auto;
}

.points-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.points-table th {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--secondary);
  padding: 12px 16px;
  text-align: center;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}

.points-table td {
  padding: 10px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  font-size: 15px;
}

.points-table td.pts {
  background: var(--accent);
  color: var(--secondary);
  font-weight: 700;
}

.points-table td.pos {
  color: rgba(255,255,255,0.5);
}

.points-outer-table {
  width: 100%;
  border-collapse: collapse;
}

.points-outer-table td {
  vertical-align: top;
  padding: 0;
}

.points-outer-table td:first-child {
  padding-right: 16px;
}

/* =====================
   REGISTER PAGE
   ===================== */
.register-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px;
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.register-embed-block h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.register-embed-block iframe {
  width: 100%;
  border: none;
  min-height: 600px;
  background: #fff;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 48px 24px 0;
}

.footer-main {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-about p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 12px;
}

.footer-about p + p {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
}

.footer-nav-col h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 16px;
}

.footer-nav-col ul {
  list-style: none;
}

.footer-nav-col ul li {
  margin-bottom: 8px;
}

.footer-nav-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-nav-col ul li a:hover {
  color: var(--secondary);
}

.footer-logo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer-logo-svg {
  width: 60px;
  height: auto;
}

.footer-logo-img {
  width: 80px;
  height: auto;
}

.footer-divider {
  max-width: 1100px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-socials a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-socials a:hover {
  color: var(--secondary);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

/* =====================
   SEARCH OVERLAY
   ===================== */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.search-overlay.open {
  display: flex;
}

.search-overlay input {
  width: min(600px, 90vw);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--secondary);
  color: var(--secondary);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--font-body);
  padding: 12px 4px;
  outline: none;
}

.search-overlay input::placeholder {
  color: rgba(255,255,255,0.25);
}

.search-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* =====================
   UTILITIES
   ===================== */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .nav-links,
  .nav-search-btn {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

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

  .feature-card:nth-child(2) {
    border-right: none;
  }

  .featured-classes-grid,
  .champ-classes-grid {
    grid-template-columns: 1fr;
  }

  .standings-grid {
    grid-template-columns: 1fr;
  }

  .next-round-card {
    grid-template-columns: 1fr;
  }

  .next-round-track {
    width: 100%;
    padding: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-logo {
    display: none;
  }

  .teams-grid {
    grid-template-columns: 1fr;
  }

  .register-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .replays-grid {
    grid-template-columns: 1fr 1fr;
  }

  .points-outer-table td:first-child {
    padding-right: 8px;
  }
}
