:root {
  --bg: #07111f;
  --surface: rgba(12, 29, 52, 0.82);
  --surface-strong: #102742;
  --surface-dark: #050c16;
  --line: rgba(120, 168, 241, 0.18);
  --text: #f4f8ff;
  --muted: #a9bdd8;
  --accent: #e2372f;
  --accent-2: #2f6fe8;
  --accent-3: #3b8cff;
  --danger: #ef6f64;
  --warning: #ffd166;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --radius-sm: 16px;
  --page-gutter: 40px;
  --max: calc(100vw - var(--page-gutter) - var(--page-gutter));
  --motion-quick: 140ms;
  --motion-press: 180ms;
  --motion-standard: 240ms;
  --motion-compact: 280ms;
  --motion-reflow: 420ms;
  --motion-reveal: 520ms;
  --motion-page: 580ms;
  --motion-page-lines: 320ms;
  --motion-caption: 160ms;
  --motion-caption-exit: 140ms;
  --motion-settle: cubic-bezier(0.2, 0, 0, 1);
  --motion-ease-enter: cubic-bezier(0.2, 0, 0, 1);
  --motion-ease-exit: cubic-bezier(0.3, 0, 1, 1);
  --motion-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-playful: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Formula1 Regular";
  background:
    radial-gradient(circle at top left, rgba(47, 111, 232, 0.26), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(226, 55, 47, 0.2), transparent 18%),
    radial-gradient(circle at 50% 120%, rgba(59, 140, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #06101d 0%, #091a30 45%, #08111d 100%);
  min-height: 100vh;
}

body[aria-busy="true"] {
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.55;
}

body::before {
  width: 280px;
  height: 280px;
  right: -90px;
  top: 120px;
  background: radial-gradient(circle, rgba(47, 111, 232, 0.35), transparent 65%);
}

body::after {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 520px;
  background: radial-gradient(circle, rgba(226, 55, 47, 0.18), transparent 66%);
}

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

button,
input,
select,
textarea {
  font-family: inherit;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(59, 140, 255, 0.22);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-3);
  color: #06101d;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform var(--motion-press) var(--motion-ease-enter);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

code {
  font-family: "Formula1 Regular";
  font-size: 0.92em;
}

.site-header,
.hero,
.page-main,
.footer {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.page-main > *,
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
}

.topbar {
  width: 100%;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 20px;
  background: rgba(10, 25, 45, 0.76);
  border: 1px solid rgba(120, 168, 241, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 16px;
  z-index: 20;
  box-shadow: var(--shadow);
}

.brand,
h1,
h2,
h3 {
  font-family: "Formula1 Bold";
}

.brand {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-favicon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 8px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong {
  color: #f5f8ff;
  font-family: "Formula1 Bold", sans-serif;
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  letter-spacing: 0.09em;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-copy small {
  color: #8fb9ee;
  font-family: "Formula1 Regular", sans-serif;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color var(--motion-quick) ease, transform var(--motion-quick) var(--motion-settle);
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--motion-standard) var(--motion-settle);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-current::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-links a.is-current {
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(120, 168, 241, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: "Formula1 Bold";
  font-size: 0.68rem;
  cursor: pointer;
  transition: transform var(--motion-quick) var(--motion-settle), background var(--motion-standard) ease, border-color var(--motion-standard) ease, color var(--motion-standard) ease, box-shadow var(--motion-standard) ease;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  pointer-events: none;
  background: rgba(5, 12, 22, 0.32);
}

.scroll-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 14px rgba(59, 140, 255, 0.7);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  border-color: rgba(59, 140, 255, 0.58);
  background: rgba(47, 111, 232, 0.14);
  color: #fff;
  box-shadow: 0 10px 24px rgba(3, 12, 27, 0.24);
  transform: translateY(-1px);
}

.mobile-menu-toggle:active {
  transform: translateY(1px) scale(0.98);
}

.mobile-menu-toggle-icon {
  font-family: "Formula1 Regular";
  font-size: 1.15rem;
  line-height: 1;
}

.brand::after,
.topbar-brand::after {
  content: " - " attr(data-season-label);
}

.brand[data-season-label=""]::after,
.topbar-brand[data-season-label=""]::after {
  content: "";
}

.season-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(120, 168, 241, 0.18);
}

.season-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-family: "Formula1 Bold";
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background var(--motion-press) var(--motion-ease-smooth), color var(--motion-press) var(--motion-ease-smooth), transform var(--motion-press) var(--motion-ease-enter), box-shadow var(--motion-press) var(--motion-ease-smooth);
}

.season-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.season-chip:active {
  transform: translateY(1px) scale(0.98);
}

.season-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(47, 111, 232, 0.95), rgba(226, 55, 47, 0.95));
  box-shadow: 0 10px 20px rgba(8, 16, 29, 0.28);
}

.season-chip.is-upcoming-season {
  gap: 0.45rem;
  min-width: auto;
}

.season-chip-status {
  color: #b9d8ff;
  font-family: "Formula1 Regular", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 90rem) and (min-width: 75.01rem) {
  .topbar {
    gap: 14px;
    padding-inline: 16px;
  }

  .topbar-actions {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: nowrap;
    gap: 10px;
    font-size: 0.86rem;
  }

  .nav-links a {
    white-space: nowrap;
  }
}

@media (max-width: 75rem) and (min-width: 42.56rem) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 16px;
    border-radius: 18px;
  }

  .topbar-brand::after {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar-actions {
    display: none;
    width: 100%;
    min-width: 0;
    align-items: start;
    justify-content: initial;
    flex-direction: initial;
    flex-wrap: initial;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .topbar.is-menu-open {
    flex-wrap: wrap;
  }

  .topbar.is-menu-open .topbar-actions {
    display: grid;
  }

  .season-switcher {
    flex: 0 0 auto;
    margin: 0;
    padding: 4px;
  }

  .season-chip {
    min-height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 0.66rem;
    white-space: nowrap;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    min-width: 0;
    width: auto;
    max-width: none;
    overflow: visible;
    padding-bottom: 0;
    justify-content: initial;
    font-size: 0.7rem;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid rgba(120, 168, 241, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    font-size: inherit;
    white-space: nowrap;
  }
}

.hero {
  padding-top: 28px;
}

.loading-shell {
  min-height: calc(100vh - 120px);
  padding-top: 42px;
}

.loading-hero {
  display: grid;
  gap: 18px;
}

.loading-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(120, 168, 241, 0.18);
  background: rgba(8, 20, 37, 0.68);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(169, 189, 216, 0.28);
  border-top-color: var(--accent-3);
  animation: loading-spin 0.9s linear infinite;
}

.loading-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 18px;
}

.loading-card {
  position: relative;
  overflow: hidden;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(120, 168, 241, 0.16);
  background:
    linear-gradient(135deg, rgba(47, 111, 232, 0.14), rgba(226, 55, 47, 0.12)),
    rgba(8, 20, 37, 0.82);
}

.loading-card::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: loading-shimmer 1.8s infinite;
}

.loading-card-large {
  min-height: 54px;
}

.loading-shell > .loading-hero::after {
  top: 28px;
  bottom: auto;
  transform: none;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-shimmer {
  to {
    transform: translateX(100%);
  }
}

.page-main > .hero {
  max-width: none;
  margin: 0;
  padding-inline: 0;
}

.split-layout,
.info-grid,
.participants-grid,
.calendar-grid,
.ranking-layout,
.gallery-grid,
.footer-grid,
.highlights-list,
.stack-layout {
  display: grid;
  gap: 18px;
}

.hero-intro {
  max-width: var(--max);
  margin: 0 auto 18px;
  padding: 24px 28px;
  border: 1px solid rgba(120, 168, 241, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(47, 111, 232, 0.18), rgba(226, 55, 47, 0.16)),
    rgba(7, 16, 31, 0.84);
  box-shadow: var(--shadow);
}

.hero-card {
  min-width: 0;
}

.hero-card {
  padding: 28px;
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(47, 111, 232, 0.35), rgba(226, 55, 47, 0.42)),
    var(--surface-dark);
  box-shadow: var(--shadow);
  border: 1px solid rgba(120, 168, 241, 0.2);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.hero-frase-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-frase-picture {
  display: block;
  position: relative;
  z-index: 1;
}

.home-page .hero {
  padding-top: 30px;
}

.home-page .hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  align-items: stretch;
  gap: 18px;
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 16px;
  border-radius: 30px;
  border-color: rgba(120, 168, 241, 0.28);
  background: linear-gradient(125deg, rgba(5, 15, 29, 0.98) 0%, rgba(9, 28, 52, 0.96) 56%, rgba(52, 17, 39, 0.98) 100%);
  box-shadow: var(--shadow);
}

.home-page .home-hero-art {
  display: grid;
  align-items: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.home-page .hero-intro::before {
  content: "";
  position: absolute;
  inset: 0 0 0 48%;
  background: linear-gradient(135deg, transparent 0 18%, rgba(226, 55, 47, 0.82) 18% 54%, rgba(137, 28, 54, 0.5) 54% 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.86;
}

.home-page .hero-intro::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: 5%;
  bottom: -270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 232, 0.36), transparent 68%);
}

.home-page .hero-frase-banner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 250px;
  min-height: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  box-shadow: none;
}

.home-page .hero-frase-picture {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.home-page .home-hero-stage-card {
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 20px;
  z-index: 1;
}

.home-page .home-hero-stage-card .summary-stage-copy {
  justify-content: center;
}

.home-page .home-hero-stage-card .summary-stage-meta {
  gap: 12px;
  margin-top: 0;
  padding-top: 12px;
}

.home-page .summary-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.18fr);
  gap: 18px;
}

.home-page .summary-stage-card {
  grid-column: span 1;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  align-content: stretch;
  align-items: stretch;
}

.home-page .summary-stage-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-page .summary-stage-card,
.home-page .home-summary-results-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border-color: rgba(120, 168, 241, 0.25);
  background: linear-gradient(135deg, rgba(12, 31, 57, 0.94), rgba(8, 20, 37, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.home-page .summary-stage-card::before,
.home-page .home-summary-results-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.home-page .summary-box-title {
  color: #c7d7ed;
  font-family: "Formula1 Bold";
  letter-spacing: 0.1em;
}

.home-page .summary-stage-copy > strong,
.home-page .home-summary-results-block > strong {
  font-family: "Formula1 Bold";
}

.home-page .home-winner-row {
  border-color: rgba(120, 168, 241, 0.18);
  background: rgba(255, 255, 255, 0.055);
}

.page-main,
.footer {
  padding-top: 24px;
  padding-bottom: 28px;
}

.page-hero {
  padding: 12px 0 10px;
}

.pilot-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.pilot-hero-copy {
  min-width: 0;
  flex: 1 1 320px;
}

.pilot-hero-status {
  margin-top: 12px;
}

.pilot-back-link {
  margin-top: 14px;
}

.pilot-photo-frame {
  flex: 0 0 auto;
}

.pilot-photo {
  width: 152px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

@font-face {
  font-family: "Formula1 Regular";
  src: url("/fonts/Formula1-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Formula1 Bold";
  src: url("/fonts/Formula1-Bold.ttf") format("truetype");
  font-display: swap;
}

.pilot-f1-page {
  --pilot-red: #ed3444;
  --pilot-red-soft: rgba(237, 52, 68, 0.2);
  font-family: "Formula1 Regular";
}

.pilot-f1-page * {
  font-family: inherit;
}

.pilot-f1-page :is(h1, h2, h3, h4, h5, h6, strong, b, button, .eyebrow,
    .pilot-driver-back, .pilot-driver-kicker, .pilot-driver-stat span,
    .pilot-f1-metric span) {
  font-family: "Formula1 Bold";
}

.pilot-driver-hero {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid rgba(120, 168, 241, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(128deg, rgba(6, 16, 31, 0.98) 0%, rgba(11, 30, 56, 0.96) 58%, rgba(45, 18, 35, 0.98) 100%);
  box-shadow: var(--shadow);
}

.pilot-driver-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 47%;
  background: linear-gradient(135deg, transparent 0 18%, rgba(226, 55, 47, 0.82) 18% 52%, rgba(137, 28, 54, 0.52) 52% 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.88;
}

.pilot-driver-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: 5%;
  bottom: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 232, 0.35), transparent 68%);
  pointer-events: none;
}

.pilot-driver-hero-topline,
.pilot-driver-hero-main,
.pilot-driver-stat-strip {
  position: relative;
  z-index: 1;
}

.pilot-driver-hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 30px 0;
}

.pilot-driver-back {
  color: #d6e4f9;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pilot-driver-back:hover,
.pilot-driver-back:focus-visible {
  color: #fff;
}

.pilot-driver-compare {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.pilot-driver-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 350px);
  align-items: end;
  min-height: 326px;
  padding: 12px 38px 0;
}

.pilot-driver-hero-copy {
  align-self: center;
  min-width: 0;
  padding: 28px 0 44px;
}

.pilot-driver-kicker {
  margin: 0 0 16px;
  color: #c7d7ed;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


.pilot-driver-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: "Formula1 Bold";
  font-size: clamp(2.35rem, 5.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  font-weight: 400;
  text-wrap: balance;
}

.pilot-driver-subtitle {
  margin: 18px 0 16px;
  color: #d6e4f9;
  font-size: 1.1rem;
  font-weight: 600;
}

.pilot-driver-status {
  width: auto;
  min-width: 72px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 12, 22, 0.34);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pilot-driver-hero .pilot-photo-frame {
  align-self: end;
  justify-self: end;
  width: min(100%, 350px);
  height: 326px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.36));
}

.pilot-driver-hero .pilot-photo-f1 {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center bottom;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pilot-driver-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 13, 26, 0.62);
}

.pilot-driver-stat {
  min-width: 0;
  padding: 17px 20px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.pilot-driver-stat:last-child {
  border-right: 0;
}

.pilot-driver-stat span,
.pilot-f1-metric span {
  display: block;
  color: #a9bdd8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pilot-driver-stat strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-family: "Formula1 Bold";
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.1;
  font-weight: 800;
}

.pilot-driver-stat small {
  display: block;
  margin-top: 5px;
  color: #afc1d8;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pilot-f1-section {
  padding-top: 36px;
}

.pilot-f1-section-heading {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.pilot-f1-section-heading .eyebrow {
  margin-bottom: 8px;
}

.pilot-f1-section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  text-transform: uppercase;
  font-family: "Formula1 Bold";
  font-weight: 800;
}

.pilot-f1-section-rule {
  flex: 1;
  height: 4px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--pilot-red), rgba(47, 111, 232, 0.6), transparent);
}

.pilot-f1-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(120, 168, 241, 0.2);
  border-radius: 18px;
  background: rgba(120, 168, 241, 0.18);
}

.pilot-f1-metric {
  min-height: 112px;
  padding: 22px 20px 18px;
  background: rgba(8, 22, 40, 0.96);
  border-left: 3px solid transparent;
  text-align: center;
}

.pilot-f1-metric:nth-child(-n + 4) {
  border-left-color: var(--pilot-red);
}

.pilot-f1-metric strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-family: "Formula1 Bold";
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
  font-weight: 800;
}

.pilot-f1-discipline-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 18px;
  border-left: 3px solid var(--pilot-red);
  background: rgba(8, 22, 40, 0.72);
  color: var(--muted);
}

.pilot-f1-discipline-line strong {
  color: #fff;
}

.pilot-f1-discipline-line small {
  color: #a9bdd8;
  font-size: 0.82em;
  font-weight: 500;
}

.pilot-discard-summary {
  margin-top: 14px;
  padding: 16px 18px;
  border-left: 3px solid rgba(47, 111, 232, 0.8);
  background: rgba(8, 22, 40, 0.72);
}

.pilot-discard-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #fff;
  font-family: "Formula1 Bold";
}

.pilot-discard-summary-head small {
  color: #a9bdd8;
  font-family: "Formula1 Regular";
  font-size: 0.78rem;
  font-weight: 500;
}

.pilot-discard-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pilot-discard-item {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(120, 168, 241, 0.18);
  background: rgba(8, 22, 40, 0.78);
  text-align: center;
}

.pilot-discard-item span,
.pilot-discard-item small {
  color: #a9bdd8;
  font-size: 0.78rem;
}

.pilot-discard-item strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pilot-discard-empty {
  color: #a9bdd8;
}

.pilot-f1-panel {
  border-radius: 18px;
  background: rgba(8, 22, 40, 0.82);
}

.page-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-hero h1,
.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5.8vw, 5rem);
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-text,
.section-text,
.feature-card p,
.card-meta,
.muted-note {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button,
.download-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 18px;
  background: var(--bk-button-primary-background);
  color: white;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition: transform var(--motion-quick) var(--motion-settle), background var(--motion-standard) ease, border-color var(--motion-standard) ease, box-shadow var(--motion-standard) ease, color var(--motion-standard) ease;
}

.button-primary {
  background: var(--bk-button-primary-background);
  color: white;
}

.button-secondary {
  background: var(--bk-button-secondary-background);
  border-color: var(--bk-button-secondary-border);
  color: var(--bk-button-secondary-text);
}

.button::before,
.report-link::before,
.download-pill::before {
  position: absolute;
  inset: 0 auto 0 -55%;
  width: 42%;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: transform var(--motion-reveal) var(--motion-settle);
}

.button:hover,
.button:focus-visible,
.report-link:hover,
.report-link:focus-visible,
.download-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(3, 12, 27, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.button:hover::before,
.button:focus-visible::before,
.report-link:hover::before,
.report-link:focus-visible::before,
.download-pill:hover::before {
  transform: translateX(330%) skewX(-18deg);
}

.button:active,
.report-link:active,
.download-pill:active {
  transform: translateY(1px) scale(0.985);
  transition-duration: 80ms;
  box-shadow: 0 8px 16px rgba(3, 12, 27, 0.22);
}

:is(.button, .report-link) .inline-icon,
.download-link .download-pill {
  transition: transform var(--motion-standard) var(--motion-settle);
}

:is(.button, .report-link):hover .inline-icon,
:is(.button, .report-link):focus-visible .inline-icon {
  transform: translateX(2px);
}

:is(.button, .report-link, .download-link, .stage-nav-card, .championship-link-card, .gallery-thumb-button, .gallery-modal-close, .favorite-toggle, .mobile-menu-toggle):focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(59, 140, 255, 0.22), 0 14px 28px rgba(3, 12, 27, 0.24);
}

.section {
  padding-top: 28px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading-with-action {
  display: grid;
  gap: 10px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.stage-hero-media {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stage-nav-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 96px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(120, 168, 241, 0.18);
  background: rgba(10, 25, 45, 0.72);
  box-shadow: var(--shadow);
  transition: transform var(--motion-standard) var(--motion-settle), border-color var(--motion-standard) ease, background var(--motion-standard) ease, box-shadow var(--motion-standard) ease;
}

.stage-nav-card:hover,
.stage-nav-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(120, 168, 241, 0.32);
  background: rgba(12, 29, 52, 0.86);
  box-shadow: 0 16px 34px rgba(3, 12, 27, 0.24);
}

.stage-nav-card:active {
  transform: translateY(1px) scale(0.99);
}

.stage-nav-direction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stage-nav-card strong {
  font-family: "Formula1 Bold";
  font-size: 1.08rem;
  line-height: 1.2;
}

.stage-nav-card span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.stage-nav-disabled {
  opacity: 0.6;
}

.stage-hero-map {
  display: flex;
  align-items: flex-start;
}

.stage-hero-report-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  align-self: center;
}

.ranking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.report-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bk-button-primary-background);
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--motion-quick) var(--motion-settle), background var(--motion-standard) ease, border-color var(--motion-standard) ease, box-shadow var(--motion-standard) ease, color var(--motion-standard) ease;
}

.report-link:hover {
  filter: brightness(1.05);
}

.report-link-secondary {
  background: var(--bk-button-secondary-background);
  border-color: var(--bk-button-secondary-border);
  color: var(--bk-button-secondary-text);
  box-shadow: none;
}

.report-link-secondary:hover {
  background: var(--bk-button-secondary-hover);
}

.report-link-print .report-icon {
  color: #fff;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-link-small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.7rem;
}

@media (max-width: 680px) {
  .ranking-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-card-head .report-link {
    justify-content: center;
    width: 100%;
  }

  .report-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.stage-series-switcher-shell {
  width: 100%;
  max-width: var(--max);
  margin: 28px auto 4px;
}

.stage-series-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 16, 31, 0.72);
  width: fit-content;
}

.stage-series-button {
  min-width: 118px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--motion-press) var(--motion-ease-smooth), border-color var(--motion-press) var(--motion-ease-smooth), color var(--motion-press) var(--motion-ease-smooth), transform var(--motion-press) var(--motion-ease-enter);
}

.stage-series-button:hover,
.stage-series-button:focus-visible {
  color: var(--text);
  border-color: rgba(120, 168, 241, 0.35);
  transform: translateY(-1px);
}

.stage-series-button:active {
  transform: translateY(1px) scale(0.98);
}

.stage-series-button:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}

.stage-series-button.is-active {
  background: var(--bk-button-primary-background);
  color: white;
  box-shadow: var(--shadow);
}

.ranking-series-switcher-shell {
  width: 100%;
  max-width: var(--max);
  margin: 24px auto 4px;
}

.ranking-series-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100%, 660px);
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 16, 31, 0.72);
}

.ranking-series-button {
  flex: 1 1 128px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--motion-press) var(--motion-ease-smooth), border-color var(--motion-press) var(--motion-ease-smooth), color var(--motion-press) var(--motion-ease-smooth), transform var(--motion-press) var(--motion-ease-enter);
}

.ranking-series-button:hover,
.ranking-series-button:focus-visible {
  color: var(--text);
  border-color: rgba(120, 168, 241, 0.35);
  transform: translateY(-1px);
}

.ranking-series-button:active {
  transform: translateY(1px) scale(0.98);
}

.ranking-series-button:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}

.ranking-series-button.is-active {
  background: var(--bk-button-primary-background);
  color: white;
  box-shadow: var(--shadow);
}

.ranking-card-context {
  max-width: 700px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 680px) {
  .ranking-series-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border-radius: 22px;
  }

  .ranking-series-button {
    min-width: 0;
    padding: 0 10px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
}

.stage-series-section[hidden],
.stage-hero-report-stack [hidden],
[data-ranking-panel][hidden],
[data-stage-series-row][hidden],
[data-stage-penalties-empty][hidden] {
  display: none;
}

.report-icon {
  color: var(--accent-3);
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
}

.info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.championship-hero-copy {
  max-width: 760px;
  padding-right: 210px;
}

.championship-page-hero .hero-text {
  max-width: 680px;
  margin-top: 16px;
}

.championship-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
  color: #d5e3f6;
  font-size: 0.86rem;
  font-weight: 700;
}

.championship-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.championship-hero-meta .inline-icon {
  color: var(--accent-3);
}

.championship-format-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1.66fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: 30px 32px;
  border: 1px solid rgba(120, 168, 241, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 4% 50%, rgba(59, 140, 255, 0.2), transparent 28%),
    linear-gradient(115deg, rgba(14, 34, 62, 0.96), rgba(7, 19, 36, 0.98) 62%, rgba(46, 17, 39, 0.94));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.championship-format-story::before,
.championship-format-story::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.championship-format-story::before {
  top: -50%;
  right: 8%;
  width: 34%;
  height: 200%;
  transform: rotate(28deg);
  background: linear-gradient(180deg, transparent, rgba(226, 55, 47, 0.2), transparent);
}

.championship-format-story::after {
  right: 0;
  bottom: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-3));
  opacity: 0.75;
}

.championship-format-mark,
.championship-format-copy {
  position: relative;
  z-index: 1;
}

.championship-format-mark {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 148px;
  padding: 14px;
  border-right: 1px solid rgba(120, 168, 241, 0.2);
  color: var(--text);
  text-align: center;
}

.championship-format-mark strong {
  font-family: "Formula1 Bold";
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.championship-format-mark span {
  margin-top: 13px;
  color: var(--accent-3);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.championship-format-mark i {
  width: 58px;
  height: 3px;
  margin-top: 15px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.championship-format-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  line-height: 1.12;
}

.championship-format-copy > p:not(.eyebrow) {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.championship-format-copy > p strong {
  color: #fff;
}

.championship-format-series {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.championship-format-series-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--accent-3) 32%, transparent);
  border-radius: 999px;
  color: #e7f1ff;
  background: color-mix(in srgb, var(--accent-3) 12%, transparent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.championship-format-series-chip:nth-child(2n) {
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.championship-format-series-chip.is-muted {
  color: var(--muted);
  border-color: rgba(120, 168, 241, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.championship-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  margin-top: 20px;
}

.championship-overview-copy,
.championship-stats-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(120, 168, 241, 0.22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(14, 34, 62, 0.9), rgba(7, 19, 36, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.championship-overview-copy {
  padding: 28px 30px;
}

.championship-overview-copy::before,
.championship-stats-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.championship-overview-copy h2 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  line-height: 1.12;
}

.championship-overview-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.championship-stats-panel {
  padding: 24px;
}

.championship-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text);
  font-family: "Formula1 Bold";
  letter-spacing: 0.04em;
}

.championship-panel-heading small {
  color: #9ec1ff;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.championship-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.championship-stat {
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(120, 168, 241, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.championship-stat strong {
  display: block;
  color: var(--text);
  font-family: "Formula1 Bold";
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  line-height: 1.1;
}

.championship-stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.championship-stat small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.3;
}

.championship-rules-card {
  margin-top: 20px;
}

.championship-rules-card .rules-title-row {
  align-items: flex-end;
}

.championship-rules-card .rules-title-row .eyebrow {
  margin-bottom: 8px;
}

.championship-rules-card .rules-title-row h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.championship-rules-card .rules-docs .eyebrow {
  margin-bottom: 8px;
}

.championship-links-section {
  margin-top: 34px;
}

.championship-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.championship-link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(120, 168, 241, 0.2);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(14, 34, 62, 0.82), rgba(7, 19, 36, 0.94));
  box-shadow: var(--shadow);
  transition: transform var(--motion-standard) var(--motion-settle), border-color var(--motion-standard) ease, background var(--motion-standard) ease, box-shadow var(--motion-standard) ease;
}

.championship-link-card:hover,
.championship-link-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(120, 168, 241, 0.42);
  background: linear-gradient(145deg, rgba(19, 45, 82, 0.94), rgba(8, 22, 41, 0.98));
  box-shadow: 0 16px 34px rgba(3, 12, 27, 0.25);
}

.championship-link-card:active {
  transform: translateY(1px) scale(0.99);
}

.championship-link-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #ff8a82;
  background: rgba(226, 55, 47, 0.13);
}

.championship-link-card strong,
.championship-link-card small {
  display: block;
}

.championship-link-card strong {
  color: var(--text);
  font-family: "Formula1 Bold";
  font-size: 0.96rem;
}

.championship-link-card small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.4;
}

.championship-link-arrow {
  align-self: start;
  color: #9ec1ff;
  font-size: 1.25rem;
}

.summary-grid {
  grid-auto-rows: minmax(160px, auto);
}

.summary-grid .home-summary-results-card {
  grid-column: span 1;
}

.home-summary-results-card {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.home-summary-results-card > .home-summary-results-block {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.home-summary-results-block {
  min-width: 0;
}

.summary-box-title {
  color: var(--accent-3);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.summary-box-title .inline-icon {
  color: currentColor;
  font-size: 1.08rem;
}

.home-summary-results-block > strong {
  display: block;
  margin-top: 12px;
  font-size: 1.15rem;
}

.home-winners-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.home-winner-row {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(120, 168, 241, 0.12);
}

.home-winner-row span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-winner-row strong {
  font-size: 0.98rem;
}

.home-last-stage-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.84rem;
  font-weight: 800;
}

.home-summary-ranking-block .mini-ranking-row:first-child {
  margin-top: 16px;
}

.home-summary-series-rankings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.home-summary-series-ranking {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(120, 168, 241, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.home-summary-series-title {
  display: block;
  color: var(--accent-3);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-summary-series-ranking .mini-ranking-row {
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 0;
  font-size: 0.86rem;
}

.home-summary-series-ranking .mini-ranking-row:first-child {
  margin-top: 8px;
}

.home-summary-ranking-card .home-summary-series-ranking {
  padding: 12px 10px;
}

.home-summary-ranking-card .home-summary-series-title {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.home-summary-ranking-card .home-summary-series-ranking .mini-ranking-row {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 6px;
  padding: 7px 0;
  font-size: 0.8rem;
  line-height: 1.2;
}

.home-top-five-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.top-five-ranking-chart-panel {
  min-width: 0;
}

.home-top-five-chart-intro {
  margin-bottom: 16px;
}

.home-top-five-chart-intro h3 {
  margin: 0;
  font-size: 1.28rem;
}

.home-top-five-chart-intro .section-text {
  margin: 8px 0 0;
}

.sponsors-carousel {
  --sponsor-gap: 18px;
  position: relative;
  overflow: hidden;
  padding: 8px 0 6px;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.sponsors-track {
  display: flex;
  gap: var(--sponsor-gap);
  width: max-content;
  animation: sponsors-scroll 42s linear infinite;
  will-change: transform;
}

.sponsors-carousel:hover .sponsors-track,
.sponsors-carousel:focus-within .sponsors-track {
  animation-play-state: paused;
}

.sponsor-logo-card {
  display: grid;
  place-items: center;
  flex: 0 0 clamp(180px, 22vw, 265px);
  height: 110px;
  padding: 10px 16px;
  border: 1px solid rgba(120, 168, 241, 0.17);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 34, 62, 0.78), rgba(12, 23, 44, 0.86));
}

a.sponsor-logo-card {
  transition: border-color var(--motion-standard) ease, transform var(--motion-standard) var(--motion-settle), background var(--motion-standard) ease, box-shadow var(--motion-standard) ease;
}

a.sponsor-logo-card:hover,
a.sponsor-logo-card:focus-visible {
  border-color: rgba(59, 140, 255, 0.58);
  background: linear-gradient(145deg, rgba(24, 49, 88, 0.92), rgba(12, 28, 54, 0.96));
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(3, 12, 27, 0.24);
}

a.sponsor-logo-card:active {
  transform: translateY(1px) scale(0.99);
}

a.sponsor-logo-card:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 4px;
}

.sponsor-logo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes sponsors-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (var(--sponsor-gap) / 2))); }
}

.gsap-motion-target {
  will-change: transform, opacity;
}

/* Kart-led page transition: the curtain covers the current page before the
   browser navigates, then continues off-screen on the destination page. */
.page-transition {
  position: fixed;
  z-index: 90;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  contain: layout paint;
}

.page-transition.is-active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.page-transition-curtain {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  --page-transition-reveal-x: -8vw;
  background:
    radial-gradient(circle at 70% 42%, rgba(59, 140, 255, 0.28), transparent 34%),
    linear-gradient(112deg, #050c16 0%, #0b1e38 54%, #102f5a 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--page-transition-reveal-x) 50%);
  will-change: clip-path;
}

.page-transition-curtain::before,
.page-transition-curtain::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-transition-curtain::before {
  inset: 0;
  opacity: 0.42;
  background:
    linear-gradient(135deg, transparent 0 26%, rgba(226, 55, 47, 0.75) 26% 28%, transparent 28% 35%, rgba(59, 140, 255, 0.42) 35% 37%, transparent 37% 100%),
    repeating-linear-gradient(135deg, transparent 0 54px, rgba(255, 255, 255, 0.035) 54px 56px, transparent 56px 110px);
}

.page-transition-curtain::after {
  right: -10vw;
  bottom: -22vh;
  width: 58vw;
  height: 58vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(59, 140, 255, 0.22), transparent 67%);
  filter: blur(22px);
}

.page-transition-curtain-glow,
.page-transition-curtain-redline,
.page-transition-curtain-blueline {
  position: absolute;
  display: block;
  pointer-events: none;
}

.page-transition-curtain-glow {
  top: 18%;
  right: 12%;
  width: min(34vw, 520px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(-8deg);
  opacity: 0.36;
}

.page-transition-curtain-redline {
  right: -6%;
  bottom: 31%;
  width: 66%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--accent) 22%, #ff6a4f 62%, transparent);
  transform: rotate(-7deg);
  filter: drop-shadow(0 0 12px rgba(226, 55, 47, 0.58));
}

.page-transition-curtain-blueline {
  right: -12%;
  bottom: 26%;
  width: 58%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 140, 255, 0.95), transparent);
  transform: rotate(-7deg);
  filter: drop-shadow(0 0 10px rgba(59, 140, 255, 0.65));
}

.page-transition-road {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 10%;
  left: 0;
  height: 12%;
  opacity: 0.82;
  background:
    linear-gradient(180deg, transparent 0 34%, rgba(255, 255, 255, 0.14) 35% 36%, transparent 37% 100%),
    linear-gradient(180deg, transparent 0 76%, rgba(3, 8, 16, 0.82) 77% 100%);
  transform: skewY(-1.5deg);
}

.page-transition-road-line {
  position: absolute;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5) 16%, rgba(255, 255, 255, 0.08) 72%, transparent);
  transform: skewX(-28deg);
}

.page-transition-road-line-one {
  right: 6%;
  bottom: 26%;
  width: 42%;
}

.page-transition-road-line-two {
  right: 30%;
  bottom: 13%;
  width: 32%;
  opacity: 0.5;
}

.page-transition-road-line-three {
  bottom: 4%;
  left: 2%;
  width: 24%;
  opacity: 0.26;
}

.page-transition-speed-lines {
  position: absolute;
  z-index: 3;
  top: 36%;
  left: 0;
  width: 100%;
  height: 28%;
  pointer-events: none;
}

.page-transition-speed-lines span {
  position: absolute;
  display: block;
  width: clamp(120px, 18vw, 290px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), rgba(59, 140, 255, 0.15));
  transform: translateX(-32%);
  will-change: transform, opacity;
}

.page-transition-speed-lines span:nth-child(1) { top: 8%; left: 4%; opacity: 0.72; }
.page-transition-speed-lines span:nth-child(2) { top: 34%; left: 18%; width: clamp(90px, 12vw, 210px); opacity: 0.46; }
.page-transition-speed-lines span:nth-child(3) { top: 59%; left: 8%; width: clamp(145px, 22vw, 350px); opacity: 0.58; }
.page-transition-speed-lines span:nth-child(4) { top: 80%; left: 27%; width: clamp(80px, 10vw, 160px); opacity: 0.38; }

.page-transition-kart-wrap {
  position: absolute;
  z-index: 4;
  bottom: clamp(13%, 15vh, 22%);
  left: 0;
  width: clamp(270px, 38vw, 580px);
  pointer-events: none;
  will-change: transform;
}

.page-transition-kart {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.38));
  transform-origin: 50% 78%;
  will-change: transform;
}

.page-transition-kart-shadow {
  position: absolute;
  z-index: 0;
  right: 4%;
  bottom: 4%;
  left: 2%;
  display: block;
  height: 10%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  filter: blur(14px);
  transform: scaleX(0.62);
  transform-origin: 45% 50%;
  will-change: transform, opacity;
}

.page-transition-caption {
  position: absolute;
  z-index: 5;
  top: clamp(76px, 16vh, 160px);
  right: clamp(22px, 8vw, 128px);
  display: block;
  color: rgba(244, 248, 255, 0.72);
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
  opacity: 0;
  will-change: transform, opacity;
}

.page-transition.is-entering .page-transition-kart {
  transform: translateX(-145%) rotate(-1.6deg);
}

.page-transition.is-entering .page-transition-kart-shadow {
  transform: translateX(-42%) scaleX(0.62);
  opacity: 0.22;
}

.page-transition.is-entering .page-transition-speed-lines {
  transform: translateX(-32%);
  opacity: 0;
}

.page-transition.is-entering .page-transition-caption {
  transform: translateX(12px);
  opacity: 0;
}

.page-transition.is-entering-ready .page-transition-curtain {
  animation: page-transition-reveal var(--motion-page) var(--motion-ease-enter) forwards;
}

.page-transition.is-entering-ready .page-transition-kart {
  animation: page-transition-kart-enter var(--motion-page) var(--motion-ease-enter) forwards;
}

.page-transition.is-entering-ready .page-transition-kart-shadow {
  animation: page-transition-shadow-enter var(--motion-page) var(--motion-ease-enter) forwards;
}

.page-transition.is-entering-ready .page-transition-speed-lines {
  animation: page-transition-lines-enter var(--motion-page-lines) var(--motion-ease-exit) forwards;
}

.page-transition.is-entering-ready .page-transition-caption {
  animation: page-transition-caption-in var(--motion-caption) var(--motion-ease-enter) 120ms forwards,
    page-transition-caption-out var(--motion-caption-exit) var(--motion-ease-exit) 390ms forwards;
}

@keyframes page-transition-reveal {
  from {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, -8vw 50%);
  }
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 108vw 50%);
  }
}

@keyframes page-transition-kart-enter {
  from { transform: translateX(-145%) rotate(-1.6deg); }
  to { transform: translateX(320%) rotate(0.2deg); }
}

@keyframes page-transition-shadow-enter {
  from { transform: translateX(-42%) scaleX(0.62); opacity: 0.22; }
  to { transform: translateX(240%) scaleX(1.18); opacity: 0.72; }
}

@keyframes page-transition-lines-enter {
  from { transform: translateX(-32%); opacity: 0; }
  to { transform: translateX(94%); opacity: 0.78; }
}

@keyframes page-transition-caption-in {
  from { transform: translateX(12px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes page-transition-caption-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .sponsors-track {
    animation: none;
  }

  .page-transition {
    display: none !important;
  }
}

/* Editorial treatment shared by the remaining pages. */
.page-main:not(.home-page):not(.pilot-f1-page) > .page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 28px 32px 30px;
  border: 1px solid rgba(120, 168, 241, 0.24);
  border-radius: 28px;
  background: linear-gradient(125deg, rgba(6, 17, 32, 0.98), rgba(12, 31, 57, 0.94) 58%, rgba(48, 17, 38, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-main:not(.home-page):not(.pilot-f1-page) > .page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 58%;
  background: linear-gradient(135deg, transparent 0 22%, rgba(226, 55, 47, 0.58) 22% 56%, rgba(137, 28, 54, 0.32) 56% 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-main:not(.home-page):not(.pilot-f1-page) > .page-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 42px;
  top: 50%;
  width: clamp(140px, 16vw, 220px);
  aspect-ratio: 1231 / 1056;
  background: url("/images/logo_barrigudos_sem_verde.webp") center / contain no-repeat;
  opacity: 0.82;
  pointer-events: none;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.28));
  transform: translateY(-50%);
}

.page-main:not(.home-page):not(.pilot-f1-page) > .page-hero > * {
  position: relative;
  z-index: 1;
}

.page-main:not(.home-page):not(.pilot-f1-page) .page-hero h1 {
  max-width: 900px;
  font-family: "Formula1 Bold";
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-main:not(.home-page):not(.pilot-f1-page) .page-hero .hero-text {
  max-width: 760px;
  margin-bottom: 0;
}

.page-main:not(.home-page):not(.pilot-f1-page) .feature-card,
.page-main:not(.home-page):not(.pilot-f1-page) .info-card,
.page-main:not(.home-page):not(.pilot-f1-page) .participant-card,
.page-main:not(.home-page):not(.pilot-f1-page) .calendar-card,
.page-main:not(.home-page):not(.pilot-f1-page) .ranking-card,
.page-main:not(.home-page):not(.pilot-f1-page) .rules-card,
.page-main:not(.home-page):not(.pilot-f1-page) .table-card {
  border-radius: 22px;
  border-color: rgba(120, 168, 241, 0.23);
  background: linear-gradient(145deg, rgba(14, 34, 62, 0.9), rgba(7, 19, 36, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.page-main:not(.home-page):not(.pilot-f1-page) .feature-card,
.page-main:not(.home-page):not(.pilot-f1-page) .info-card,
.page-main:not(.home-page):not(.pilot-f1-page) .participant-card,
.page-main:not(.home-page):not(.pilot-f1-page) .calendar-card,
.page-main:not(.home-page):not(.pilot-f1-page) .ranking-card,
.page-main:not(.home-page):not(.pilot-f1-page) .rules-card {
  position: relative;
  overflow: hidden;
}

.page-main:not(.home-page):not(.pilot-f1-page) .feature-card::before,
.page-main:not(.home-page):not(.pilot-f1-page) .info-card::before,
.page-main:not(.home-page):not(.pilot-f1-page) .participant-card::before,
.page-main:not(.home-page):not(.pilot-f1-page) .calendar-card::before,
.page-main:not(.home-page):not(.pilot-f1-page) .ranking-card::before,
.page-main:not(.home-page):not(.pilot-f1-page) .rules-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

.page-main:not(.home-page):not(.pilot-f1-page) .button {
  border-radius: 8px;
  font-family: "Formula1 Bold";
  letter-spacing: 0.01em;
}

@media (max-width: 680px) {
  .page-main:not(.home-page):not(.pilot-f1-page) > .page-hero {
    padding: 24px 20px 26px;
  }

  .page-main:not(.home-page):not(.pilot-f1-page) > .page-hero::after {
    right: 8px;
    top: 50%;
    width: 150px;
    opacity: 0.42;
  }

  .page-main:not(.home-page):not(.pilot-f1-page) .page-hero h1 {
    max-width: 74%;
    font-size: 2.1rem;
  }
}

.summary-quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.summary-ranking-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stage-summary-grid {
  margin-top: 14px;
}

.pilot-overview-cards .info-card {
  position: relative;
  min-height: 168px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(18, 45, 82, 0.9), rgba(11, 27, 50, 0.98));
  border-color: rgba(120, 168, 241, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 34px rgba(0, 0, 0, 0.12);
}

.pilot-overview-cards .info-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.pilot-overview-cards .info-card-head,
.pilot-overview-cards .info-card-head span {
  color: var(--accent-3);
}

.pilot-overview-cards .info-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.pilot-overview-cards .info-card p {
  margin-top: 10px;
}

.summary-stage-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
}

.summary-stage-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 123, 108, 0.16), rgba(255, 123, 108, 0));
  pointer-events: none;
}

.summary-stage-copy,
.summary-stage-thumb-wrap {
  position: relative;
  z-index: 1;
}

.summary-schedule-card {
  grid-column: span 2;
}

.summary-stage-copy strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.summary-stage-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.summary-countdown {
  display: inline-grid;
  gap: 3px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(120, 168, 241, 0.16);
}

.summary-countdown-live {
  gap: 8px;
}

.summary-countdown-live strong {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  font-size: 1rem;
}

.countdown-unit {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(120, 168, 241, 0.14);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.countdown-unit b {
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text);
}

.countdown-unit small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-countdown-live .countdown-unit span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.summary-countdown span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-countdown strong {
  margin: 0;
  font-size: 1.12rem;
}

.summary-stage-thumb-wrap {
  display: flex;
  justify-content: flex-end;
}

.summary-stage-thumb {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  filter: saturate(0.86) contrast(0.98);
  opacity: 0.92;
}

.summary-stage-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  min-height: 100%;
  opacity: 0.9;
}

.summary-stage-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(120, 168, 241, 0.12);
}

.summary-stage-meta div {
  min-width: 0;
}

.summary-stage-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-stage-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.35;
  white-space: normal;
}

.split-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.split-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.participants-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.ranking-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.print-series-title {
  display: none;
}

.ranking-card-wide {
  grid-column: 1 / -1;
}

.feature-card,
.info-card,
.participant-card,
.calendar-card,
.ranking-card,
.rules-card,
.table-shell,
.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.feature-card,
.info-card,
.participant-card,
.calendar-card,
.ranking-card,
.table-card {
  padding: 22px;
}

.info-card-head,
.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card h3,
.participant-card h3,
.calendar-card h3,
.ranking-card h3,
.table-card h3 {
  margin-top: 0;
}

.info-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.rules-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  gap: 18px;
  padding: 24px;
  margin-top: 20px;
  background: linear-gradient(180deg, rgba(14, 28, 51, 0.98), rgba(9, 20, 38, 0.98));
  border: 1px solid rgba(120, 168, 241, 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.rules-main,
.rules-docs {
  min-width: 0;
}

.rules-main {
  padding-right: 6px;
}

.rules-docs {
  padding: 18px;
  border-radius: calc(var(--radius) - 8px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 168, 241, 0.14);
  align-self: stretch;
}

.rules-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rules-title-row h3,
.rules-docs h3 {
  margin: 0;
}

.rules-title-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(226, 55, 47, 0.14);
  border: 1px solid rgba(226, 55, 47, 0.22);
  color: #ffb1ab;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.rules-list li {
  color: var(--text);
  line-height: 1.65;
}

.rules-docs .downloads-list {
  margin-top: 16px;
}

.info-card span,
.mini-stat span,
.table-card-head span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
}

.participant-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.participant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--motion-standard) var(--motion-settle), border-color var(--motion-standard) ease, box-shadow var(--motion-standard) ease;
}

@media (hover: hover) and (pointer: fine) {
  .participant-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 140, 255, 0.44);
    box-shadow: 0 22px 46px rgba(2, 10, 24, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

.participant-photo-slot {
  width: 100%;
  min-height: 238px;
  display: grid;
  place-items: center;
}

.participant-card .pilot-photo-frame {
  width: 100%;
  display: flex;
  justify-content: center;
}

.participant-photo-link {
  display: flex;
  width: 100%;
  justify-content: center;
  border-radius: 18px;
}

.participant-photo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.participant-card .participant-photo,
.participant-photo-placeholder {
  width: min(100%, 178px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.pilot-photo.is-placeholder,
.participant-photo-placeholder {
  display: block;
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(47, 111, 232, 0.22), rgba(226, 55, 47, 0.2)),
    rgba(7, 17, 31, 0.94);
}

.participant-card-name {
  margin: 16px 0 0;
  line-height: 1.2;
}

.participant-card-name a {
  color: var(--text);
  text-decoration: none;
}

.participant-card-name a:hover,
.participant-card-name a:focus-visible {
  color: var(--accent-3);
}

.participant-card-series {
  min-height: 26px;
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.pilot-series-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.12);
  color: #ffe4a3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.pilot-series-badge.pilot-series-custom-color {
  border-color: color-mix(in srgb, var(--series-color), white 20%);
  background: color-mix(in srgb, var(--series-color), transparent 84%);
  color: color-mix(in srgb, var(--series-color), white 62%);
}

.pilot-driver-series {
  margin: 0 0 14px;
}

.participant-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  text-align: center;
}

.pilot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}

.pilot-stats {
  margin-top: 16px;
}

.pilot-summary-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.pilot-summary-heading .section-heading {
  margin-bottom: 0;
}

.pilot-summary-heading .section-heading-row {
  display: block;
}

.pilot-summary-heading .section-heading-row h2 {
  margin: 0;
}

.pilot-summary-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pilot-summary-card h3 {
  margin-top: 0;
}

.pilot-summary-card .pilot-stats {
  flex: 0 0 auto;
}

.pilot-summary-card .pilot-stats {
  gap: 14px;
}

.pilot-summary-card .mini-stat {
  min-height: 96px;
  padding: 18px 14px;
  align-content: center;
}

.pilot-summary-card .mini-stat span {
  font-size: 0.8rem;
}

.pilot-summary-card .mini-stat strong {
  font-size: 1.65rem;
  line-height: 1.1;
}

.pilot-summary-detail {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 168, 241, 0.16);
  color: var(--muted);
}

.pilot-summary-detail strong {
  color: var(--text);
}

.participant-stats .mini-stat {
  display: grid;
  justify-items: center;
  align-content: start;
}

.pilot-position-chart-shell {
  display: grid;
  gap: 12px;
}

.pilot-position-chart-scroll {
  overflow-x: auto;
  border-radius: 18px;
  outline: none;
  scrollbar-color: rgba(79, 137, 247, 0.7) rgba(255, 255, 255, 0.06);
}

.pilot-position-chart-scroll:focus-visible {
  box-shadow: 0 0 0 3px rgba(79, 137, 247, 0.28);
}

.pilot-position-chart {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  overflow: visible;
}

.pilot-position-chart-grid {
  stroke: rgba(120, 168, 241, 0.18);
  stroke-width: 1;
}

.pilot-position-chart-axis-label,
.pilot-position-chart-x-label,
.pilot-position-chart-series-label {
  fill: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.pilot-position-chart-x-label {
  fill: var(--text);
  font-size: 13px;
}

.pilot-position-chart-series-label {
  fill: var(--accent-3);
  font-size: 11px;
}

.pilot-position-chart-area {
  fill: url("#pilot-position-chart-area-gradient");
}

.pilot-position-chart-line {
  fill: none;
  stroke: url("#pilot-position-chart-gradient");
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.pilot-position-chart-point {
  fill: var(--accent-3);
  stroke: var(--text);
  stroke-width: 3;
}

.pilot-position-chart-point-status {
  fill: var(--accent-1);
}

.pilot-position-chart-point-label {
  fill: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(8, 18, 33, 0.9);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.pilot-position-chart-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.compare-position-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.compare-position-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare-position-chart-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.compare-position-chart-legend-dot-a {
  background: #ef4b55;
}

.compare-position-chart-legend-dot-b {
  background: #4f89f7;
}

.compare-position-chart-point-a {
  fill: #ef4b55;
}

.compare-position-chart-point-b {
  fill: #4f89f7;
}

.compare-position-chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.compare-position-chart-line-a {
  stroke: #ef4b55;
}

.compare-position-chart-line-b {
  stroke: #4f89f7;
}

.compare-position-chart-point {
  stroke: var(--text);
  stroke-width: 3;
}

.compare-position-chart-point-status {
  fill: var(--accent-2);
}

.compare-position-chart-point-label {
  fill: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(8, 18, 33, 0.9);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.compare-position-chart-point-label-inside {
  fill: #07111f;
  font-size: 10px;
  stroke: none;
}

.compare-position-chart-point-total {
  fill: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(8, 18, 33, 0.9);
  stroke-linejoin: round;
  stroke-width: 3px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-actions .button {
  min-height: 42px;
}

.timeline-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.timeline-progress-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(120, 168, 241, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 0%, rgba(47, 111, 232, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(12, 35, 71, 0.96), rgba(7, 20, 40, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.timeline-progress-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 28px;
  align-items: end;
}

.timeline-progress-head h2 {
  margin: 0;
}

.timeline-progress-head .section-text {
  max-width: 680px;
  margin: 8px 0 0;
}

.timeline-progress-focus {
  display: grid;
  gap: 4px;
  align-content: end;
  padding: 14px 16px;
  border: 1px solid rgba(120, 168, 241, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(4, 13, 28, 0.48);
}

.timeline-progress-focus-label {
  color: var(--accent-3);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-progress-focus-link,
.timeline-progress-focus > strong {
  display: grid;
  gap: 2px;
  color: var(--text);
  text-decoration: none;
}

.timeline-progress-focus-link strong,
.timeline-progress-focus > strong {
  font-size: 1.02rem;
}

.timeline-progress-focus-link span:not([aria-hidden]),
.timeline-progress-focus-description {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.timeline-progress-focus-link span[aria-hidden] {
  color: var(--accent-3);
  transition: transform var(--motion-press) var(--motion-ease-enter);
}

.timeline-progress-focus-link:hover span[aria-hidden],
.timeline-progress-focus-link:focus-visible span[aria-hidden] {
  transform: translateX(4px);
}

.timeline-progress-track-wrap {
  display: grid;
  gap: 10px;
}

.timeline-progress-track {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(120, 168, 241, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--timeline-progress-scale, 0));
  transform-origin: left center;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 20px rgba(79, 137, 247, 0.4);
}

.timeline-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-progress-meta strong {
  color: var(--text);
  font-family: "Formula1 Bold";
  font-size: 1rem;
}

.timeline-title-row,
.stage-hero-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stage-hero-title {
  flex-wrap: wrap;
}

.stage-thumb {
  width: 110px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.stage-thumb-hero {
  width: 150px;
}

.timeline-card {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 112px;
  transition: transform var(--motion-standard) var(--motion-settle), border-color var(--motion-standard) ease, box-shadow var(--motion-standard) ease;
}

.timeline-card:target {
  border-color: rgba(120, 168, 241, 0.74);
  box-shadow: 0 24px 62px rgba(47, 111, 232, 0.22), var(--shadow);
}

@media (hover: hover) and (pointer: fine) {
  .timeline-card:hover {
    transform: translateY(-3px);
    border-color: rgba(120, 168, 241, 0.38);
    box-shadow: 0 22px 48px rgba(2, 10, 24, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

.timeline-card-results {
  border-color: rgba(45, 177, 95, 0.36);
  background: linear-gradient(145deg, rgba(17, 72, 58, 0.94), rgba(8, 42, 38, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(169, 239, 191, 0.08);
}

.timeline-card-featured {
  border-color: rgba(47, 111, 232, 0.45);
  box-shadow: 0 22px 70px rgba(47, 111, 232, 0.16), var(--shadow);
}

.timeline-card-featured::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 232, 0.18), transparent 70%);
  pointer-events: none;
}

.timeline-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.timeline-focus-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 111, 232, 0.15);
  color: #cfe0ff;
  border: 1px solid rgba(120, 168, 241, 0.24);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.timeline-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.stage-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.stage-status-draft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border-color: var(--line);
}

.stage-status-scheduled {
  background: rgba(47, 111, 232, 0.15);
  color: #a9c4ff;
  border-color: rgba(47, 111, 232, 0.25);
}

.stage-status-published {
  background: rgba(226, 55, 47, 0.15);
  color: #ffafa9;
  border-color: rgba(226, 55, 47, 0.25);
}

.stage-status-results {
  background: rgba(45, 177, 95, 0.16);
  color: #a9efbf;
  border-color: rgba(45, 177, 95, 0.24);
}

.timeline-results-link {
  text-decoration: none;
}

.mini-stat {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(8, 18, 33, 0.95);
  border: 1px solid rgba(120, 168, 241, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mini-stat strong {
  display: block;
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex: 0 0 84px;
}

.badge-a {
  background: rgba(226, 55, 47, 0.15);
  color: #ff9b95;
}

.badge-b {
  background: rgba(47, 111, 232, 0.16);
  color: #9ec1ff;
}

.highlight-box {
  border-radius: var(--radius-sm);
  padding: 20px;
  background: linear-gradient(180deg, #102742 0%, #09192f 60%, #e2372f 180%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.downloads-box {
  margin-top: 22px;
}

.downloads-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.download-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: linear-gradient(180deg, rgba(20, 39, 73, 0.96), rgba(10, 20, 36, 0.98));
  border: 1px solid rgba(120, 168, 241, 0.18);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--motion-standard) var(--motion-settle), border-color var(--motion-standard) ease, background var(--motion-standard) ease, box-shadow var(--motion-standard) ease;
}

.download-link:hover,
.download-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(120, 168, 241, 0.34);
  background: linear-gradient(180deg, rgba(24, 46, 86, 0.98), rgba(12, 24, 42, 0.98));
  box-shadow: 0 14px 28px rgba(3, 12, 27, 0.26);
}

.download-link:active {
  transform: translateY(1px) scale(0.99);
}

.download-link-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.download-link-kicker {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 32px;
  padding: 0 10px;
  background: var(--accent);
  color: white;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 0 0 auto;
  transition: transform var(--motion-quick) var(--motion-settle), background var(--motion-standard) ease, box-shadow var(--motion-standard) ease;
}

.series-mark {
  font-weight: 700;
  color: var(--accent-2);
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: #ff8a82;
  font-weight: 700;
}

.table-shell {
  padding: 12px;
  overflow-x: auto;
}

.filters-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.8fr));
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 30, 54, 0.95), rgba(11, 21, 39, 0.92));
  box-shadow: var(--shadow);
}

form.filters-bar {
  margin: 0;
}

.simple-filter-bar {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 18px;
}

.filter-field-wide {
  grid-column: 1 / -1;
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-input,
.filter-select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 168, 241, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  color-scheme: dark;
  outline: none;
}

.filter-select option {
  background: #10213a;
  color: var(--text);
}

.gallery-filter-bar {
  margin-bottom: 16px;
}

.filter-input::placeholder {
  color: rgba(169, 189, 216, 0.72);
}

.filter-input:focus,
.filter-select:focus {
  border-color: rgba(47, 111, 232, 0.58);
  box-shadow: 0 0 0 3px rgba(47, 111, 232, 0.16);
}

.filters-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.filters-actions-single {
  align-items: stretch;
}

.table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

th.points-head {
  color: var(--accent-2);
  text-align: center;
}

table.results-detail-table th,
table.results-detail-table td {
  text-align: center;
}

.stage-result-driver-cell {
  min-width: 190px;
}

.stage-result-driver {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  text-align: left;
}

.stage-result-driver .pilot-photo-frame,
.stage-result-driver .stage-result-photo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.stage-result-driver .stage-result-photo {
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid rgba(120, 168, 241, 0.34);
  border-radius: 50%;
  background: rgba(7, 17, 31, 0.94);
}

.stage-result-driver .stage-result-photo.is-placeholder {
  object-fit: contain;
  padding: 4px;
  background:
    linear-gradient(135deg, rgba(47, 111, 232, 0.22), rgba(226, 55, 47, 0.2)),
    rgba(7, 17, 31, 0.94);
}

.stage-result-driver-copy {
  min-width: 0;
}

.stage-result-driver-copy .text-link {
  margin-top: 0;
}

td.points-cell {
  text-align: center;
}

.compare-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.compare-actions {
  display: flex;
  align-items: end;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compare-head-to-head-card {
  display: grid;
  gap: 16px;
}

.compare-head-to-head-note {
  margin: 0;
}

.compare-head-to-head-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compare-head-to-head-stat {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid rgba(120, 168, 241, 0.16);
  border-radius: 16px;
  background: rgba(8, 18, 33, 0.95);
  text-align: center;
}

.compare-head-to-head-stat > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.compare-head-to-head-stat > strong {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.2;
}

.compare-head-to-head-stat > small,
.compare-head-to-head-table td > small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.compare-head-to-head-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(120, 168, 241, 0.28);
  border-radius: 14px;
  text-align: center;
}

.compare-head-to-head-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.compare-head-to-head-table {
  min-width: 900px;
}

.compare-head-to-head-table th:first-child,
.compare-head-to-head-table td:first-child,
.compare-head-to-head-table th:nth-child(2),
.compare-head-to-head-table td:nth-child(2) {
  text-align: left;
}

.compare-head-to-head-table td > strong,
.compare-head-to-head-table td > small {
  display: block;
}

.compare-head-to-head-table .compare-status {
  margin-top: 3px;
}

.compare-lap-difference {
  min-width: 150px;
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .compare-head-to-head-summary {
    grid-template-columns: 1fr;
  }

  .compare-head-to-head-stat {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    text-align: left;
  }

  .compare-head-to-head-stat > span {
    grid-column: 1;
  }

  .compare-head-to-head-stat > strong {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    text-align: right;
  }

  .compare-head-to-head-stat > small {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.compare-card {
  min-height: 100%;
}

.compare-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.compare-card h3 {
  margin-bottom: 10px;
}

.compare-card-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 6px;
}

.pilot-photo-compare {
  width: 100px;
  aspect-ratio: 3 / 4;
}

.compare-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compare-history-card {
  display: grid;
  gap: 16px;
}

.compare-history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.compare-history-head > div {
  min-height: 72px;
  display: grid;
  align-content: start;
}

.compare-history-head h3 {
  margin: 4px 0 0;
  min-height: 2.2em;
  line-height: 1.1;
}

.compare-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 520px);
  margin-inline: auto;
}

.compare-mini-stat {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 18, 33, 0.95);
  border: 1px solid rgba(120, 168, 241, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.compare-mini-stat span {
  text-align: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.compare-mini-stat strong {
  font-size: 1.05rem;
}

.compare-history-block {
  display: grid;
  gap: 12px;
}

.compare-history-block-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.compare-subtable {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.compare-history-table th,
.compare-history-table td {
  font-size: 0.84rem;
}

.compare-table th,
.compare-table td {
  text-align: center;
}

.compare-table .compare-cell {
  min-width: 112px;
  vertical-align: middle;
  transition: background-color var(--motion-press) var(--motion-ease-smooth), box-shadow var(--motion-press) var(--motion-ease-smooth);
}

.compare-table .compare-win {
  background: linear-gradient(180deg, rgba(88, 199, 123, 0.18), rgba(88, 199, 123, 0.06));
  box-shadow: inset 0 0 0 1px rgba(88, 199, 123, 0.34);
  color: #b8f4c9;
}

.compare-table .compare-lose {
  background: rgba(181, 58, 48, 0.06);
  color: #c9a4a2;
}

.compare-table .compare-equal {
  background: rgba(120, 168, 241, 0.1);
  box-shadow: inset 0 0 0 1px rgba(120, 168, 241, 0.22);
  color: var(--text);
}

.compare-value {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.compare-result {
  display: inline-flex;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.compare-win .compare-result {
  color: #062313;
  background: #8be0a1;
}

.compare-equal .compare-result {
  color: #dbe8ff;
  background: rgba(120, 168, 241, 0.28);
}

.compare-win {
  color: #a9efbf;
  font-weight: 700;
}

.compare-lose {
  color: #ffafa9;
}

.compare-equal {
  color: var(--muted);
}

.points-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(230, 59, 47, 0.22), rgba(47, 111, 232, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.points-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
}

.result-status-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.result-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
}

.result-status-ok {
  color: #b8f4c9;
  background: rgba(45, 177, 95, 0.16);
  border-color: rgba(45, 177, 95, 0.34);
}

.result-status-dnf,
.result-status-nc {
  color: #ffe1a1;
  background: rgba(242, 184, 75, 0.14);
  border-color: rgba(242, 184, 75, 0.34);
}

.result-status-dsq,
.result-status-dc,
.result-status-dns,
.result-status-ns {
  color: #ffb4ad;
  background: rgba(226, 55, 47, 0.14);
  border-color: rgba(226, 55, 47, 0.34);
}

.result-status-inv,
.result-status-trn {
  color: #b9d2ff;
  background: rgba(47, 111, 232, 0.16);
  border-color: rgba(47, 111, 232, 0.34);
}

tr:last-child td {
  border-bottom: 0;
}

.row-soft-danger {
  background: rgba(181, 58, 48, 0.08);
}

.result-best-lap-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.result-best-lap-badge {
  margin-top: 5px;
  padding: 4px 7px;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.result-best-lap-badge-silver {
  color: #e3ebf5;
  background: rgba(203, 216, 232, 0.12);
  border-color: rgba(203, 216, 232, 0.56);
}

.result-best-lap-badge-gold {
  color: #ffe5a2;
  background: rgba(230, 177, 54, 0.14);
  border-color: rgba(255, 210, 92, 0.66);
}

table.results-detail-table tr.result-row-highlight-silver > td {
  background: rgba(203, 216, 232, 0.08);
  box-shadow: inset 0 1px 0 rgba(203, 216, 232, 0.72), inset 0 -1px 0 rgba(203, 216, 232, 0.72);
}

table.results-detail-table tr.result-row-highlight-gold > td {
  background: rgba(230, 177, 54, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 210, 92, 0.82), inset 0 -1px 0 rgba(255, 210, 92, 0.82);
}

table.results-detail-table tr.result-row-highlight-silver > td:first-child {
  box-shadow: inset 2px 0 0 rgba(203, 216, 232, 0.84), inset 0 1px 0 rgba(203, 216, 232, 0.72), inset 0 -1px 0 rgba(203, 216, 232, 0.72);
}

table.results-detail-table tr.result-row-highlight-silver > td:last-child {
  box-shadow: inset -2px 0 0 rgba(203, 216, 232, 0.84), inset 0 1px 0 rgba(203, 216, 232, 0.72), inset 0 -1px 0 rgba(203, 216, 232, 0.72);
}

table.results-detail-table tr.result-row-highlight-gold > td:first-child {
  box-shadow: inset 2px 0 0 rgba(255, 210, 92, 0.94), inset 0 1px 0 rgba(255, 210, 92, 0.82), inset 0 -1px 0 rgba(255, 210, 92, 0.82);
}

table.results-detail-table tr.result-row-highlight-gold > td:last-child {
  box-shadow: inset -2px 0 0 rgba(255, 210, 92, 0.94), inset 0 1px 0 rgba(255, 210, 92, 0.82), inset 0 -1px 0 rgba(255, 210, 92, 0.82);
}

.result-best-lap-time {
  font-weight: 700;
}

.result-best-lap-time-silver {
  color: #e3ebf5;
}

.result-best-lap-time-gold {
  color: #ffe5a2;
}

.ranking-row,
.mini-ranking-row {
  display: grid;
  align-items: center;
  gap: 12px;
}

.ranking-row {
  grid-template-columns: 48px 1fr auto;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
}

.ranking-row.is-leader {
  border-left-color: #f2b84b;
  background: linear-gradient(90deg, rgba(242, 184, 75, 0.14), rgba(242, 184, 75, 0.035) 58%, transparent);
  box-shadow: inset 0 1px 0 rgba(242, 184, 75, 0.16), inset 0 -1px 0 rgba(242, 184, 75, 0.12);
}

.ranking-row.is-tied {
  background: linear-gradient(90deg, rgba(242, 184, 75, 0.09), transparent 72%);
}

.ranking-row.is-leader.is-tied {
  background: linear-gradient(90deg, rgba(242, 184, 75, 0.18), rgba(242, 184, 75, 0.04) 68%, transparent);
}

.ranking-row-driver {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ranking-row-driver .pilot-photo-frame {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}

.ranking-row-driver .ranking-photo {
  width: 58px;
  height: 58px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid rgba(120, 168, 241, 0.34);
  border-radius: 50%;
  background: rgba(7, 17, 31, 0.94);
}

.ranking-row-driver .ranking-photo.is-placeholder {
  object-fit: contain;
  padding: 5px;
  background:
    linear-gradient(135deg, rgba(47, 111, 232, 0.22), rgba(226, 55, 47, 0.2)),
    rgba(7, 17, 31, 0.94);
}

.ranking-row-copy {
  min-width: 0;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.mini-ranking-row {
  grid-template-columns: 24px 1fr auto;
  padding: 8px 0;
}

.mini-ranking-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.mini-ranking-name:hover,
.mini-ranking-name:focus-visible {
  color: #ff8a82;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.position {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(226, 55, 47, 0.92), rgba(47, 111, 232, 0.9));
  color: white;
  font-weight: 800;
}

.ranking-row.is-leader .position {
  background: linear-gradient(180deg, #f2c45f, #ce8525);
  color: #172033;
  box-shadow: 0 0 0 3px rgba(242, 184, 75, 0.14), 0 6px 16px rgba(242, 184, 75, 0.18);
}

.score {
  font-size: 1.1rem;
  font-weight: 800;
}

.highlights-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
}

.highlight-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-thumb-button {
  appearance: none;
  display: grid;
  flex: 0 0 148px;
  width: 148px;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
  color: inherit;
  transition: transform var(--motion-standard) var(--motion-settle), border-color var(--motion-standard) ease, box-shadow var(--motion-standard) ease;
}

.gallery-thumb-button img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  transition: transform var(--motion-reflow) var(--motion-settle), filter var(--motion-standard) var(--motion-ease-smooth);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-thumb-button:hover,
  .gallery-thumb-button:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(59, 140, 255, 0.54);
    box-shadow: 0 18px 32px rgba(2, 10, 24, 0.34);
  }

  .gallery-thumb-button:hover img,
  .gallery-thumb-button:focus-visible img {
    transform: scale(1.045);
    filter: saturate(1.08);
  }
}

.gallery-thumb-button:active {
  transform: translateY(1px) scale(0.985);
}

.gallery-card-copy {
  display: grid;
  gap: 4px;
  padding: 9px 10px 10px;
}

.gallery-card-copy strong {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.2;
}

.gallery-card-copy span {
  color: var(--muted);
  line-height: 1.3;
  font-size: 0.72rem;
}

.gallery-archive {
  display: grid;
  gap: 22px;
}

.gallery-stage {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(120, 168, 241, 0.16);
  box-shadow: var(--shadow);
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.gallery-stage-head {
  display: grid;
  gap: 6px;
}

.gallery-stage-kicker {
  margin: 0;
  color: var(--accent-3);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-stage-head h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.gallery-stage-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery-stage-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 168, 241, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, 0.82);
  backdrop-filter: blur(8px);
}

.gallery-modal-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 1080px);
  max-height: 90vh;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(120, 168, 241, 0.2);
  background: rgba(9, 20, 37, 0.96);
  box-shadow: var(--shadow);
}

.gallery-modal-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 20px;
  background: #050c16;
}

.gallery-modal-caption {
  display: grid;
  gap: 4px;
}

.gallery-modal-caption strong {
  color: var(--text);
}

.gallery-modal-caption span {
  color: var(--muted);
}

.gallery-modal-close {
  justify-self: end;
  appearance: none;
  border: 1px solid rgba(120, 168, 241, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--motion-quick) var(--motion-settle), background var(--motion-standard) ease, border-color var(--motion-standard) ease, box-shadow var(--motion-standard) ease;
}

.gallery-modal-close:hover,
.gallery-modal-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(59, 140, 255, 0.54);
  background: rgba(47, 111, 232, 0.14);
  box-shadow: 0 10px 24px rgba(2, 10, 24, 0.26);
}

.gallery-modal-close:active {
  transform: translateY(1px) scale(0.98);
}

.inline-icon,
.feature-icon,
.brand-mark,
.footer-mark,
.button-icon,
.badge-icon,
.inline-icon-eyebrow {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.inline-icon svg {
  width: 1em;
  height: 1em;
  display: block;
}

.inline-icon {
  color: var(--accent-3);
}

.brand-mark {
  color: var(--accent);
}

.footer-mark {
  margin-right: 10px;
  color: var(--accent-3);
}

.button-icon {
  margin-right: 8px;
  color: currentColor;
}

.feature-icon,
.badge-icon {
  color: var(--accent-3);
}

.inline-icon-eyebrow {
  color: inherit;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2::before {
  content: "";
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  flex: 0 0 auto;
}

.info-card strong,
.feature-card strong {
  color: var(--text);
}

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

@keyframes icon-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  50% { filter: drop-shadow(0 0 10px rgba(47, 111, 232, 0.28)); }
}

.inline-icon,
.brand-mark,
.feature-icon,
.badge-icon,
.button-icon {
  animation: icon-glow 6s ease-in-out infinite;
}

.highlight-item h3 {
  margin-top: 0;
}

.stage-block {
  padding-top: 24px;
}

.results-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.history-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.history-record-card {
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(120, 168, 241, 0.22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(17, 34, 62, 0.82), rgba(8, 18, 34, 0.9));
  box-shadow: var(--shadow);
  text-align: center;
}

.history-record-card-wide {
  grid-column: span 1;
}

.history-record-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-record-card strong {
  color: var(--accent-3);
  font-family: "Formula1 Bold";
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.history-record-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.history-table th,
.history-table td {
  white-space: nowrap;
}

.history-note {
  max-width: var(--max);
  margin: 0 auto 30px;
  padding: 14px 18px;
  border-left: 3px solid var(--warning);
  color: var(--muted);
  background: rgba(255, 209, 102, 0.06);
}

.trophy-room {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% -18%, rgba(255, 209, 102, 0.16), transparent 55%),
    linear-gradient(145deg, rgba(18, 37, 65, 0.98), rgba(7, 17, 33, 0.98));
  box-shadow: var(--shadow);
}

.trophy-room-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.trophy-room-heading h2,
.history-global-heading h2 {
  margin: 4px 0 8px;
  font-family: "Formula1 Bold";
}

.trophy-room-heading > div > p:last-child,
.history-global-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.trophy-room-emblem {
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 24px;
  background: rgba(255, 209, 102, 0.09);
  color: #ffe4a3;
}

.trophy-room-emblem .inline-icon svg {
  width: 38px;
  height: 38px;
}

.trophy-award-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 16px;
}

.trophy-award {
  display: grid;
  min-width: 0;
  min-height: 220px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 26px 22px;
  border: 1px solid rgba(199, 215, 238, 0.25);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(48, 63, 84, 0.72), rgba(13, 25, 43, 0.94));
  text-align: center;
}

.trophy-award-champion {
  min-height: 264px;
  border-color: rgba(255, 209, 102, 0.62);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 209, 102, 0.2), transparent 60%),
    linear-gradient(145deg, rgba(71, 61, 40, 0.78), rgba(14, 25, 42, 0.96));
  box-shadow: inset 0 1px rgba(255, 245, 213, 0.12), 0 18px 55px rgba(0, 0, 0, 0.18);
}

.trophy-award-runner-up {
  border-color: rgba(192, 208, 228, 0.4);
}

.trophy-award-place,
.trophy-award-title,
.trophy-record-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.trophy-award-champion .trophy-award-place,
.trophy-award-champion .trophy-award-icon {
  color: #ffe4a3;
}

.trophy-award-runner-up .trophy-award-icon {
  color: #d7e2f1;
}

.trophy-award-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: rgba(5, 13, 26, 0.3);
}

.trophy-award-icon .inline-icon svg {
  width: 30px;
  height: 30px;
}

.trophy-award-title {
  color: var(--text);
  letter-spacing: 0.12em;
}

.trophy-award h3 {
  max-width: 100%;
  margin: 2px 0 0;
  font-family: "Formula1 Bold";
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  overflow-wrap: anywhere;
}

.trophy-award small {
  color: var(--muted);
}

.trophy-award-champion h3 {
  color: #ffe4a3;
}

.trophy-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.trophy-summary-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 17px;
  border: 1px solid rgba(120, 168, 241, 0.2);
  border-radius: 14px;
  background: rgba(5, 15, 30, 0.55);
}

.trophy-summary-stat strong {
  color: #ffe4a3;
  font-family: "Formula1 Bold";
  font-size: 1.35rem;
}

.trophy-summary-stat span {
  color: var(--muted);
}

.trophy-records {
  margin-top: 30px;
}

.trophy-records-heading {
  margin-bottom: 14px;
}

.trophy-records-heading h3 {
  margin: 4px 0 0;
  font-family: "Formula1 Bold";
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.trophy-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trophy-record-card {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
  padding: 17px;
  border: 1px solid rgba(120, 168, 241, 0.2);
  border-radius: 16px;
  background: rgba(5, 15, 30, 0.55);
}

.trophy-record-card strong {
  color: var(--text);
  font-family: "Formula1 Bold";
  font-size: 1.55rem;
}

.trophy-record-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.history-season-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(30px, 7vw, 72px) 22px;
  border: 1px solid rgba(120, 168, 241, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(66, 126, 220, 0.14), transparent 58%),
    rgba(9, 22, 41, 0.92);
  text-align: center;
}

.history-season-state .history-state-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.36);
  border-radius: 50%;
  color: #ffe4a3;
}

.history-season-state .history-state-icon svg {
  width: 28px;
  height: 28px;
}

.history-season-state h2 {
  max-width: 780px;
  margin: 0;
  font-family: "Formula1 Bold";
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.history-season-state p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.history-season-state .button {
  margin-top: 7px;
}

.history-global-block + .history-global-block {
  margin-top: 34px;
}

.history-global-heading {
  margin: 0 0 14px;
}

.history-global-heading h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.history-global-heading > p:last-child {
  max-width: 850px;
  line-height: 1.5;
}

.history-pilot-table {
  min-width: 780px;
}

.history-pilot-table th:not(:first-child),
.history-pilot-table td:not(:first-child) {
  text-align: center;
}

.history-champions-table th:first-child,
.history-champions-table td:first-child {
  width: 24%;
}

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

  .history-record-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .history-record-grid {
    grid-template-columns: 1fr;
  }

  .history-record-card-wide {
    grid-column: auto;
  }

  .trophy-room {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .trophy-room-heading {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .trophy-room-emblem {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
  }

  .trophy-room-emblem .inline-icon svg {
    width: 28px;
    height: 28px;
  }

  .trophy-award-grid,
  .trophy-record-grid {
    grid-template-columns: 1fr;
  }

  .trophy-award,
  .trophy-award-champion {
    min-height: 190px;
  }

  .trophy-summary-grid {
    grid-template-columns: 1fr;
  }

  .trophy-summary-stat {
    justify-content: center;
  }
}

.results-stage-card {
  padding: 16px 16px 14px;
}

.results-stage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.results-stage-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.results-stage-stack {
  gap: 12px;
}

.results-heat-card {
  padding: 12px 14px;
}

.results-heat-card .table-card-head {
  margin-bottom: 8px;
}

.results-stage-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.results-stage-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stack-layout {
  grid-template-columns: 1fr;
}

.footer-grid {
  grid-template-columns: 1fr 1fr;
  padding-top: 10px;
  color: var(--muted);
}

.footer strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.data-freshness {
  color: rgba(226, 235, 247, 0.68);
  font-size: 0.82rem;
}

.data-partial-notice {
  color: var(--warning);
}

.data-status-banner {
  width: min(var(--max), calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid color-mix(in srgb, var(--warning) 65%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--warning) 12%, var(--surface));
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.data-status-banner.is-partial {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.site-feedback {
  position: fixed;
  z-index: 40;
  top: 96px;
  right: 24px;
  width: min(420px, calc(100% - 32px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(255, 209, 102, 0.58);
  border-radius: 16px;
  background: rgba(255, 209, 102, 0.12);
  color: #ffe4a3;
  font-weight: 700;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
  animation: site-feedback-pop 180ms ease-out both;
}

.site-feedback[hidden] {
  display: none;
}

.site-feedback-icon {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #ffd166;
  color: #07111f;
  font-size: 0.82rem;
  font-weight: 900;
}

.site-feedback-message {
  flex: 1;
  line-height: 1.35;
}

.site-feedback-close {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  margin: -4px -4px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffe4a3;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.site-feedback-close:hover,
.site-feedback-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  outline: none;
}

@keyframes site-feedback-pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.data-status-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--warning);
  color: var(--background);
  font-family: "Formula1 Bold";
  font-size: 0.84rem;
  line-height: 1;
}

.is-partial .data-status-icon {
  background: var(--accent);
}

.data-status-banner div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.data-status-banner strong {
  font-size: 0.92rem;
}

.data-status-banner span:not(.data-status-icon) {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.rules-list {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 1440px) {
  .hero-intro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card {
    height: auto;
    width: 100%;
  }

}

@media (max-width: 980px) {
  .home-page .hero-intro {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .rules-card,
  .split-layout,
  .split-2,
  .split-3,
  .ranking-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filters-bar {
    grid-template-columns: 1fr;
  }

  .participants-grid,
  .info-grid,
  .calendar-grid,
  .compare-grid,
  .compare-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-stage-card {
    grid-column: 1 / -1;
  }

  .home-page .summary-stage-card {
    grid-column: 1 / -1;
  }

  .home-page .hero .home-hero-stage-card {
    grid-column: auto;
  }

  .summary-schedule-card {
    grid-column: 1 / -1;
  }

  .summary-grid .home-summary-results-card {
    grid-column: span 1;
  }

  .home-top-five-charts {
    grid-template-columns: 1fr;
  }

  .timeline-progress-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .stage-nav {
    grid-template-columns: 1fr;
  }

  .championship-overview-grid,
  .championship-links-grid {
    grid-template-columns: 1fr;
  }

  .championship-hero-copy {
    padding-right: 160px;
  }
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 16px;
    --max: calc(100vw - var(--page-gutter) - var(--page-gutter));
  }

  .site-header,
  .hero,
  .page-main,
  .footer {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .topbar,
  .topbar-actions,
  .nav-links {
    display: flex;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: 8px;
    background: rgba(5, 14, 27, 0.82);
    backdrop-filter: blur(14px);
  }

  .topbar {
    position: relative;
    top: auto;
    margin-top: 0;
    flex-wrap: nowrap;
    gap: 8px 12px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .brand {
    display: inline-flex;
    max-width: 100%;
    margin: 0;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand::after,
  .topbar-brand::after {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar-actions {
    display: none;
    width: 100%;
    min-width: 0;
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .topbar.is-menu-open {
    flex-wrap: wrap;
  }

  .topbar.is-menu-open .topbar-actions {
    display: grid;
  }

  .season-switcher {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
    padding: 4px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    min-width: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(120, 168, 241, 0.12);
    font-size: 0.63rem;
    white-space: nowrap;
  }

  .season-chip {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 0.66rem;
    white-space: nowrap;
  }

  .home-page .hero-intro {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .home-page .home-hero-art {
    min-height: 0;
  }

  .home-page .hero-frase-picture,
  .home-page .hero-frase-banner {
    min-height: 0;
    aspect-ratio: auto;
  }

  .home-page .hero-frase-banner {
    max-height: 230px;
    padding: 0;
    object-fit: contain;
    border-radius: 14px;
  }

  .home-page .home-hero-stage-card {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 13px 11px;
  }

  .home-page .home-hero-stage-card .summary-stage-copy {
    justify-content: center;
  }

  .home-page .home-hero-stage-card .summary-box-title {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .home-page .home-hero-stage-card .summary-box-title > span:not(.inline-icon) {
    font-size: 0.56rem;
    letter-spacing: 0.035em;
    white-space: nowrap;
  }

  .home-page .home-hero-stage-card .summary-stage-copy > strong {
    margin-top: 6px;
    font-size: 0.96rem;
    line-height: 1.25;
  }

  .home-page .home-hero-stage-card .summary-countdown {
    display: none;
  }

  .home-page .home-hero-stage-card .summary-stage-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 6px;
    padding-top: 9px;
  }

  .home-page .home-hero-stage-card .summary-stage-meta div:last-child {
    grid-column: 1 / -1;
  }

  .home-page .home-hero-stage-card .summary-stage-meta span {
    font-size: 0.58rem;
    letter-spacing: 0.045em;
  }

  .home-page .home-hero-stage-card .summary-stage-meta strong {
    margin-top: 3px;
    font-size: 0.66rem;
    line-height: 1.25;
  }

  .filters-bar {
    padding: 14px;
  }

  .simple-filter-bar {
    margin-bottom: 14px;
  }

  .rules-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-grid,
  .participants-grid,
  .calendar-grid,
  .compare-grid,
  .compare-history-grid {
    grid-template-columns: 1fr;
  }

  .home-page .summary-grid {
    grid-template-columns: 1fr;
  }

  .championship-hero-copy {
    padding-right: 0;
  }

  .championship-hero-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .championship-overview-copy,
  .championship-stats-panel {
    padding: 22px 20px;
  }

  .championship-format-story {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px;
  }

  .championship-format-mark {
    min-height: 0;
    padding: 5px 0 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(120, 168, 241, 0.2);
  }

  .championship-format-mark strong {
    font-size: 4rem;
  }

  .championship-overview-copy h2 {
    font-size: 1.55rem;
  }

  .championship-link-card {
    min-height: 104px;
  }

  .compare-card-identity {
    grid-template-columns: 1fr;
  }

  .summary-stage-card {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .home-page .summary-stage-copy {
    justify-content: flex-start;
  }

  .summary-schedule-card {
    grid-column: 1 / -1;
  }

  .summary-stage-thumb-wrap {
    justify-content: flex-start;
  }

  .summary-stage-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .summary-countdown-live strong {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-summary-series-rankings {
    grid-template-columns: 1fr;
  }

  .sponsor-logo-card {
    flex-basis: 210px;
  }

  .stage-nav-card {
    min-height: auto;
  }

  .page-hero h1,
  .hero h1 {
    font-size: 2.45rem;
  }

  .pilot-photo {
    width: 132px;
  }

  .pilot-summary-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pilot-summary-heading .button {
    width: 100%;
  }

  .pilot-photo-compare {
    width: 112px;
  }

}

@media (max-width: 980px) {
  .pilot-driver-hero-main {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 270px);
    padding-left: 28px;
    padding-right: 28px;
  }

  .pilot-f1-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .pilot-driver-hero {
    min-height: auto;
    border-radius: 22px;
  }

  .pilot-driver-hero-topline {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 18px 0;
  }

  .pilot-driver-compare {
    width: 100%;
  }

  .pilot-driver-hero-main {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 6px 22px 0;
  }

  .pilot-driver-hero-copy {
    padding: 28px 0 10px;
  }

  .pilot-driver-hero h1 {
    font-size: clamp(2.5rem, 12vw, 4.4rem);
  }

  .pilot-driver-hero .pilot-photo-frame {
    justify-self: center;
    width: min(72vw, 240px);
    height: 248px;
    margin-top: -8px;
  }

  .pilot-driver-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 14px 14px;
  }

  .pilot-driver-stat {
    padding: 14px 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .pilot-driver-stat:nth-child(2n) {
    border-right: 0;
  }

  .pilot-driver-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .pilot-driver-stat strong {
    font-size: 1.05rem;
  }

  .pilot-driver-stat small {
    font-size: 0.7rem;
  }

  .pilot-f1-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .pilot-f1-section-rule {
    width: 100%;
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .pilot-f1-metric {
    min-height: 94px;
    padding: 18px 15px 15px;
  }

  .pilot-f1-metric strong {
    font-size: 1.25rem;
  }

  .pilot-f1-discipline-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .pilot-discard-summary-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pilot-discard-list {
    grid-template-columns: 1fr;
  }
}

/* Preferências e ações rápidas do visitante */
.participant-card-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}

.participant-card-heading .participant-card-name {
  min-width: 0;
  margin: 0;
}

.favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(120, 168, 241, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--motion-quick) var(--motion-settle), background var(--motion-standard) ease, border-color var(--motion-standard) ease, color var(--motion-standard) ease, box-shadow var(--motion-standard) ease;
}

.favorite-toggle:hover,
.favorite-toggle:focus-visible {
  border-color: rgba(255, 209, 102, 0.7);
  color: #ffe4a3;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 209, 102, 0.1);
}

.favorite-toggle:active {
  transform: translateY(1px) scale(0.97);
}

.favorite-toggle.is-active {
  border-color: rgba(255, 209, 102, 0.52);
  background: rgba(255, 209, 102, 0.12);
  color: #ffd166;
}

.favorite-star {
  font-size: 1rem;
  line-height: 1;
}

.favorite-filter-button {
  align-self: end;
  min-height: 44px;
  white-space: nowrap;
}

.favorites-empty-card,
.favorites-limit-card,
.favorites-chart-card {
  padding: 28px;
}

.favorites-empty-card {
  text-align: center;
}

.favorites-empty-card .button {
  margin-top: 10px;
}

.favorites-limit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(120, 168, 241, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47, 111, 232, 0.16), rgba(226, 55, 47, 0.12)), var(--surface);
  box-shadow: var(--shadow);
}

@media (hover: hover) and (pointer: fine) {
  .home-page .hero-intro {
    transform-style: preserve-3d;
  }

  .home-page .hero-frase-picture {
    will-change: transform;
  }
}

.favorites-limit-card h2 {
  margin: 0;
}

.favorites-limit-card .section-text {
  margin-bottom: 0;
}

.favorites-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.favorite-summary-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(120, 168, 241, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 30, 54, 0.96), rgba(11, 21, 39, 0.94));
  box-shadow: var(--shadow);
}

.favorite-summary-head,
.favorite-summary-identity,
.favorites-chart-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.favorite-summary-head {
  justify-content: space-between;
  align-items: flex-start;
}

.favorite-summary-identity {
  min-width: 0;
}

.favorite-summary-identity .eyebrow {
  margin-bottom: 4px;
  font-size: 0.66rem;
}

.favorite-summary-identity h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.favorite-summary-photo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
}

.favorite-summary-photo .pilot-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.favorite-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.favorite-summary-metrics > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.favorite-summary-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.favorite-summary-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.favorite-summary-metric-wide {
  grid-column: 1 / -1;
}

.favorites-chart-card {
  overflow: hidden;
}

.favorites-chart-toolbar {
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(120, 168, 241, 0.15);
}

.favorites-chart-toolbar .section-text {
  margin: 0 0 5px;
}

.favorites-chart-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.favorite-chart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(120, 168, 241, 0.24);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--motion-press) var(--motion-ease-smooth), background var(--motion-press) var(--motion-ease-smooth), color var(--motion-press) var(--motion-ease-smooth);
}

.favorite-chart-toggle:has(input:checked) {
  border-color: rgba(79, 137, 247, 0.7);
  background: rgba(79, 137, 247, 0.14);
  color: var(--text);
}

.favorite-chart-toggle input {
  accent-color: var(--accent-3);
}

.favorites-chart-mount {
  min-width: 0;
  padding-top: 18px;
}

.favorites-chart-empty {
  margin: 18px 0 0;
  padding: 34px 18px;
  text-align: center;
  border: 1px dashed rgba(120, 168, 241, 0.3);
  border-radius: 14px;
}

.favorites-ranking-chart-shell {
  min-width: 0;
}

.ranking-row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ranking-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranking-row-name .ranking-series-badge {
  min-height: 22px;
  padding: 0 8px;
  font-size: 0.64rem;
}

.ranking-leader-badge {
  color: #172033;
  background: #f2c45f;
}

.pilot-driver-hero-actions,
.timeline-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.timeline-card-actions {
  margin-top: 16px;
}

.timeline-card-actions .button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.72rem;
}

@media (max-width: 680px) {
  .site-feedback {
    top: 78px;
    right: 16px;
  }

  .favorites-limit-card,
  .favorites-chart-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .favorites-limit-card .button {
    width: 100%;
  }

  .favorites-chart-controls {
    justify-content: flex-start;
  }

  .favorite-chart-toggle {
    flex: 1 1 140px;
  }

  .participant-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .favorite-toggle,
  .favorite-filter-button {
    width: 100%;
  }

  .pilot-driver-hero-actions,
  .timeline-card-actions {
    width: 100%;
  }

  .pilot-driver-hero-actions .button,
  .timeline-card-actions .button {
    width: 100%;
  }

  .ranking-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
  }

  .ranking-row-driver {
    gap: 9px;
  }

  .ranking-row-driver .pilot-photo-frame,
  .ranking-row-driver .ranking-photo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .ranking-row .score {
    grid-column: 2;
    justify-self: end;
    margin-top: -2px;
    font-size: 1rem;
  }

  .ranking-row-name {
    gap: 6px;
  }

  .ranking-row-name strong {
    min-width: 0;
  }

  .ranking-row-name .text-link {
    overflow-wrap: anywhere;
  }

  .ranking-row-copy > div:not(.ranking-row-name) {
    display: none;
  }

  .stage-result-driver-cell {
    min-width: 170px;
  }

  .stage-result-driver .pilot-photo-frame,
  .stage-result-driver .stage-result-photo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}

@media print {
  .scroll-progress {
    display: none !important;
  }

  @page {
    margin: 12mm;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }

  body {
    font-size: 10pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header,
  .footer,
  .skip-link,
  .site-feedback,
  .data-status-banner,
  .filters-bar,
  .ranking-series-switcher-shell,
  .page-hero-actions,
  .stage-nav,
  .stage-hero-report-stack,
  .stage-series-switcher-shell,
  .report-actions,
  .report-link,
  .highlights-list {
    display: none !important;
  }

  .page-main {
    max-width: none !important;
    padding: 0 !important;
  }

  .page-main > * {
    max-width: none !important;
  }

  .page-hero {
    min-height: 0 !important;
    padding: 0 0 12px !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .page-hero::before,
  .page-hero::after,
  .stage-hero-map {
    display: none !important;
  }

  .page-hero h1,
  .page-hero h2,
  .section-heading h2,
  .ranking-card h3,
  .print-series-title {
    color: #111 !important;
  }

  .hero-text,
  .eyebrow,
  .section-text {
    color: #444 !important;
  }

  .section {
    margin-top: 12px !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .ranking-layout {
    display: block !important;
  }

  .ranking-card,
  .info-card,
  .table-shell {
    background: #fff !important;
    border: 1px solid #aeb5bf !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #111 !important;
    backdrop-filter: none !important;
  }

  .ranking-card {
    padding: 12px !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .ranking-card-head {
    margin-bottom: 8px !important;
  }

  .ranking-row,
  .ranking-row.is-leader,
  .ranking-row.is-tied,
  .ranking-row.is-leader.is-tied {
    background: #fff !important;
    border-bottom: 1px solid #d4d7dd !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .ranking-row.is-leader {
    border-left-color: #a36b00 !important;
  }

  .ranking-row .text-link,
  .ranking-row strong,
  .ranking-row .position,
  .ranking-row .score,
  .ranking-row-copy > div {
    color: #111 !important;
  }

  [data-stage-series][hidden] {
    display: block !important;
  }

  [data-ranking-panel][hidden] {
    display: none !important;
  }

  .stage-series-section {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .print-series-title {
    display: block !important;
    margin: 0 0 8px !important;
    font-size: 12pt !important;
  }

  .table-shell {
    overflow: visible !important;
    margin-bottom: 14px;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  table,
  .results-detail-table {
    width: 100% !important;
    min-width: 0 !important;
    color: #111 !important;
    font-size: 8pt;
  }

  th,
  td {
    background: #fff !important;
    border-color: #c8ccd3 !important;
    color: #111 !important;
  }

  thead {
    display: table-header-group;
  }

  tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .stage-result-driver {
    gap: 5px;
  }

  .stage-result-driver .pilot-photo-frame,
  .stage-result-driver .stage-result-photo {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .stage-result-driver .stage-result-photo {
    border-width: 1px;
  }

  .stage-result-driver-copy .text-link,
  .stage-result-driver-copy strong {
    color: #111 !important;
  }

  .result-status-note,
  .points-note {
    color: #333 !important;
  }

  .result-status-badge {
    color: #111 !important;
    background: #f0f0f0 !important;
    border-color: #888 !important;
  }

  .points-badge {
    color: #111 !important;
    background: #e6efff !important;
    border-color: #8aa9d4 !important;
  }
}

/* On mobile, preserve the original poster-first Home composition. The compact
   side-by-side hero remains a desktop treatment; the stage card returns to
   the first slot of the quick panel on narrow screens. */
.home-page .home-quick-stage-card--mobile {
  display: none;
}

@media (max-width: 680px) {
  .home-page .hero-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 0;
  }

  .home-page .home-hero-art {
    min-width: 0;
  }

  .home-page .hero-frase-picture,
  .home-page .hero-frase-banner {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .home-page .hero-frase-picture {
    width: calc(100% - 32px);
    margin-inline: auto;
  }

  .home-page .hero-frase-banner {
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
    object-fit: contain;
    border-radius: 22px;
  }

  .home-page .home-hero-stage-card {
    display: none;
  }

  .home-page .home-quick-stage-card--mobile {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
}

.upcoming-season-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.upcoming-season-header {
  position: relative;
  z-index: 2;
}

.upcoming-season-topbar {
  border-radius: 20px;
}

.upcoming-season-header-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.07);
  color: #ffdc8a;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.upcoming-season-header-status > span,
.upcoming-season-footnote > span {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 0 5px rgba(255, 209, 102, 0.12), 0 0 20px rgba(255, 209, 102, 0.35);
}

.upcoming-season-main {
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: min(80vh, 860px);
  padding-top: clamp(26px, 5vh, 64px);
  padding-bottom: clamp(26px, 5vh, 64px);
}

.upcoming-season-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(500px, 67vh, 740px);
  overflow: hidden;
  padding: clamp(34px, 7vw, 108px);
  border: 1px solid rgba(120, 168, 241, 0.3);
  border-radius: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 12% 90%, rgba(47, 111, 232, 0.34), transparent 34%),
    linear-gradient(115deg, rgba(14, 38, 68, 0.98), rgba(7, 19, 36, 0.98) 68%);
  box-shadow: var(--shadow);
}

.upcoming-season-hero::before,
.upcoming-season-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.upcoming-season-hero::before {
  width: min(58vw, 760px);
  aspect-ratio: 1;
  right: -4%;
  top: 50%;
  border: 1px solid rgba(226, 55, 47, 0.24);
  box-shadow: 0 0 0 25px rgba(47, 111, 232, 0.04), 0 0 0 64px rgba(47, 111, 232, 0.035), inset 0 0 64px rgba(47, 111, 232, 0.07);
  transform: translateY(-50%);
}

.upcoming-season-hero::after {
  width: min(38vw, 500px);
  aspect-ratio: 1;
  right: 7%;
  top: 50%;
  border: 1px solid rgba(120, 168, 241, 0.13);
  transform: translateY(-50%);
}

.upcoming-season-copy {
  position: relative;
  z-index: 1;
  width: min(72%, 810px);
}

.upcoming-season-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: #79b3ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.upcoming-season-kicker-line {
  display: inline-block;
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.upcoming-season-copy h1 {
  max-width: 820px;
  margin: 0;
  color: #f4f8ff;
  font-size: clamp(2.55rem, 6.3vw, 6.4rem);
  letter-spacing: -0.065em;
  line-height: 0.99;
  text-wrap: balance;
}

.upcoming-season-copy .hero-text {
  max-width: 630px;
  margin: 24px 0 0;
  color: #a9bdd8;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  line-height: 1.65;
}

.upcoming-season-return {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  margin-top: 32px;
  padding-inline: 24px;
}

.upcoming-season-return span {
  font-size: 1.08em;
}

.upcoming-season-year {
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: 9%;
  color: rgba(226, 235, 250, 0.055);
  font-family: "Formula1 Bold";
  font-size: clamp(7rem, 19vw, 19rem);
  letter-spacing: -0.09em;
  line-height: 0.8;
  pointer-events: none;
}

.upcoming-season-orbit {
  position: absolute;
  z-index: 0;
  right: 17%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2372f;
  box-shadow: 0 0 0 8px rgba(226, 55, 47, 0.13), 0 0 32px rgba(226, 55, 47, 0.62);
  transform: translateY(-50%);
}

.upcoming-season-orbit span,
.upcoming-season-orbit i,
.upcoming-season-orbit b {
  position: absolute;
  inset: 50%;
  display: block;
  width: 15vw;
  max-width: 190px;
  aspect-ratio: 1;
  border: 1px solid rgba(120, 168, 241, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.upcoming-season-orbit i {
  width: 25vw;
  max-width: 320px;
  border-color: rgba(120, 168, 241, 0.2);
}

.upcoming-season-orbit b {
  width: 37vw;
  max-width: 470px;
  border-color: rgba(226, 55, 47, 0.14);
}

.upcoming-season-track {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 6px;
  opacity: 0.9;
}

.upcoming-season-track span {
  flex: 1;
  background: linear-gradient(90deg, #e2372f, #f15249);
}

.upcoming-season-track span:nth-child(2n) {
  background: linear-gradient(90deg, #1e5cca, #4a92ff);
}

.upcoming-season-footnote {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #8199b7;
  font-size: 0.8rem;
  line-height: 1.6;
}

.upcoming-season-footnote > span {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
  background: #ffd166;
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.1);
}

.upcoming-season-footer {
  padding-top: 0;
}

@media (max-width: 760px) {
  .upcoming-season-topbar {
    min-width: 0;
    gap: 8px;
  }

  .upcoming-season-topbar .brand {
    min-width: 0;
    gap: 7px;
    overflow: hidden;
    font-size: 0.68rem;
    letter-spacing: 0.045em;
    text-overflow: ellipsis;
  }

  .upcoming-season-topbar .brand-favicon {
    width: 25px;
    height: 25px;
  }

  .upcoming-season-header-status {
    flex: 0 0 auto;
    gap: 7px;
    padding: 7px 8px;
    font-size: 0.52rem;
    letter-spacing: 0.01em;
  }

  .upcoming-season-header-status > span {
    width: 7px;
    height: 7px;
    flex-basis: 7px;
  }

  .upcoming-season-main {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .upcoming-season-hero {
    align-items: flex-start;
    min-height: 590px;
    padding: clamp(28px, 8vw, 42px) clamp(22px, 6vw, 36px);
  }

  .upcoming-season-copy {
    width: 100%;
  }

  .upcoming-season-copy .eyebrow {
    margin-bottom: 17px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .upcoming-season-copy h1 {
    max-width: 560px;
    font-size: clamp(2.6rem, 11.5vw, 4.6rem);
  }

  .upcoming-season-copy .hero-text {
    max-width: 520px;
    margin-top: 18px;
    font-size: 0.98rem;
  }

  .upcoming-season-return {
    min-height: 54px;
    margin-top: 24px;
    padding-inline: 18px;
    font-size: 0.75rem;
  }

  .upcoming-season-hero::before {
    width: 110vw;
    right: -42%;
    top: auto;
    bottom: -15%;
    transform: none;
  }

  .upcoming-season-hero::after {
    width: 75vw;
    right: -16%;
    top: auto;
    bottom: -4%;
    transform: none;
  }

  .upcoming-season-orbit {
    top: auto;
    right: 28%;
    bottom: 18%;
    transform: none;
  }

  .upcoming-season-orbit span {
    width: 36vw;
  }

  .upcoming-season-orbit i {
    width: 58vw;
  }

  .upcoming-season-orbit b {
    width: 82vw;
  }

  .upcoming-season-year {
    right: 8%;
    bottom: 10%;
    font-size: clamp(7rem, 35vw, 13rem);
  }

  .upcoming-season-footnote {
    align-items: flex-start;
    padding-inline: 3px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .upcoming-season-page *,
  .upcoming-season-page *::before,
  .upcoming-season-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compact public browsing layouts */
.compact-filter-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.participant-filter-bar {
  grid-template-columns: minmax(0, 1.25fr) minmax(170px, 0.75fr) auto;
}

.participant-filter-bar .filter-field-wide {
  grid-column: auto;
}

.ranking-filter-bar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ranking-filter-bar .filter-field-wide {
  grid-column: auto;
}

.compact-filter-bar .filter-field {
  gap: 5px;
}

.compact-filter-bar .filter-field span {
  font-size: 0.66rem;
}

.compact-filter-bar .filter-input,
.compact-filter-bar .filter-select,
.compact-filter-bar .favorite-filter-button {
  min-height: 38px;
}

.compact-filter-bar .favorite-filter-button {
  width: auto;
  padding-inline: 12px;
}

.participants-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 10px;
}

.participant-card-compact {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 5px 12px;
  min-width: 0;
  padding: 11px 12px;
  text-align: left;
}

.participant-card-compact .participant-photo-slot {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 58px;
  min-height: 0;
}

.participant-card-compact .participant-photo-link,
.participant-card-compact .pilot-photo-frame {
  width: 58px;
}

.participant-card-compact .participant-photo,
.participant-card-compact .participant-photo-placeholder {
  width: 58px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
}

.participant-card-compact .participant-card-series {
  grid-column: 2;
  justify-content: flex-start;
  min-height: 0;
  margin: 0;
}

.participant-card-compact .participant-card-series .pilot-series-badge {
  min-height: 20px;
  padding-inline: 7px;
  font-size: 0.58rem;
}

.participant-card-compact .participant-card-heading {
  grid-column: 2;
  min-width: 0;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
}

.participant-card-compact .participant-card-name {
  min-width: 0;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.participant-card-compact .favorite-toggle {
  flex: 0 0 auto;
  width: auto;
  min-height: 29px;
  padding-inline: 8px;
  font-size: 0.62rem;
}

.timeline-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 12px;
}

.timeline-card {
  min-width: 0;
  padding: 15px;
}

.timeline-card .timeline-title-row {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-card .timeline-title-row h3 {
  margin: 2px 0 0;
  font-size: 0.92rem;
  line-height: 1.25;
}

.timeline-card .stage-thumb {
  width: 78px;
  height: 52px;
  flex: 0 0 78px;
  border-radius: 10px;
}

.timeline-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 12px;
}

.timeline-card-meta p,
.timeline-card-note {
  min-width: 0;
  margin: 3px 0;
  font-size: 0.77rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.timeline-card-note {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-card-actions {
  margin-top: 9px;
}

.history-scope-switcher-shell {
  margin-top: 12px;
  margin-bottom: 16px;
}

.history-scope-switcher-shell .ranking-series-switcher {
  width: min(100%, 520px);
}

.history-scope-panel[hidden] {
  display: none;
}

.history-scope-panel .history-record-grid {
  margin-bottom: 16px;
}

.history-global-records {
  margin-bottom: 34px;
}

.history-global-record-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-global-record-grid .history-record-card {
  min-height: 190px;
}

.history-global-record-grid .history-record-card p {
  max-width: 36ch;
}

.ranking-series-leader-badge {
  border: 1px solid rgba(255, 209, 102, 0.45);
  background: rgba(255, 209, 102, 0.1);
  color: #ffe4a3;
}

@media (max-width: 75rem) and (min-width: 42.56rem) {
  .topbar-actions,
  .topbar.is-menu-open .topbar-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .season-switcher {
    justify-self: start;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .nav-links a {
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
  }
}

@media (max-width: 680px) {
  .topbar-actions,
  .topbar.is-menu-open .topbar-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .season-switcher {
    justify-self: start;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nav-links a {
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 5px 7px;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
  }

  .participant-filter-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .participant-filter-bar .filter-field-wide {
    grid-column: 1 / -1;
  }

  .participant-filter-bar .filter-field:not(.filter-field-wide) {
    min-width: 0;
  }

  .participant-filter-bar .filter-select {
    min-width: 0;
    padding-inline: 9px;
    font-size: 0.76rem;
  }

  .participant-filter-bar .favorite-filter-button {
    min-height: 38px;
    padding-inline: 9px;
    font-size: 0.65rem;
  }

  .ranking-filter-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .ranking-filter-bar .filter-field-wide {
    grid-column: 1 / -1;
  }

  .participants-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .participant-card-compact {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 7px;
    padding: 8px;
  }

  .participant-card-compact .participant-photo-slot,
  .participant-card-compact .participant-photo-link,
  .participant-card-compact .pilot-photo-frame {
    width: 44px;
  }

  .participant-card-compact .participant-photo,
  .participant-card-compact .participant-photo-placeholder {
    width: 44px;
    border-radius: 8px;
  }

  .participant-card-compact .participant-card-heading {
    align-items: center;
    flex-direction: row;
    gap: 4px;
  }

  .participant-card-compact .participant-card-name {
    font-size: 0.73rem;
  }

  .participant-card-compact .favorite-toggle {
    width: 28px;
    min-height: 28px;
    padding: 0;
  }

  .participant-card-compact .favorite-toggle [data-favorite-label] {
    display: none;
  }

  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .timeline-card {
    padding: 10px;
  }

  .timeline-card .timeline-title-row {
    flex-direction: column-reverse;
    gap: 7px;
  }

  .timeline-card .stage-thumb {
    width: 100%;
    height: 64px;
    flex-basis: auto;
  }

  .timeline-card .timeline-title-row h3 {
    font-size: 0.78rem;
  }

  .timeline-card-meta {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .timeline-card-meta p,
  .timeline-card-note {
    font-size: 0.68rem;
  }

  .history-scope-switcher-shell .ranking-series-switcher {
    width: 100%;
  }

  .history-scope-switcher-shell .ranking-series-button {
    flex-basis: 110px;
    padding-inline: 10px;
    font-size: 0.68rem;
  }

  .history-record-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .history-record-card {
    min-height: 0;
    padding: 15px;
  }
}

@media (min-width: 42.56rem) {
  .history-global-record-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 42.5rem) {
  .history-global-record-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .history-global-record-grid .history-record-card {
    min-height: 0;
    padding: 15px;
  }
}

/* Scenic stage cards share the same background library as the homepage. */
.timeline-grid {
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.timeline-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(52, 145, 239, 0.52);
  border-radius: 13px;
  background: #07172c;
  isolation: isolate;
}

.timeline-card:target {
  outline: 3px solid rgba(78, 160, 255, 0.78);
  outline-offset: 3px;
}

.timeline-card-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(2, 13, 28, 0.3) 0%, rgba(2, 13, 28, 0.18) 31%, rgba(2, 13, 28, 0.76) 60%, rgba(2, 13, 28, 0.99) 100%),
    linear-gradient(90deg, rgba(2, 13, 28, 0.25), rgba(2, 13, 28, 0.04)),
    var(--stage-photo, url("/images/home-kart-hero.png"));
  background-position: center, center, var(--stage-photo-position, center);
  background-size: 100% 100%, 100% 100%, var(--stage-photo-size, cover);
}

.timeline-card-art::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(34, 134, 241, 0.1), transparent 50%);
  content: "";
}

.timeline-card-flag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 2.25rem;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65));
}

.timeline-card-map {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 44%;
  height: 100px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  mix-blend-mode: screen;
  opacity: 0.64;
}

.timeline-card-featured {
  border-color: rgba(82, 163, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(39, 131, 245, 0.22), 0 18px 38px rgba(0, 0, 0, 0.28);
}

.timeline-card .timeline-focus-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(78, 160, 255, 0.7);
  border-radius: 999px;
  background: rgba(3, 18, 38, 0.85);
  color: #c4e0ff;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.timeline-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  min-width: 0;
  margin-top: auto;
  padding: 80px 17px 16px;
}

.timeline-card-number {
  margin: 0;
  color: #8fbdf1;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-card .timeline-title-row {
  display: block;
}

.timeline-card .timeline-title-row h3,
.timeline-card-copy h3 {
  max-width: 100%;
  margin: 0;
  color: #f4f7ff;
  font-family: "Formula1 Bold", "Formula1", sans-serif;
  font-size: clamp(0.88rem, 1vw, 1.08rem);
  line-height: 1.32;
  text-transform: uppercase;
}

.timeline-card-meta {
  display: grid;
  gap: 7px;
  margin: 2px 0 0;
}

.timeline-card-meta p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: #c6d7ec;
  font-size: 0.72rem;
  line-height: 1.4;
}

.timeline-card-meta p > span {
  flex: 0 0 14px;
  color: #6fafff;
  font-size: 1rem;
}

.timeline-card-meta p > strong {
  color: #eff5ff;
}

.timeline-card-note {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #9fb5d1;
  font-size: 0.71rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-card-actions {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin-top: 2px;
}

.timeline-card .timeline-results-link,
.timeline-card .timeline-stage-status {
  color: #88c4ff;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-card .timeline-results-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-card .timeline-stage-status {
  color: #c3d5eb;
}

@media (max-width: 90rem) {
  .timeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 68rem) {
  .timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .timeline-card {
    min-height: 350px;
  }

  .timeline-card-copy {
    padding: 74px 13px 13px;
  }

  .timeline-card-flag {
    top: 12px;
    left: 12px;
    font-size: 1.85rem;
  }

  .timeline-card-map {
    top: 11px;
    right: 8px;
    height: 76px;
  }

  .timeline-card .timeline-title-row h3,
  .timeline-card-copy h3 {
    font-size: 0.82rem;
  }
}

@media (max-width: 36rem) {
  .timeline-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-card {
    min-height: 320px;
  }
}
