:root {
  --ink: #101828;
  --muted: #667085;
  --paper: #f5f7fb;
  --panel: #ffffff;
  --soft: #eef2f7;
  --soft-2: #f8fafc;
  --line: rgba(16, 24, 40, 0.12);
  --track: #0f766e;
  --track-dark: #134e4a;
  --plum: #1f3a5f;
  --plum-dark: #0f172a;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --gold: #d4a72c;
  --amber: #9a6700;
  --sky: #e0f2fe;
  --ring: 0 0 0 4px rgba(37, 99, 235, 0.14);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 14px 38px rgba(15, 23, 42, 0.08);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --space-section: clamp(64px, 9vw, 112px);
  --radius: 8px;
  --radius-lg: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.08), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(15, 118, 110, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0, #f5f7fb 520px, #ffffff 980px),
    var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--plum-dark);
  background: var(--gold);
}

img,
svg,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: inherit;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 900;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 850;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 252px;
  color: var(--plum-dark);
}

.brand-logo {
  width: 72px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.16));
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 1.16rem;
  line-height: 1;
  font-weight: 900;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(248, 250, 252, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--plum), var(--plum-dark));
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.header-cta {
  display: inline-grid;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  color: var(--paper);
  background: linear-gradient(135deg, var(--plum), var(--plum-dark));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.header-cta span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.header-cta strong {
  font-size: 0.9rem;
  line-height: 1.05;
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  align-items: center;
  padding: clamp(86px, 10vw, 140px) clamp(20px, 5vw, 72px) clamp(124px, 13vw, 172px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(31, 58, 95, 0.72) 48%, rgba(19, 78, 74, 0.34)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.7)),
    url("assets/homepage-photo.png") center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(245, 247, 251, 0.96));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.button:focus-visible,
.site-nav a:focus-visible,
.racing-tabs a:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(212, 167, 44, 0.82);
  outline-offset: 3px;
}

.button.primary {
  color: #0f172a;
  background: linear-gradient(135deg, #f3d46b, var(--gold));
  border-color: rgba(154, 103, 0, 0.18);
}

.button.betting-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--track), var(--track-dark));
  border-color: rgba(255, 255, 255, 0.16);
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.36);
}

.hero-stat-panel {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(212, 167, 44, 0.34);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.hero-stat-panel div {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-panel div:last-child {
  border-right: 0;
}

.hero-stat-panel strong,
.hero-stat-panel span {
  display: block;
}

.hero-stat-panel strong {
  color: var(--gold);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 900;
}

.hero-stat-panel span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding: var(--space-section) clamp(20px, 5vw, 72px);
}

.section.compact {
  padding-top: clamp(52px, 8vw, 92px);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 34px 0;
}

.section-heading h2 {
  letter-spacing: 0;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.live-section {
  background:
    linear-gradient(180deg, rgba(245, 247, 251, 0.96), #ffffff 48%, #edf7f6);
}

.live-shell {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: var(--radius-lg);
  background: #111111;
  box-shadow: var(--shadow);
}

.live-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--plum-dark), var(--track-dark));
}

.live-toolbar a {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 850;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-status span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #f34545;
  box-shadow: 0 0 0 5px rgba(243, 69, 69, 0.16);
}

.live-container {
  background: #111111;
}

.live-container iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 320px;
  border: 0;
}

.live-fallback {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.78);
  background: #151515;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.live-fallback strong {
  color: var(--gold);
}

.hero-slider {
  position: relative;
  width: min(calc(100% - 40px), 1320px);
  height: clamp(360px, 66vh, 760px);
  margin: clamp(42px, 7vw, 76px) auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--plum-dark);
  box-shadow: var(--shadow);
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.56), transparent 60%, rgba(19, 78, 74, 0.24));
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

.slide.active {
  z-index: 1;
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.updates-section {
  background: linear-gradient(180deg, #ffffff, #f5f7fb);
}

.betting-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(48px, 7vw, 82px) clamp(20px, 5vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(19, 78, 74, 0.96), rgba(15, 118, 110, 0.82) 52%, rgba(31, 58, 95, 0.88)),
    url("assets/Photo 3.png") center / cover no-repeat;
}

.betting-section > div {
  max-width: 780px;
}

.betting-section .eyebrow {
  color: var(--gold);
}

.betting-section h2 {
  margin-bottom: 10px;
}

.betting-section p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.betting-disclaimer {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  font-size: 0.94rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
}

.feature-card,
.map-frame,
.contact-card,
.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--track));
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 58, 95, 0.24);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

.feature-card.featured {
  border-color: rgba(212, 167, 44, 0.42);
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.feature-card h3 {
  color: var(--plum-dark);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-card p.clamped {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.feature-card p.expanded {
  display: block;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  margin-bottom: 16px;
  color: var(--plum-dark);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.post-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.post-time {
  color: var(--amber);
}

.read-more {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--plum);
  font-weight: 900;
  cursor: pointer;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.post-images img,
.feature-card img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 7px;
  background: #f3f5f8;
}

.post-images img {
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-images img:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-soft);
}

.experience-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(52px, 7vw, 86px) clamp(20px, 5vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(31, 58, 95, 0.8) 54%, rgba(19, 78, 74, 0.78)),
    url("assets/homepage-photo.png") center 58% / cover no-repeat;
}

.experience-copy {
  max-width: 780px;
}

.experience-copy .eyebrow {
  color: var(--gold);
}

.experience-copy h2 {
  margin-bottom: 10px;
}

.experience-copy p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: clamp(78px, 10vw, 126px) clamp(20px, 5vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(31, 58, 95, 0.86) 54%, rgba(15, 118, 110, 0.78)),
    url("assets/homepage-photo.png") center / cover no-repeat;
}

.page-hero > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.page-hero .eyebrow {
  color: var(--gold);
}

.page-hero p:last-child {
  max-width: 760px;
  margin-left: max(calc((100% - var(--max)) / 2), 0px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.two-column,
.split-section,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 78px);
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.two-column > *,
.split-section > *,
.contact-layout > * {
  min-width: 0;
}

.content-stack {
  color: var(--muted);
  font-size: 1.04rem;
}

.content-stack p:last-child,
.split-copy p:last-child {
  margin-bottom: 0;
}

.values-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.value {
  padding: clamp(32px, 5vw, 58px);
  background: #ffffff;
}

.value h3 {
  color: var(--plum-dark);
}

.value p {
  margin-bottom: 0;
  color: var(--muted);
}

.split-section {
  color: #ffffff;
  background: linear-gradient(135deg, var(--plum-dark), var(--plum) 56%, var(--track-dark));
}

.split-section .eyebrow {
  color: var(--gold);
}

.split-copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.map-section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, #f5f7fb, #edf7f6);
}

.map-section .section-heading {
  max-width: var(--max);
}

.map-frame {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 12px;
  overflow: auto;
}

.map-frame img {
  width: 100%;
  min-width: 720px;
  height: auto;
  border-radius: 6px;
}

.racing-info-section {
  background:
    linear-gradient(180deg, #f5f7fb 0, #ffffff 38%, #edf7f6 100%);
}

.racing-tabs {
  position: sticky;
  top: 88px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--max);
  margin: 0 auto 34px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.racing-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  color: var(--plum-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.racing-tabs a:hover {
  transform: translateY(-1px);
  color: #ffffff;
  background: var(--plum);
  border-color: rgba(31, 58, 95, 0.38);
}

.racing-block {
  max-width: var(--max);
  margin: 0 auto clamp(46px, 7vw, 84px);
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.racing-block:last-child {
  margin-bottom: 0;
}

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

.public-schedule-calendar {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: clamp(16px, 3vw, 22px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.public-calendar-head,
.public-calendar-weekdays,
.public-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.public-calendar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.public-calendar-head strong {
  color: var(--plum-dark);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.1;
}

.public-calendar-head span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.public-calendar-weekdays span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.public-calendar-day {
  min-height: 92px;
  padding: 9px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.public-calendar-day.is-empty {
  background: transparent;
  border-color: transparent;
}

.public-calendar-day time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.public-calendar-day.has-schedule {
  background: #ffffff;
  border-color: rgba(31, 58, 95, 0.22);
  box-shadow: inset 0 3px 0 var(--gold);
}

.public-calendar-day.has-schedule time {
  color: #ffffff;
  background: var(--plum);
  border-radius: 999px;
}

.public-calendar-event {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: var(--plum-dark);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.3;
}

.public-calendar-event a {
  color: var(--track);
  font-size: 0.74rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-calendar-more {
  display: inline-flex;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.racing-card,
.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.racing-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.racing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue), var(--track));
}

.racing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 58, 95, 0.24);
  box-shadow: var(--shadow);
}

.racing-card h3,
.racing-card p {
  margin-bottom: 0;
}

.racing-card p {
  color: var(--muted);
}

.database-card {
  min-height: 230px;
}

.database-metric {
  color: var(--plum);
  font-size: 0.95rem;
  line-height: 1.35;
}

.racing-card .button {
  justify-self: start;
  margin-top: 4px;
}

.racing-date {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  grid-column: 1 / -1;
}

.status-section {
  background: linear-gradient(180deg, #ffffff, #edf7f6);
}

.status-grid,
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.hosting-grid {
  margin-top: 24px;
}

.status-card,
.hosting-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 170px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.status-card h3,
.hosting-card h3,
.status-card p,
.hosting-card p {
  margin-bottom: 0;
}

.status-card p,
.hosting-card p {
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.14);
}

.status-dot.ok {
  background: #0f766e;
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.14);
}

.status-dot.down {
  background: #b3261e;
  box-shadow: 0 0 0 5px rgba(179, 38, 30, 0.14);
}

.status-dot.pending {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(212, 167, 44, 0.18);
}

.contact-layout {
  align-items: start;
  background: linear-gradient(180deg, #ffffff, #edf7f6);
}

.contact-form,
.contact-card {
  padding: clamp(24px, 4vw, 38px);
}

.form-heading h2,
.contact-card h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--plum);
  background: #ffffff;
  box-shadow: var(--ring);
}

.contact-list {
  display: grid;
  gap: 13px;
  color: var(--muted);
}

.contact-list p {
  margin: 0;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.contact-list p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-socials,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-socials {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-socials a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.contact-socials a {
  color: var(--plum-dark);
  background: linear-gradient(135deg, #f3d46b, var(--gold));
  border: 1px solid rgba(154, 103, 0, 0.18);
}

.contact-socials a:hover,
.footer-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.contact-socials svg,
.footer-links svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(31, 58, 95, 0.96)),
    var(--plum-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
  margin: 0;
}

.footer-contact {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 167, 44, 0.24);
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
}

#lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
}

#closeLightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms ease, transform 640ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.button:focus-visible,
.site-nav a:focus-visible,
.header-cta:focus-visible,
.contact-socials a:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(212, 167, 44, 0.82);
  outline-offset: 3px;
}

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

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .racing-tabs {
    position: static;
  }

  .header-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    justify-content: space-between;
    overflow-x: auto;
    border-radius: var(--radius);
  }

  .site-nav a {
    flex: 1 0 auto;
    white-space: nowrap;
  }

  .header-cta {
    justify-items: center;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 78px;
    padding-bottom: 42px;
  }

  .hero-stat-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    margin: 44px auto 0;
  }

  .hero-stat-panel div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-stat-panel div:last-child {
    border-bottom: 0;
  }

  .two-column,
  .split-section,
  .contact-layout,
  .values-band {
    grid-template-columns: 1fr;
  }

  .betting-section,
  .experience-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand-logo {
    width: 58px;
    height: 48px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .brand-text small {
    font-size: 0.64rem;
  }

  h1 {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .live-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-container iframe {
    min-height: 220px;
  }

  .hero-slider {
    width: calc(100% - 24px);
    height: 360px;
  }

  .feature-card,
  .contact-form,
  .contact-card {
    padding: 20px;
  }

  .public-calendar-weekdays span {
    font-size: 0.62rem;
  }

  .public-calendar-grid,
  .public-calendar-weekdays {
    gap: 4px;
  }

  .public-calendar-day {
    min-height: 54px;
    padding: 5px;
  }

  .public-calendar-event,
  .public-calendar-more {
    display: none;
  }
}
