/* =========================================================
   EUROPEAN GRAND PRIX FINALE
   Main stylesheet
   ========================================================= */

@font-face {
  font-family: "Horta";
  src: url("../fonts/horta-demo.png") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Madelyn";
  src: url("../fonts/madelyn.png") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101012;
  --bg-soft: #171619;
  --bg-card: #201d20;
  --bg-card-hover: #2a2226;
  --red: #76252d;
  --red-dark: #32191e;
  --gold: #d4b16a;
  --gold-soft: #a98b4f;
  --point-gold: #e7cc3d;
  --text: #f5f2ec;
  --text-muted: #b7b0ac;
  --border: rgba(212, 177, 106, 0.18);
  --font-body: "Inter", Arial, sans-serif;
  --font-heading: "Horta", "Arial Narrow", Arial, sans-serif;
  --content-width: 1200px;
  --header-height: 100px;
  --radius: 6px;
  --map-aspect: 862.19843 / 717.92664;

  /* Level palette — shared by map markers, popup badges and card badges */
  --level-a: #e74c3c;   /* red */
  --level-b: #e8923e;   /* orange */
  --level-c: #4caf50;   /* green */
  --level-d: #5dade2;   /* light blue */
  --level-f: #e7cc3d;   /* gold (finale) */
}

/* RESET */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(118, 37, 45, 0.55) 0%, rgba(118, 37, 45, 0.2) 40%, transparent 70%),
    radial-gradient(ellipse at 100% 100%, rgba(50, 25, 30, 0.45) 0%, transparent 60%),
    linear-gradient(rgba(16, 16, 18, .80), rgba(16, 16, 18, .92)),
    url("../img/GP26_background.jpg") center / cover no-repeat;
  content: "";
  pointer-events: none;
}
img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #f0d59a; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 {
  margin-top: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
}
p { margin-top: 0; }
.container { width: min(calc(100% - 48px), var(--content-width)); margin-inline: auto; }
.section { padding: 64px 0; }
.section-heading { margin-bottom: 12px; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.section-intro { max-width: 700px; margin-bottom: 30px; color: var(--text-muted); }

/* ACCESSIBILITY */
.skip-link {
  position: absolute;
  z-index: 5000;
  top: -100px;
  left: 16px;
  padding: 10px 16px;
  color: #101012;
  background: var(--gold);
}
.skip-link:focus { top: 12px; }

/* HEADER */
.site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: rgba(16, 16, 18, .96);
  border-bottom: 1px solid rgba(212, 177, 106, .17);
}
.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-left: 50px;
  padding-right: 50px;
}
.brand { display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand-logo { width: 230px; height: auto; max-height: none; object-fit: contain; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(18px, 2.6vw, 36px);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.2;
}
.site-nav a { padding: 8px 0; color: var(--text); white-space: nowrap; transition: color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(212, 177, 106, .3);
  border-radius: 6px;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero-home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  background: transparent;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: clamp(30px, 5vw, 70px);
  padding: 0;
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 540px;
  padding: 60px 0;
}
.hero-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 5.2vw, 5.1rem);
  letter-spacing: .005em;
  line-height: .98;
}
.hero-copy h1 span {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-family: "Madelyn", cursive;
  font-size: clamp(3.5rem, 6.2vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}
.hero-intro { max-width: 500px; margin-bottom: 26px; color: var(--text-muted); font-size: 1.04rem; line-height: 1.85; }
.hero-details { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--text); font-size: .95rem; font-weight: 600; }
.hero-detail { display: inline-flex; align-items: center; gap: 9px; }
.hero-detail svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--gold); }

/* CIRCUIT MAP PANEL (index.html SVG version) */
.hero-map-panel {
  --left-ext: 60px;   
  --right-ext: calc((100vw - min(100vw - 48px, 1200px)) / 2 - 20px);

  --map-fade-x: 150px;   
  --map-fade-y: 24%;     

  position: relative;
  width: calc(100% + var(--left-ext) + var(--right-ext));
  margin-left: calc(-1 * var(--left-ext));
  margin-right: calc(-1 * var(--right-ext));
  aspect-ratio: var(--map-aspect);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
.map-art {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 calc(100% - var(--map-fade-x)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 calc(100% - var(--map-fade-x)),
    transparent 100%
  );
}
.circuit-map {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: map-appear 1.4s ease-out forwards;

  /* top & bottom fade — nested inside the wrapper's right-edge mask */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 var(--map-fade-y),
    #000 calc(100% - var(--map-fade-y)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 var(--map-fade-y),
    #000 calc(100% - var(--map-fade-y)),
    transparent 100%
  );
}
.circuit-map image { opacity: 0.82; }
.circuit-map-points { overflow: visible; }
.gp-point {
  fill: #e7cc3d;
  stroke: #e7cc3d;
  stroke-width: 0.4;
  cursor: pointer;
  filter: drop-shadow(0 0 3px rgba(231, 204, 61, 0.75));
  animation: gp-point-pulse 2.8s infinite ease-in-out;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease, filter 0.2s ease;
  pointer-events: all;
}
.gp-point:hover, .gp-point:focus {
  fill: rgba(243, 234, 111, 0.95);
  stroke: rgba(243, 234, 111, 0.95);
  transform: scale(1.35);
  filter: drop-shadow(0 0 6px #e7cc3d);
  outline: none;
}
.gp-point.is-big {
  filter: drop-shadow(0 0 5px rgba(231, 204, 61, 0.9))
          drop-shadow(0 0 12px rgba(231, 204, 61, 0.6));
}
@keyframes gp-point-pulse {
  0%   { opacity: 0.8; }
  50%  { opacity: 1; }
  100% { opacity: 0.8; }
}
@keyframes map-appear { to { opacity: 1; } }

/* Tooltip (index.html SVG version) */
.map-tooltip {
  position: fixed;
  z-index: 9999;
  display: none;
  width: min(280px, 84vw);
  padding: 12px 14px;
  color: rgba(207, 207, 207, 0.92);
  background-color: rgba(49, 57, 77, 0.96);
  border: 1px solid rgba(83, 80, 80, 0.55);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(71, 57, 10, 0.671);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.45;
  pointer-events: none;
}
.map-tooltip.is-visible { display: block; }
.map-tooltip .map-tooltip-separator {
  display: block;
  height: 1px;
  margin: 10px 0 10px;
  background: rgba(212, 177, 106, 0.22);
}
.map-tooltip .map-tooltip-title {
  display: block;
  margin: 0 0 4px;
  color: #f0d59a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.map-tooltip .map-tooltip-city {
  display: block;
  margin: 0 0 8px;
  color: rgba(207, 207, 207, 0.65);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.map-tooltip span {
  display: block;
  color: rgba(207, 207, 207, 0.85);
  font-size: 12px;
  font-weight: 500;
}
.map-tooltip .map-tooltip-winner {
  margin-top: 4px;
  color: #e7cc3d;
  font-weight: 600;
}

/* FEATURE CARDS */
.home-links {
  position: relative;
  overflow: hidden;
  padding: 44px 0 54px;
  background: rgba(16, 16, 18, .36);
}
.home-links::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(120, 32, 43, .11), transparent 45%),
    repeating-radial-gradient(ellipse at 90% 120%, transparent 0, transparent 32px, rgba(180, 110, 100, .025) 33px, transparent 35px, transparent 57px);
  content: "";
  pointer-events: none;
}
.home-links .container { position: relative; z-index: 1; }
.home-links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-link-card {
  position: relative;
  display: flex;
  min-height: 225px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  color: var(--text);
  background: linear-gradient(145deg, #211d21, #191719);
  border: 1px solid rgba(212, 177, 106, .13);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  transition: background .22s ease, transform .22s ease, border-color .22s ease;
  overflow: hidden;
  z-index: 1;
}
.home-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.home-link-card:hover {
  color: var(--text);
  border-color: rgba(212, 177, 106, .3);
  transform: translateY(-3px);
}
.home-link-card:hover .home-card-bg { opacity: 0.25; }
.home-link-card h2 { margin-bottom: 9px; font-size: 1.65rem; line-height: 1.2; position: relative; z-index: 2; }
.home-link-card p { margin-bottom: 0; color: var(--text-muted); font-size: .95rem; line-height: 1.7; position: relative; z-index: 2; }

/* CARDS / GRID */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.card-body { padding: 24px; }
.card--hover { transition: transform .2s ease, background .2s ease; }
.card--hover:hover { background: var(--bg-card-hover); transform: translateY(-3px); }

/* BUTTONS */
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  color: var(--text);
  background: #282329;
  border: 1px solid rgba(212, 177, 106, .25);
  border-radius: 4px;
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { color: var(--text); background: #38292e; }
.btn--primary { color: #fff; background: #76252d; border-color: #76252d; }
.btn--primary:hover { background: #91313a; }
.btn--gold { color: #171414; background: var(--gold); border-color: var(--gold); }
.btn--gold:hover { color: #171414; background: #e4c887; }
.btn--outline { color: var(--gold); background: transparent; border-color: rgba(212, 177, 106, .4); }

/* LIVE SECTION */
.home-section { padding: 58px 0; }
.home-section-heading { margin-bottom: 12px; font-size: clamp(2rem, 3.5vw, 2.8rem); }
.home-section-intro { max-width: 700px; color: var(--text-muted); }
.live-message { max-width: 760px; padding: 8px 0; color: var(--text-muted); font-size: 1.05rem; line-height: 1.85; }

/* SCHEDULE (legacy list) */
.schedule-list { display: grid; gap: 0; max-width: 800px; }
.schedule-item { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 22px; padding: 20px 0; border-bottom: 1px solid rgba(212, 177, 106, .12); }
.schedule-date { color: var(--gold); font-weight: 700; }
.schedule-description { color: var(--text-muted); }
.schedule-description strong { display: block; margin-bottom: 3px; color: var(--text); }

/* FOLLOW THE EVENT — broadcast stage */
.follow-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 78px 0 82px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(118, 37, 45, 0.32), transparent 58%),
    radial-gradient(ellipse at 50% 100%, rgba(50, 25, 30, 0.55), transparent 62%),
    linear-gradient(180deg, #101012 0%, #171619 50%, #101012 100%);
  border-top: 1px solid rgba(212, 177, 106, 0.08);
  border-bottom: 1px solid rgba(212, 177, 106, 0.08);
}
.follow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg_1.svg") center / cover no-repeat;
  opacity: 0.23;
  pointer-events: none;
  z-index: 0;
}
.follow-section .container { position: relative; z-index: 1; }

.follow-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.follow-head { max-width: 640px; margin-bottom: 34px; }
.follow-head .home-section-heading { margin-bottom: 10px; }
.follow-head .section-intro { margin-bottom: 0; }

.live-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin-bottom: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 177, 106, 0.18);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 177, 106, 0.05);
  background: #0a0a0c;
}
.live-stage::before,
.live-stage::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(212, 177, 106, 0.4);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.live-stage::before { top: 12px; left: 12px;  border-width: 1px 0 0 1px; }
.live-stage::after  { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

.live-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(140, 42, 50, 0.32), transparent 62%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.015) 0px,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 8px
    ),
    linear-gradient(145deg, #1a1215, #0f0a0c);
}
.live-placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 177, 106, 0.2);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-placeholder-badge .live-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  animation: none;
  box-shadow: 0 0 0 3px rgba(212, 177, 106, 0.15);
}
.live-placeholder-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  color: var(--text);
  line-height: 1.15;
}
.live-placeholder-sub { color: var(--text-muted); font-size: 0.92rem; }

.live-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
.live-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.follow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.follow-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 177, 106, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.follow-link-btn:hover { color: var(--gold); border-color: var(--gold); }
.follow-link-btn svg { flex: 0 0 auto; }

/* SCHEDULE — restructured */
.schedule-phase { margin-bottom: 36px; }
.schedule-phase:last-child { margin-bottom: 0; }
.schedule-phase-title {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.schedule-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.schedule-day {
  padding: 22px 24px;
  background: linear-gradient(145deg, #211d21, #191719);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.schedule-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(212, 177, 106, 0.18);
}
.schedule-day-name {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.schedule-day-date { color: var(--text-muted); font-size: 0.88rem; }
.schedule-events { list-style: none; padding: 0; margin: 0; }
.schedule-events li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(212, 177, 106, 0.06);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.schedule-events li:last-child { border-bottom: 0; }
.schedule-time {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.schedule-event-label { flex: 1 1 auto; }

/* FOOTER */
.site-footer { margin-top: 30px; background: rgba(12, 12, 14, .76); border-top: 1px solid rgba(212, 177, 106, .12); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 34px; padding-bottom: 34px; }
.footer-egf img { height: 70px; width: auto; }
.footer-sponsors { display: flex; align-items: center; gap: 30px; }
.footer-sponsors img { height: 70px; width: auto; object-fit: contain; background: white; border-radius: 10px; padding: 5px; }
/* FOOTER BOTTOM */
.footer-bottom { 
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px; 
  padding-bottom: 16px; 
  color: var(--text-muted); 
  border-top: 1px solid rgba(212, 177, 106, .1); 
  font-size: .8rem; 
}
.footer-bottom p { 
  margin: 0; 
}
.footer-privacy-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-privacy-link:hover {
  color: var(--gold);
}

/* Add this to your existing @media (max-width: 600px) block */
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }
}
/* UTILITIES */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }

/* POOL TABLES */
.pool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 20px;
}
.pool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 0%, rgba(118, 37, 45, 0.14), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(212, 177, 106, 0.06), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  overflow-x: auto;
  overflow-y: hidden;
}
.pool-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--font-heading);
}
.rr-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.rr-table th,
.rr-table td {
  padding: 7px 5px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
}
.rr-table thead th {
  color: var(--gold);
  font-weight: 700;
  border-bottom: 1px solid rgba(212, 177, 106, 0.25);
  letter-spacing: 0.05em;
}
.rr-table thead th.th-wins { font-size: 0.85rem; color: var(--gold); opacity: 0.8; }
.rr-table thead th.th-empty { color: var(--text-muted); opacity: 0.5; }
.rr-table tbody th {
  text-align: left;
  padding: 7px 10px 7px 0;
  min-width: 130px;
  vertical-align: middle;
}
.rr-player-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 150px;
  line-height: 1.25;
}
.rr-name {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.rr-meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
}
.rr-table tbody tr { border-bottom: 1px solid rgba(212, 177, 106, 0.08); }
.rr-table tbody tr:last-child { border-bottom: 0; }

.rr-result {
  font-family: var(--font-body);
  text-align: center;
  vertical-align: middle;
  line-height: 1.15;
  transition: background 0.15s ease;
  min-width: 56px;
  min-height: 44px;
}
.rr-result a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 100%;
  min-height: 44px;
  padding: 2px 0;
}
.rr-result .rr-score { font-size: 1rem; letter-spacing: 0.02em; line-height: 1.1; }
.rr-result .rr-detail {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 1;
}
.rr-result.rr-win .rr-score { font-weight: 700; color: var(--text); }
.rr-result.rr-win a:hover { color: var(--gold); }
.rr-result.rr-loss .rr-score { font-weight: 400; color: var(--text-muted); opacity: 0.45; }
.rr-result.rr-loss a:hover { color: var(--gold); }
.rr-result.rr-live a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 0;
}
.rr-result.rr-live .live-dot { display: block; }
.rr-result.rr-live .rr-detail--live {
  color: #e74c3c;
  opacity: 0.7;
  font-weight: 500;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
}
.rr-result.rr-self { background: rgba(0, 0, 0, 0.25); cursor: default; pointer-events: none; }
.rr-result.rr-hover.rr-win { background: rgba(70, 140, 85, 0.16) !important; }
.rr-result.rr-hover.rr-loss { background: rgba(120, 30, 40, 0.22) !important; }
.rr-wins {
  color: var(--gold);
  font-weight: 700;
  border-left: 1px solid rgba(212, 177, 106, 0.18);
  background: rgba(212, 177, 106, 0.05);
  font-family: var(--font-body);
}

.pending-note {
  font-size: 0.9em;
  color: var(--text-muted);
  padding: 10px 14px;
  margin-bottom: 20px;
  background: rgba(212, 177, 106, 0.05);
  border-left: 3px solid rgba(212, 177, 106, 0.35);
  border-radius: 3px;
  line-height: 1.6;
}
.pending-note strong { color: var(--gold); }

.rr-table tbody tr.is-qualified .rr-player-header {
  position: relative;
  padding-left: 10px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(212, 177, 106, 0.14) 0%,
    rgba(212, 177, 106, 0.04) 55%,
    transparent 100%
  );
  box-shadow: inset 3px 0 0 var(--gold);
}
.rr-table tbody tr.is-qualified .rr-name { color: var(--gold); }
.rr-table tbody tr.is-qualified .rr-wins { color: var(--gold); background: rgba(212, 177, 106, 0.10); }

/* TIE-BREAK SECTION */
.tiebreak-section {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(212, 177, 106, 0.22);
}
.tiebreak-section.is-hidden { display: none; }
.tiebreak-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 177, 106, 0.18);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.tiebreak-toggle:hover {
  color: var(--gold);
  border-color: rgba(212, 177, 106, 0.38);
  background: rgba(212, 177, 106, 0.05);
}
.tiebreak-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tiebreak-toggle[aria-expanded="true"] { color: var(--gold); }
.tiebreak-toggle-chevron {
  display: inline-block;
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.18s ease;
  transform-origin: center;
}
.tiebreak-toggle[aria-expanded="true"] .tiebreak-toggle-chevron { transform: rotate(180deg); }
.tiebreak-toggle-label { font-weight: 600; }
.tiebreak-toggle-count { font-weight: 400; opacity: 0.7; }
.tiebreak-panel { margin-top: 10px; padding-top: 4px; }
.tiebreak-panel[hidden] { display: none; }
.tiebreak-empty {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.75;
}
.tiebreak-table th,
.tiebreak-table td { font-size: 0.85rem; padding: 6px 6px; }
.tiebreak-table thead th { font-size: 0.75rem; }
.tiebreak-table td:first-child,
.tiebreak-table th:first-child { text-align: left; }
.tiebreak-table td:nth-child(2),
.tiebreak-table th:nth-child(2) { text-align: left; }

/* LIVE INDICATOR */
.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e74c3c;
  box-shadow: 0 0 0 rgba(231, 76, 60, 0.6);
  animation: live-pulse 1.3s infinite;
  vertical-align: middle;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.55); opacity: 1; }
  70%  { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); opacity: 0.85; }
  100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); opacity: 1; }
}
.rr-name-row { display: inline-flex; align-items: center; gap: 6px !important; }
.rr-flag { font-size: 0.95em; }
.st-flag { margin-right: 5px; }
.st-name-meta { margin-left: 5px; color: var(--text-muted); font-size: 0.85rem; }

/* INFO PAGE */
.info-section { padding: 60px 0 90px; }
.info-page-title { margin: 0 0 44px; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.05; }

/* Removed dot from info-toc */
.info-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 48px;
  padding: 16px 0;
  border-top: 1px solid rgba(212, 177, 106, 0.14);
  border-bottom: 1px solid rgba(212, 177, 106, 0.14);
}
.info-toc a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--text-muted);
  background: rgba(212, 177, 106, 0.05);
  border: 1px solid rgba(212, 177, 106, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.info-toc a:hover {
  color: var(--gold);
  background: rgba(212, 177, 106, 0.14);
  border-color: rgba(212, 177, 106, 0.5);
}

.info-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}
.info-heading::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(to right, rgba(212, 177, 106, 0.35), transparent);
}
.info-subsection { margin-bottom: 56px; }
.info-subsection:last-child { margin-bottom: 0; }

.presentation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 56px;
}
.presentation-intro {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
}
.presentation-intro p { margin: 0 0 12px; }
.presentation-intro p:last-child { margin-bottom: 0; }

.key-info { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.key-info li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 177, 106, 0.14);
}
.key-info li:last-child { border-bottom: 0; }
.key-info-label {
  flex: 0 0 120px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.key-info-label svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--gold); }
.key-info-value {
  flex: 1 1 auto;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.22rem;
  line-height: 1.3;
}

/* Small "(see map)" link following the venue address */
.key-info-maplink {
  display: inline-block;
  margin-left: 4px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-bottom: 1px dashed rgba(212, 177, 106, 0.45);
  transition: color .2s ease, border-color .2s ease;
}
.key-info-maplink:hover {
  color: #f0d59a;
  border-bottom-color: #f0d59a;
}
.key-info-maplink:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.presentation-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  background: #0f0d10;
}
.presentation-photo img { width: 100%; height: 100%; object-fit: cover; }

.director-quote {
  position: relative;
  max-width: 820px;
  margin: 0 0 56px;
  padding: 0 0 0 28px;
  border-left: 3px solid rgba(212, 177, 106, 0.5);
}
.director-quote p {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  font-style: italic;
}
.director-quote footer {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.director-quote footer span { color: var(--gold); }

.compact-schedule { margin-bottom: 0; }
.compact-schedule .schedule-phase { margin-bottom: 26px; }
.compact-schedule .schedule-phase:last-child { margin-bottom: 0; }
.compact-schedule .schedule-phase-title { font-size: 1.15rem; margin-bottom: 10px; }
.compact-schedule .schedule-days { gap: 12px; }
.compact-schedule .schedule-day { padding: 16px 18px; }
.compact-schedule .schedule-day-head { padding-bottom: 8px; margin-bottom: 4px; }
.compact-schedule .schedule-events li { padding: 6px 0; font-size: 0.9rem; }
.compact-schedule .schedule-time { min-width: 48px; }

/* Schedule Note */
.schedule-note {
  margin-top: -8px; /* Pulls it a bit closer to the heading */
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.5;
}
.schedule-note strong {
  color: var(--gold);
  font-weight: 600;
}

.rules-block {
  position: relative;
  padding: 40px;
  background:
    radial-gradient(circle at 0% 0%, rgba(118, 37, 45, 0.15), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(212, 177, 106, 0.06), transparent 55%),
    linear-gradient(145deg, #1c181b, #141114);
  border: 1px solid rgba(212, 177, 106, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  margin-bottom: 56px;
}
.rules-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--gold), rgba(212, 177, 106, 0.1) 70%, transparent);
}
.rules-block-title {
  margin: 0 0 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(212, 177, 106, 0.18);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.rules-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(212, 177, 106, 0.12);
}
.rules-toc a {
  padding: 6px 12px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 177, 106, 0.16);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.rules-toc a:hover {
  color: var(--gold);
  background: rgba(212, 177, 106, 0.08);
  border-color: rgba(212, 177, 106, 0.4);
}

.rules-section { padding: 22px 0; border-bottom: 1px solid rgba(212, 177, 106, 0.1); }
.rules-section:last-child { border-bottom: 0; padding-bottom: 0; }
.rules-section:first-of-type { padding-top: 0; }
.rules-section-title {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.rules-section p { margin: 0 0 12px; color: var(--text); font-size: 0.98rem; line-height: 1.75; }
.rules-section p:last-child { margin-bottom: 0; }
.rules-section strong { color: var(--gold); font-weight: 600; }

.rules-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.rules-list:last-child { margin-bottom: 0; }
.rules-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.65;
}
.rules-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(212, 177, 106, 0.55);
}
.rules-list--ordered { counter-reset: rule-counter; }
.rules-list--ordered li { counter-increment: rule-counter; padding-left: 26px; }
.rules-list--ordered li::before {
  content: counter(rule-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* --- NEW RULES DETAILS (TOGGLES) --- */
.rules-details {
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(212, 177, 106, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
}
.rules-details:last-child {
  margin-bottom: 0;
}
.rules-summary {
  padding: 14px 18px;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
  transition: background 0.2s ease;
}
.rules-summary::-webkit-details-marker {
  display: none;
}
.rules-summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}
.rules-details[open] .rules-summary::after {
  content: "−";
}
.rules-details[open] .rules-summary {
  background: rgba(212, 177, 106, 0.05);
  border-bottom: 1px solid rgba(212, 177, 106, 0.15);
}
.rules-details-content {
  padding: 18px;
  font-size: 0.95rem;
  line-height: 1.75;
}
.rules-details-content p {
  margin: 0 0 12px;
}
.rules-details-content p:last-child {
  margin-bottom: 0;
}

.officials-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.official-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 177, 106, 0.14);
  border-radius: 6px;
}
.person-photo {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #0f0d10;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.official-inline .person-photo { width: 60px; height: 60px; border: 1px solid rgba(212, 177, 106, 0.35); }
.official-inline .person-name {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.2;
}
.official-inline-role {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

.broadcast-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(118, 37, 45, 0.22), transparent 55%),
    linear-gradient(145deg, #1c171b, #141114);
  border: 1px solid rgba(212, 177, 106, 0.2);
  border-radius: var(--radius);
}
.broadcast-card--single { grid-template-columns: minmax(0, 1fr); }
.broadcast-card h3 { margin-bottom: 12px; font-size: 1.8rem; }
.broadcast-card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; line-height: 1.75; }
.broadcast-card strong { color: var(--gold); }
.broadcast-platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.broadcast-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--text);
  background: rgba(212, 177, 106, 0.06);
  border: 1px solid rgba(212, 177, 106, 0.24);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.broadcast-chip:hover {
  color: var(--gold);
  background: rgba(212, 177, 106, 0.14);
  border-color: rgba(212, 177, 106, 0.5);
}
.broadcast-chip svg { flex: 0 0 auto; }

.sponsors-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 24px;
  margin-top: 16px;
  background: rgba(16, 16, 18, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sponsors-strip img {
  height: 56px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
}

.presentation,
.info-subsection,
.rules-block,
.rules-section { scroll-margin-top: 120px; }

.presentation-note {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.7;
  opacity: 0.88;
}

/* --- UPDATED CIRCUIT LIST (inside Prize Money) --- */
.circuit-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 32px;
}
.circuit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 177, 106, 0.08);
  font-size: 0.92rem;
  line-height: 1.5;
}
.circuit-name { 
  color: var(--text); 
  font-weight: 500; 
}
.circuit-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  color: var(--gold);
  background: rgba(212, 177, 106, 0.1);
  border: 1px solid rgba(212, 177, 106, 0.3);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.circuit-source-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.circuit-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: var(--gold);
  background: rgba(212, 177, 106, 0.06);
  border: 1px solid rgba(212, 177, 106, 0.28);
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.circuit-source:hover {
  color: #f0d59a;
  background: rgba(212, 177, 106, 0.14);
  border-color: rgba(212, 177, 106, 0.55);
}

/* --- PRIZE MONEY TABLE CSS --- */
.prize-table-wrap {
  margin-top: 18px;
  margin-bottom: 24px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.prize-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.prize-table caption {
  padding: 14px 16px 0;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-align: left;
}
.prize-table th,
.prize-table td {
  padding: 14px 12px;
  text-align: center;
  white-space: nowrap;
}
.prize-table thead th {
  color: var(--gold);
  border-bottom: 1px solid rgba(212, 177, 106, 0.25);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.prize-table tbody tr {
  border-bottom: 1px solid rgba(212, 177, 106, 0.08);
}
.prize-table tbody td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.prize-table tfoot td {
  color: var(--gold);
  border-top: 1px solid rgba(212, 177, 106, 0.25);
  font-weight: 700;
}
.prize-table .prize-total {
  text-align: right;
  padding-right: 24px;
  font-size: 0.9rem;
}

/* =========================================================
   CIRCUIT 2027 PAGE — Leaflet map + event cards
   ========================================================= */

.circuit-hero { padding: 40px 0 10px; }
.circuit-hero .section-heading { margin-bottom: 8px; }
.circuit-hero .section-intro { margin-bottom: 26px; }

.circuit-map-wrap {
  position: relative;
  width: 100%;
  height: clamp(360px, 52vw, 560px);
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0a0a0c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
#circuit-map { width: 100%; height: 100%; background: #0a0a0c; font-family: var(--font-body); }

.leaflet-container {
  background: #0a0a0c !important;
  font-family: var(--font-body) !important;
  color: var(--text) !important;
  outline: none;
}

.leaflet-control-attribution {
  background: rgba(16, 16, 18, 0.85) !important;
  color: var(--text-muted) !important;
  font-size: 10px !important;
  padding: 2px 6px !important;
  border-radius: 0 !important;
  backdrop-filter: blur(4px);
}
.leaflet-control-attribution a { color: var(--gold) !important; }
.leaflet-control-attribution a:hover { color: #f0d59a !important; }

.leaflet-control-zoom a {
  background: rgba(16, 16, 18, 0.92) !important;
  color: var(--gold) !important;
  border-color: rgba(212, 177, 106, 0.28) !important;
  transition: background .15s ease, color .15s ease;
}
.leaflet-control-zoom a:hover {
  background: #1c181b !important;
  color: #f0d59a !important;
}
.leaflet-bar {
  border: 1px solid rgba(212, 177, 106, 0.28) !important;
  border-radius: 4px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden;
}

/* ---- Map markers: per-level colors + neon glow ---- */
.leaflet-gp-marker {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.leaflet-gp-marker--a {
  fill: var(--level-a);
  filter: drop-shadow(0 0 4px rgba(231, 76, 60, 0.95))
          drop-shadow(0 0 10px rgba(231, 76, 60, 0.5));
}
.leaflet-gp-marker--b {
  fill: var(--level-b);
  filter: drop-shadow(0 0 4px rgba(232, 146, 62, 0.95))
          drop-shadow(0 0 10px rgba(232, 146, 62, 0.5));
}
.leaflet-gp-marker--c {
  fill: var(--level-c);
  filter: drop-shadow(0 0 4px rgba(76, 175, 80, 0.95))
          drop-shadow(0 0 10px rgba(76, 175, 80, 0.5));
}
.leaflet-gp-marker--d {
  fill: var(--level-d);
  filter: drop-shadow(0 0 4px rgba(93, 173, 226, 0.95))
          drop-shadow(0 0 10px rgba(93, 173, 226, 0.5));
}
.leaflet-gp-marker--finale {
  fill: var(--level-f);
  filter: drop-shadow(0 0 4px rgba(231, 204, 61, 0.95))
          drop-shadow(0 0 12px rgba(231, 204, 61, 0.55));
}

.leaflet-gp-marker:hover {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85))
          drop-shadow(0 0 16px rgba(231, 204, 61, 0.55));
}

/* ---- Click popup ---- */
.gp-popup .leaflet-popup-content-wrapper {
  background: rgba(49, 57, 77, 0.97) !important;
  color: rgba(207, 207, 207, 0.92) !important;
  border: 1px solid rgba(83, 80, 80, 0.55) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(71, 57, 10, 0.7) !important;
}
.gp-popup .leaflet-popup-tip {
  background: rgba(49, 57, 77, 0.97) !important;
  border: 1px solid rgba(83, 80, 80, 0.55) !important;
}
.gp-popup .leaflet-popup-content { margin: 12px 14px !important; line-height: 1.45; }
.gp-popup .leaflet-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 18px !important;
  padding: 4px 8px 0 0 !important;
  background: transparent !important;
}
.gp-popup .leaflet-popup-close-button:hover {
  color: var(--gold) !important;
  background: transparent !important;
}

/* Updated to override Leaflet's default blue link color */
.gp-popup .map-popup-title {
  display: block;
  margin: 0 0 4px;
  color: var(--gold); /* This is the gold color you wanted */
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.gp-popup .map-popup-title:hover {
  color: #f0d59a; /* A slightly lighter gold when hovering, so you still see a change */
  border-bottom-color: rgba(212, 177, 106, 0.6);
}
}
.map-popup-city {
  display: block;
  margin: 0 0 6px;
  color: rgba(207, 207, 207, 0.65);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.map-popup-dates {
  display: block;
  margin: 0 0 6px;
  color: rgba(207, 207, 207, 0.85);
  font-size: 12px;
  font-weight: 500;
}
.map-popup-level {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  border: 1px solid transparent;
}
.map-popup-level--a { color: #fff; background: var(--level-a); border-color: var(--level-a); }
.map-popup-level--b { color: #fff; background: var(--level-b); border-color: var(--level-b); }
.map-popup-level--c { color: #fff; background: var(--level-c); border-color: var(--level-c); }
.map-popup-level--d { color: #fff; background: var(--level-d); border-color: var(--level-d); }
.map-popup-level--finale { color: #171414; background: var(--level-f); border-color: var(--level-f); }

/* =========================================================
   CIRCUIT 2027 — event cards
   photo LEFT, content + link RIGHT
   ========================================================= */

.circuit-events {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
}

.circuit-event {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(118, 37, 45, .10), transparent 55%),
    linear-gradient(145deg, #211d21, #191719);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .3s ease, transform .2s ease;
  scroll-margin-top: 100px;
}
.circuit-event:hover {
  border-color: rgba(212, 177, 106, .35);
  transform: translateY(-2px);
}

.circuit-event.is-highlighted {
  border-color: rgba(212, 177, 106, 0.7);
  animation: highlight-pulse 1.6s ease;
}
@keyframes highlight-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 177, 106, 0.6); }
  50%  { box-shadow: 0 0 0 6px rgba(212, 177, 106, 0.15), 0 0 40px rgba(212, 177, 106, 0.25); }
  100% { box-shadow: 0 0 0 0 rgba(212, 177, 106, 0); }
}

/* Column 1 = photo, Column 2 = content + link */
.circuit-event-aside { grid-column: 1; grid-row: 1; min-width: 0; }
.circuit-event-main  { grid-column: 2; grid-row: 1; min-width: 0; }

.circuit-event-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.circuit-event-name {
  margin: 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.circuit-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.45;
}
.circuit-event-loc,
.circuit-event-date { display: inline-flex; align-items: center; gap: 7px; }
.circuit-flag { font-size: 1.1em; line-height: 1; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)); }
.circuit-event-date { color: var(--gold); font-weight: 600; }
.circuit-event-date svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--gold); }

.circuit-event-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.7;
}
.circuit-event-note {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: .75rem;
  font-style: italic;
  opacity: .8;
}

/* Website icon — under the description */
.circuit-event-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 14px;
  color: var(--gold);
  background: rgba(212, 177, 106, .06);
  border: 1px solid rgba(212, 177, 106, .25);
  border-radius: 6px;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.circuit-event-link:hover {
  color: #f0d59a;
  background: rgba(212, 177, 106, .14);
  border-color: rgba(212, 177, 106, .5);
  transform: scale(1.06);
}
.circuit-event-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.circuit-event-link svg { width: 18px; height: 18px; }

/* Photo */
.circuit-event-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 177, 106, 0.15);
  background: linear-gradient(135deg, #211d21, #191719);
}
.circuit-event-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  z-index: 1;
}
.circuit-event-photo-icon { width: 22px; height: 22px; opacity: 0.5; }
.circuit-event-photo-name {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  opacity: 0.7;
  word-break: break-all;
}
.circuit-event-photo img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card level badges — same palette as the map markers */
.circuit-level--a {
  color: #fff;
  background: var(--level-a);
  border-color: var(--level-a);
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.35);
}
.circuit-level--b {
  color: #fff;
  background: var(--level-b);
  border-color: var(--level-b);
  box-shadow: 0 0 10px rgba(232, 146, 62, 0.35);
}
.circuit-level--c {
  color: #fff;
  background: var(--level-c);
  border-color: var(--level-c);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.35);
}
.circuit-level--d {
  color: #fff;
  background: var(--level-d);
  border-color: var(--level-d);
  box-shadow: 0 0 10px rgba(93, 173, 226, 0.35);
}
.circuit-level--finale {
  color: #171414;
  background: linear-gradient(135deg, #e7cc3d, #d4b16a);
  border-color: var(--level-f);
  box-shadow: 0 0 12px rgba(231, 204, 61, 0.45);
}

/* Finale card accent */
.circuit-event--finale {
  border-color: rgba(212, 177, 106, .38);
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 177, 106, .12), transparent 55%),
    linear-gradient(145deg, #221d1a, #171414);
}
.circuit-event--finale .circuit-event-name { color: var(--gold); }


/* =========================================================
   RESPONSIVE — component-level breakpoints
   ========================================================= */

@media (max-width: 1100px) {
  .follow-section::before { opacity: 0.09; }
}

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pool-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { max-width: none; padding: 46px 0 56px; }
  .hero-map-panel { display: none; }
  .home-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .presentation { grid-template-columns: 1fr; }
  .broadcast-card { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .broadcast-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .follow-section::before { display: none; }
  .schedule-days { grid-template-columns: 1fr; }
  .circuit-list { grid-template-columns: 1fr; }
  .rules-block { padding: 28px 22px; }

  .circuit-map-wrap { height: clamp(300px, 72vw, 420px); }

  .circuit-event {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .home-links-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .follow-section { padding: 56px 0 60px; }
  .live-stage { margin-bottom: 28px; }
  .live-placeholder-title { font-size: 1.15rem; }
  .live-placeholder-sub { font-size: 0.82rem; }
  .live-placeholder { gap: 10px; }

  .circuit-hero { padding: 26px 0 6px; }
  .circuit-event-name { font-size: 1.1rem; }
  .circuit-event-meta { font-size: .86rem; gap: 4px 16px; }
  .circuit-event-desc { font-size: .9rem; }
  .circuit-event-link { width: 36px; height: 36px; }
  .circuit-event-link svg { width: 16px; height: 16px; }

  /* Stacked layout: photo on top, content below */
  .circuit-event {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .circuit-event-aside { grid-column: 1; grid-row: 1; }
  .circuit-event-main  { grid-column: 1; grid-row: 2; }
  .circuit-event-photo { aspect-ratio: 16 / 9; max-height: 240px; }
  
  .prize-table th,
  .prize-table td {
    padding: 12px 10px;
  }
  .prize-table {
    font-size: 0.88rem;
  }
}

@media (max-width: 520px) {
  .officials-inline { grid-template-columns: 1fr; }
}

/* =========================================================
   RESPONSIVE — global layout, header / nav, footer
   ========================================================= */

@media (max-width: 960px) {
  html { scroll-padding-top: 90px; }
  :root { --header-height: 76px; }

  .header-inner { padding-left: 20px; padding-right: 20px; gap: 16px; }
  .brand-logo { width: 170px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 20px 14px;
    background: rgba(16, 16, 18, 0.99);
    border-bottom: 1px solid rgba(212, 177, 106, 0.17);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid rgba(212, 177, 106, 0.1); }
  .site-nav a:last-child { border-bottom: 0; }

  .hero-copy { padding: 40px 0 48px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 7vw, 3.8rem); }
  .hero-copy h1 span { font-size: clamp(2.9rem, 8.5vw, 4.4rem); }
  .hero-intro { font-size: 1rem; line-height: 1.75; }

  .schedule-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  .pool-card { padding: 16px 14px 12px; }
  .rr-table { min-width: 420px; }
  .rr-table tbody th { min-width: 110px; }
  .rr-player-header { min-width: 120px; }
  .rr-name { white-space: normal; }
  .rr-table th,
  .rr-table td { font-size: 0.85rem; padding: 6px 4px; }

  .footer-main {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
  }
  .footer-egf img { height: 58px; }
  .footer-sponsors { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-sponsors img { height: 50px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  :root { --header-height: 68px; }

  .section { padding: 44px 0; }
  .home-section { padding: 44px 0; }
  .home-links { padding: 34px 0 40px; }
  .info-section { padding: 44px 0 64px; }

  .brand-logo { width: 145px; }

  .hero-copy { padding: 32px 0 40px; }
  .hero-copy h1 { font-size: clamp(2.1rem, 8.6vw, 2.9rem); }
  .hero-copy h1 span { font-size: clamp(2.4rem, 10.5vw, 3.3rem); }
  .hero-intro { font-size: 0.96rem; }
  .hero-details { gap: 8px 18px; font-size: 0.88rem; }

  .home-link-card { padding: 22px; min-height: 0; }
  .home-link-card h2 { font-size: 1.4rem; }

  .info-toc { margin-bottom: 34px; padding: 12px 0; gap: 8px; }
  .info-toc a { font-size: 0.8rem; padding: 7px 12px; }

  .rules-toc a { font-size: 0.76rem; }
  .rules-section-title { font-size: 1.15rem; }
  .rules-block-title { margin-bottom: 22px; }

  .key-info li { flex-wrap: wrap; gap: 2px 12px; }
  .key-info-label { flex: 0 0 auto; }
  .key-info-value { font-size: 1.08rem; }

  .director-quote { padding-left: 18px; margin-bottom: 40px; }
  .broadcast-card { padding: 22px 18px; }
  .broadcast-card h3 { font-size: 1.45rem; }

  .sponsors-strip { padding: 16px; gap: 14px; }
  .sponsors-strip img { height: 42px; }

  .schedule-day { padding: 18px; }
  .schedule-events li { gap: 12px; font-size: 0.9rem; }

  .follow-actions { gap: 14px; }
  .follow-link-btn { font-size: 0.86rem; }

  .footer-egf img { height: 48px; }
  .footer-sponsors { gap: 12px; }
  .footer-sponsors img { height: 42px; padding: 4px 8px; }
  .footer-bottom { text-align: center; font-size: 0.75rem; }
}

@media (max-width: 380px) {
  .brand-logo { width: 128px; }
  .hero-copy h1 { font-size: 1.95rem; }
  .hero-copy h1 span { font-size: 2.2rem; }
  .footer-sponsors img { height: 36px; }
  .live-placeholder-badge { font-size: 0.6rem; letter-spacing: 0.08em; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .circuit-map { opacity: 1; }
}
