/* Shared visual system for the Footy Daily editorial redesign. */
:root {
  color-scheme: dark;
  --bg: #080c0a;
  --panel: #111814;
  --panel-raised: #17211a;
  --line: #2c3930;
  --text: #f4f1e8;
  --muted: #a1aca3;
  --green: #c5f36b;
  --green-ink: #14200b;
  --radius: 14px;
}

html { background: var(--bg) !important; }
body {
  color: var(--text) !important;
  background:
    radial-gradient(ellipse 62% 34% at 50% -6%, rgb(197 243 107 / 11%), transparent 72%),
    radial-gradient(ellipse 48% 44% at 100% 48%, rgb(43 82 54 / 11%), transparent 74%),
    linear-gradient(180deg, #0d1410 0%, var(--bg) 58%, #070a08 100%) !important;
  background-attachment: fixed !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .15;
  background-image: linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.wrap { position: relative; z-index: 1; width: min(100% - 48px, 1000px) !important; max-width: 1000px !important; padding-top: 22px !important; }
.wrap:has(.home-stage), .wrap:has(.list), .wrap:has(.matches) { width: min(100% - 48px, 1180px) !important; max-width: 1180px !important; }
.wrap:has(.field) { width: min(100% - 48px, 760px) !important; max-width: 760px !important; }
.top {
  position: relative;
  z-index: 2;
  min-height: 78px;
  margin-bottom: 52px !important;
  padding: 8px 0 18px;
  border-bottom: 1px solid rgb(197 243 107 / 18%);
}
.brand-logo { width: 280px !important; height: 72px !important; }
.menu-toggle { border-color: var(--line) !important; border-radius: 50% !important; background: var(--panel) !important; }
.top .nav a, .top .nav-news, .top .page-signout, .top .authrow button {
  min-height: 42px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: rgb(17 24 20 / 80%) !important;
  color: var(--text) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: .01em;
}
.top .nav a:hover, .top .nav-news:hover, .top .page-signout:hover, .top .authrow button:hover {
  border-color: var(--green) !important;
  background: rgb(197 243 107 / 9%) !important;
  color: var(--green) !important;
}
.top .authrow #login { border-color: var(--green) !important; background: var(--green) !important; color: var(--green-ink) !important; }
.top .authrow #login:hover { background: #d6ff8e !important; color: var(--green-ink) !important; }

.eyebrow { color: var(--green) !important; font-size: 10px !important; letter-spacing: .19em !important; }
.hero h1, h1 { color: var(--text); font-weight: 850 !important; letter-spacing: -.055em !important; text-wrap: balance; }
.hero p { color: var(--muted) !important; }
.card, .panel, .stat, .news-tile, .story, .competition {
  border-color: rgb(161 181 160 / 18%) !important;
  border-radius: var(--radius) !important;
  background: linear-gradient(145deg, rgb(20 29 23 / 96%), rgb(13 19 15 / 98%)) !important;
  box-shadow: 0 20px 60px rgb(0 0 0 / 18%), inset 0 1px rgb(255 255 255 / 3%) !important;
}
.card { --radius: 18px; }
.primary, .button:not(.tab), .signin { border-radius: 999px !important; }
.primary, .signin { background: var(--green) !important; color: var(--green-ink) !important; }
.primary:not(:disabled):hover, .signin:hover { background: #d6ff8e !important; }
.secondary, .button, .tab, .select, .refresh, .field, input {
  border-color: var(--line) !important;
  background-color: #0b110d !important;
  color: var(--text) !important;
}
.tag, .tab.active, .button.active { border-color: rgb(197 243 107 / 38%) !important; background: rgb(197 243 107 / 10%) !important; color: var(--green) !important; }
.side-menu { background: #0e1510 !important; border-color: var(--line) !important; }
.menu-links a:hover { background: var(--panel-raised) !important; }
.feedback, .breakrow, .entry, .table-wrap { border-color: var(--line) !important; background: #0b110d !important; }
.news-tile h3 a, .story h2 a { color: var(--text) !important; }
.news-tile h3 a:hover, .story h2 a:hover, .news-tile-actions a, .read, .news-more { color: var(--green) !important; }
.footer, footer.footer, main.wrap > footer:not(.footer) { border-color: rgb(197 243 107 / 16%) !important; color: var(--muted) !important; }
.footer a, footer.footer a, main.wrap > footer:not(.footer) a { color: var(--muted) !important; }
.footer a:hover, footer.footer a:hover, main.wrap > footer:not(.footer) a:hover { color: var(--green) !important; }

/* The home page reads like a magazine cover with the daily game as its lead feature. */
.home-stage {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  grid-template-areas: "intro game" "stats game";
  align-items: stretch;
  gap: 18px 42px;
  margin: 0 auto;
}
.home-stage > .hero { grid-area: intro; align-self: end; width: 100%; max-width: 100% !important; margin: 0 !important; padding: 14px 0 0; }
.home-stage > .hero h1 { max-width: 560px; margin: 14px 0 18px; font-size: clamp(52px, 7.2vw, 88px) !important; line-height: .96 !important; }
.home-stage > .hero p { max-width: 430px; font-size: 15px; }
.home-stage > .stats { grid-area: stats; align-self: start; width: 100%; max-width: 100% !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 8px 0 0 !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-stage .stat { padding: 15px 10px 16px; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.home-stage .stat + .stat { border-left: 1px solid var(--line) !important; }
.home-stage .stat b { color: var(--green); font-size: 23px; }
.home-stage .stat span { color: var(--muted); font-size: 9px; letter-spacing: .11em; }
.home-stage > #game-card, .home-stage > #result-card { grid-area: game; width: 100%; max-width: none !important; margin: 0 !important; align-self: stretch; }
.home-stage #game-card { padding: clamp(22px, 4vw, 38px) !important; }
.home-stage .cardhead { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.home-stage .progress { gap: 7px; }
.home-stage .progress > * { border-radius: 999px; }
.home-stage .question { margin-top: 26px; font-size: clamp(25px, 3vw, 35px); }
.home-stage .answerrow input { min-height: 54px; border-radius: 10px; }
.home-stage .answerrow button { min-width: 142px; }
.home-stage .news-preview { grid-area: news; }
.news-preview { margin-top: 64px !important; }
.news-preview-head { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.news-preview-head h2 { font-size: clamp(26px, 4vw, 36px) !important; letter-spacing: -.05em !important; }
.news-grid { gap: 16px !important; }
.news-tile { min-height: 210px !important; padding: 22px !important; }
.news-tile-source, .source { color: var(--green) !important; }

.hero:not(.home-stage .hero) { margin-bottom: 34px !important; }
.hero:not(.home-stage .hero) h1 { font-size: clamp(42px, 7vw, 66px) !important; line-height: .98 !important; }
.list { gap: 16px !important; }
.story { padding: 23px !important; }
.story h2 { font-size: clamp(20px, 3vw, 26px) !important; letter-spacing: -.04em !important; }
.toolbar { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.matches { gap: 16px !important; }
.match { padding: 16px 18px !important; }
.comp-head { background: rgb(197 243 107 / 5%) !important; }
.entry { border-radius: 10px !important; }
.rank, .points { font-variant-numeric: tabular-nums; }
.panel { padding: clamp(22px, 4vw, 34px) !important; }
.cookie-consent-dialog { border-color: var(--line) !important; border-radius: 18px !important; background: #111814 !important; color: var(--text) !important; box-shadow: 0 24px 90px rgb(0 0 0 / 55%) !important; }
.cookie-consent-dialog p, .cookie-consent-copy { color: var(--muted) !important; }
.cookie-consent-dialog a { color: var(--green) !important; }
.cookie-consent-button, .cookie-settings-link { border-color: var(--line) !important; border-radius: 999px !important; background: var(--panel-raised) !important; color: var(--text) !important; }
.cookie-consent-button.primary { border-color: var(--green) !important; background: var(--green) !important; color: var(--green-ink) !important; }
.cookie-consent-option { border-color: var(--line) !important; border-radius: 12px !important; background: #0b110d !important; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 1180px) !important; padding-top: 14px !important; }
  .top { margin-bottom: 36px !important; padding-bottom: 14px; }
  .brand-logo { width: min(220px, calc(100vw - 80px)) !important; height: auto !important; aspect-ratio: 260 / 67; }
  .home-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "stats" "game"; gap: 18px; }
  .home-stage > .hero { padding-top: 4px; }
  .home-stage > .hero h1 { max-width: 620px; font-size: clamp(48px, 13vw, 72px) !important; }
  .home-stage > .stats { margin-top: 0 !important; }
  .home-stage > #game-card, .home-stage > #result-card { grid-area: game; }
  .news-preview { margin-top: 48px !important; }
}
@media (max-width: 560px) {
  .top .nav, .top .authrow { justify-content: flex-start !important; }
  .top .authrow { flex-wrap: wrap !important; }
  .top .nav a, .top .authrow button, .top .nav-news { min-height: 40px !important; }
  .hero:not(.home-stage .hero) h1 { font-size: clamp(39px, 12vw, 54px) !important; }
  .home-stage .answerrow { flex-direction: column; }
  .home-stage .answerrow button { width: 100%; min-height: 50px; }
  .news-preview-head { align-items: flex-start; }
  .story { padding: 18px !important; }
}
@media (prefers-reduced-motion: reduce) { body::before { display: none; } }
