:root {
  color-scheme: dark;
  --background: #101510;
  --surface: #181f18;
  --surface-raised: #202820;
  --line: #333e32;
  --text: #f1f3eb;
  --muted: #aab4a5;
  --accent: #d3fb56;
  --accent-hover: #e1ff80;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--background); color: var(--text); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 3; left: 12px; top: -60px; padding: 10px 14px; background: var(--accent); color: #141810; }
.skip-link:focus { top: 8px; }
.wrap { width: min(1296px, calc(100% - 88px)); margin-inline: auto; }

.utility { background: #0c110c; border-bottom: 1px solid #252e24; }
.utility-inner, .utility a, .region { display: flex; align-items: center; gap: 9px; }
.utility-inner { min-height: 36px; justify-content: space-between; font-size: .81rem; color: var(--muted); }
.utility a:hover { color: var(--text); }
.flag { width: 16px; height: 11px; border-radius: 2px; background: linear-gradient(90deg, #1a9063 33.3%, #fff 33.3% 66.6%, #f89c43 66.6%); }
.age { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid #6c7768; border-radius: 50%; font-size: .66rem; font-weight: 800; }

.header { position: sticky; z-index: 2; top: 0; background: var(--background); border-bottom: 1px solid #273126; }
.header-inner { display: flex; align-items: center; min-height: 75px; gap: clamp(16px, 3.2vw, 46px); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--text); font-size: 1.77rem; font-weight: 850; font-style: italic; line-height: 1; letter-spacing: -.085em; white-space: nowrap; }
.brand-dot { color: var(--accent); }
.brand-mark { display: inline-flex; align-items: end; gap: 3px; margin-right: 3px; transform: skewX(-20deg); }
.brand-mark i { width: 4px; height: 10px; background: var(--accent); border-radius: 1px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 22px; }
.header-nav { display: flex; align-items: center; gap: 7px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 7px; color: var(--text); background: transparent; font-size: .92rem; font-weight: 750; line-height: 1.2; text-align: center; transition: background .16s, color .16s, border-color .16s; }
.button-primary { background: var(--accent); border-color: var(--accent); color: #18200d; }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-outline, .button-quiet { border-color: var(--line); }
.button-outline:hover, .button-quiet:hover { background: var(--surface-raised); border-color: #687963; }

.hero { position: relative; display: grid; align-items: center; min-height: clamp(390px, 42vw, 520px); margin-top: 24px; padding: clamp(32px, 5.3vw, 84px); border: 1px solid #374d36; border-radius: 14px; overflow: hidden; isolation: isolate; background: #1b2b1c; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url('./assets/hero.webp') 66% 52% / cover no-repeat; }
.hero::after { background: linear-gradient(92deg, rgb(9 17 10 / .98) 0%, rgb(10 19 11 / .84) 29%, rgb(12 21 13 / .33) 55%, transparent 77%), linear-gradient(0deg, rgb(12 21 13 / .53), transparent 28%); }
.hero-content { max-width: 680px; }
.eyebrow { font-size: .79rem; letter-spacing: .15em; font-weight: 800; }
.hero-label { color: var(--accent); display: flex; gap: 10px; align-items: center; }
.hero-stripe { width: 17px; height: 5px; background: var(--accent); transform: skewX(-30deg); border-radius: 1px; }
.hero h1 { margin: 16px 0 15px; font-size: clamp(3.55rem, 7vw, 7rem); font-weight: 850; line-height: .89; letter-spacing: -.081em; }
.hero h1 em { font-weight: 800; color: var(--accent); }
.hero-copy { max-width: 332px; line-height: 1.48; font-size: 1.08rem; color: #d3dccd; }
.hero-button { min-height: 51px; padding-inline: 21px; margin-top: 24px; }
.hero-caption { position: absolute; right: 25px; bottom: 23px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #ffffff44; border-radius: 4px; background: #111911b8; color: #eff5e9; font-size: .68rem; font-weight: 750; letter-spacing: .12em; }
.hero-caption span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-caption b { color: #a4af9d; }

.market-section, .sports-section { padding-top: 44px; }
main, .market-section, .sports-section, .safer, .footer { scroll-margin-top: 83px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; }
.section-heading h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); letter-spacing: -.049em; line-height: 1.12; }
.section-heading p { color: var(--muted); margin-top: 5px; line-height: 1.45; }
.filters button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #1a221a; font-size: .88rem; font-weight: 700; color: #d5ded1; white-space: nowrap; }
.filters button span { font-size: 1.05rem; line-height: 1; }
.filters button:hover { border-color: #6f8268; background: #283426; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #202613; }
.fixture-updated { font-size: .86rem; text-align: right; }
.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.event { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 18px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.event-meta, .event-venue { color: var(--muted); font-size: .81rem; line-height: 1.35; }
.event h3 { margin-top: 5px; font-size: 1.05rem; line-height: 1.35; font-weight: 750; }
.event-venue { margin-top: 4px; }
.event-start { display: grid; gap: 5px; min-width: 9.3rem; padding-left: 14px; border-left: 1px solid var(--line); }
.event-start time { font-size: .82rem; font-weight: 650; color: #e0e9dc; }
.event-start span { font-size: .87rem; font-weight: 740; color: var(--accent); font-variant-numeric: tabular-nums; }
.event-source { width: fit-content; color: #cbd9c6; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.event-source:hover { color: var(--accent); }
.events-empty { grid-column: 1 / -1; padding: 18px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 9px; }
.more-markets { min-height: 39px; margin-top: 13px; }
.icon-button { min-width: 35px; min-height: 35px; display: inline-grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.icon-button:hover { border-color: var(--line); color: var(--text); }

.sport-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sport-card { position: relative; display: grid; align-items: end; isolation: isolate; min-height: 175px; aspect-ratio: 1.44; overflow: hidden; background: #253523; border: 1px solid var(--line); border-radius: 10px; }
.sport-card::after, .sport-card img { position: absolute; inset: 0; height: 100%; z-index: -1; }
.sport-card img { object-fit: cover; transition: transform .24s; }
.sport-card::after { content: ""; background: linear-gradient(0deg, #090e0cf5, #10181011 75%); }
.sport-card div { padding: 15px; }
.sport-card h3 { font-size: clamp(1.15rem, 2.2vw, 1.75rem); line-height: 1.08; letter-spacing: -.036em; }
.sport-card span { display: block; font-size: .86rem; color: #ecf1e7; margin-top: 4px; }
.sport-card:hover { border-color: var(--accent); }
.sport-card:hover img { transform: scale(1.045); }
.safer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 22px; margin: 46px 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.safer-symbol { border: 1px solid #657661; border-radius: 50%; width: 53px; height: 53px; display: grid; place-items: center; font-size: 1.25rem; font-weight: 850; color: var(--accent); }
.safer h2 { font-size: 1.2rem; }
.safer p { margin-top: 4px; color: #c4cfc0; font-size: .95rem; line-height: 1.45; }

.footer { background: #0c110d; border-top: 1px solid var(--line); padding-top: 35px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1.25fr .75fr; gap: 32px; }
.footer h2 { font-size: 1rem; margin-bottom: 10px; }
.footer p, .footer address { color: var(--muted); font-size: .9rem; line-height: 1.58; }
.footer address { font-style: normal; }
.footer p { margin-bottom: 7px; }
.footer strong { color: var(--text); }
.operator .wordmark { margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.footer-links h2 { margin-bottom: 2px; }
.footer-links a, .footer-links button, .footer-detail { font-size: .9rem; color: #cad7c6; }
.footer-detail { display: inline-block; margin-top: 8px; }
.footer-links a:hover, .footer-detail:hover, .text-button:hover { color: var(--accent); text-decoration: underline; }
.footer-end { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0 20px; margin-top: 27px; border-top: 1px solid #2c382b; color: var(--muted); font-size: .8rem; }
.text-button { color: var(--accent); text-align: left; background: none; border: 0; padding: 0; }

dialog { padding: 0; width: min(470px, calc(100% - 26px)); max-height: calc(100% - 26px); background: var(--surface); color: var(--text); border: 1px solid #52634e; border-radius: 12px; }
dialog::backdrop { background: #070b08cc; }
.modal-frame { position: relative; padding: 28px 25px; }
.modal-close { position: absolute; top: 8px; right: 8px; }
.modal-frame h2 { font-size: 1.65rem; letter-spacing: -.04em; max-width: 90%; }
.modal-frame p { color: var(--muted); margin: 10px 0; line-height: 1.5; }
.modal-frame dl { font-size: .9rem; line-height: 1.42; }
.modal-frame dt { color: var(--muted); margin-top: 9px; }
.modal-frame dd { margin: 2px 0; }
.modal-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 52px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-top: 10px; }
  .header-actions { grid-row: 1; grid-column: 2; }
  .header-nav { grid-column: 1 / -1; overflow-x: auto; padding: 3px 4px 8px; margin-inline: -4px; }
  .header-nav button { flex: 0 0 auto; }
  main, .market-section, .sports-section, .safer, .footer { scroll-margin-top: 119px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { gap: 7px; }
  .hero { min-height: 385px; margin-top: 15px; padding: 27px; }
  .hero::before { background-position: 63% 55%; }
  .hero::after { background: linear-gradient(91deg, #0a120bf5 1%, #0c170cc4 24%, #0b130d50 69%, #10161022), linear-gradient(0deg, #0b140cb0, transparent 34%); }
  .hero-caption { display: none; }
  .market-section, .sports-section { padding-top: 34px; }
  .event-list { grid-template-columns: minmax(0, 1fr); }
  .sport-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sport-card { min-height: 140px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 460px) {
  .wrap { width: calc(100% - 26px); }
  .wordmark { font-size: 1.5rem; gap: 6px; }
  .brand-mark { gap: 2px; }
  .brand-mark i { width: 3px; }
  .header-actions { gap: 6px; }
  .header-actions .button { min-height: 39px; padding-inline: 10px; font-size: .84rem; }
  .hero { min-height: 340px; padding: 21px; }
  .hero::before { background-position: 60% center; }
  .hero h1 { font-size: clamp(2.94rem, 12vw, 4.2rem); }
  .hero-copy { max-width: 250px; font-size: .97rem; }
  .hero-button { margin-top: 17px; min-height: 44px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 1.65rem; }
  .section-heading p { font-size: .91rem; }
  .fixture-heading { flex-direction: column; gap: 5px; }
  .fixture-updated { text-align: left; }
  .event { padding-inline: 13px; gap: 9px; }
  .event-start { min-width: 0; padding-left: 9px; }
  .header-nav { gap: 4px; }
  .filters button { min-height: 38px; padding-inline: 6px; font-size: .82rem; }
  .filters button span { display: none; }
  .sport-card { min-height: 116px; }
  .sport-card div { padding: 10px; }
  .safer { grid-template-columns: auto 1fr; gap: 11px; padding: 15px; margin: 32px 0; }
  .safer-symbol { width: 43px; height: 43px; font-size: 1rem; }
  .safer .button { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-end { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
