/* Lotto Scanner USA. Theme "Stars and Stripes": the flag's Old Glory Blue and Red with the app icon's lucky gold.
   Every color lives in :root so another direction is a token swap. Type: Barlow (brand/BRAND.md, SIL OFL). */
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlowcondensed-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlowcondensed-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --navy: #0a3161;
  --navy-2: #12437f;
  --navy-deep: #061d3b;
  --red: #b31942;
  --red-hot: #e0202e;
  --gold: #ffc233;
  --gold-deep: #f0a500;
  --gold-text: #8a5a00;
  --ink: #0f1b2d;
  --muted: #566176;
  --canvas: #f3f5fa;
  --card: #fff;
  --line: #dce2ec;
  --soft: #eef2f8;
  --win: #127a3b;
  --win-soft: #e6f5ec;
  --hot: #c62828;
  --cold: #1f6fb2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 49, 97, 0.08), 0 8px 24px rgba(10, 49, 97, 0.07);
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --stripes: repeating-linear-gradient(90deg, var(--red) 0 22px, #fff 22px 44px);
  --stars: url("/static/img/stars.svg");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 17px/1.55 var(--text); }
a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img, svg { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, .card-h, .hero-jp, .tile-name, .tile-jp { font-family: var(--display); font-weight: 800; letter-spacing: 0.002em; }
h1 { font-size: clamp(34px, 5.6vw, 54px); line-height: 1.02; margin: 18px 0 10px; color: var(--navy); text-transform: uppercase; }
h2 { font-size: clamp(25px, 3.4vw, 32px); line-height: 1.1; margin: 36px 0 14px; color: var(--navy); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 20px; height: 20px; flex: none; background: var(--red); clip-path: polygon(50% 0, 61.8% 35.3%, 100% 35.3%, 69.1% 57.1%, 80.9% 92.7%, 50% 70.8%, 19.1% 92.7%, 30.9% 57.1%, 0 35.3%, 38.2% 35.3%); }
.card h2::before, .hero h2::before, .faq h2::before, h2.plain::before { display: none; }
h3 { font-size: 18px; margin: 18px 0 8px; color: var(--navy); }
.lede { font-size: 19px; max-width: 780px; margin: 0 0 18px; color: #2b3647; }

/* header */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; box-shadow: 0 2px 10px rgba(6, 29, 59, 0.25); }
.top::after { content: ""; display: block; height: 6px; background: var(--stripes); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; white-space: nowrap; }
.logo img { border-radius: 10px; display: block; }
.logo-t { font: 800 23px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.logo-t b { background: var(--red); color: #fff; padding: 2px 7px 1px; border-radius: 6px; margin-left: 2px; }
.logo-t b::after { content: " ★"; font-size: 0.7em; vertical-align: 0.15em; color: var(--gold); }
.logo:hover { color: #fff; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; padding: 8px 11px; border-radius: 10px; }
.nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }
.nav .i { color: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1.5px solid var(--navy);
  border-radius: 999px; background: var(--card); color: var(--navy); font: 700 16px/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--soft); color: var(--navy); }
.btn-brand, .btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-brand:hover, .btn-red:hover { background: #9a1238; border-color: #9a1238; color: #fff; }
.btn-ink { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ink:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #ffd060; color: var(--navy-deep); }
.app-btn { min-height: 40px; font-size: 15px; padding: 0 16px; }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* page head with a logo, flag or shape next to the H1 */
.phead { display: flex; align-items: center; gap: 18px; margin: 14px 0 6px; }
.phead h1 { margin: 0; }
.phead-mark { flex: none; }
.phead-sub { margin: 6px 0 0; color: var(--muted); font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.phead-sub span { display: inline-flex; align-items: center; gap: 6px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin: 18px 0; }
.card-h { font-size: 26px; margin: 0 0 12px; line-height: 1.05; color: var(--navy); text-transform: uppercase; }
.card-h a { text-decoration: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.card-top .card-h { margin: 0; display: flex; align-items: center; gap: 10px; }
.date-link { font-weight: 700; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.slot + .slot { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 14px; }
.slot-name { margin: 0 0 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }

/* jackpot hero: navy with stars, gold amount */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0, var(--navy-2) 0, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px 20px; margin: 18px 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--stars) 0 0 / 120px 120px; opacity: 0.09; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--stripes); }
.hero > * { position: relative; }
.hero-top { display: flex; align-items: center; gap: 12px; }
.hero-k { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: 0.07em; text-transform: uppercase; color: #d9e3f2; }
.hero-jp { color: var(--gold); font-size: clamp(50px, 8vw, 84px); line-height: 0.95; margin: 10px 0 10px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.hero-jp-sm { font-size: 42px; }
.hero-sub { margin: 0; color: #e6edf7; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.countdown { display: inline-block; background: var(--gold); color: var(--navy-deep); border-radius: 8px; padding: 1px 9px; font-weight: 800; font-variant-numeric: tabular-nums; }
.next-line { font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* balls: glossy, white main balls, the bonus ball in the game's color (--bc fill, --bi ink) */
.balls { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.ball { --bf: #fff; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  font: 800 20px/1 var(--text); font-variant-numeric: tabular-nums; color: var(--navy-deep);
  background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--bf) 30%, #fff) 0 9%, var(--bf) 40%, color-mix(in srgb, var(--bf) 80%, #0a3161) 100%);
  box-shadow: inset 0 -3px 6px rgba(10, 49, 97, 0.18), 0 2px 4px rgba(10, 49, 97, 0.18); border: 1px solid #cfd7e4; }
.lg .ball { width: 56px; height: 56px; font-size: 24px; }
.balls.sm .ball, .sm .ball { width: 36px; height: 36px; font-size: 15px; }
.keno .ball { width: 38px; height: 38px; font-size: 15px; }
.ball.bonus { --bf: var(--bc, var(--red)); color: var(--bi, #fff); border-color: transparent; }
.ball.alt { --bf: var(--gold); border-color: transparent; }
.ball.hot { --bf: #f6c9c9; border-color: #e7a6a6; }
.ball.cold { --bf: #cfe3f6; border-color: #a9c8e8; }
.ball.mult { --bf: var(--navy); color: #fff; border-color: transparent; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 4px 11px; background: var(--soft); color: var(--navy); display: inline-flex; gap: 5px; align-items: center; }
.chip-bonus { background: var(--bc, var(--red)); color: var(--bi, #fff); }
.chip-ink { background: var(--navy); color: #fff; }
.chip-fire { background: #ff8a1f; color: #1a1205; }
.chip-gold { background: var(--gold); color: var(--navy-deep); }
.chip-win { background: var(--win-soft); color: var(--win); }
.dp { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.dp-label { font-weight: 800; font-size: 14px; color: var(--navy); }
.pending { font-weight: 700; color: var(--muted); }
.race { list-style: none; padding: 0; margin: 0; }
.race li { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-weight: 700; }
.jp-line { margin: 16px 0 0; font-size: 18px; }

/* game marks: the official logo when we have it, else our ball with the game's code */
.glogo { display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; border-radius: 12px; overflow: hidden; }
.glogo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.glogo.pad { padding: 4px 6px; border: 1px solid var(--line); }
.gmark { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; color: var(--bi, #fff); font: 800 15px/1 var(--display); letter-spacing: 0.02em;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--bc, var(--red)) 45%, #fff) 0 12%, var(--bc, var(--red)) 46%, color-mix(in srgb, var(--bc, var(--red)) 75%, #000) 100%);
  box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.2); }

/* states: flag and outline */
.flag { display: inline-block; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(10, 49, 97, 0.15); object-fit: cover; background: var(--soft); }
.shape { display: inline-block; flex: none; }
.shape path, svg.shape { fill: var(--navy); }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
caption { text-align: left; padding: 12px 14px; font-weight: 700; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { background: var(--navy); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 0; white-space: nowrap; }
tbody tr:nth-child(even) { background: #f8fafd; }
tbody tr:hover { background: #fff8e6; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; white-space: nowrap; }
td.nums { font-variant-numeric: tabular-nums; font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-game { display: flex; align-items: center; gap: 10px; }
.bar { display: inline-block; min-width: 2.6em; padding: 1px 7px; background: linear-gradient(90deg, #ffd56b var(--w), transparent var(--w)); border-radius: 4px; font-variant-numeric: tabular-nums; }

/* grids */
.tile-grid, .state-grid, .year-grid, .day-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tile-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; text-decoration: none; height: 100%; color: var(--ink); border-top: 4px solid var(--bc, var(--navy)); }
.tile:hover { border-color: var(--navy); border-top-color: var(--bc, var(--navy)); color: var(--ink); transform: translateY(-1px); }
.tile-head { display: flex; align-items: center; gap: 10px; }
.tile-name { font-size: 22px; line-height: 1.05; color: var(--navy); text-transform: uppercase; }
.tile-jp { font-size: 32px; line-height: 1; color: var(--red); }
.tile-nums { font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .balls { gap: 5px; }
.tile .ball { width: 32px; height: 32px; font-size: 14px; }
.tile-date { font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: auto; }
.state-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.state-grid a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--ink); }
.state-grid a:hover { border-color: var(--navy); color: var(--navy); }
.state-grid a.muted { color: var(--muted); background: transparent; border-style: dashed; }
.state-grid .code { margin-left: auto; font: 800 13px/1 var(--display); color: var(--muted); }
.year-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.year-grid a, .day-grid a { display: block; text-align: center; padding: 11px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-weight: 800; text-decoration: none; }
.year-grid a:hover, .day-grid a:hover { border-color: var(--navy); background: var(--soft); }
.day-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.year-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.year-nav a, .year-nav span { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; background: var(--card); }
.year-nav .on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; margin: 8px 0 4px; flex-wrap: wrap; }

/* tools */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 24px 0; }
.tool { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); text-decoration: none; box-shadow: var(--shadow); color: var(--ink); }
.tool:hover { border-color: var(--navy); color: var(--ink); }
.tool .ti { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.tool .ti .i { width: 22px; height: 22px; }
.tool b { font-size: 17px; color: var(--navy); line-height: 1.2; }
.tool span { font-size: 14px; color: var(--muted); }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat-l { font-size: 13px; color: var(--muted); font-weight: 700; display: flex; gap: 6px; align-items: center; }
.stat-v { font: 800 30px/1.1 var(--display); color: var(--navy); }
.stat-s { font-size: 13px; color: var(--muted); }

/* charts (server-rendered SVG, one series, hover via <title>) */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #e5e9f1; stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 600 11px var(--text); }
.chart .mk { fill: var(--navy); }
.chart .mk.hi { fill: var(--red); }
.chart .mk:hover, .chart .mk.hi:hover { fill: var(--gold-deep); }
.chart .lbl { fill: var(--ink); font: 700 11px var(--text); }

/* US map */
.usmap { width: 100%; height: auto; display: block; }
.usmap a path { fill: #c9d6ea; stroke: #fff; stroke-width: 1.2; transition: fill 0.15s; }
.usmap a.on path { fill: var(--navy); }
.usmap a.on:hover path, .usmap a:focus path { fill: var(--red); }
.usmap a.no path { fill: #e6eaf1; }

/* app banner */
.cta { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; background: linear-gradient(100deg, var(--navy) 0, var(--navy-2) 100%); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin: 26px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--stars) 0 0 / 120px 120px; opacity: 0.07; }
.cta > * { position: relative; }
.cta-icon { border-radius: 15px; display: block; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
.cta-h { font: 800 22px/1.15 var(--display); margin: 0; text-transform: uppercase; }
.cta-p { margin: 4px 0 0; font-size: 15px; color: #dfe7f3; }
.cta .btn { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.cta .btn:hover { background: #ffd060; }

/* forms */
.checker label, .calc label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
input, select { font: 600 18px/1.2 var(--text); padding: 11px 12px; border: 1.5px solid #b9c4d6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.check-row { display: grid; grid-template-columns: 1fr 140px auto; gap: 12px; align-items: end; }
.check-row label { margin: 0; }
.verdict.won { background: var(--win-soft); border-color: var(--win); }
.verdict .prize { font-size: 22px; font-weight: 800; }
.error { border-color: var(--red); }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 6px; }
.calc-col { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.calc-col h2 { margin: 0 0 8px; font-size: 22px; }
.calc-col h2::before { display: none; }
.calc-col dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; }
.calc-col dt { color: var(--muted); }
.calc-col dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.calc-col dd.total { font-size: 22px; color: var(--win); }
.calc-col dd.minus { color: var(--red); }
.gen-lines { padding-left: 1.6em; margin: 6px 0 14px; }
.gen-lines li { margin: 8px 0; }
.gen-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.stat-cols h3 { margin-top: 0; display: flex; align-items: center; gap: 8px; }

/* text */
.facts { list-style: none; padding: 0; display: grid; gap: 10px; margin: 16px 0; }
.facts li { display: flex; gap: 10px; align-items: baseline; }
.facts b { display: inline-block; min-width: 160px; color: var(--navy); }
.note { background: #fff; border-left: 5px solid var(--navy); padding: 12px 16px; border-radius: 8px; }
.note.gold { border-left-color: var(--gold-deep); background: #fffaf0; }
.source { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.source .i { color: var(--win); margin-top: 3px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); }
.faq p { margin: 8px 0 0; }
.prose { max-width: 780px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; }
.links a:hover { border-color: var(--navy); }
details summary { cursor: pointer; font-weight: 700; margin: 10px 0; }

/* footer */
.foot { margin-top: 64px; background: var(--navy-deep); color: #dbe3ef; padding: 0 0 40px; position: relative; }
.foot::before { content: ""; display: block; height: 6px; background: var(--stripes); }
.foot-brand { display: flex; align-items: center; gap: 12px; padding: 26px 0 8px; }
.foot-brand .logo-t { color: #fff; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 24px; margin-top: 14px; }
.foot-h { color: var(--gold); font-size: 20px; margin: 0 0 8px; }
.foot-h::before { display: none; }
.foot-links { list-style: none; padding: 0; margin: 0; font-size: 15px; line-height: 1.9; }
.foot-links.cols { columns: 3; }
.fine { font-size: 13px; color: #a9b6c9; margin-top: 22px; max-width: 920px; }

@media (max-width: 860px) {
  .three { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .two { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .top-in { gap: 4px 10px; min-height: 56px; flex-wrap: wrap; padding-top: 8px; }
  .logo-t { font-size: 20px; }
  .logo img { width: 34px; height: 34px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -8px; padding-bottom: 4px; }
  .nav a { font-size: 15px; padding: 7px 9px; }
  .app-btn { margin-left: auto; min-height: 36px; padding: 0 12px; font-size: 14px; }
  .phead { gap: 12px; }
  .cta { grid-template-columns: 48px 1fr; }
  .cta-icon { width: 48px; height: 48px; }
  .cta .btn { grid-column: 1 / -1; }
  .check-row { grid-template-columns: 1fr 100px; }
  .check-row .btn { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-states { grid-column: 1 / -1; }
  .foot-links.cols { columns: 2; }
  .balls { gap: 6px; }
  .lg .ball { width: 46px; height: 46px; font-size: 20px; }
  .ball { width: 40px; height: 40px; font-size: 17px; }
  .card { padding: 16px; }
  th, td { padding: 10px; }
  .hero { padding: 18px 18px 18px; }
}

/* number pages */
.stat > span { display: block; }
.stat-v small { font-size: 16px; color: var(--muted); font-weight: 700; }
.ball.num-hero { width: 84px; height: 84px; font-size: 38px; }
.ball.match { --bf: var(--gold); border-color: var(--gold-deep); }
.companions { gap: 10px 14px; }
.companions li { display: flex; align-items: center; gap: 4px; }
a.ball { text-decoration: none; }
a.ball:hover { --bf: var(--gold); color: var(--navy-deep); }
td .balls { flex-wrap: nowrap; }
@media (max-width: 760px) { .ball.num-hero { width: 64px; height: 64px; font-size: 28px; } }

/* section tabs */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px 0 8px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 10px 10px 0 0; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; color: var(--muted); border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--navy); background: var(--soft); }
.subnav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--red); }
.subnav .i { color: var(--red); }

/* game rows (lists of games with their latest numbers) */
.game-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.grow { display: grid; grid-template-columns: 124px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--bc, var(--navy));
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.grow-logo { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.grow-name { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.grow-name > a:first-child { font: 800 20px/1.1 var(--display); text-transform: uppercase; text-decoration: none; color: var(--navy); }
.grow-date { font-size: 14px; font-weight: 700; color: var(--muted); }
.grow-slot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0; }
.grow-slot .slot-name { margin: 0; min-width: 64px; }
.grow-slot .draw-balls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow-slot .chips { margin: 0; }
.grow-slot .dp { margin: 0; }
.grow-side { text-align: right; display: grid; gap: 6px; justify-items: end; }
.grow-prize { margin: 0; line-height: 1.15; }
.grow-prize span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.grow-prize b { font: 800 24px/1 var(--display); color: var(--red); }
.grow-next { margin: 0; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.grow-next .countdown { font-size: 13px; padding: 1px 7px; }
.glogo-img { display: block; object-fit: contain; }
.game-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.game-list li { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.game-list a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }

/* state marks */
.state-mark { display: inline-flex; }
.state-mark .flag { border-radius: 6px; }
.phead-sub .shape { vertical-align: -3px; }
.lottery-logo { display: block; object-fit: contain; }

/* calendars */
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.cal { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.cal h3 { margin: 0 0 8px; }
.cal-days { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 14px; }
.cal-days a, .cal-days span { display: block; padding: 4px 0; border-radius: 7px; }
.cal-days a { font-weight: 700; text-decoration: none; background: var(--soft); }
.cal-days a:hover { background: var(--navy); color: #fff; }
.cal-days span { color: #b3bccb; }
.cal-wd { font-size: 11px; font-weight: 800; color: var(--muted); }

/* claim ladder, add-ons, next draws, keep */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: l; }
.ladder li { display: grid; grid-template-columns: 44px 190px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.ladder-i { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.ladder b { font: 800 20px/1.1 var(--display); color: var(--navy); }
.addons { list-style: none; padding: 0; display: grid; gap: 8px; }
.addons li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.addons li.yes .i { color: var(--win); }
.addons li.no { color: var(--muted); }
.next-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.next-list li { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 12px; align-items: center; }
.next-list a { font-weight: 800; }
dl.keep { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 10px 0; }
dl.keep dt { color: var(--muted); }
dl.keep dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
dl.keep dd.minus { color: var(--red); }
dl.keep dd.total { font: 800 26px/1 var(--display); color: var(--win); }
.jp-grid { margin-top: 18px; }
.jp-grid .hero { margin: 0; }

@media (max-width: 760px) {
  .subnav { flex-wrap: nowrap; }
  .phead { flex-direction: column; align-items: flex-start; gap: 8px; }
  h1 { overflow-wrap: anywhere; }
  .grow { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px; }
  .grow-logo { grid-column: 1; grid-row: 1; justify-content: flex-start; min-height: 0; }
  .grow-side { grid-column: 2; grid-row: 1; }
  .grow-main { grid-column: 1 / -1; }
  .grow-prize b { font-size: 20px; }
  .ladder li { grid-template-columns: 44px 1fr; }
  .ladder li span:last-child { grid-column: 2; }
  .next-list li { grid-template-columns: 1fr auto; }
  .next-list li img, .next-list li .gmark { display: none; }
}

/* map key, results balls, misc */
.map-card { padding: 16px; }
.map-key { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.key.on { background: var(--navy); }
.key.no { background: #e6eaf1; margin-left: 10px; }
.balls.xs .ball { width: 30px; height: 30px; font-size: 13px; box-shadow: inset 0 -2px 4px rgba(10, 49, 97, 0.15); }
td .balls.xs { gap: 4px; }
.mult-tag { font-size: 12px; font-weight: 800; color: var(--navy); background: var(--soft); border-radius: 6px; padding: 2px 6px; margin-left: 4px; }
.state-count { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.state-count li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.state-count b { margin-left: auto; font: 800 22px/1 var(--display); color: var(--red); }
.state-pill { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; margin-right: 6px; }
.phead-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.phead-icon .i { width: 34px; height: 34px; }
.gmark.big { width: 64px; height: 64px; font-size: 22px; }
.vs-logos { display: flex; align-items: center; gap: 10px; }
.vs-logos b { font: 800 22px/1 var(--display); color: var(--red); text-transform: uppercase; }
h2.state-h { text-transform: none; }
h2.state-h a { text-decoration: none; color: var(--navy); }
table.compare td { min-width: 180px; }

/* scratch-offs */
.scratch-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.scard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 28px 16px 16px; border-radius: 16px; text-decoration: none; color: #fff; min-height: 150px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0, var(--navy-2) 60%, var(--red) 140%); box-shadow: var(--shadow); }
.scard::before { content: ""; position: absolute; inset: 0; background: var(--stars) 0 0 / 90px 90px; opacity: 0.08; }
.scard::after { content: ""; position: absolute; right: -13px; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--canvas); transform: translateY(-50%); }
.scard > * { position: relative; }
.scard:hover { color: #fff; transform: translateY(-2px); }
.scard-price { align-self: flex-start; background: var(--gold); color: var(--navy-deep); font: 800 18px/1 var(--display); padding: 4px 10px; border-radius: 8px; }
.scard-name { font: 800 22px/1.05 var(--display); text-transform: uppercase; margin-top: 6px; }
.scard-top { font: 800 30px/1 var(--display); color: var(--gold); }
.scard-left { font-size: 14px; color: #dfe7f3; margin-top: auto; }
.left { font-weight: 800; }
.left.yes { color: var(--win); }
.scard .left.yes { color: #7ff0b0; }
.left.none { color: var(--red); }
.ticket-mark { display: flex; align-items: center; justify-content: center; width: 96px; height: 64px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--red)); color: var(--gold); font: 800 28px/1 var(--display);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 10px, #000 11px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 10px, #000 11px) right / 51% 100% no-repeat; }

.hero-logo { flex: none; background: #fff; border-radius: 10px; padding: 5px 8px; display: inline-flex; align-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.show-sm { display: none; }
@media (max-width: 760px) { .show-sm { display: inline; } .top-in { flex-wrap: wrap; } .app-btn { order: 2; } }
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cat-grid a { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.cat-grid .gmark { grid-row: 1 / 3; }
.cat-grid b { color: var(--navy); font: 800 19px/1.1 var(--display); text-transform: uppercase; }
.cat-grid span:last-child { font-size: 13px; color: var(--muted); }
.cat-grid a:hover { border-color: var(--navy); }
.state-cards { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.state-cards a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.state-cards a:hover { border-color: var(--navy); }
.state-cards a > span { display: flex; flex-direction: column; }
.state-cards b { color: var(--navy); font-size: 17px; }
.home-hero h1 { margin-top: 22px; }
.pairs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 14px; }
.pairs li { display: flex; align-items: center; gap: 8px; }
.pairs .balls { display: inline-flex; gap: 4px; }
table.mini th, table.mini td { padding: 6px 4px; border: 0; background: transparent; font-size: 15px; }
table.mini tbody tr:nth-child(even), table.mini tbody tr:hover { background: transparent; }
.ball a { color: inherit; text-decoration: none; }
.card .chart { margin: 14px 0 6px; }
.foot-h2 { margin-top: 18px; }
.logo-plate { display: inline-flex; background: var(--navy); border-radius: 10px; padding: 4px 8px; }
.lot-name { display: inline-flex; align-items: center; gap: 8px; }
.state-cards .sc-text { flex: 1; min-width: 0; }
.state-cards .sc-logo { flex: none; margin-left: auto; display: flex; }
