/* MegaPari network kit — "dossier" look: warm paper ground, slab-serif display,
   flat ruled blocks, square rank numerals. Deliberately unlike the Dexsport kit
   (no soft shadows, no rounded cards, no pill tags), because two networks must
   not share a design vocabulary. Logical properties throughout so Arabic sites
   mirror correctly with dir="rtl". */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink:        #171511;
  --ink-soft:   #4b453c;
  --ink-faint:  #7d7467;
  --rule:       #ddd4c6;
  --rule-soft:  #ebe3d7;
  --card:       #fffdf9;
  --ok:         #1f6b45;
  --ok-bg:      #e6f1e9;
  --no:         #9a2a23;
  --no-bg:      #f6e7e5;
  --warn:       #8a6412;
  --warn-bg:    #f6eedb;
  --gap:        clamp(28px, 5vw, 56px);
  --zebra:      #faf6ef;
  --band-ink:   #f2ece1;
  --band-line:  #3a342c;
  --band-sub:   #b7ae9f;
  --band-faint: #9d9487;
  --meta-ink:   #f4efe6;
  --meta-line:  #4a443b;
  --meta-border:#6a6257;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper, #f7f3ec);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, .brand-name, .stat-big, .numeral, .rank, .card-num, .ax-n {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; margin: 0 0 14px; }
h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 17px; line-height: 1.3; margin: 0 0 7px; }
p  { margin: 0 0 22px; }
a  { color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.wrap-wide { max-width: calc(var(--maxw) + 140px); }
.section { padding-block: var(--gap); }
.section[id], .hero[id] { scroll-margin-block-start: 74px; }
.band { padding-block: clamp(28px, 3.4vw, 36px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* A visually-hidden span inside a table cell is positioned against the initial
   containing block unless the cell establishes one — it then sits at the table's
   full scrolled width and drags the whole PAGE sideways on a phone, while the
   table itself scrolls correctly. Making cells relative keeps it clipped. */
.cmp th, .cmp td { position: relative; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 12px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }

/* ---------------------------------------------------------------- header -- */
.stick-sentinel { height: 1px; margin-block-end: -1px; }
/* While stuck the header leaves the flow and a spacer of the SAME height takes
   its place, so the document never changes height. Collapsing a sticky header
   in flow shortens the page by its own shrinkage, the browser clamps the scroll
   back to the top, the header expands again — and it flickers on one wheel notch. */
.masthead { background: var(--card); border-block-end: 2px solid var(--ink); position: sticky; top: 0; z-index: 40; }
.stick-spacer { height: 0; }
.is-stuck .masthead { position: fixed; inset-inline: 0; top: 0; }
.is-stuck .stick-spacer { height: var(--mast-h, 174px); }
/* Collapsed state: the meta strip and the tagline go, the two tiers become one.
   Driven by a class on <body> from kit.js, not by scroll-linked CSS, so the
   header cannot flicker between states at the switching point. */
.is-stuck .meta-bar { display: none; }
.is-stuck .brand-name small { display: none; }
.is-stuck .brand-mark { width: 32px; height: 32px; font-size: 14px; }
.is-stuck .brand-name { font-size: 17px; }
.is-stuck .head-row { padding-block: 8px; align-items: center; }
.is-stuck.hdr-stacked .nav { flex-basis: auto; border-block-start: 0; padding-block-start: 0; }
.is-stuck .nav a { font-size: 13.5px; }
.meta-bar { background: var(--ink); color: var(--meta-ink); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.meta-row { display: flex; align-items: center; gap: 8px 10px; min-height: 32px; flex-wrap: wrap; padding-block: 7px; }
.meta-sep { flex: 1 1 auto; height: 1px; background: var(--meta-line); min-width: 10px; }
.meta-age { border: 1px solid var(--meta-border); padding: 1px 7px; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--accent); color: #fff; font-family: var(--f-display);
  font-weight: 700; font-size: 17px; letter-spacing: .02em;
}
.brand-name { display: flex; flex-direction: column; font-size: 20px; line-height: 1.1; }
.brand-name small { font-family: var(--f-text); font-weight: 400; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); margin-block-start: 3px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .02em; padding-block: 4px; border-block-end: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-block-end-color: var(--accent); }
.hdr-stacked .head-row { align-items: flex-end; }
.hdr-stacked .nav { flex-basis: 100%; border-block-start: 1px solid var(--rule-soft); padding-block-start: 10px; }
.burger { display: none; background: none; border: 1px solid var(--rule); padding: 9px 10px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); }
.burger span + span { margin-block-start: 4px; }
.drawer { display: none; flex-direction: column; border-block-start: 1px solid var(--rule); }
.drawer[data-open="true"] { display: flex; }
.drawer a { padding: 13px 20px; text-decoration: none; color: var(--ink); border-block-end: 1px solid var(--rule-soft); font-weight: 500; }

/* ------------------------------------------------------------------ hero -- */
.hero { padding-block: clamp(30px, 5vw, 58px) clamp(34px, 4.5vw, 48px); border-block-end: 1px solid var(--rule); background: var(--card); }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin: 0 0 10px; }
.lead { font-size: clamp(16px, 1.8vw, 18.5px); color: var(--ink-soft); max-width: 68ch; margin-block-end: 24px; }
.byline { font-size: 13px; color: var(--ink-faint); margin: 0; }
.byline b { color: var(--ink-soft); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 18px 6px; }
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 20px 0 18px; border: 1px solid var(--rule); background: var(--paper); }
.ledger > div { padding: 12px 14px; border-inline-end: 1px solid var(--rule); }
.ledger > div:last-child { border-inline-end: 0; }
.ledger dt { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 4px; }
.ledger dd { margin: 0; font-weight: 600; font-size: 15px; }
.hero-two { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pick { border: 2px solid var(--ink); background: var(--paper); padding: 16px 18px; }
.pick-flag { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--accent); display: inline-block; padding: 3px 9px; margin: 0 0 10px; }
.pick-name { font-family: var(--f-display); font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.pick-facts { list-style: none; margin: 0 0 14px; padding: 0; }
.pick-facts li { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-block-end: 1px dotted var(--rule); font-size: 14px; }
.pick-facts span { color: var(--ink-faint); }
.pick-facts b { text-align: end; }
.pick-note { font-size: 12.5px; color: var(--ink-faint); margin: 14px 0 0; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 11px 20px; border: 2px solid var(--accent);
  border-radius: var(--radius-sm); cursor: pointer; font-family: var(--f-text);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-sm { font-size: 13.5px; padding: 7px 14px; }
.btn-lg { font-size: 16px; padding: 14px 26px; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ----------------------------------------------------------------- stats -- */
.stats { background: var(--ink); color: var(--band-ink); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--band-line); border: 1px solid var(--band-line); }
.stat { background: var(--ink); padding: 14px 16px; }
.stat-big { display: block; font-size: 30px; line-height: 1.05; color: #fff; }
.stat-big i { font-style: normal; font-size: 17px; color: var(--band-faint); }
.stat-small { display: block; font-size: 13px; color: var(--band-sub); margin-block-start: 4px; }
.stats-plaques .stat-row { grid-gap: 10px; background: none; border: 0; }
.stats-plaques .stat { border: 1px solid var(--band-line); }
/* Wrapped inline stats had no row gap: on a phone the figures touched. */
.stats-inline .stat-row { display: flex; flex-wrap: wrap; background: none; border: 0; gap: 22px 32px; }
.stats-inline .stat { padding-inline: 0; }
.stats-inline .stat-big { font-size: 24px; }

/* ----------------------------------------------------------------- table -- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-block-end: 24px; }
.sec-note, .pin-note { font-size: 13.5px; color: var(--ink-faint); margin: 0; max-width: 62ch; }
.pin-note { border-inline-start: 3px solid var(--accent); padding-inline-start: 12px; margin-block: 0 24px; }
.sec-h2 { margin-block-end: 18px; }
.table-scroll { border: 1px solid var(--rule); background: var(--card); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.cmp thead th {
  text-align: start; font-family: var(--f-text); font-weight: 600; font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint);
  padding: 11px 12px; border-block-end: 2px solid var(--ink); vertical-align: bottom;
  /* nowrap printed long headings over the next column — the boxes never
     overlapped, only the text did. */
  white-space: normal;
}
.cmp thead th span { display: block; font-weight: 400; letter-spacing: .02em; text-transform: none; font-size: 11px; color: var(--ink-faint); margin-block-start: 2px; }
.cmp td { padding: 13px 12px; border-block-end: 1px solid var(--rule-soft); vertical-align: middle; }
.cmp tbody tr:last-child td { border-block-end: 0; }
.tbl-zebra .cmp tbody tr:nth-child(even) td { background: var(--zebra); }
.tbl-boxed .cmp td { border-inline-end: 1px solid var(--rule-soft); }
.tbl-boxed .cmp td:last-child { border-inline-end: 0; }
.cmp tr.is-top td { background: var(--accent-soft); }
.cmp tr.is-top td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
[dir="rtl"] .cmp tr.is-top td:first-child { box-shadow: inset -3px 0 0 var(--accent); }
.c-num { width: 46px; }
.c-brand { min-width: 210px; }
.rank { display: grid; place-items: center; width: 28px; height: 28px; background: var(--ink); color: var(--paper); font-size: 14px; }
.rank-bracket .rank { background: none; color: var(--ink); border: 1px solid var(--rule); }
.rank-plain .rank { background: none; color: var(--ink-faint); width: auto; height: auto; }
.tb { display: flex; align-items: center; gap: 11px; }
.tb img { width: 36px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.tb-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--rule-soft); color: var(--ink-soft); font-family: var(--f-display); font-weight: 700; flex: 0 0 auto; }
.tb-name { font-weight: 600; font-size: 15px; display: block; }
.tb-note, .cell-note { display: block; font-size: 11.5px; color: var(--ink-faint); line-height: 1.4; margin-block-start: 2px; }
.tag { display: inline-block; white-space: nowrap; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); border: 1px solid var(--accent); padding: 0 6px; margin-block-start: 3px; }
.c-score b { font-size: 16px; }
.dots { display: inline-flex; gap: 3px; margin-inline-start: 7px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; background: var(--rule); display: block; }
.dots i.on { background: var(--accent); }
.meter { display: block; height: 4px; background: var(--rule-soft); margin-block-start: 5px; max-width: 86px; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.flag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border: 1px solid; }
.f-accepted { color: var(--ok); background: var(--ok-bg); border-color: #bcd9c7; }
.f-open     { color: var(--ok); background: var(--ok-bg); border-color: #bcd9c7; }
.f-restricted, .f-blocked { color: var(--no); background: var(--no-bg); border-color: #e3c3bf; }
.f-silent, .f-regional, .f-opaque { color: var(--warn); background: var(--warn-bg); border-color: #e2d2a9; }
.f-unknown { color: var(--ink-faint); background: transparent; border: 0; padding: 0; }
.c-cta { text-align: end; white-space: nowrap; }
.cmp[data-collapsed="true"] .row-extra { display: none; }
.show-all-wrap { margin-block-start: 28px; text-align: center; }
.table-foot { font-size: 12.5px; color: var(--ink-faint); margin-block-start: 24px; }

/* ----------------------------------------------------------------- cards -- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--rule); padding: 18px; min-width: 0; }
.cards-ruled .card { border: 0; border-block-start: 3px solid var(--accent); background: none; padding-inline: 0; }
.cards-plain .card { border: 0; background: none; padding: 0; }
.card-num { display: block; font-size: 12px; color: var(--ink-faint); letter-spacing: .1em; margin-block-end: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.prose-wrap { max-width: 74ch; margin-inline: auto; }
.prose h2 { margin-block-start: 26px; }
.prose p { color: var(--ink-soft); }
.prose ul { color: var(--ink-soft); padding-inline-start: 20px; }
.callout { border: 1px solid var(--rule); border-inline-start: 4px solid var(--accent); background: var(--card); padding: 20px 22px; max-width: 74ch; margin-inline: auto; }
.callout p { color: var(--ink-soft); }
.src { font-size: 12.5px; color: var(--ink-faint); margin-block-start: 24px; }

/* Six criteria: three columns make two even rows. auto-fit gave four and left
   a ragged 4+2. */
.axes { list-style: none; margin: 22px 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 28px; }
@media (max-width: 900px) { .axes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .axes { grid-template-columns: 1fr; } }
.axes li { display: flex; gap: 12px; min-width: 0; }
.ax-n { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--ink); font-size: 13px; }
.axes p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.faq details { border-block-end: 1px solid var(--rule); padding-block: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: inline-end; color: var(--accent-ink); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 2px; color: var(--ink-soft); }

.promo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between;
  border: 2px solid var(--ink); background: var(--accent-soft); padding: 18px 20px; text-decoration: none; color: inherit; }
.promo-flag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 3px 9px; }
.promo-body { display: block; min-width: 0; flex: 1 1 320px; }
.promo-title { display: block; font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.promo-text { display: block; font-size: 14px; color: var(--ink-soft); }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--ink); color: #f3ede3; padding: clamp(20px, 3vw, 32px); }
.cta-band h2 { color: #fff; margin-block-end: 6px; }
.cta-band p { margin: 0; color: #b9b0a2; max-width: 60ch; }

/* ---------------------------------------------------------------- footer -- */
.site-footer { background: var(--card); border-block-start: 2px solid var(--ink); padding-block: var(--gap) 26px; margin-block-start: var(--gap); }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block-end: 18px; border-block-end: 1px solid var(--rule); }
.foot-brand { display: flex; gap: 14px; max-width: 46ch; }
.foot-about { margin: 0; font-size: 14px; color: var(--ink-soft); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.foot-links a { color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.foot-links a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-note { font-size: 12.5px; color: var(--ink-faint); margin-block: 16px 8px; }
.age-badge { display: inline-block; border: 1px solid var(--ink-faint); padding: 0 6px; margin-inline-end: 7px; font-weight: 600; }
.foot-copy { font-size: 12.5px; color: var(--ink-faint); margin: 0; }

/* -------------------------------------------------------------- density -- */
.d-compact { --gap: clamp(22px, 3.6vw, 40px); font-size: 15.5px; }
.d-compact .cmp td { padding: 10px 11px; }
.d-spacious { --gap: clamp(36px, 6.5vw, 76px); }
.d-spacious .cmp td { padding: 16px 14px; }

@media (max-width: 860px) {
  .hero-two { grid-template-columns: 1fr; }
  .nav { display: none; }
  .burger { display: block; }
  .hdr-stacked .head-row { align-items: center; }
}
@media (max-width: 560px) {
  .brand-mark { width: 36px; height: 36px; font-size: 15px; }
  .brand-name { font-size: 17px; }
  .cta-band, .promo { flex-direction: column; align-items: flex-start; }
  .foot-grid { flex-direction: column; }
  .stat-big { font-size: 26px; }
}


/* ------------------------------------------------- table without a scrollbar --
   Wide screens: fixed layout with proportional columns, so long values wrap
   instead of pushing the table past the viewport.
   Narrow screens: one card per bookmaker, each cell labelled by its column. */
.cmp .c-num   { width: 44px; }
.cmp .c-brand { width: 17%; min-width: 0; }
.cmp .c-cta   { width: 132px; }
.cmp td.c-cta { padding-inline-end: 16px; }
.cmp .col-score   { width: 8%; }
.cmp .col-materms { width: 15%; }
.cmp .col-mareach { width: 15%; }
.cmp .col-lic     { width: 11%; }
.cmp .col-wd      { width: 11%; }
.cmp .col-min     { width: 8%; }
.cmp .col-live    { width: 6%; }
.cmp td, .cmp th { overflow-wrap: break-word; }

@media (max-width: 1023px) {
  .cmp, .cmp thead, .cmp tbody, .cmp tr, .cmp td { display: block; width: auto; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-scroll { border: 0; background: none; }
  .cmp tbody tr {
    position: relative; background: var(--card); border: 1px solid var(--rule);
    padding: 14px 16px; margin-block-end: 14px;
  }
  .cmp tbody tr.is-top { border: 2px solid var(--accent); background: var(--accent-soft); }
  .cmp tbody tr.is-top td:first-child { box-shadow: none; }
  .cmp td { border-block-end: 0; padding: 7px 0; display: flex; gap: 14px; justify-content: space-between; align-items: baseline; }
  .cmp td[data-label]::before {
    content: attr(data-label); flex: 0 0 44%; color: var(--ink-faint);
    font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5;
  }
  .cmp td.c-num { position: absolute; inset-inline-end: 14px; top: 12px; inset-inline-start: auto; padding: 0; display: block; }
  /* In the corner the filled square read as a stray mark; a plain numeral is
     what a card needs there. */
  .cmp td.c-num .rank {
    background: none; border: 0; box-shadow: none; width: auto; height: auto;
    color: var(--ink-faint); font-size: 13px; letter-spacing: .04em;
  }
  .cmp td.c-brand { padding-block: 0 10px; padding-inline-end: 42px; border-block-end: 1px solid var(--rule-soft); margin-block-end: 6px; display: block; }
  .cmp td.c-brand .tb { align-items: center; }
  .cmp td.c-brand .tb-note { text-align: start; }
  .cmp td.c-brand .tb-name { font-size: 17px; }
  .cmp td.c-cta { display: block; text-align: start; padding-block-start: 12px; }
  .cmp td.c-cta .btn { width: 100%; }
  .cmp td.c-score { align-items: center; }
  .cell-note, .tb-note { text-align: end; }
  [dir="rtl"] .cell-note, [dir="rtl"] .tb-note { text-align: start; }
  .meter { margin-inline-start: auto; }
}


/* ------------------------------------------------- keno-site building blocks --
   Used by the sites whose subject is the draw game, not the sportsbook: a hero
   that shows an actual 10/20/80 board, a centrepiece card for the state
   operator (no affiliate link on it), and numbered steps. */
@media (min-width: 861px) { .hero-panel .hero-two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
/* The buttons wrap at phone width and the 6px default left the byline 10px
   under them; measured, not eyeballed. */
.hero-panel .hero-cta, .hero-draw .hero-cta { margin-block: 20px 20px; }
.board { border: 1px solid var(--rule); background: var(--card); padding: 14px; }
.board-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.board-grid i {
  aspect-ratio: 1; display: grid; place-items: center; font-style: normal;
  font-size: 11px; color: var(--ink-faint); border: 1px solid var(--rule-soft);
}
.board-grid i.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.board-cap { font-size: 12px; color: var(--ink-faint); margin: 12px 0 0; }

.anchor-card { border: 2px solid var(--ink); background: var(--card); padding: clamp(18px, 2.4vw, 28px); }
.anchor-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-block-end: 12px; }
.anchor-head img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.anchor-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 25px); margin: 0; }
.anchor-role { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 3px 9px; }
.anchor-lead { color: var(--ink-soft); margin-block-end: 0; }
/* Eight facts, four per row: auto-fit left a ragged last row. */
.anchor-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--rule-soft); border: 1px solid var(--rule-soft); margin-block: 20px; }
@media (max-width: 900px) { .anchor-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .anchor-facts { grid-template-columns: 1fr; } }
.anchor-facts > div { background: var(--card); padding: 12px 14px; min-width: 0; }
.anchor-facts dt { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 4px; }
.anchor-facts dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: break-word; }
.anchor-quote { border-inline-start: 3px solid var(--accent); padding-inline-start: 14px;
  font-size: 15.5px; color: var(--ink-soft); margin-block: 20px; }
.anchor-quote cite { display: block; font-size: 12.5px; color: var(--ink-faint); font-style: normal; margin-block-start: 8px; }
.anchor-list { list-style: none; margin: 0; padding: 0; }
.anchor-list li { padding-block: 9px; border-block-end: 1px dotted var(--rule); font-size: 14.5px; color: var(--ink-soft); }
.anchor-list li:last-child { border-block-end: 0; }
.anchor-sub { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); margin-block: 22px 8px; }

.steps { counter-reset: step; list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding-inline-start: 46px; min-width: 0; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; inset-inline-start: 0; top: 2px; width: 32px; height: 32px;
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 700;
  font-size: 14px; color: var(--accent-ink); border: 1px solid var(--accent);
}
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* Column widths for the keno column set; the sportsbook set keeps the defaults.
   Its headings carry a second line, and `white-space: nowrap` made that line
   run straight over the neighbouring column — the boxes never overlapped, so a
   gate that measured boxes called it clean. */

/* Column widths for the keno column set; the sportsbook set keeps the defaults. */
.cols-keno .cmp .c-brand   { width: 17%; }
.cols-keno .cmp .col-keno  { width: 10%; }
.cols-keno .cmp .col-kgame { width: 12%; }
.cols-keno .cmp .col-lic   { width: 10%; }
.cols-keno .cmp .col-materms { width: 14%; }
.cols-keno .cmp .col-mareach { width: 14%; }
.cols-keno .cmp .col-min   { width: 8%; }


/* --------------------------------------------- operator block with a capture --
   Text on one side, a framed screenshot of the operator's own interface on the
   other. The frame is a plain rule: a fake browser chrome would imply we show a
   live page rather than a dated capture. */
.brandblk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(22px, 3vw, 44px); align-items: start; }
@media (max-width: 860px) { .brandblk { grid-template-columns: 1fr; } }
.brandblk-txt p { color: var(--ink-soft); }
.brandblk-facts { list-style: none; margin: 0 0 22px; padding: 0; border-block-start: 1px solid var(--rule); }
.brandblk-facts li { display: flex; justify-content: space-between; gap: 14px;
  padding-block: 9px; border-block-end: 1px solid var(--rule-soft); font-size: 14.5px; }
.brandblk-facts span { color: var(--ink-faint); }
.brandblk-facts b { text-align: end; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: var(--card); }
.shot figcaption { font-size: 12.5px; color: var(--ink-faint); margin-block-start: 10px; }
.pick-logo { width: 40px; height: 40px; object-fit: contain; vertical-align: middle;
  margin-inline-end: 10px; }
.board-tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 10px; }


/* ------------------------------------------------------- official prize table --
   One card per number of marks, so the reader compares ranks inside a grid size
   instead of scanning a 37-row table on a phone. */
.paygrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .paygrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .paygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px)  { .paygrid { grid-template-columns: 1fr; } }
.paycard { border: 1px solid var(--rule); background: var(--card); padding: 12px 14px; min-width: 0; }
.paycard-h { font-family: var(--f-display); font-weight: 700; font-size: 15px; margin: 0 0 8px;
  padding-block-end: 8px; border-block-end: 1px solid var(--rule-soft); }
.paycard dl { margin: 0; }
.paycard dl > div { display: flex; justify-content: space-between; gap: 10px; padding-block: 5px;
  font-size: 13.5px; border-block-end: 1px dotted var(--rule-soft); }
.paycard dl > div:last-child { border-block-end: 0; }
.paycard dt { color: var(--ink-faint); margin: 0; }
.paycard dd { margin: 0; font-weight: 600; text-align: end; }
.paycard dd i { font-style: normal; font-size: 11px; color: var(--ink-faint); font-weight: 400; }
.paynotes { margin: 22px 0 0; padding-inline-start: 20px; color: var(--ink-soft); font-size: 14px; }
.paynotes li { margin-block-end: 7px; }


/* ---------------------------------------------- card layout: real fixes ------
   Below 1024px every row becomes a card, but the percentage column widths of the
   desktop table kept applying — they are declared later in this file than the
   card block, so they won the cascade. A value cell ended up 33px wide and the
   keno board 118px, which is what broke every value onto one word per line. */
@media (max-width: 1023px) {
  .cmp .c-num, .cmp .c-brand, .cmp .c-cta,
  .cmp [class^="col-"], .cmp [class*=" col-"],
  .cols-keno .cmp .c-brand, .cols-keno .cmp [class^="col-"] { width: auto; }

  /* Two columns, not a flex row: with flex a long value could not fit beside its
     label and jumped to a line of its own, so the label hung over an empty row.
     In a grid the value stays in its own column and wraps inside it, and a note
     spans both columns underneath. */
  .cmp td[data-label] {
    display: grid; grid-template-columns: minmax(84px, 36%) 1fr;
    column-gap: 12px; align-items: baseline; text-align: end;
  }
  .cmp td[data-label]::before { flex: none; text-align: start; }
  /* Every element inside the cell is a grid item: without this the score's dots
     landed in the label column on a row of their own, and the status chips
     stretched across the whole value column. */
  .cmp td[data-label] > :not(.cell-note) { grid-column: 2; justify-self: end; }
  .cell-note { grid-column: 1 / -1; text-align: start; margin-block-start: 5px; }
  [dir="rtl"] .cell-note { text-align: start; }

  /* The tile is centred against a three-line block, so it drifted down next to
     the tag instead of sitting beside the name. */
  .cmp td.c-brand .tb { flex-wrap: wrap; align-items: flex-start; }
  .cmp td.c-brand .tb > div { flex: 1 1 60%; min-width: 0; }
  .tb-note { flex: 1 0 100%; text-align: start; margin-block-start: 6px; }
}

/* The 80-number board needs the full card width on a phone: ten columns of ~8px
   printed digits on top of each other. */
@media (max-width: 860px) {
  .board-grid { gap: 3px; }
  .board-grid i { font-size: clamp(9px, 2.6vw, 12px); }
}
@media (max-width: 420px) {
  .meta-row { font-size: 10.5px; gap: 6px 8px; }
}


/* Phone header: the brand took the whole row, pushing the burger onto a second
   line, and the tagline wrapped onto two more. 190px of masthead before the
   first word of the page. */
@media (max-width: 560px) {
  .head-row { flex-wrap: nowrap; gap: 10px; padding-block: 12px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-name small { display: none; }
  .meta-row { min-height: 0; padding-block: 5px; }
}


/* --------------------------------------------------- compact phone cards -----
   One operator took 696px of a 852px screen: the card was mostly air. Rhythm
   tightened everywhere it was padding rather than content, and short dated notes
   sit in the value column instead of claiming a line of their own. */
@media (max-width: 1023px) {
  /* Body line-height 1.65 is for prose; inside a data card it is empty air. */
  .cmp tbody tr { padding: 12px 14px; margin-block-end: 10px; line-height: 1.4; }
  .cmp td[data-label]::before { line-height: 1.3; }
  .cmp td { padding-block: 4px; }
  .cmp td[data-label] { column-gap: 10px; }
  .cmp td.c-brand { padding-block: 0 8px; margin-block-end: 4px; }
  .cmp td.c-brand .tb-name { font-size: 16px; }
  .tb { gap: 10px; }
  .tb-note { margin-block-start: 4px; line-height: 1.35; }
  .tag { margin-block-start: 2px; }
  .cell-note { margin-block-start: 1px; line-height: 1.35; }
  /* Three columns on a phone: label | date | value. A bare date shared the value
     column, which merely moved it to a second row — now it sits on the same line. */
  .cmp td[data-label] { grid-template-columns: minmax(80px, 34%) 1fr auto; }
  .cmp td[data-label] > :not(.cell-note) { grid-column: 3; }
  .cell-note.is-short { grid-column: 2; grid-row: 1; text-align: start; margin-block-start: 0;
    align-self: baseline; padding-inline-end: 10px; }
  .cmp td.c-cta { padding-block-start: 10px; }
  .cmp td.c-cta .btn { padding-block: 10px; }
}


/* ------------------------------------------------------------ draw results ---
   The numbers are the content on a results site, so they get the weight: a wide
   ball row in the hero, a dated list underneath. Every block carries the day it
   was pulled — nothing here claims to be live. */
@media (min-width: 861px) { .hero-draw .hero-two { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.lastdraw { border: 1px solid var(--rule); background: var(--card); padding: 18px 18px 16px; }
.lastdraw-h { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 2px; }
.lastdraw-h b { color: var(--ink); font-family: var(--f-display); letter-spacing: 0; font-size: 17px; }
.lastdraw-when { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.lastdraw-note { font-size: 12px; color: var(--ink-faint); margin: 14px 0 0; }

.balls { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.balls li { aspect-ratio: 1; display: grid; place-items: center; font-family: var(--f-display);
  font-weight: 600; font-size: 13px; background: var(--accent); color: #fff; }
.balls-sm { grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.balls-sm li { font-size: 11px; background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 720px) { .balls-sm { grid-template-columns: repeat(10, minmax(0, 1fr)); } }

.drawlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.drawlist li { border: 1px solid var(--rule); background: var(--card); padding: 12px 14px; min-width: 0; }
.draw-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-block-end: 9px; font-size: 13.5px; }
.draw-head b { font-family: var(--f-display); font-size: 16px; }
.draw-head span { color: var(--ink-faint); }
