/* Baba Ijebu Live: public site styles. Plain, light results-site look. Hand-written, no build step. */
/* Source Sans 3 (Adobe, SIL Open Font License, see /fonts/OFL.txt), self-hosted; one variable file covers every weight. */
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-latin-wght.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
:root {
  --brand: #cf0a0a;
  --brand-700: #a30808;
  --brand-50: #fdeceb;
  --live: #cf0a0a;
  --ok: #1e7b4a;
  --ok-50: #e8f4ed;
  --warn: #9a5b00;
  --warn-50: #fdf3e2;
  --ink: #15191e;
  --text: #2b323a;
  --muted: #5d6670;
  --faint: #8a939d;
  --line: #e2e6ea;
  --line-2: #cfd5db;
  --bg: #ffffff;
  --bg-2: #f5f7f9;
  --radius: 6px;
  --font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg-2); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Live marker: a plain red dot, as broadcasters use */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 7px; flex: none; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { display: block; height: 42px; width: auto; }
.site-footer .brand-logo { height: 48px; }
@media (max-width: 420px) { .brand-logo { height: 36px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 60px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 15.5px; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a.active { color: var(--brand); background: var(--brand-50); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; background: #fff; border: 1px solid var(--line-2); color: var(--ink); width: 40px; height: 40px; border-radius: var(--radius); font-size: 22px; cursor: pointer; place-items: center; }
@media (max-width: 1000px) {
  .site-header .wrap { display: flex; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; height: auto; background: #fff; border-bottom: 1px solid var(--line); padding: 4px 0; display: none; max-height: calc(100vh - 60px); overflow: auto; }
  .nav.open { display: flex; }
  .nav { gap: 0; align-items: stretch; }
  .nav a { height: auto; padding: 14px 20px; border-radius: 0; border-left: 3px solid transparent; color: var(--text); }
  .nav a + a { border-top: 1px solid var(--line); }
  .nav a.active { border-left-color: var(--brand); background: var(--brand-50); }
}

/* ---------- Generic ---------- */
main { display: block; min-height: 60vh; }
.section { padding-top: 24px; padding-bottom: 24px; }
.section-lg { padding-top: 36px; padding-bottom: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.section-title { font-size: 20px; font-weight: 750; }
.section-sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.link { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 12px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 4px; border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-red { background: var(--brand); color: #fff; }
.btn-red:hover { background: var(--brand-700); }
.btn-green { background: var(--ok); color: #fff; }
.btn-light { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-light:hover { border-color: var(--muted); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.input, .select { height: 40px; width: 100%; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; font-size: 14px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235d6670' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50); }

/* ---------- Page header ---------- */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.hero p.lead { color: var(--muted); margin-top: 6px; max-width: 640px; font-size: 16.5px; }
.hero-home h1 { margin-top: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); align-items: center; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs .icon { font-size: 12px; }
.crumbs [aria-current] { color: var(--ink); }


/* ---------- Filter bar ---------- */
.filter-card { margin-top: 0; }
.filter-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.tab { height: 32px; padding: 0 14px; border: 0; border-right: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab:last-child { border-right: 0; }
.tab.active { background: var(--brand); color: #fff; }
.tool-links { display: flex; gap: 8px; }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.filter-grid .btn { min-width: 150px; }
.filter-grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.filter-grid-5 .btn { min-width: 0; }
@media (max-width: 900px) { .filter-grid, .filter-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filter-grid .btn { min-width: 0; } }
@media (max-width: 560px) { .filter-grid, .filter-grid-5 { grid-template-columns: 1fr; } }

/* ---------- Balls: flat; solid = winning, outlined = machine ---------- */
.balls { display: flex; gap: 6px; flex-wrap: wrap; }
.ball { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 16.5px; font-variant-numeric: tabular-nums; flex: none; }
.ball.win { background: var(--brand); color: #fff; }
.ball.mac { background: var(--bg-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px; }
.ball.pend { background: var(--bg-2); color: var(--faint); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; font-weight: 600; }
.balls.sm .ball { width: 30px; height: 30px; font-size: 12.5px; }
.balls.sm { gap: 4px; flex-wrap: nowrap; }
@media (max-width: 480px) { .ball { width: 36px; height: 36px; font-size: 14.5px; } .balls.sm .ball { width: 27px; height: 27px; font-size: 11.5px; } }

/* ---------- Results board: one row per draw ---------- */
.board { padding: 0; overflow: hidden; }
.board-head, .draw-row { display: grid; grid-template-columns: 92px minmax(150px, 1fr) 236px 196px 28px; align-items: center; column-gap: 20px; padding: 0 20px; }
.board-head { height: 40px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.draw-row { min-height: 76px; padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.draw-row:last-child { border-bottom: 0; }
.draw-row:not(.is-done) { background: #fcfcfd; }
.draw-row[hidden] { display: none; }
.dr-time time { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.dr-time strong { color: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: -.01em; }
.dr-state { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dr-state [data-countdown] { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }
.dot.live { background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } }
.dr-game { font-size: 17px; font-weight: 750; color: var(--ink); min-width: 0; }
.dr-game a:hover { color: var(--brand); }
.dr-jackpot { display: block; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.dr-label { display: none; }
.dr-note { font-size: 14px; color: var(--faint); }
.dr-note.live { color: var(--warn); font-weight: 600; }
.dr-win .balls { flex-wrap: nowrap; gap: 6px; }
.dr-win .ball { width: 40px; height: 40px; font-size: 16.5px; }
.chips { display: flex; gap: 5px; }
.chip { min-width: 34px; height: 30px; padding: 0 4px; border-radius: 6px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.dr-go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--faint); }
.dr-go:hover { color: var(--brand); background: var(--brand-50); }
@media (max-width: 960px) {
  .board-head { display: none; }
  .draw-row { grid-template-columns: 1fr 28px; grid-template-areas: "game go" "time time" "win win" "mac mac"; row-gap: 8px; column-gap: 12px; padding: 14px 16px; }
  .dr-time { grid-area: time; display: flex; align-items: center; gap: 10px; margin-top: -4px; }
  .dr-time time { display: inline; font-size: 13.5px; }
  .dr-time strong { font-size: 13.5px; font-weight: 600; color: var(--muted); }
  .dr-state { margin-top: 0; }
  .dr-state::before { content: "\00b7"; color: var(--faint); margin-right: 2px; }
  .dr-game { grid-area: game; font-size: 16.5px; }
  .dr-go { grid-area: go; }
  .dr-win { grid-area: win; }
  .dr-mac { grid-area: mac; display: flex; align-items: center; gap: 10px; }
  .dr-label { display: inline; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 58px; }
  .dr-win .dr-label { display: none; }
  .draw-row:not(.is-done) .dr-mac { display: none; }
}
@media (max-width: 400px) { .dr-win .ball { width: 36px; height: 36px; font-size: 15px; } .chip { min-width: 30px; height: 28px; font-size: 13px; } }

.dc-label { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; } /* game page: latest result */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .icon { font-size: 28px; margin: 0 auto 10px; color: var(--faint); }

/* ---------- Widgets ---------- */
.widget h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.widget h3 .icon { color: var(--brand); }
.widget .desc { font-size: 13px; color: var(--muted); margin-top: 6px; }
.widget .sub { font-size: 12px; font-weight: 700; color: var(--muted); margin: 16px 0 8px; }
.inline-form { display: flex; gap: 8px; margin-top: 14px; }
.inline-form .input { flex: 1; }

/* ---------- Tables ---------- */
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.results { width: 100%; border-collapse: collapse; min-width: 760px; }
.results th { text-align: left; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 11px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.results td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.results tbody tr:hover { background: #fafbfc; }
.results tbody tr:last-child td { border-bottom: 0; }
.results .date { font-weight: 600; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.results .date small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.results .game { color: var(--brand); font-weight: 650; white-space: nowrap; }
.results .game:hover { text-decoration: underline; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.search { position: relative; }
.search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 32px; height: 36px; min-width: 230px; }

.pager { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; font-size: 13px; font-weight: 600; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .disabled { color: var(--faint); background: var(--bg-2); }

/* ---------- Week / day groups ---------- */
.day-block + .day-block { margin-top: 24px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.day-head h2 { font-size: 17px; font-weight: 750; }
.day-head .count { font-size: 13px; color: var(--muted); }

/* ---------- Schedule ---------- */
.sched-day { padding: 0; overflow: hidden; }
.sched-day header { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sched-day header h2 { font-size: 16px; font-weight: 750; }
.sched-day header span { color: var(--muted); font-size: 13px; }
.sched-day.today { border-color: var(--brand); }
.sched-day.today header { background: var(--brand); }
.sched-day.today header h2, .sched-day.today header span { color: #fff; }
.sched-list { list-style: none; margin: 0; padding: 0; }
.sched-list li + li { border-top: 1px solid var(--line); }
.sched-list li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; font-size: 14px; }
.sched-list li a:hover { background: var(--bg-2); }
.sched-list .t { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 13.5px; }
.sched-list .n { color: var(--text); }

/* ---------- Page content ---------- */
.prose { max-width: 720px; font-size: 16.5px; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose h3 { font-size: 18px; margin-top: 1.4em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin-left: 0; padding: 2px 16px; border-left: 3px solid var(--line-2); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* ---------- Alerts ---------- */
.alert { padding: 11px 14px; border-radius: 4px; font-size: 14px; margin-bottom: 14px; border: 1px solid; }
.alert-ok { background: var(--ok-50); color: var(--ok); border-color: #c6e3d2; }
.alert-err { background: #fdecee; color: #a3182b; border-color: #f5c6cd; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); margin-top: 40px; font-size: 15px; }
.site-footer .wrap { padding-top: 36px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; }
.site-footer h2 { font-size: 14px; color: var(--ink); font-weight: 700; margin-bottom: 12px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a:hover { color: var(--brand); text-decoration: underline; }
.foot-links .icon { display: none; }
.foot-about { margin-top: 10px; max-width: 330px; }
.sub-box { margin-top: 18px; max-width: 380px; }
.sub-box strong { color: var(--ink); font-size: 14px; }
.sub-box p { font-size: 13px; margin-top: 2px; }
.sub-box form { display: flex; gap: 8px; margin-top: 10px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 34px; height: 34px; border-radius: 4px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 15px; color: var(--ink); }
.socials a:hover { border-color: var(--brand); color: var(--brand); }
.foot-legal { border-top: 1px solid var(--line); padding: 18px 0; display: flex; gap: 14px; align-items: center; font-size: 13px; }
.age { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.foot-bottom { border-top: 1px solid var(--line); padding: 16px 0 24px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .filter-card, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ---------- Browser alerts card (home) ---------- */
.alerts-card { display: flex; align-items: center; gap: 18px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.alerts-card[hidden], [data-alerts-band][hidden] { display: none; }
.alerts-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 21px; }
.alerts-copy { flex: 1; min-width: 0; }
.alerts-copy h2 { font-size: 18px; font-weight: 750; }
.alerts-copy p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.alerts-btn { flex: none; }
.alerts-btn.is-on { background: #fff; color: var(--ok); border-color: var(--ok); }
.alerts-btn[hidden] { display: none; }
@media (max-width: 760px) {
  .alerts-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .alerts-btn { width: 100%; }
}

/* ---------- Results list (rows) ---------- */
.rlist { list-style: none; margin: 0; padding: 0; display: grid; }
.rrow { display: grid; grid-template-columns: 56px minmax(170px, 1fr) auto auto; grid-template-areas: "date game win mac"; align-items: center; gap: 20px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.rrow:last-child { border-bottom: 0; }
.rrow:hover { background: #fafbfc; }
.rrow.is-unpub .rballs { opacity: .7; }
.rrow[hidden] { display: none; }
.rdate { grid-area: date; width: 56px; padding: 6px 0; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink); display: flex; flex-direction: column; align-items: center; line-height: 1; }
.rdate:hover { border-color: var(--brand); color: var(--brand); }
.rdate .d { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rdate .m { font-size: 10.5px; font-weight: 700; text-transform: uppercase; margin-top: 3px; color: var(--muted); }
.rdate .w { font-size: 10px; color: var(--faint); margin-top: 2px; }
.rgame { grid-area: game; min-width: 0; }
.rgame > a { font-weight: 700; font-size: 16.5px; color: var(--ink); }
.rgame > a:hover { color: var(--brand); text-decoration: underline; }
.rmeta { display: flex; align-items: center; gap: 10px; margin-top: 3px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.chip .icon { font-size: 12px; }
.rno { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--faint); }
.rballs .rl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.rwin { grid-area: win; }
.rmac { grid-area: mac; padding-left: 20px; border-left: 1px solid var(--line); }
@media (max-width: 1100px) {
  .rrow { grid-template-columns: 56px 1fr auto; grid-template-areas: "date game game" "date win mac"; row-gap: 10px; }
  .rmac { padding-left: 14px; }
}
@media (max-width: 680px) {
  .rrow { grid-template-columns: 50px 1fr; grid-template-areas: "date game" "win win" "mac mac"; gap: 10px 12px; padding: 12px; }
  .rdate { width: 50px; }
  .rdate .w { display: none; }
  .rmac { padding-left: 0; border-left: 0; }
}

/* ---------- Homepage "Past Results" filter ---------- */
.past-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.past-filter-actions { display: flex; gap: 8px; }
@media (max-width: 900px) { .past-filter { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .past-filter { grid-template-columns: 1fr; } .past-filter-actions .btn { flex: 1; } }

/* ---------- Past Results export bar ---------- */
.export-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.export-actions { display: flex; gap: 8px; }
@media (max-width: 560px) { .export-actions { width: 100%; } .export-actions .btn { flex: 1; } }

/* ---------- Contact email ---------- */
.protected-email { display: inline-flex; align-items: center; gap: 6px; }
.contact-email { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px 18px; max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-email-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 20px; }
.contact-email-label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.contact-email .protected-email { font-size: 17px; font-weight: 700; color: var(--brand); word-break: break-all; }

/* ---------- Install app + alerts buttons (header) ---------- */
.install-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.install-btn:hover { border-color: var(--brand); color: var(--brand); }
.install-btn[hidden], .foot-install[hidden] { display: none; }
.foot-install { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.foot-install:hover { color: var(--brand); text-decoration: underline; }
.foot-install .icon { display: none; }
@media (max-width: 560px) { .install-btn { width: 36px; padding: 0; justify-content: center; } .install-btn span { display: none; } }
.ios-install { border: 1px solid var(--line); border-radius: 8px; padding: 24px 22px 20px; max-width: 360px; width: calc(100% - 32px); color: var(--text); }
.ios-install::backdrop { background: rgba(21, 25, 30, .5); }
.ios-install img { margin: 0 auto 12px; border-radius: 12px; }
.ios-install h2 { font-size: 18px; margin-bottom: 12px; text-align: center; }
.ios-install ol { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }
.ios-install ol .icon { font-size: 16px; vertical-align: -3px; color: #0a84ff; }
.ios-install .btn { width: 100%; }

.push-btn.is-on { border-color: var(--ok); color: var(--ok); }
.push-btn[hidden] { display: none; }
[data-push]:disabled { opacity: .7; cursor: default; }
.ios-note { font-size: 13px; color: var(--muted); background: var(--bg-2); border-radius: 4px; padding: 10px 12px; margin: -4px 0 14px; }

/* ---------- Ad slots ---------- */
.ad-wrap { padding-top: 16px; padding-bottom: 4px; }
.ad-slot { margin: 20px 0; text-align: center; }
.ad-wrap .ad-slot { margin: 0; }
.ad-label { display: block; font-size: 10.5px; color: var(--faint); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.ad-body { min-height: 90px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.ad-body > * { max-width: 100%; }
.ad-below-content { margin-bottom: 0; }
@media print { .ad-slot, .ad-wrap { display: none !important; } }

/* Contact Us form */
.contact-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-form h2 { font-size: 20px; font-weight: 750; color: var(--ink); margin-bottom: 14px; }
.contact-form form { display: grid; gap: 14px; max-width: 640px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .textarea { height: auto; min-height: 140px; padding: 9px 10px; line-height: 1.5; resize: vertical; }
.contact-form [aria-invalid="true"] { border-color: #c2283b; }
.contact-form .btn { justify-self: start; }
.field-err { color: #a3182b; font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } .contact-form .btn { justify-self: stretch; } }
