:root {
  --ink: #020a16;
  --ink-2: #06172a;
  --panel: #0a213b;
  --orange: #e31b34;
  --orange-2: #ff4054;
  --metal: #f5f7f9;
  --metal-mid: #aebbc8;
  --metal-dark: #66788a;
  --blue-glow: #0d4f87;
  --line: rgba(206, 219, 230, .18);
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(16, 82, 137, .22), transparent 38rem),
    var(--ink);
}

.site-header {
  background: linear-gradient(180deg, rgba(2, 8, 18, .97), rgba(4, 18, 34, .86));
  border-bottom-color: rgba(221, 231, 239, .22);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .3);
}

.brand svg path:last-child {
  fill: var(--orange);
}

.calendar-link,
.button-ghost,
.button-outline {
  border-color: rgba(215, 226, 235, .38);
  background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(132, 157, 179, .02));
}

.calendar-link:hover,
.button-ghost:hover,
.button-outline:hover {
  border-color: var(--metal);
  color: var(--metal);
  box-shadow: inset 3px 0 var(--orange), 0 0 24px rgba(22, 98, 160, .16);
}

.hero {
  background-color: var(--ink);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(1, 7, 16, .98) 0%, rgba(3, 15, 29, .86) 31%, rgba(4, 24, 44, .28) 68%, rgba(2, 10, 20, .2)),
    linear-gradient(0deg, rgba(1, 7, 15, .92) 0, transparent 36%);
}

.hero-overlay {
  background-image:
    linear-gradient(rgba(206, 221, 234, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206, 221, 234, .035) 1px, transparent 1px),
    radial-gradient(circle at 68% 22%, rgba(16, 98, 164, .24), transparent 28%);
}

.hero h1 {
  text-shadow: 0 10px 34px rgba(0, 0, 0, .45);
}

.hero h1 em {
  color: var(--orange);
  text-shadow: 0 0 30px rgba(227, 27, 52, .22);
}

.eyebrow span,
.button-primary,
.race-strip {
  background: linear-gradient(115deg, #b70f28, var(--orange) 48%, #ff354c);
}

.eyebrow span {
  box-shadow: 10px 0 #f2f5f7;
}

.button-primary {
  color: #fff;
  box-shadow: 0 14px 34px rgba(184, 15, 40, .28), inset 0 1px rgba(255, 255, 255, .24);
}

.button-primary:hover {
  background: linear-gradient(115deg, #cf1830, #fa2d44);
}

.race-strip {
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .34);
  border-bottom: 1px solid rgba(2, 10, 22, .8);
}

.live-dot {
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .15);
}

.next-race-card {
  background:
    radial-gradient(circle at 16% 76%, rgba(227, 27, 52, .14), transparent 34%),
    linear-gradient(135deg, #0b2947, #03101e 70%);
  border-color: rgba(215, 227, 237, .26);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .05);
}

.next-race-card::after,
.race-dialog::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 4px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--orange) 0 34%, var(--metal) 34% 56%, var(--orange) 56% 72%, transparent 72%);
}

.next-race-card::before {
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(143, 161, 178, .03));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.next-race-main {
  background: radial-gradient(circle at 20% 80%, rgba(227, 27, 52, .16), transparent 45%);
}

.session-row.race-session {
  background: linear-gradient(90deg, rgba(227, 27, 52, .16), rgba(227, 27, 52, .03));
}

.section-heading h2,
.profile-copy h2 {
  text-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.section-heading h2 span {
  background: linear-gradient(180deg, #ff4055, #bd1028);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.filters label,
.race-grid,
.race-card {
  border-color: rgba(194, 211, 225, .2);
}

.race-card {
  background: linear-gradient(145deg, #071a2d, #04111f);
}

.race-card:hover {
  background: linear-gradient(145deg, #0d2d4d, #07182a);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .08);
}

.race-card.current {
  background: linear-gradient(145deg, #102f50, #061321);
  box-shadow: inset 0 4px var(--orange), inset 1px 0 rgba(255, 255, 255, .16);
}

.race-card.past {
  background: linear-gradient(145deg, #061421, #030d17);
}

.race-card-top b {
  filter: saturate(.96) drop-shadow(0 2px 5px rgba(0, 0, 0, .35));
}

.max-ranking {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .2), transparent 28%),
    linear-gradient(135deg, #a70c24, #e31b34 52%, #76091d);
  color: #fff;
  border: 1px solid rgba(240, 245, 248, .36);
  box-shadow: 0 20px 54px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .28);
}

.max-ranking::after {
  content: none;
}

.ranking-three-mark {
  position: absolute;
  right: -54px;
  bottom: -74px;
  width: 330px;
  height: 390px;
  color: rgba(255, 255, 255, .2);
  filter: drop-shadow(12px 16px 0 rgba(75, 0, 18, .22));
  pointer-events: none;
}

.ranking-three-mark path {
  fill: currentColor;
}

.standing-row.is-max {
  background: linear-gradient(90deg, rgba(227, 27, 52, .22), rgba(13, 79, 135, .06), transparent);
}

.news-section {
  background:
    radial-gradient(circle at 78% 18%, rgba(12, 73, 124, .2), transparent 32%),
    #030d1a;
}

.news-card.featured {
  background: linear-gradient(145deg, rgba(227, 27, 52, .13), rgba(9, 48, 82, .05), transparent);
}

.news-card:hover {
  background: linear-gradient(145deg, rgba(14, 55, 91, .76), rgba(5, 20, 35, .92));
}

.profile-section {
  background:
    radial-gradient(circle at 22% 46%, rgba(15, 85, 142, .2), transparent 28%),
    linear-gradient(135deg, #07192c, #020b16 68%);
}

.profile-visual {
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 44%, rgba(24, 94, 145, .25), transparent 42%),
    #031326;
}

.big-three {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
}

.big-three img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .34));
}

.profile-copy h2 span {
  -webkit-text-stroke-color: #c6d1dc;
}

.orbit {
  border-color: rgba(211, 224, 234, .2);
  box-shadow: 0 0 30px rgba(10, 78, 134, .08);
}

.profile-facts div,
.timeline {
  border-color: rgba(207, 221, 232, .25);
}

.timeline article::before {
  border: 2px solid #dce4eb;
  box-shadow: 0 0 0 4px rgba(227, 27, 52, .13);
}

.race-dialog {
  position: relative;
  border-color: rgba(213, 225, 235, .3);
  background: #030d1a;
}

.race-detail-header {
  background:
    radial-gradient(circle at 8% 90%, rgba(227, 27, 52, .19), transparent 30%),
    linear-gradient(135deg, #0a223a, #030d1a 68%);
}

.race-detail-map,
.race-detail-copy,
.race-v2-data {
  background: #06172a;
}

.circuit-map-heading span {
  border-color: var(--orange);
}

.max-track-card {
  background: linear-gradient(145deg, #a90d25, #e31b34 55%, #78091d);
}

.site-footer {
  background: linear-gradient(180deg, #020a14, #01050a);
  border-top: 1px solid rgba(207, 220, 231, .18);
}

@media (max-width: 700px) {
  .hero::after {
    background:
      linear-gradient(90deg, rgba(1, 7, 16, .97), rgba(3, 15, 28, .73)),
      linear-gradient(0deg, rgba(1, 7, 15, .94), transparent 48%);
  }

  .race-card,
  .race-card.past {
    background: linear-gradient(145deg, #071a2d, #04111f);
  }

  .race-card.current {
    background: linear-gradient(145deg, #102f50, #061321);
    box-shadow: inset 4px 0 var(--orange), 0 8px 28px rgba(0, 0, 0, .26);
  }

  .big-three {
    width: 100%;
    height: 100%;
    transform: none;
  }

  .big-three img {
    width: min(100%, 360px);
    max-height: none;
  }

  .ranking-three-mark {
    right: -38px;
    bottom: -56px;
    width: 250px;
    height: 300px;
  }
}
