:root {
  color-scheme: only light;
  --ink: #14231f;
  --muted: #5e6d67;
  --paper: #f7f6f0;
  --card: #fffdf7;
  --navy: #0e2b3d;
  --mint: #5de0b3;
  --mint-dark: #168664;
  --coral: #ff6b5f;
  --gold: #f6bf4b;
  --line: #dce2dd;
  --shadow: 0 20px 60px rgba(14, 43, 61, 0.11);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(93, 224, 179, 0.18), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: var(--mint-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: white; padding: .7rem 1rem; }
.site-header { background: rgba(14, 43, 61, .97); color: white; position: sticky; top: 0; z-index: 5; }
.header-inner, .container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }
.brand { color: white; text-decoration: none; display: flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: -.02em; }
.brand-logo { width: 72px; height: 48px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .18)); }
.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
.site-nav a { color: #dcebe7; text-decoration: none; padding: .5rem .65rem; border-radius: 999px; font-size: .91rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: white; background: rgba(255,255,255,.11); }
.lottery-menu { position: relative; }
.lottery-menu summary { list-style: none; cursor: pointer; color: #dcebe7; padding: .5rem .75rem; border-radius: 999px; font-size: .91rem; user-select: none; }
.lottery-menu summary::-webkit-details-marker { display: none; }
.lottery-menu summary::after { content: " ▾"; font-size: .72em; }
.lottery-menu summary:hover, .lottery-menu summary:focus-visible, .lottery-menu summary[aria-current="page"], .lottery-menu[open] summary { color: white; background: rgba(255,255,255,.11); }
.lottery-menu-items { display: none; position: absolute; top: calc(100% + .45rem); left: 0; min-width: 180px; padding: .45rem; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: var(--navy); box-shadow: var(--shadow); }
.lottery-menu[open] .lottery-menu-items { display: grid; }
.lottery-menu-items a { white-space: nowrap; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.3); background: transparent; color: white; border-radius: 10px; padding: .45rem .7rem; }

main { min-height: 65vh; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; padding-top: 1rem; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }
.hero { background: var(--navy); color: white; padding: clamp(3.5rem, 8vw, 7.5rem) 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.eyebrow { color: var(--mint-dark); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800; margin: 0 0 .65rem; }
.hero .eyebrow { color: var(--mint); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); max-width: 13ch; margin: 0 0 1.2rem; }
h2 { font-size: clamp(1.8rem, 4vw, 3.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #cbdad5; max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; border: 0; border-radius: 999px; padding: .7rem 1.15rem; font-weight: 750; cursor: pointer; text-decoration: none; background: var(--mint); color: var(--navy); }
.button:hover { background: white; color: var(--navy); }
.button.secondary { background: transparent; color: inherit; border: 1px solid currentColor; }
.button.danger { background: var(--coral); color: #30110e; }
.hero-card, .card { background: var(--card); color: var(--ink); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card { padding: clamp(1.4rem, 4vw, 2.2rem); transform: rotate(1deg); }
.card { padding: clamp(1.2rem, 3vw, 2rem); }
.label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.draw-date { font-weight: 800; margin: .3rem 0 1rem; }
.balls { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.ball { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%; background: #eef1ed; border: 1px solid #d4dbd6; font-weight: 850; box-shadow: inset -5px -7px 0 rgba(14,43,61,.06); }
.ball.bonus { background: var(--coral); color: white; border-color: #e4564a; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; padding: .32rem .65rem; background: #e6f8f1; color: #14634c; border-radius: 999px; }
.status::before { content: ""; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.status.conflict { background: #ffe9e5; color: #9c2e25; }
.source-note { color: var(--muted); font-size: .82rem; margin-top: 1rem; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.alt { background: #edf1ed; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-head p { max-width: 55ch; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.metric { font-size: 2.2rem; font-weight: 850; letter-spacing: -.05em; margin: .4rem 0; }
.muted, .fine-print { color: var(--muted); }
.fine-print { font-size: .84rem; }
.notice { padding: 1rem 1.15rem; border-radius: 14px; background: #fff5d8; border-left: 4px solid var(--gold); }
.notice.danger { background: #ffe9e5; border-color: var(--coral); }

.regional-hero.uk { background: linear-gradient(135deg, rgba(93,224,179,.13), transparent 55%); }
.regional-hero.us { background: linear-gradient(135deg, rgba(255,107,95,.11), transparent 55%); }
.regional-grid { display: grid; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); gap: clamp(1.5rem,5vw,4rem); align-items: start; }
.live-result-card { position: sticky; top: 94px; }
.regional-copy h2 { max-width: 18ch; }
.schedule-panel { padding: clamp(1.5rem,4vw,2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.schedule-countdown { margin: .25rem 0 1.5rem; font-size: clamp(2rem,5vw,4rem); font-weight: 850; letter-spacing: -.05em; line-height: 1; }
.schedule-times { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.schedule-times div { padding: 1rem; border-radius: 14px; background: #eef4f0; }
.schedule-times span, .schedule-times strong { display: block; }
.schedule-times span { color: var(--muted); font-size: .78rem; }
.code-sample { overflow-x: auto; padding: 1rem; border-radius: 12px; background: #0e2b3d; color: #e6f8f1; font-size: .8rem; }
.resource-list { display: grid; gap: 1rem; padding: 0; list-style: none; }
.resource-list li { display: grid; }
.resource-list a { font-weight: 800; }
.resource-list span { color: var(--muted); font-size: .9rem; }

.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 3rem; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.page-hero .lede { color: var(--muted); }
.results-list { display: grid; gap: .8rem; }
.result-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--card); border-radius: 16px; }
.result-row .balls { margin: 0; }
.result-row .ball { width: 38px; height: 38px; font-size: .9rem; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; background: var(--card); }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.number-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .55rem; }
.number-stat { border: 1px solid var(--line); border-radius: 13px; padding: .7rem; background: var(--card); text-align: center; }
.number-stat strong { display: block; font-size: 1.2rem; }

.statistics-hero { padding-bottom: 2.4rem; }
.statistics-hero h1 { max-width: 15ch; }
.statistics-hero .notice { max-width: 70rem; margin-top: 1.5rem; }
.statistics-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 247, .72);
  color: var(--muted);
}
.statistics-context strong { color: var(--ink); font-size: 1.25rem; }
.stat-line-grid { display: grid; gap: 1rem; }
.stat-line-card {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(480px, 1.2fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.stat-line-card h2 { margin-bottom: .65rem; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.stat-line-card p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.stat-line-card > * { min-width: 0; }
.stat-line-output { min-width: 0; }
.stat-ball-row { display: flex; justify-content: flex-end; align-items: flex-start; gap: clamp(.45rem, 1.4vw, .9rem); }
.stat-ball-unit { display: grid; justify-items: center; gap: .55rem; min-width: 58px; color: var(--muted); font-size: .72rem; line-height: 1.2; text-align: center; }
.stat-ball-details { display: grid; justify-items: center; gap: .2rem; }
.stat-ball-date { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-ball {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1c2830, #050708 72%);
  color: white;
  border: 2px solid #050708;
  box-shadow: inset -8px -10px 14px rgba(0,0,0,.3), 0 7px 14px rgba(14,43,61,.16);
  font-size: 1.15rem;
  font-weight: 850;
}
.powerball-unit { margin-left: .4rem; }
.stat-ball.powerball {
  position: relative;
  background: linear-gradient(145deg, #d33542, #7b0013 72%);
  border-color: #720012;
}
.stat-ball.powerball::after {
  content: "PB";
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: #2f3a9e;
  color: white;
  font-size: .48rem;
  letter-spacing: .02em;
}
.statistics-footnote { margin: 1.25rem 0 0; text-align: center; }

.statistics-deep-dive { margin-top: clamp(3.5rem, 7vw, 6rem); }
.section-head.compact { align-items: end; margin-bottom: 1.25rem; }
.section-head.compact h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.25rem); }
.analysis-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.analysis-grid.three { grid-template-columns: repeat(3, 1fr); }
.analysis-grid.two { grid-template-columns: repeat(2, 1fr); }
.analysis-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 36px rgba(14, 43, 61, .07);
}
.analysis-card.wide { margin-bottom: 1rem; }
.analysis-card h3 { margin: 0 0 .55rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.analysis-card h4 { margin: 0 0 .75rem; font-size: 1.05rem; }
.analysis-card > p:not(.eyebrow) { color: var(--muted); margin-top: 0; }
.analysis-output { margin-top: 1.25rem; }
.bar-list { display: grid; gap: .75rem; }
.bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; }
.bar-label strong { color: var(--ink); }
.bar-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e6ebe7; }
.bar-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint-dark), var(--mint)); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.metric-box { padding: .8rem; border-radius: 14px; background: #eef4f0; }
.metric-box span { display: block; color: var(--muted); font-size: .76rem; }
.metric-box strong { display: block; font-size: 1.45rem; line-height: 1.2; }
.headline-metric { margin: .25rem 0 1rem; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 850; letter-spacing: -.05em; line-height: 1; }
.headline-metric small { font-size: .9rem; font-weight: 650; letter-spacing: 0; color: var(--muted); }
.pair-list { display: flex; flex-wrap: wrap; gap: .65rem; }
.pair-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: #f4f6f2; }
.pair-chip .mini-ball + .mini-ball { margin-left: -.2rem; }
.mini-ball { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: white; font-size: .78rem; font-weight: 850; }
.mini-ball.powerball { background: #990b20; }
.pair-chip strong { margin-left: .2rem; font-size: .82rem; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.25rem; }
.comparison-grid .table-wrap { box-shadow: none; }
.comparison-grid table { font-size: .84rem; }
.comparison-grid th, .comparison-grid td { padding: .65rem .7rem; white-space: nowrap; }
.delta { font-weight: 800; }
.delta.positive { color: #087a56; }
.delta.negative { color: #b23a31; }
.ball-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: .65rem; margin-top: 1.25rem; }
.ball-stat-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .65rem; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; background: #f8f8f4; }
.ball-stat-card p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.ball-stat-card strong { color: var(--ink); }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #b9c5bf; border-radius: 12px; padding: .72rem .8rem; background: white; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(93,224,179,.3); border-color: var(--mint-dark); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feedback { min-height: 1.5em; font-weight: 700; }

.checker-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.checker-form { min-width: 0; }
.checker-guidance { display: grid; gap: 1rem; }
.checker-guidance .card h2 { font-size: 1.55rem; }
.number-entry-row { grid-template-columns: minmax(0, 1fr) minmax(150px, .35fr); }
.ticket-option { display: grid; gap: .3rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #eef4f0; }
.ticket-option label { display: flex; gap: .65rem; align-items: start; font-weight: 750; }
.ticket-option input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--mint-dark); }
.cf-turnstile { min-height: 65px; }
.checker-output { padding-top: 2rem; }
.checker-result { max-width: 760px; margin-inline: auto; }
.checker-result h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.button:disabled { opacity: .62; cursor: not-allowed; }
.button.is-loading { cursor: wait; }

.site-footer { background: var(--navy); color: #d8e4e0; padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.footer-grid h3 { color: white; }
.footer-grid a { color: #b6e8d6; }
.footer-links { display: grid; gap: .4rem; }
.footer-compliance { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .86rem; }
.footer-compliance p { max-width: 80ch; margin: .35rem 0; }
.footer-policy-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-bottom: .8rem; }
.footer-policy-links a { color: #b6e8d6; }
.responsible-strip { display: flex; align-items: center; gap: .85rem; max-width: 900px; margin: 1rem 0; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: rgba(255,255,255,.07); }
.responsible-strip p { margin: 0; }
.responsible-strip a { color: #b6e8d6; font-weight: 750; }
.age-badge { display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 3.2rem; min-height: 3.2rem; padding: .35rem; border: 3px solid #fff; border-radius: 50%; color: #fff; font-size: 1.05rem; font-weight: 900; line-height: 1; text-align: center; }
.age-badge.legal-age { width: 5.2rem; min-height: 3.2rem; border-radius: 999px; font-size: .72rem; line-height: 1.05; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 66px; padding: .8rem; background: var(--navy); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .lottery-menu-items { position: static; min-width: 0; margin: .25rem 0 .4rem .5rem; border: 0; border-left: 1px solid rgba(255,255,255,.2); border-radius: 0; box-shadow: none; }
}

@media (min-width: 821px) {
  .stat-line-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    margin-bottom: 1rem;
  }
  .stat-line-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    align-items: start;
    gap: .75rem;
    padding: clamp(1.35rem, 2vw, 1.75rem);
    background: linear-gradient(180deg, rgba(93, 224, 179, .09), transparent 7rem), var(--card);
  }
  .stat-line-card .eyebrow { margin-bottom: 0; }
  .stat-line-card h2 {
    margin-bottom: .25rem;
    font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  }
  .stat-line-card > div {
    align-self: end;
    width: 100%;
  }
  .stat-line-card .game-stat-line,
  .stat-line-card .stat-ball-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: initial;
    justify-items: center;
    align-items: start;
    gap: 1rem .35rem;
    width: 100%;
    margin-top: .5rem;
  }
  .stat-line-card .game-stat-ball-unit,
  .stat-line-card .stat-ball-unit {
    width: 100%;
    min-width: 0;
  }
  .stat-line-card .game-stat-ball-unit small { max-width: 100%; }
  .stat-line-card .stat-ball-date { white-space: normal; }
  .stat-line-card .powerball-unit { margin-left: 0; }
  .stat-line-card .game-stat-ball-unit:nth-child(7):last-child,
  .stat-line-card .stat-ball-unit:nth-child(7):last-child { grid-column: 2; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .header-inner { min-height: 64px; }
  .site-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 58px; padding: .8rem; background: var(--navy); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .hero-grid, .grid, .grid.two, .footer-grid, .analysis-grid.three, .analysis-grid.two, .comparison-grid, .regional-grid, .schedule-times, .checker-grid { grid-template-columns: 1fr; }
  .live-result-card { position: static; }
  .result-row { grid-template-columns: 1fr; }
  .result-row .status { justify-self: start; }
  .stat-line-card { grid-template-columns: 1fr; }
  .stat-ball-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    width: 100%;
    gap: 1rem .45rem;
    overflow: visible;
    padding: .5rem 0 0;
  }
  .powerball-unit { margin-left: 0; }
}

@media (max-width: 520px) {
  .header-inner { min-height: 58px; gap: .65rem; }
  .brand { gap: .4rem; font-size: .95rem; }
  .brand-logo { width: 44px; height: 34px; }
  .nav-toggle { min-height: 44px; padding: .3rem .65rem; font-size: .9rem; }
  .site-nav { top: 54px; left: .75rem; right: .75rem; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2.75rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .ball { width: 42px; height: 42px; }
  .section-head { display: block; }
  .stat-line-card { padding: 1.1rem; }
  .stat-line-card h2 { font-size: 1.6rem; }
  .stat-line-card p:not(.eyebrow) { font-size: .95rem; }
  .stat-ball { width: 44px; height: 44px; font-size: .95rem; }
  .stat-ball-unit { min-width: 46px; font-size: .65rem; }
  .stat-ball.powerball::after { width: 19px; height: 19px; top: -7px; right: -7px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.consent-banner {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  width: min(31rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgb(15 23 42 / 18%);
}

.consent-banner p { margin: 0; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .9rem; }

/* Lottery portal and game pages */
.portal-hero { padding: clamp(3.75rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 7.5rem); text-align: center; background: radial-gradient(circle at 50% 115%, rgba(93, 224, 179, .25), transparent 36rem), var(--navy); }
.portal-hero .container { display: grid; justify-items: center; }
.portal-hero h1 { max-width: 16ch; font-size: clamp(2.65rem, 6vw, 5.2rem); }
.portal-hero .lede { max-width: 56ch; margin: 0; }
.lottery-selector { margin-top: clamp(-4.25rem, -6vw, -3rem); padding-top: 0; position: relative; z-index: 1; }
.lottery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 1050px; margin-inline: auto; }
.lottery-card { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 300px; padding: 1.65rem; border-color: var(--line); }
.lottery-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: .4rem; background: var(--mint); }
.lottery-card.mega::before { background: var(--gold); }
.lottery-card.millionaire::before { background: #2d9b6e; }
.lottery-card.euro::before { background: #3157b7; }
.lottery-card.lotto::before { background: #df1f2d; }
.lottery-card.thunderball::before { background: #8c24b7; }
.lottery-card.set-for-life::before { background: #15865d; }
.lottery-card-main { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.25rem; align-items: center; color: var(--ink); text-decoration: none; }
.lottery-card-main:hover { color: var(--ink); }
.lottery-card-main > span:last-child { display: grid; gap: .45rem; }
.lottery-card-main .eyebrow { margin: 0; }
.lottery-card-main strong { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.05; letter-spacing: -.035em; }
.lottery-card-main > span:last-child > span:last-child { color: var(--muted); }
.lottery-icon { position: relative; display: grid; place-items: center; width: 96px; aspect-ratio: 1; border-radius: 50%; color: white; font-size: 1.45rem; font-weight: 900; letter-spacing: -.05em; border: 4px solid rgba(255,255,255,.9); box-shadow: inset -10px -12px 18px rgba(0,0,0,.2), 0 12px 24px rgba(14,43,61,.16); }
.lottery-icon::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.45); border-radius: inherit; }
.powerball-icon { background: linear-gradient(145deg, #e44e59, #9b1023 75%); }
.mega-icon { background: linear-gradient(145deg, #f6c84f, #da711c 75%); color: #17251f; }
.mega-icon::after { border-color: rgba(23,37,31,.22); }
.millionaire-icon { background: linear-gradient(145deg, #4bc38b, #126447 75%); }
.euro-icon { background: linear-gradient(145deg, #5577dc, #1d368b 75%); }
.lotto-icon { background: linear-gradient(145deg, #f14a55, #9e0e1c 75%); }
.thunderball-icon { background: linear-gradient(145deg, #c05ee7, #68128c 75%); }
.set-for-life-icon { background: linear-gradient(145deg, #48bf8c, #0e5d40 75%); }
.lottery-route-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1.55rem; }
.lottery-route-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .55rem .9rem; border: 1px solid #b9c5bf; border-radius: 999px; color: var(--ink); font-weight: 750; text-decoration: none; }
.lottery-route-links a:first-child { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.lottery-route-links a:hover { border-color: var(--mint-dark); background: #eef8f4; }
.portal-trust { padding-top: clamp(3.5rem, 7vw, 5rem); }
.game-hero { background: linear-gradient(145deg, #0e2b3d 0%, #153f50 60%, #126954 100%); }
.game-result-row { grid-template-columns: minmax(150px, .8fr) minmax(330px, 1.7fr) auto; }
.game-balls.compact .ball { width: 42px; height: 42px; }
.ball.bonus.star, .mini-ball.star { background: #f6bf4b; color: #14231f; border-color: #d09a20; }
.game-stat-line { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.game-stat-ball-unit { display: grid; justify-items: center; gap: .35rem; min-width: 92px; }
.game-stat-ball-unit small { max-width: 132px; color: var(--muted); font-size: .72rem; line-height: 1.35; text-align: center; }
.bonus-parity { margin: .8rem 0 0; color: var(--muted); }
.results-workbench { padding-top: 1rem; }
.results-tools { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(150px, .45fr) minmax(220px, .65fr); gap: 1rem 1.5rem; align-items: end; margin-bottom: 1rem; }
.results-tools h2 { margin-bottom: 0; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.results-tools label { display: grid; gap: .4rem; font-weight: 750; }
.results-tools select { width: 100%; border: 1px solid #b9c5bf; border-radius: 12px; padding: .7rem .8rem; background: white; color: var(--ink); }
.results-tools .tool-toggle { display: flex; align-items: center; gap: .65rem; min-height: 46px; }
.results-tools .tool-toggle input { width: 1.15rem; height: 1.15rem; accent-color: var(--mint-dark); }
.results-tools #results-tool-summary { grid-column: 1 / -1; margin: 0; }
.results-analysis { margin-bottom: 1rem; }
.results-analysis h2 { max-width: 24ch; }
.results-analysis p { max-width: 86ch; }
.result-archive-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .55rem 1rem; }
.result-archive-links a { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.ball.is-repeat { outline: 4px solid var(--gold); outline-offset: 2px; }
.number-frequency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: .55rem; margin-top: 1rem; }
.number-frequency-grid > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: .5rem; padding: .55rem; border: 1px solid var(--border); border-radius: .8rem; background: #fff; }
.number-frequency-grid .mini-ball { grid-row: 1 / 3; }
.number-frequency-grid strong { font-size: 1.05rem; }
.number-frequency-grid small { color: var(--muted); }
.checker-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1.5rem; align-items: start; }
.checker-form { display: grid; gap: 1.15rem; }
.checker-form > label, .checker-form .form-row label { display: grid; gap: .45rem; min-width: 0; font-weight: 750; }
.checker-form > label input, .checker-form .form-row select { width: 100%; min-width: 0; border: 1px solid #b9c5bf; border-radius: 12px; padding: .72rem .8rem; background: white; color: var(--ink); }
.checker-form > label input:focus, .checker-form .form-row select:focus { outline: 3px solid rgba(93,224,179,.3); border-color: var(--mint-dark); }
.checker-form .button { justify-self: start; }

@media (max-width: 760px) {
  .lottery-grid, .checker-layout { grid-template-columns: 1fr; }
  .results-tools { grid-template-columns: 1fr; align-items: stretch; }
  .results-tools #results-tool-summary { grid-column: auto; }
  .lottery-card { min-height: 0; }
  .lottery-card-main { grid-template-columns: 76px minmax(0, 1fr); gap: 1rem; }
  .lottery-icon { width: 76px; font-size: 1.15rem; }
  .game-result-row { grid-template-columns: 1fr; align-items: start; gap: .8rem; }
  .game-result-row .status { justify-self: start; }
  .game-balls { gap: .35rem; }
  .game-balls .ball, .game-balls.compact .ball { width: 39px; height: 39px; font-size: .9rem; }
  .number-frequency-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .portal-hero { padding-top: 3.25rem; }
  .lottery-card { padding: 1.2rem; }
  .lottery-card-main { grid-template-columns: 64px minmax(0, 1fr); }
  .lottery-icon { width: 64px; font-size: 1rem; }
  .lottery-route-links a { flex: 1 1 auto; font-size: .88rem; }
  .game-balls .ball, .game-balls.compact .ball { width: 34px; height: 34px; font-size: .82rem; }
  .number-frequency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
