/* Betting Tips — public site (aligned with iOS AppTheme) */
:root {
  --bg: #111111;
  --bg-elevated: #161616;
  --panel: #1a1a1a;
  --panel-2: #222222;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.5);
  --accent: #4aa37b;
  --accent-deep: #3a8b63;
  --accent-soft: rgba(74, 163, 123, 0.14);
  --premium: #fed33c;
  --premium-soft: rgba(254, 211, 60, 0.12);
  --danger: #ff453a;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --font-display: "Syne", system-ui, sans-serif;
  --font: "DM Sans", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --wrap: min(1120px, calc(100% - 2rem));
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 40;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-optical-sizing: auto;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(74, 163, 123, 0.16), transparent 55%),
    radial-gradient(700px 420px at 92% 0%, rgba(254, 211, 60, 0.08), transparent 50%),
    linear-gradient(180deg, #141414 0%, var(--bg) 28%, #0d0d0d 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: #6ab388; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
  line-height: 1.15;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.brand .tips { color: var(--premium); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a:not(.app-store-badge):not(.btn) {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:not(.app-store-badge):not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  margin: 0;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    padding: 1rem 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    background: rgba(17, 17, 17, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.app-store-badge) {
    padding: 0.65rem 0.15rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links .app-store-badge {
    align-self: flex-start;
    margin-top: 0.35rem;
  }
}

/* —— Buttons & badge —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #04140c;
}
.btn-primary:hover { color: #04140c; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.btn-premium {
  background: linear-gradient(135deg, var(--premium), #d4a800);
  color: #1a1400;
}
.btn-premium:hover { color: #1a1400; }

.app-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.app-store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  text-decoration: none;
}
.app-store-badge img {
  height: 40px;
  width: auto;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.75rem, 3vw, 2.5rem);
}
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.hero-brand .tips { color: var(--premium); }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  margin: 0 0 0.85rem;
  max-width: 14ch;
}
.hero .lede {
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.hero-stat strong { color: var(--accent); font-weight: 700; }

.page-hero h1 {
  max-width: none;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
}

/* —— Breadcrumbs —— */
.breadcrumbs {
  margin: 1rem 0 0;
}
.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.breadcrumbs-item:not(:last-child)::after {
  content: "/";
  margin: 0 0.45rem;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 500;
}
.breadcrumbs-item a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumbs-item a:hover { color: var(--accent); }
.breadcrumbs-item [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(18rem, 70vw);
}

/* —— Sections —— */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 2.25rem 0 1rem;
}
.section-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}
.section-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stack { display: grid; gap: 0.85rem; }

/* —— Match rows (tipster list, not nested cards) —— */
.match-row {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.match-row:hover {
  border-color: rgba(74, 163, 123, 0.35);
  background: var(--panel-2);
}
@media (min-width: 720px) {
  .match-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.match-row .meta { color: var(--muted); font-size: 0.82rem; }
.match-row-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.match-row-crests {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.match-row-crests .team-crest:first-child { margin-right: -0.35rem; }
.match-row-crests .team-crest:last-child { position: relative; z-index: 1; }

.team-crest {
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  flex-shrink: 0;
}
.team-crest--sm { width: 34px; height: 34px; padding: 4px; }
.team-crest--md { width: 48px; height: 48px; padding: 6px; }
.team-crest--lg { width: 72px; height: 72px; padding: 8px; }
.team-crest--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.team-crest--sm.team-crest--fallback { font-size: 0.7rem; }
.team-crest--lg.team-crest--fallback { font-size: 1.15rem; }

.match-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.35rem;
}
.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  min-width: 0;
}
.match-team-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.match-vs {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.match-title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.match-title a { color: var(--text); }
.match-title a:hover { color: var(--accent); }
.match-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-start;
}
@media (min-width: 720px) {
  .match-side { justify-content: flex-end; }
}
.match-pick {
  margin-top: 0.35rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.match-pick strong { display: block; font-size: 0.9rem; }
@media (min-width: 720px) {
  .match-pick { grid-column: 1 / -1; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.badge-free {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(74, 163, 123, 0.25);
}
.badge-vip {
  color: var(--premium);
  background: var(--premium-soft);
  border-color: rgba(254, 211, 60, 0.28);
}
.badge-won { color: var(--accent); background: var(--accent-soft); }
.badge-lost { color: var(--danger); background: rgba(255, 69, 58, 0.12); }
.badge-lock { color: var(--muted); background: rgba(255,255,255,0.06); }

.meta { color: var(--muted); font-size: 0.88rem; }

/* —— Markets (match detail) —— */
.markets { display: grid; gap: 0.75rem; }
.market {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}
@media (min-width: 640px) {
  .market {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.market strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.market-pick {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.market-pick b { color: var(--text); font-weight: 700; }
.locked-note {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.market.is-locked {
  background:
    linear-gradient(135deg, rgba(254, 211, 60, 0.06), transparent 55%),
    var(--panel);
  border-color: rgba(254, 211, 60, 0.18);
}
.market.is-vip {
  background:
    linear-gradient(135deg, rgba(254, 211, 60, 0.08), transparent 50%),
    var(--panel);
  border-color: rgba(254, 211, 60, 0.35);
}
.market .vip-mark {
  color: var(--premium);
  margin-right: 0.25rem;
  font-size: 0.85em;
}
.market-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-start;
}
@media (min-width: 640px) {
  .market-badges { justify-content: flex-end; }
}

/* —— Tips filters (compact bar + sheet) —— */
.tips-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 1.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}
.tips-filter-bar-meta { min-width: 0; flex: 1 1 auto; }
.tips-filters-count { margin: 0; }
.tips-filter-active { margin: 0.2rem 0 0; color: var(--accent); font-size: 0.8rem; }
.tips-filter-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}
.tips-filter-open {
  gap: 0.45rem;
}
.tips-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
.tips-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}
.tips-filter-field {
  display: grid;
  gap: 0.3rem;
  min-width: 9rem;
  flex: 1 1 9rem;
}
.tips-filter-field span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tips-filter-field select {
  appearance: none;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font: inherit;
  width: 100%;
  color-scheme: dark;
}
.tips-markets {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}
.tips-markets legend {
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tips-market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.tips-chip {
  cursor: pointer;
  user-select: none;
}
.tips-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tips-chip span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.tips-chip input:checked + span {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.tips-chip:hover span {
  border-color: rgba(74, 163, 123, 0.45);
  color: var(--text);
}
.tips-markets-hint { margin: 0.55rem 0 0; font-size: 0.78rem; }

.tips-filter-sheet {
  position: fixed;
  inset: auto 0 0;
  top: auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  max-height: min(88vh, 640px);
}
.tips-filter-sheet:not([open]) {
  display: none;
}
.tips-filter-sheet::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.tips-filter-sheet-panel {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 640px);
  margin: 0 auto;
  width: min(100%, 40rem);
  border-radius: 1.15rem 1.15rem 0 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom: 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.tips-filter-sheet-grabber {
  width: 2.35rem;
  height: 0.28rem;
  margin: 0.55rem auto 0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.tips-filter-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.tips-filter-sheet-title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  font-weight: 700;
}
.tips-filter-sheet-body {
  padding: 1rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.tips-filter-sheet-foot {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}
.tips-filter-close-icon { display: none; }
html.tips-filter-open,
html.tips-filter-open body {
  overflow: hidden;
}

/* Desktop: centered dialog (not a bottom sheet) */
@media (min-width: 768px) {
  .tips-filter-sheet[open] {
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 1.5rem;
    background: transparent;
  }
  .tips-filter-sheet-panel {
    width: min(100%, 26.5rem);
    max-height: min(80vh, 560px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .tips-filter-sheet-grabber {
    display: none;
  }
  .tips-filter-sheet-head {
    padding: 1rem 1.15rem 0.9rem;
  }
  .tips-filter-sheet-title {
    font-size: 1.15rem;
  }
  .tips-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 999px;
    line-height: 0;
  }
  .tips-filter-close-text { display: none; }
  .tips-filter-close-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
  }
  .tips-filter-close-icon svg {
    display: block;
  }
  .tips-filter-sheet-body {
    padding: 1.05rem 1.15rem 1.15rem;
  }
  .tips-filter-sheet-foot {
    padding: 0.9rem 1.15rem 1.05rem;
    background: transparent;
  }
  .tips-filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .tips-filter-field {
    min-width: 0;
    flex: none;
  }
}

/* —— Date chooser (app-style day strip) —— */
.date-chooser {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding: 0.55rem 0.55rem 0.55rem 0.35rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.date-strip {
  display: flex;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.15rem 0.25rem;
  touch-action: pan-x;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-pill {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 3.1rem;
  max-width: 4.25rem;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.date-pill:hover {
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.date-pill.is-selected {
  background: var(--accent-soft);
  border-color: rgba(74, 163, 123, 0.55);
  color: var(--accent);
}
.date-pill-day {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  white-space: nowrap;
}
.date-pill-date {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.15;
}
.date-pill.is-selected .date-pill-date { color: var(--accent); }
.date-chooser-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding-right: 0.15rem;
}
.date-calendar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}
.date-calendar-btn:hover {
  color: var(--text);
  border-color: rgba(74, 163, 123, 0.45);
  background: var(--accent-soft);
}
.date-calendar-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  width: 100%;
  height: 100%;
}
.date-all-recent {
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Cards (blog / legal / empty only) —— */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }

.empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--muted);
}

/* —— Blog grid —— */
.blog-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* —— Legal —— */
.legal { padding-bottom: 2rem; }
.legal-body { margin-top: 1.25rem; line-height: 1.7; }
.legal-body h2 { margin: 1.75rem 0 0.65rem; font-size: 1.15rem; }
.legal-body h3 { margin: 1.1rem 0 0.4rem; font-size: 1rem; color: var(--text); }
.legal-body p,
.legal-body ul { color: var(--text-secondary); margin: 0 0 0.85rem; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li { margin: 0.25rem 0; }
.legal-body strong { color: var(--text); }

.country-directory {
  display: grid;
  gap: 1.35rem;
}
.country-directory--featured {
  gap: 1rem;
}
.country-block {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}
.country-block.is-featured {
  background:
    linear-gradient(135deg, rgba(254, 211, 60, 0.08), transparent 55%),
    var(--panel);
  border-color: rgba(254, 211, 60, 0.28);
}
.country-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.country-block-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.country-block-title a { color: var(--text); }
.country-block-title a:hover { color: var(--accent); }
.league-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.league-chip-list a {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
}
.league-chip-list a:hover,
.league-chip-list a.is-featured {
  color: var(--text);
  border-color: rgba(74, 163, 123, 0.4);
}
.league-chip-list a.is-featured {
  background: var(--accent-soft);
  color: var(--accent);
}
.league-chip-list--lg {
  margin-bottom: 0.5rem;
}
.league-chip-list--lg a {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

/* —— Footer —— */
.site-footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.footer-grid--rich {
  gap: 1.75rem 2rem;
}
@media (min-width: 720px) {
  .footer-grid--rich {
    grid-template-columns: 1.35fr 0.9fr 1.2fr 0.85fr;
    align-items: start;
  }
}
.footer-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.footer-list a { color: var(--text-secondary); }
.footer-list a:hover { color: var(--text); }
.footer-list--matches a {
  display: grid;
  gap: 0.1rem;
}
.footer-match-teams {
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
}
.footer-list--matches a:hover .footer-match-teams { color: var(--accent); }
.footer-match-meta {
  color: var(--muted);
  font-size: 0.75rem;
}
.footer-more {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.footer-more:hover { color: var(--text); }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-brand img { width: 22px; height: 22px; border-radius: 6px; }
.footer-copy { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.88rem; max-width: 36rem; }
.footer-store { margin-top: 0.85rem; }

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .match-row,
  .market,
  .card {
    animation: rise 0.55s var(--ease) both;
  }
  .stack > *:nth-child(1) { animation-delay: 0.02s; }
  .stack > *:nth-child(2) { animation-delay: 0.05s; }
  .stack > *:nth-child(3) { animation-delay: 0.08s; }
  .stack > *:nth-child(4) { animation-delay: 0.11s; }
  .stack > *:nth-child(5) { animation-delay: 0.14s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* —— Advertise / contact forms —— */
.advertise-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  margin: 1rem 0 0;
}
.advertise-stat {
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}
.advertise-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
}
.advertise-stat-label {
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.advertise-stat-detail { margin: 0.35rem 0 0; font-size: 0.78rem; }
.advertise-formats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 1rem;
}
.advertise-format {
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}
.advertise-format h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.advertise-format p { margin: 0.45rem 0 0; color: var(--text-secondary); font-size: 0.92rem; }
.advertise-form-wrap { margin-top: 2.75rem; padding-top: 0.5rem; }

.site-form {
  margin: 1.25rem 0 2rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}
.site-form-grid {
  display: grid;
  gap: 0.85rem 1rem;
  grid-template-columns: 1fr 1fr;
}
.site-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.site-field--full { grid-column: 1 / -1; }
.site-field span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-field span em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
}
.site-field input,
.site-field select,
.site-field textarea {
  appearance: none;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  font: inherit;
  color-scheme: dark;
}
.site-field textarea { resize: vertical; min-height: 7rem; }
.site-field input:focus,
.site-field select:focus,
.site-field textarea:focus {
  outline: none;
  border-color: rgba(74, 163, 123, 0.55);
}
.field-error { color: var(--danger); font-size: 0.78rem; }
.site-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin-top: 1.1rem;
}
.form-flash {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
.form-flash.is-success {
  background: var(--accent-soft);
  border-color: rgba(74, 163, 123, 0.4);
  color: var(--text);
}
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile-wrap {
  margin: 1rem 0 0.25rem;
  display: flex;
  justify-content: flex-start;
}
@media (max-width: 640px) {
  .site-form-grid { grid-template-columns: 1fr; }
}
