:root {
  --bg: #f6f4ef; --surface: #ffffff; --ink: #1c2326; --muted: #5d666b; --line: #e2ded6;
  --accent: #0c5a54; --accent-ink: #ffffff; --accent-soft: #dcefeb;
  --brand: #0c5a54; --brand-dark: #073b37; --gold: #f5b82e; --hot: #d93a2b;
  --card-hi: #ffffff; --card-lo: #e7eaec; --tile: #1d2327;
  --good: #1f7a4d; --bad: #b42318; --warn-bg: #fdf1d6; --warn-ink: #7a5300;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131617; --surface: #1c2022; --ink: #e8e6e3; --muted: #a0a6ab; --line: #2f3437;
    --accent: #3fb7a9; --accent-ink: #0d1514; --accent-soft: #173431;
    --hot: #ff6a55; --card-hi: #262b2e; --card-lo: #1c2022; --tile: #0c0f10;
    --good: #5cc48d; --bad: #f2827a; --warn-bg: #3b2f12; --warn-ink: #f0c869;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.tabs { display: flex; gap: 4px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.panel { padding: 18px 0 8px; }
.controls { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 14px; }
.group { display: flex; flex-direction: column; gap: 6px; }
.group.grow { flex: 1; min-width: 200px; }
.label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 6px 13px; font: inherit; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
input[type=search] { font: inherit; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); width: 100%; }
.explain { color: var(--muted); margin: 0 0 10px; font-size: 14px; }

.pick { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.pick .eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.pick h2 { margin: 4px 0 12px; font-size: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.stat { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--muted); }
.stat.hl { outline: 2px solid var(--accent); background: var(--accent-soft); }
h3 { margin: 6px 0 8px; font-size: 16px; }

.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); position: sticky; top: 0; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tbody tr.game { cursor: pointer; }
tbody tr.game:hover td { background: var(--bg); }
.rank { color: var(--muted); width: 1%; }
.name { font-weight: 600; white-space: normal; min-width: 160px; }
.name small { display: block; font-weight: 400; color: var(--muted); }
.up { color: var(--good); } .down { color: var(--bad); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
  vertical-align: middle; margin-left: 4px; }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.new { background: var(--accent-soft); color: var(--accent); }
tr.detail td { background: var(--bg); white-space: normal; }
tr.detail table { font-size: 13px; background: var(--surface); border-radius: 8px; }
.empty { padding: 20px; color: var(--muted); }

.notes { margin: 28px auto 40px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.notes h2 { font-size: 16px; color: var(--ink); }
.notes li { margin-bottom: 6px; }
.fine { font-size: 13px; }

@media (max-width: 600px) {
  .tabs button { padding: 10px 9px; font-size: 14px; }
  .pick h2 { font-size: 19px; }
}

/* ---------------------------------------------------------------- ticket art */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 4px 0 16px; }
.podium:empty { display: none; }
.ticket { position: relative; margin: 0; min-height: 200px; border-radius: 12px; padding: 14px 14px 30px;
  color: #fff; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  background:
    repeating-linear-gradient(var(--ang), rgba(255,255,255,.07) 0 10px, transparent 10px 22px),
    radial-gradient(circle at 85% 10%, rgba(255,255,255,.28), transparent 45%),
    linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 8px 20px -10px rgba(0,0,0,.45); }
.ticket::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed rgba(255,255,255,.45);
  border-radius: 9px; pointer-events: none; }
.t-rank { align-self: flex-start; background: #fff; color: var(--c2, #222); font-weight: 800; font-size: 12px;
  padding: 2px 9px; border-radius: 999px; }
.t-price { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 15px; background: #fff; color: var(--c2);
  box-shadow: inset 0 0 0 3px var(--c1); }
.t-name { font-size: 20px; line-height: 1.1; font-weight: 900; text-transform: uppercase; letter-spacing: .01em;
  text-shadow: 0 2px 0 rgba(0,0,0,.25); padding-right: 52px; overflow-wrap: anywhere; }
.t-top { font-size: 13px; font-weight: 700; }
.t-top span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; font-weight: 600; }
.t-stat { margin-top: auto; border-radius: 8px; padding: 8px 10px; color: #222;
  background: repeating-linear-gradient(45deg, #e9e9ee 0 4px, #d6d7de 4px 8px);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.t-stat span { display: block; font-size: 11px; font-weight: 600; color: #555; }
.t-stat strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.t-num { position: absolute; bottom: 10px; left: 14px; font-size: 10px; letter-spacing: .06em; opacity: .8; }
.ticket.has-img { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 8px; }
.ticket.has-img::after { display: none; }
.ticket.has-img img { width: 100%; border-radius: 8px; display: block; }
.ticket.has-img figcaption { font-size: 13px; }
.pick-body { display: flex; gap: 16px; align-items: stretch; }
.pick-tickets { display: flex; gap: 10px; flex: 0 0 auto; }
.pick-tickets .ticket { width: 190px; }
.pick-body .stats { flex: 1; align-content: start; }
@media (max-width: 760px) {
  .podium { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .podium .ticket { scroll-snap-align: start; }
  .pick-body { flex-direction: column; }
  .pick-tickets { overflow-x: auto; }
  .pick-tickets .ticket { width: 72vw; max-width: 240px; flex: 0 0 auto; }
}

/* ---------------------------------------------------------------- site header + footer */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-head { background: var(--brand-dark); color: #fff; position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.head-row { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 20px;
  letter-spacing: -.01em; white-space: nowrap; }
.brand b { color: var(--gold); }
.brand img { border-radius: 9px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--gold); color: var(--brand-dark); }
.site-foot { background: var(--brand-dark); color: rgba(255,255,255,.8); margin-top: 40px; padding: 26px 0 18px; font-size: 14px; }
.site-foot a { color: #fff; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.foot-brand img { border-radius: 7px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot .fine { margin-top: 14px; color: rgba(255,255,255,.65); font-size: 12.5px; }
@media (max-width: 640px) {
  .site-head { position: static; }
  .head-row { flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; }
  .site-nav { margin-left: 0; width: 100%; padding-bottom: 6px; }
  .brand { font-size: 18px; }
}

/* ---------------------------------------------------------------- hero (state + home) */
.hero { padding: 26px 0 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(245,184,46,.22), transparent 40%),
    radial-gradient(circle at 90% 120%, rgba(245,184,46,.16), transparent 45%),
    linear-gradient(160deg, var(--brand), var(--brand-dark)); color: #fff; }
.hero-title { margin: 0; font-size: 32px; letter-spacing: -.02em; line-height: 1.15; }
.hero-title span { display: inline-block; vertical-align: middle; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; background: var(--hot); color: #fff; padding: 4px 10px; border-radius: 999px; margin-left: 8px;
  position: relative; padding-left: 22px; }
.hero-title span::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.hero-sub { margin: 6px 0 18px; color: rgba(255,255,255,.82); font-size: 14px; max-width: 760px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-card { background: linear-gradient(180deg, var(--card-hi), var(--card-lo)); color: var(--ink);
  border-radius: 12px; padding: 18px 18px 20px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 10px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.55); }
.pill { display: inline-block; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 5px 22px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.pill.dark { background: var(--tile); color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 4px 18px; }
.hero-date { margin: 0; font-size: 18px; }
.balls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 58px; align-items: center; }
.ball { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  color: #3b2a00; letter-spacing: -.02em;
  background: radial-gradient(circle at 32% 28%, #fff6d6, var(--gold) 55%, #c98b0e);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.2); }
.ball.red { color: #fff; background: radial-gradient(circle at 32% 28%, #ff9a8c, var(--hot) 55%, #8f1c11); }
.ball.muted { color: #333; background: radial-gradient(circle at 32% 28%, #fff, #d9dde1 60%, #a9b0b6); }
.hero-note { margin: 0; font-size: 14px; color: var(--muted); max-width: 440px; }
.hero-note a, .hl-card a { color: var(--accent); font-weight: 600; text-decoration: none; }
.hero-note a:hover, .hl-card a:hover { text-decoration: underline; }
.btn { display: block; width: 100%; margin-top: auto; background: var(--tile); color: #fff; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 11px 14px; border-radius: 6px; }
.btn:hover { background: #000; }
.countdown { display: flex; gap: 6px; }
.countdown div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.countdown b { background: var(--tile); color: #fff; font-size: 30px; font-weight: 800; padding: 4px 8px; border-radius: 6px;
  min-width: 54px; font-variant-numeric: tabular-nums; box-shadow: inset 0 -16px 0 rgba(255,255,255,.06); }
.countdown span { font-size: 11px; color: var(--hot); text-transform: uppercase; font-weight: 600; }
.jackpot { font-size: 42px; font-weight: 900; color: var(--hot); line-height: 1.05; letter-spacing: -.02em; }
.jackpot.long { font-size: 28px; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 25px; }
  .jackpot { font-size: 36px; }
}

/* ---------------------------------------------------------------- highlight cards */
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.hl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px;
  scroll-margin-top: 80px; }
.hl-card h2 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.hot { background: var(--hot); } .dot.warn { background: var(--gold); } .dot.good { background: var(--good); }
.hl-list { list-style: none; margin: 0; padding: 0; }
.hl-list li { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 8px 0;
  border-top: 1px solid var(--line); }
.hl-list li:first-child { border-top: 0; }
.hl-prize { font-weight: 800; font-size: 13px; text-align: center; border-radius: 6px; padding: 5px 2px;
  background: var(--accent-soft); color: var(--accent); }
.hl-prize.hot { background: var(--hot); color: #fff; }
.hl-prize.muted { background: var(--bg); color: var(--muted); }
.hl-main { min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.3; }
.hl-main small, .hl-side small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.hl-main small .up, .hl-main small .down { font-weight: 600; }
.hl-side { text-align: right; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hl-empty { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.hl-foot { color: var(--muted); font-size: 12px; margin: 6px 0 2px; }
.hl-card.wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .highlights { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- home */
.state-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.state-card { background: linear-gradient(180deg, var(--card-hi), var(--card-lo)); color: var(--ink); text-decoration: none;
  border-radius: 12px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.55); transition: transform .15s; }
.state-card:hover { transform: translateY(-3px); }
.sc-big { font-size: 34px; font-weight: 900; color: var(--hot); letter-spacing: -.02em; line-height: 1.1; }
.sc-sub { font-size: 14px; color: var(--muted); }
.sc-sub small { font-size: 12.5px; }
.sc-best { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.sc-best b { color: var(--ink); }
.how { margin-top: 26px; }
.how h2 { font-size: 20px; margin: 0 0 10px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.how-grid h3 { margin: 0 0 4px; }
.how-grid p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 820px) { .state-cards, .how-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- email sign-up */
.signup { margin-top: 30px; }
.signup-card { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: center; background: var(--surface);
  border-radius: 14px; padding: 26px 26px 26px 34px; box-shadow: 0 6px 24px -12px rgba(0,0,0,.3); border: 1px solid var(--line); }
.signup-copy h2 { font-size: 46px; line-height: 1.05; margin: 0 0 14px; letter-spacing: -.02em; }
.signup-copy > p { font-size: 16px; color: var(--muted); max-width: 460px; }
.signup-copy > p strong { color: var(--ink); }
.signup-form { display: grid; gap: 10px; max-width: 360px; margin: 18px 0 8px; }
.signup-form input, .signup-form select { font: inherit; font-size: 15px; padding: 12px 12px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.signup-form button { font: inherit; font-weight: 700; background: var(--brand); color: #fff; border: 0; border-radius: 6px;
  padding: 13px; cursor: pointer; }
.signup-form button:hover { background: var(--brand-dark); }
.signup-form button:disabled { opacity: .6; cursor: wait; }
.signup-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-msg { margin: 0; font-size: 14px; min-height: 1em; }
.signup-msg.ok { color: var(--good); font-weight: 600; } .signup-msg.err { color: var(--bad); }
.signup .fine { color: var(--muted); }
.signup .fine a { color: inherit; }
.signup-art { width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 760px) {
  .signup-card { grid-template-columns: 1fr; padding: 22px; }
  .signup-copy h2 { font-size: 36px; }
  .signup-art { max-width: 300px; margin: 0 auto; }
}

/* ---------------------------------------------------------------- simple pages */
.prose { max-width: 760px; padding-top: 26px; font-size: 16px; line-height: 1.6; }
.prose h1 { font-size: 30px; margin: 0 0 12px; }
.prose h2 { font-size: 20px; margin-top: 26px; }
.prose a { color: var(--accent); }
.tabs { margin-top: 22px; }
