/* Baba Ijebu Results — public site styles. Hand-written, no build step. */
:root {
  --red: #e41827;
  --red-600: #c8141f;
  --red-700: #a80f19;
  --red-50: #fdecee;
  --green: #0d9737;
  --green-700: #0a7a2c;
  --green-50: #e7f6ec;
  --ink: #1b1e25;
  --ink-2: #2a2e37;
  --text: #1e293b;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e5e9f0;
  --bg: #f3f5f8;
  --card: #fff;
  --blue-50: #e8f0fe;
  --blue: #2563eb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px -4px rgba(15, 23, 42, .07);
  --shadow-lg: 0 12px 24px -6px rgba(15, 23, 42, .12), 0 4px 8px -4px rgba(15, 23, 42, .05);
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
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); letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.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: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(228, 24, 39, .35); outline-offset: 2px; }

/* ---------- Ticker ---------- */
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34d058; margin-right: 8px; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #34d058; animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(168, 15, 25, .25); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { display: block; height: 40px; width: auto; }
.site-footer .brand-logo { height: 46px; }
@media (max-width: 560px) { .brand-logo { height: 32px; } }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--red); display: grid; place-items: center; font-weight: 800; font-size: 20px; letter-spacing: -.04em; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.nav { display: flex; align-items: stretch; height: 100%; margin-left: 8px; }
.nav a { display: flex; align-items: center; padding: 0 12px; font-weight: 600; font-size: 14.5px; white-space: nowrap; position: relative; transition: background .15s; }
.nav a:hover { background: rgba(255, 255, 255, .12); }
.nav a.active { background: #fff; color: var(--red); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 40px; height: 40px; border-radius: 8px; font-size: 24px; cursor: pointer; place-items: center; }
.menu-btn:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 1000px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; height: auto; margin: 0; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); padding: 8px 0; display: none; max-height: calc(100vh - 66px); overflow: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: var(--bg); }
  .nav a.active { background: var(--red-50); }
  .nav a.active::after { top: 0; bottom: 0; right: auto; width: 3px; height: auto; background: var(--red); }
}
@media (max-width: 560px) {
}

/* ---------- Generic ---------- */
main { display: block; min-height: 60vh; }
.section { padding-top: 28px; padding-bottom: 28px; }
.section-lg { padding-top: 40px; padding-bottom: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-title { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 5px; height: 24px; border-radius: 3px; background: var(--red); }
.section-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--green-700); background: var(--green-50); padding: 5px 10px; border-radius: 999px; }
.link { color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { color: var(--red-700); text-decoration: underline; text-underline-offset: 3px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@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; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-600); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-700); }
.btn-light { background: #fff; border-color: var(--line); color: var(--text); }
.btn-light:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.input, .select { height: 42px; width: 100%; padding: 0 12px; border: 1px solid #d5dbe4; border-radius: var(--radius-sm); background: #fff; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.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='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input:focus, .select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(228, 24, 39, .14); }

/* ---------- Page hero ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, #fff 70%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 30px; padding-bottom: 30px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-top: 12px; letter-spacing: -.03em; }
.hero p.lead { color: var(--muted); margin-top: 8px; max-width: 640px; font-size: 15px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); align-items: center; }
.crumbs a:hover { color: var(--red); }
.crumbs .icon { font-size: 12px; }

.stat-box { display: flex; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.stat-box > div { padding: 12px 22px; text-align: center; }
.stat-box > div + div { border-left: 1px solid var(--line); }
.stat-box .k { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-box .v { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat-box .v.red { color: var(--red); }
.stat-box .v.green { color: var(--green); }

/* ---------- Filter bar ---------- */
.filter-card { margin-top: -6px; }
.filter-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #f8fafc; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; }
.tab:hover { color: var(--text); border-color: #cbd5e1; }
.tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.tool-links { display: flex; gap: 8px; }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.filter-grid .btn { min-width: 170px; }
.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 ---------- */
.balls { display: flex; gap: 7px; flex-wrap: wrap; }
.ball { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .35), inset 0 -3px 5px rgba(0, 0, 0, .15), 0 2px 4px rgba(0, 0, 0, .12); flex: none; }
.ball.win { background: radial-gradient(circle at 32% 28%, #22b14c, var(--green) 55%, var(--green-700)); }
.ball.mac { background: radial-gradient(circle at 32% 28%, #3b414d, var(--ink-2) 55%, #14171c); }
/* Per-number colours (set by the balls component); all dark enough for white text. */
.ball.c0 { background: radial-gradient(circle at 32% 28%, #f87171, #dc2626 55%, #991b1b); }
.ball.c1 { background: radial-gradient(circle at 32% 28%, #fb923c, #c2410c 55%, #7c2d12); }
.ball.c2 { background: radial-gradient(circle at 32% 28%, #facc15, #a16207 55%, #713f12); }
.ball.c3 { background: radial-gradient(circle at 32% 28%, #4ade80, #15803d 55%, #14532d); }
.ball.c4 { background: radial-gradient(circle at 32% 28%, #2dd4bf, #0f766e 55%, #134e4a); }
.ball.c5 { background: radial-gradient(circle at 32% 28%, #38bdf8, #0369a1 55%, #0c4a6e); }
.ball.c6 { background: radial-gradient(circle at 32% 28%, #60a5fa, #1d4ed8 55%, #1e3a8a); }
.ball.c7 { background: radial-gradient(circle at 32% 28%, #a78bfa, #6d28d9 55%, #4c1d95); }
.ball.c8 { background: radial-gradient(circle at 32% 28%, #e879f9, #a21caf 55%, #701a75); }
.ball.c9 { background: radial-gradient(circle at 32% 28%, #f472b6, #be185d 55%, #831843); }
.ball.pend { background: #eef2f6; color: var(--faint); box-shadow: inset 0 0 0 1.5px #dfe5ec; font-size: 12px; }
.ball.pend.mac { background: #f4f6f8; }
.balls.sm .ball { width: 32px; height: 32px; font-size: 12.5px; }
.balls.sm { gap: 5px; flex-wrap: nowrap; }
@media (max-width: 480px) { .ball { width: 36px; height: 36px; font-size: 14px; } .balls.sm .ball { width: 28px; height: 28px; font-size: 11.5px; } }

/* ---------- Draw card ---------- */
.draw-card { position: relative; display: flex; flex-direction: column; padding: 20px; transition: transform .18s, box-shadow .18s; }
.draw-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.draw-card.featured { border: 1.5px solid #f3a3a9; box-shadow: 0 0 0 4px var(--red-50), var(--shadow); }
.draw-card.dim .ball.pend { opacity: .8; }
.dc-head { display: flex; justify-content: space-between; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 4px; }
.badge-green { background: var(--green-50); color: var(--green-700); }
.badge-done { background: var(--green); color: #fff; letter-spacing: 0; padding: 3px 7px; }
.badge-blue { background: var(--blue-50); color: var(--blue); }
.badge-upcoming { background: var(--blue); color: #fff; letter-spacing: 0; padding: 3px 7px; }
.badge-red { background: var(--red); color: #fff; }
.badge-gray { background: #eef1f5; color: #475569; }
.badge-night { background: #475569; color: #fff; letter-spacing: 0; padding: 3px 7px; }
.badge-amber { background: #fff4e0; color: #b45309; }
.dc-name { font-size: 18px; font-weight: 800; color: var(--red); margin-top: 8px; letter-spacing: -.02em; }
.dc-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dc-time { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dc-jackpot { font-size: 12px; font-weight: 700; color: var(--green-700); margin-left: 6px; }
.dc-row { margin-top: 16px; }
.dc-label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.dc-label span + span { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 11.5px; }
.dc-label .accent { color: var(--green-700) !important; }
.dc-foot { margin-top: auto; padding-top: 16px; }
.dc-foot-inner { border-top: 1px dashed var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
.draw-card[hidden] { display: none; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { font-size: 32px; 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(--red); font-size: 18px; }
.widget .desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.widget .sub { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin: 16px 0 8px; }
.inline-form { display: flex; gap: 8px; margin-top: 16px; }
.inline-form .input { flex: 1; }
.btn-telegram { background: #e8f3fc; color: #1d7fc4; }
.btn-telegram:hover { background: #d4e9f9; }

/* ---------- 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: 11px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .06em; padding: 14px 18px; background: #f8fafc; border-bottom: 2px solid var(--line); white-space: nowrap; }
.results td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.results tbody tr { transition: background .12s; }
.results tbody tr:hover { background: #f8fafc; }
.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: 500; color: var(--muted); font-size: 12px; }
.results .game { color: var(--red); font-weight: 700; white-space: nowrap; }
.results .game:hover { text-decoration: underline; text-underline-offset: 3px; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fbfcfd; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.search { position: relative; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 36px; height: 38px; min-width: 240px; }

/* Pagination (Laravel simple-tailwind-free markup) */
.pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; }
.pager a:hover { border-color: #cbd5e1; background: #f8fafc; }
.pager .current { background: var(--red); border-color: var(--red); color: #fff; }
.pager .disabled { color: var(--faint); background: #f8fafc; }

/* ---------- Week / day groups ---------- */
.day-block + .day-block { margin-top: 26px; }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.day-head h2 { font-size: 18px; font-weight: 700; }
.day-head .count { font-size: 12px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* ---------- Schedule ---------- */
.sched-day { padding: 0; overflow: hidden; }
.sched-day header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.sched-day header h2 { font-size: 16px; font-weight: 700; }
.sched-day.today { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-50), var(--shadow); }
.sched-day.today header { background: var(--red); }
.sched-day.today header h2, .sched-day.today header span { color: #fff; }
.sched-list { list-style: none; margin: 0; padding: 6px 0; }
.sched-list li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; font-size: 14px; }
.sched-list li a:hover { background: #f8fafc; }
.sched-list .t { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 13px; background: #f1f5f9; padding: 3px 8px; border-radius: 6px; }
.sched-list .n { font-weight: 600; color: var(--red); }

/* ---------- Page content ---------- */

.prose { max-width: 760px; font-size: 16.5px; line-height: 1.75; color: #273244; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: 12px; }
.prose blockquote { margin-left: 0; padding: 4px 18px; border-left: 4px solid var(--red); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; 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(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.alert-ok { background: var(--green-50); color: var(--green-700); }
.alert-err { background: var(--red-50); color: var(--red-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab4c3; margin-top: 48px; font-size: 14px; }
.site-footer .wrap { padding-top: 48px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.site-footer h2 { font-size: 14px; color: #fff; font-weight: 700; margin-bottom: 14px; letter-spacing: 0; }
.site-footer .brand-name { color: #fff; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.foot-links a:hover { color: #fff; }
.foot-links .icon { font-size: 12px; opacity: .6; }
.foot-about { margin-top: 14px; max-width: 340px; }
.sub-box { margin-top: 20px; background: var(--ink-2); border: 1px solid #353b46; border-radius: 12px; padding: 16px; max-width: 380px; }
.sub-box strong { color: #fff; font-size: 14px; }
.sub-box p { font-size: 12.5px; margin-top: 4px; }
.sub-box form { display: flex; gap: 8px; margin-top: 12px; }
.sub-box .input { height: 38px; background: #fff; color: var(--text); }
.sub-box .btn { height: 38px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: var(--ink-2); border: 1px solid #353b46; display: grid; place-items: center; font-size: 16px; color: #fff; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.foot-legal { border-top: 1px solid #323843; padding: 22px 0; display: flex; gap: 18px; align-items: center; }
.age { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 3px solid var(--red); background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.foot-bottom { border-top: 1px solid #323843; padding: 18px 0 26px; font-size: 12.5px; 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; }
  .card { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Home hero: green gradient over image (image sits on the right) ---------- */
.hero-home {
  position: relative;
  color: #fff;
  border-bottom: 0;
  background:
    linear-gradient(90deg, #06521f 0%, #087a2c 38%, rgba(13, 151, 55, .82) 58%, rgba(13, 151, 55, .25) 82%, rgba(13, 151, 55, .1) 100%),
    var(--hero-img, none) right center / cover no-repeat,
    linear-gradient(135deg, #0a7a2c 0%, #0d9737 55%, #22b14c 100%);
}
.hero-home .wrap { padding-top: 48px; padding-bottom: 48px; align-items: center; }
.hero-home h1 { color: #fff; margin-top: 0; }
.hero-home p.lead { color: rgba(255, 255, 255, .88); }
.hero-home .eyebrow { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(4px); }
.hero-home .eyebrow .live-dot, .hero-home .eyebrow .live-dot::after { background: #86efac; }
.hero-home .crumbs { color: rgba(255, 255, 255, .8); }
.hero-home .crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-home .crumbs [aria-current] { color: #fff; font-weight: 600; }
.hero-home .stat-box { border-color: rgba(255, 255, 255, .6); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .3); }
.hero-home + .section .filter-card { margin-top: -4px; }
@media (max-width: 760px) {
  .hero-home { background:
    linear-gradient(180deg, rgba(6, 82, 31, .94) 0%, rgba(8, 122, 44, .9) 100%),
    var(--hero-img, none) center / cover no-repeat,
    #0a7a2c; }
}

/* ---------- Telegram alerts card ---------- */
.tg-card { display: flex; align-items: center; gap: 24px; padding: 24px 28px; background: #fff; border: 1.5px solid #9fd3f0; border-radius: var(--radius); box-shadow: var(--shadow); }
.tg-logo { width: 72px; height: 72px; flex: none; }
.tg-copy { flex: 1; min-width: 0; }
.tg-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1a86c4; }
.tg-card h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; margin-top: 4px; }
.tg-points { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); font-weight: 500; }
.tg-points li { display: flex; align-items: center; gap: 6px; }
.tg-points .icon { color: var(--green); }
.tg-btn { flex: none; height: 48px; padding: 0 22px; background: #229ed9; color: #fff; font-size: 15px; }
.tg-btn:hover { background: #1b8fd0; }
.tg-btn.is-soon { cursor: default; background: #fff; color: #1a86c4; border: 1.5px dashed #9fd3f0; }
@media (max-width: 860px) {
  .tg-card { flex-direction: column; text-align: center; gap: 16px; padding: 24px 20px; }
  .tg-points { justify-content: center; }
  .tg-btn { width: 100%; max-width: 360px; }
  .tg-logo { width: 60px; height: 60px; }
}

/* ---------- Results list (modern rows) ---------- */
.table-card:has(> .rlist), .table-card:has(> .rlist + .table-foot) { background: #f8fafc; }
.rlist { list-style: none; margin: 0; padding: 12px; display: grid; gap: 10px; counter-reset: none; }
.rrow { position: relative; display: grid; grid-template-columns: 62px minmax(170px, 1fr) auto auto; grid-template-areas: "date game win mac"; align-items: center; gap: 22px; padding: 12px 18px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rrow::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
.rrow.is-unpub::before { background: #cbd5e1; }
.rrow:hover { border-color: #d3dbe6; box-shadow: 0 10px 22px -12px rgba(15, 23, 42, .18); transform: translateY(-1px); }
.rrow[hidden] { display: none; }
.rdate { grid-area: date; width: 62px; height: 62px; border-radius: 12px; background: linear-gradient(160deg, var(--green-50), #d6f0de); color: var(--green-700); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transition: background .15s; }
.rdate:hover { background: var(--green); color: #fff; }
.rdate .d { font-size: 21px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rdate .m { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.rdate .w { font-size: 9.5px; font-weight: 600; opacity: .7; margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.rgame { grid-area: game; min-width: 0; }
.rgame > a { font-weight: 700; font-size: 15.5px; color: var(--ink); letter-spacing: -.01em; }
.rgame > a:hover { color: var(--red); }
.rmeta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #475569; background: #f1f5f9; padding: 3px 9px; border-radius: 999px; }
.chip .icon { font-size: 12px; color: var(--muted); }
.rno { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--faint); }
.rballs .rl { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.rwin { grid-area: win; }
.rmac { grid-area: mac; padding-left: 22px; border-left: 1px dashed var(--line); }
@media (max-width: 1100px) {
  .rrow { grid-template-columns: 62px 1fr auto; grid-template-areas: "date game game" "date win mac"; row-gap: 12px; }
  .rmac { padding-left: 16px; }
}
@media (max-width: 680px) {
  .rlist { padding: 10px; gap: 8px; }
  .rrow { grid-template-columns: 52px 1fr; grid-template-areas: "date game" "win win" "mac mac"; gap: 12px 14px; padding: 12px; }
  .rdate { width: 52px; height: 52px; }
  .rdate .d { font-size: 18px; }
  .rdate .w { display: none; }
  .rmac { padding-left: 0; border-left: 0; padding-top: 10px; border-top: 1px dashed var(--line); }
}

/* ---------- Homepage "Past Results" filter ---------- */
.past-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; padding: 18px; background: #fff; 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: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text); }
.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: 16px; margin-top: 28px; padding: 18px 20px; max-width: 760px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.contact-email-icon { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--red-50); color: var(--red); display: grid; place-items: center; font-size: 24px; }
.contact-email-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-email .protected-email { font-size: 18px; font-weight: 700; color: var(--red); word-break: break-all; }
.contact-email .protected-email:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Install app (PWA) ---------- */
.install-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 8px; background: transparent; color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.install-btn:hover { background: #fff; color: var(--red); }
.install-btn[hidden], .foot-install[hidden] { display: none; }
.foot-install { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: color .15s; }
.foot-install:hover { color: #fff; }
.foot-install .icon { font-size: 12px; opacity: .6; }
@media (max-width: 560px) { .install-btn { padding: 0 10px; } .install-btn span { display: none; } }
.ios-install { border: 0; border-radius: 18px; padding: 28px 24px 22px; max-width: 360px; width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow-lg); color: var(--text); }
.ios-install::backdrop { background: rgba(15, 23, 42, .55); }
.ios-install img { margin: 0 auto 12px; border-radius: 14px; }
.ios-install h2 { font-size: 19px; margin-bottom: 14px; }
.ios-install ol { text-align: left; margin: 0 0 20px; padding-left: 20px; display: grid; gap: 10px; font-size: 14.5px; }
.ios-install ol .icon { font-size: 16px; vertical-align: -3px; color: #0a84ff; }
.ios-install .btn { width: 100%; }

/* ---------- Push notification buttons ---------- */
.push-btn.is-on { background: #fff; color: var(--red); }
.push-btn[hidden], .tg-push[hidden] { display: none; }
.tg-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }
.tg-push { height: 42px; background: #fff; color: var(--text); border: 1px solid var(--line); font-size: 13.5px; }
.tg-push:hover { border-color: #cbd5e1; background: #f8fafc; }
.tg-push.is-on { border-color: var(--green); color: var(--green-700); background: var(--green-50); }
.tg-push:disabled, .push-btn:disabled { opacity: .7; cursor: default; }
.ios-note { font-size: 13px; color: var(--muted); background: #f8fafc; border-radius: 10px; padding: 10px 12px; margin: -6px 0 16px; text-align: left; }
@media (max-width: 860px) { .tg-actions { width: 100%; max-width: 360px; } .tg-actions .btn { width: 100%; } }


/* ---------- Ad slots ---------- */
.ad-wrap { padding-top: 18px; padding-bottom: 6px; }
.ad-slot { margin: 22px 0; text-align: center; }
.ad-wrap .ad-slot { margin: 0; }
.ad-label { display: block; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.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; } }
