:root {
  color-scheme: light;
  --bg: #f5dfb6;
  --surface: rgba(255, 248, 237, 0.88);
  --panel: rgba(255, 252, 247, 0.96);
  --ink: #221814;
  --ink-900: #221814;
  --ink-600: #725b4d;
  --muted: #725b4d;
  --navy: #143a66;
  --navy-deep: #0b2340;
  --saddle: #b1551a;
  --gold: #f1b63e;
  --gold-hot: #ffd36f;
  --rose: #b12f5f;
  --rose-deep: #7f173f;
  --teal: #007c86;
  --cream: #fff1d7;
  --border: rgba(63, 34, 13, 0.14);
  --shadow: 0 30px 80px rgba(58, 27, 6, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 248, 220, 0.96), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(255, 110, 74, 0.18), transparent 20%),
    radial-gradient(circle at 18% 86%, rgba(177, 47, 95, 0.14), transparent 24%),
    linear-gradient(145deg, #f7ebd2 0%, #ebc47b 48%, #e7d4b1 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 75%);
}

.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(180deg, #203449 0%, #13202e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.rail-left {
  left: 0;
}

.rail-right {
  right: 0;
}

.shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 88px;
  position: relative;
  z-index: 1;
}

.hero,
.section,
.tape {
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px 24px 32px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(180deg, rgba(255, 248, 236, 0.94), rgba(255, 239, 214, 0.9));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -30% 44%;
  height: 280px;
  background: radial-gradient(circle, rgba(241, 182, 62, 0.34), transparent 68%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 22%, transparent 40%),
    linear-gradient(0deg, rgba(177, 47, 95, 0.06), rgba(177, 47, 95, 0));
  pointer-events: none;
}

.topbar,
.hero-grid,
.route-grid,
.guide-grid,
.vendor-grid,
.filters,
.directory-shell,
.split-heading {
  display: grid;
}

.topbar {
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--rose), var(--saddle) 58%, var(--gold) 100%);
  color: white;
  font-weight: 800;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(126, 34, 28, 0.22);
}

.brand-text,
.brand-subtext {
  display: block;
}

.brand-text {
  font-weight: 800;
}

.brand-subtext {
  font-size: 0.82rem;
  color: var(--muted);
}

.top-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.top-links a,
.card-link {
  text-decoration: none;
  color: var(--navy-deep);
  font-weight: 800;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}

.eyebrow,
.route-kicker,
.guide-kicker,
.board-label,
.filters-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow,
.route-kicker,
.guide-kicker,
.board-label {
  color: var(--saddle);
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  font-family: "DM Serif Display", serif;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2.4rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.06rem;
}

.hero-actions,
.hero-notes,
.vendor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 22px;
}

.hero-notes {
  margin-top: 18px;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(36, 59, 84, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 244, 224, 0.84));
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--rose), var(--navy) 55%, var(--navy-deep));
  color: white;
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(102, 26, 65, 0.24);
}

.button-secondary {
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.92), rgba(255, 238, 201, 0.78));
}

.hero-board {
  background:
    radial-gradient(circle at top right, rgba(255, 211, 111, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(15, 31, 53, 0.98) 0%, rgba(9, 18, 35, 0.99) 100%);
  color: white;
  border-radius: 28px;
  padding: 22px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 36px rgba(8, 20, 34, 0.24);
}

.board-header,
.board-row,
.board-foot {
  display: grid;
  gap: 14px;
}

.board-header,
.board-row {
  grid-template-columns: 1fr auto;
}

.board-header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.board-row {
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  align-items: center;
}

.board-name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.board-odds {
  font-family: "Fraunces", serif;
  color: var(--gold-hot);
  font-size: 1.2rem;
  text-shadow: 0 0 12px rgba(255, 211, 111, 0.18);
}

.board-foot {
  grid-template-columns: repeat(3, 1fr);
  padding-top: 18px;
}

.metric-stack {
  display: grid;
  gap: 4px;
}

.metric-stack strong {
  font-size: 1.6rem;
}

.metric-stack span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.tape {
  margin-top: 18px;
  overflow: hidden;
  background: linear-gradient(90deg, #d24c3d 0%, #a22756 42%, #4f1f33 100%);
  color: white;
  box-shadow: 0 18px 40px rgba(113, 32, 36, 0.16);
}

.tape-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  padding: 14px 20px;
  min-width: max-content;
  animation: tape-scroll 28s linear infinite;
  font-weight: 700;
}

.tape-track span {
  color: rgba(255, 255, 255, 0.86);
}

.section {
  margin-top: 22px;
  padding: 28px;
}

.section-routes {
  background: linear-gradient(180deg, rgba(255, 240, 209, 0.94), rgba(255, 250, 242, 0.92));
}

.section-directory {
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(255, 237, 210, 0.94));
}

.section-guides {
  background: linear-gradient(180deg, rgba(255, 241, 231, 0.95), rgba(255, 247, 237, 0.94));
}

.split-heading {
  grid-template-columns: 1fr minmax(240px, 380px);
  gap: 24px;
  margin-bottom: 22px;
  align-items: end;
}

.route-grid,
.guide-grid,
.vendor-grid {
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.route-card,
.guide-card,
.vendor-card,
.filters-panel {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.route-card-amber {
  background: linear-gradient(180deg, #ffe0aa, #fff7e8);
}

.route-card-green {
  background: linear-gradient(180deg, #dff7f6, #f4ffff);
}

.route-card-cream {
  background: linear-gradient(180deg, #ffe9db, #fffaf5);
}

.directory-shell {
  gap: 18px;
}

.filters-panel {
  background: linear-gradient(180deg, #fff2da, #fffdf8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.filters {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-deep);
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,244,224,0.9));
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(72, 34, 8, 0.06);
}

.results-meta {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 58, 102, 0.12), rgba(177, 47, 95, 0.08));
  color: var(--navy-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.vendor-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 243, 222, 0.95));
  display: grid;
  gap: 12px;
}

.vendor-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--navy));
}

.vendor-card-empty {
  text-align: center;
  padding: 34px 22px;
}

.operator-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.operator-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 260px;
}

.page-brand {
  margin: 10px 0 14px;
}

.operator-logo-frame {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 236, 213, 0.94));
  border: 1px solid rgba(94, 48, 13, 0.12);
  box-shadow: 0 10px 20px rgba(71, 35, 8, 0.08);
  flex: 0 0 auto;
}

.operator-logo {
  max-width: 42px;
  max-height: 42px;
  width: auto;
  height: auto;
  display: block;
}

.operator-monogram {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy), var(--rose));
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.operator-note {
  max-width: 38ch;
}

.operator-fit {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(11, 35, 64, 0.08);
  color: var(--navy-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: normal;
  line-height: 1.2;
  max-width: 180px;
  text-align: center;
}

.accent-dk::before {
  background: linear-gradient(90deg, #3aa83a, #1e5b1e, #0b2340);
}

.accent-nyra::before {
  background: linear-gradient(90deg, #0b2340, #1c4f88, #56b1d8);
}

.accent-amwager::before {
  background: linear-gradient(90deg, #b12f5f, #f1b63e, #0b2340);
}

.accent-hollywood::before {
  background: linear-gradient(90deg, #a22756, #ff8d5a, #f1b63e);
}

.accent-twinspires::before {
  background: linear-gradient(90deg, #7a2f16, #c06b20, #f1b63e);
}

.accent-xpressbet::before {
  background: linear-gradient(90deg, #0b2340, #0d5f95, #49b0d6);
}

.accent-tvg::before {
  background: linear-gradient(90deg, #004f7a, #0b2340, #7d2e4f);
}

.accent-playup::before {
  background: linear-gradient(90deg, #a22756, #4f1f33, #0b2340);
}

.accent-otb::before {
  background: linear-gradient(90deg, #0b2340, #5e6f7d, #f1b63e);
}

.accent-watch::before {
  background: linear-gradient(90deg, #0b2340, #0d5f95, #14a89e);
}

.accent-1st::before {
  background: linear-gradient(90deg, #0b2340, #7d2e4f, #f1b63e);
}

.accent-fd::before {
  background: linear-gradient(90deg, #0f6bff, #0b2340, #2ca4ff);
}

.guide-grid-featured {
  grid-template-columns: 1.2fr repeat(3, minmax(180px, 1fr));
}

.guide-card-wide {
  background: linear-gradient(145deg, #d24c3d, #9c1f53 48%, #3d1836 100%);
  box-shadow: 0 20px 40px rgba(116, 31, 56, 0.2);
}

.guide-card-wide h3,
.guide-card-wide p,
.guide-card-wide .guide-kicker {
  color: white;
}

.guide-card-wide .guide-kicker {
  color: rgba(255, 255, 255, 0.74);
}

@keyframes tape-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .topbar,
  .hero-grid,
  .split-heading,
  .guide-grid-featured {
    grid-template-columns: 1fr;
  }

  .operator-head {
    flex-direction: column;
  }

  .board-foot {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(1180px, calc(100% - 28px));
  }

  .rail {
    display: none;
  }

  .hero,
  .section,
  .tape {
    border-radius: 24px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .board-foot {
    grid-template-columns: 1fr;
  }
}


.inner-shell-wrap {
  padding-top: 28px;
}

.inner-page-panel {
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(255, 242, 221, 0.94));
}

.simple-detail-grid {
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


.site-footer {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  padding: 18px 6px 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


.state-heading {
  margin-top: 3rem;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.state-pill {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(120, 79, 39, 0.18);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 241, 219, 0.98));
  color: var(--ink-900);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(76, 48, 23, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.state-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(128, 63, 25, 0.16);
  border-color: rgba(177, 47, 95, 0.28);
}

.state-pill span {
  font-weight: 700;
  font-size: 0.98rem;
}

.state-pill small {
  color: var(--ink-600);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
