:root {
  --desk: #e9ebee;
  --paper: #ffffff;
  --slip: #d23a50;
  --slip-tint: #fbe9ec;
  --pen: #24318c;
  --ink: #1d1f23;
  --muted: #5b616b;
  --rule: #c9ccd2;
  --line: #e3e5e8;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 16px/1.55 var(--sans);
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
a { color: var(--pen); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { background: var(--paper); border-bottom: 3px solid var(--slip); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.langs { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 14px; }
.langs a, .lang-menu a { color: var(--muted); text-decoration: none; }
.langs a:hover, .lang-menu a:hover { color: var(--pen); text-decoration: underline; }
.langs [aria-current], .lang-menu [aria-current] { color: var(--ink); font-weight: 600; }
.lang-menu { display: none; position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600;
  padding: 7px 10px; border: 1.5px solid var(--rule); border-radius: 3px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { border-color: var(--ink); }
.lang-menu summary:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
.lang-menu nav { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; display: grid; grid-template-columns: repeat(2, 128px);
  background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--slip); border-radius: 3px; padding: 6px;
  box-shadow: 0 12px 28px -14px rgba(20, 24, 33, .45); }
.lang-menu nav > * { padding: 10px 12px; font-size: 15px; }

main { flex: 1 0 auto; }
.main-in { padding-top: 20px; padding-bottom: 56px; }
h1 { font-size: clamp(26px, 4.2vw, 38px); line-height: 1.15; margin: 6px 0 14px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; max-width: 62ch; }
.crumb { font-size: 14px; color: var(--muted); margin: 0; }
.crumb a { color: var(--muted); }

/* the now band: latest draw and the next one, like a ticket with its stub */
.now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--rule);
  border-inline-start: 10px solid var(--slip); border-radius: 3px; margin: 0 0 14px; }
.now-cell { padding: 14px 20px 16px; min-width: 0; }
.now-cell + .now-cell { border-inline-start: 2px dashed var(--rule); }
.now.one { grid-template-columns: minmax(0, 1fr); }
.now-label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--slip); }
.now-label span { color: var(--ink); font-weight: 600; margin-inline-start: 6px; }
.now-balls { display: flex; gap: 8px; margin: 0 0 8px; }
.now-balls .ball { flex: 0 1 50px; width: auto; height: auto; aspect-ratio: 1; font-size: 20px; border-width: 2.5px; min-width: 0; }
.now-link { font-size: 14px; font-weight: 600; }
.cd { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 0; font-variant-numeric: tabular-nums; }
.cd[hidden] { display: none; }
.cd span { display: inline-flex; align-items: baseline; gap: 4px; }
.cd b { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.cd i { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 600; }

/* the play slip */
.play { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "slip receipt" "slip facts";
  grid-template-rows: auto 1fr; gap: 24px; align-items: start; }
.slip { grid-area: slip; align-self: stretch; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-inline-start: 10px solid var(--slip); padding: 18px 18px 16px; border-radius: 3px; }
.slip-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; border-bottom: 2px solid var(--slip); padding-bottom: 8px; margin-bottom: 12px; }
.slip-name { color: var(--slip); font-weight: 800; font-size: 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.slip-label { color: var(--slip); font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, max(44px, calc(400px / var(--cols))))); gap: 6px; }
.box { position: relative; height: auto; aspect-ratio: 1; min-height: 40px; min-width: 0; border: 1.5px solid var(--slip); border-radius: 3px; background: var(--paper); color: var(--slip);
  font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; }
.box:hover { background: var(--slip-tint); }
.box:focus-visible { outline: 3px solid var(--pen); outline-offset: 1px; }
.box[data-state="keep"] { background: var(--pen); border-color: var(--pen); color: #fff; font-weight: 800; }
.box[data-state="skip"] { color: #4a4f57; border-color: #9aa0a8; border-style: dashed;
  background: repeating-linear-gradient(-45deg, #fff 0 5px, #e6e8eb 5px 7px); }
.box.hit { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4.5px var(--ink); z-index: 1; }
.box.mini { display: inline-grid; place-items: center; width: 22px; height: 22px; min-height: 0; font-size: 11px; font-style: normal; cursor: default; }
.box.mini.hit { box-shadow: 0 0 0 1.5px var(--paper), 0 0 0 3px var(--ink); margin: 0 3px; }
.hint-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin: 12px 0 14px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; flex: 1 1 240px; }
.bar { margin: auto -18px -16px; padding: 12px 18px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.controls { display: flex; flex-wrap: nowrap; align-items: end; gap: 10px 12px; }
.controls label { display: grid; gap: 2px; font-size: 13px; color: var(--muted); flex: none; }
select { font: inherit; color: var(--ink); padding: 8px 8px; border: 1.5px solid var(--rule); border-radius: 3px; background: var(--paper); min-width: 72px; height: 44px; }
.btn, .btn-quiet { font: 700 16px/1 var(--sans); border-radius: 3px; padding: 12px 18px; cursor: pointer; }
.btn { background: var(--slip); color: #fff; border: 2px solid var(--slip); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: #b82f44; border-color: #b82f44; }
.controls .btn { margin-inline-start: auto; height: 44px; min-width: 150px; }
.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); font-weight: 600; font-size: 14px; padding: 9px 12px; }
.btn-quiet:disabled { color: #a9aeb6; cursor: default; }
.btn:focus-visible, .btn-quiet:focus-visible, select:focus-visible, .tip-btn:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
.err { color: var(--slip); font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.err:empty { display: none; }

/* how the numbers are picked */
.tip { position: relative; flex: none; }
.tip-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--muted); cursor: pointer; }
.tip-btn:hover, .tip.open .tip-btn { color: var(--pen); border-color: var(--pen); }
.tip-body { display: none; position: absolute; inset-inline-end: 0; bottom: calc(100% + 8px); z-index: 20; width: min(320px, calc(100vw - 48px));
  background: var(--ink); color: #fff; font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 3px; box-shadow: 0 12px 28px -12px rgba(20, 24, 33, .5); }
.tip-body b { display: block; margin-bottom: 4px; }
.tip-body { transform: translateX(var(--dx, 0)); }
@media (hover: hover) { .tip:hover .tip-body { display: block; } }
.tip.open .tip-body { display: block; }
.tip.shut .tip-body { display: none; }

/* the terminal receipt */
.receipt { grid-area: receipt; background: #fcfcfb; color: #222; font-family: var(--mono); padding: 18px 20px 14px; border-radius: 2px;
  box-shadow: 0 1px 0 #d4d6da, 0 10px 24px -14px rgba(20, 24, 33, .35); position: relative; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px;
  background: radial-gradient(circle at 7px 0, #fcfcfb 6px, transparent 6.5px) 0 0 / 14px 8px repeat-x; }
.r-top { text-align: center; }
.r-title { display: block; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.r-sub { display: block; font-size: 13px; color: #555; }
.r-rule { border: 0; border-top: 3px double #333; margin: 12px 0; }
.r-lines { list-style: none; margin: 0; padding: 0; font-size: 17px; line-height: 1.75; font-variant-numeric: tabular-nums; min-height: 9.5em; }
.r-line { display: flex; gap: 10px; width: 100%; white-space: nowrap; overflow-x: auto; font: inherit; color: inherit; text-align: start;
  background: none; border: 0; border-radius: 2px; padding: 0 6px; margin: 0 -6px; width: calc(100% + 12px); cursor: pointer; }
.r-line:hover { background: #f0f1f3; }
.r-line:focus-visible { outline: 2px solid var(--pen); }
.r-line[aria-pressed="true"] { background: #eceef1; box-shadow: inset 3px 0 0 var(--ink); }
.r-lines .tag { color: #666; width: 2ch; flex: none; }
.r-lines .plus { color: #888; }
.r-lines .bn { color: var(--pen); font-weight: 700; }
.r-empty { color: #888; font-size: 14px; white-space: normal; }
.r-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: #555; margin: 0; }

/* cards */
.card, .facts, .more { background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 18px; margin-top: 24px; }
.facts { grid-area: facts; align-self: stretch; margin-top: 0; }
.facts dl { margin: 0; }
.facts dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding: 8px 0; }
.facts dt { font-size: 14px; color: var(--muted); flex: none; }
.facts dd { margin: 0; font-weight: 600; text-align: end; overflow-wrap: anywhere; min-width: 0; }
.checked, .note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

.guide summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary h2 { margin: 0; }
.guide summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--slip); border-bottom: 2.5px solid var(--slip); transform: translateY(-3px) rotate(45deg); flex: none; }
.guide[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.guide summary:focus-visible { outline: 3px solid var(--pen); outline-offset: 4px; }
.guide p { max-width: 70ch; margin: 14px 0 0; }

.odds table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.odds th { text-align: start; font-size: 13px; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); padding: 6px 0; padding-inline-end: 8px; }
.odds td { border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; white-space: nowrap; }
.odds td:last-child, .odds th:last-child { text-align: end; padding-inline-end: 0; }
/* the prize column: the tier above its amount, so three columns fit a phone */
.odds td.pz { white-space: normal; line-height: 1.25; }
.odds .pz-r { display: block; font-size: 12px; color: var(--muted); }
.odds .pz b { font-weight: 700; white-space: nowrap; }
@media (max-width: 639px) {
  /* a phone: the prize goes on its own line under the match and the chance */
  .odds tr { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); column-gap: 8px; border-bottom: 1px solid var(--line); }
  .odds td:first-child { white-space: normal; }
  .odds .pips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px 0; }
  .odds thead tr { border-bottom: 2px solid var(--ink); }
  .odds th, .odds td { border-bottom: 0; }
  .odds th.pz, .odds td.pz { grid-column: 1 / -1; text-align: end; padding-top: 0; }
  .odds td.pz:empty { display: none; }
  .odds .pz-r { display: inline; margin-inline-end: 6px; }
  .odds td:nth-child(2), .odds th:nth-child(2) { text-align: end; padding-inline-end: 0; }
}
.pips { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.pip { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--slip); }
.pip.on { background: var(--slip); }
.pip.b { border-color: var(--pen); }
.pip.b.on { background: var(--pen); }
.pip.sz { border-radius: 3px; }
.pip.miss { border-style: dashed; }
.pips .plus { color: var(--muted); font-size: 13px; margin: 0 2px; }

/* results */
.years { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 14px 0; }
.years [aria-current] { font-weight: 700; }
.pager { display: flex; gap: 18px; margin-top: 18px; }
.results h3 { font-size: 17px; margin: 20px 0 8px; }
.draws { width: 100%; border-collapse: collapse; }
.draws th { text-align: start; font-size: 13px; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); padding: 6px 0; padding-inline-end: 8px; }
.draws td { border-bottom: 1px solid var(--line); padding: 7px 8px 7px 0; vertical-align: middle; }
.draws .d { width: 1%; white-space: nowrap; padding-inline-end: 32px; }
.draws a { white-space: nowrap; }
.balls { display: flex; flex-wrap: nowrap; gap: 4px; }
.ball { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1.5px solid var(--slip); color: var(--slip); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.ball.b { border-color: var(--pen); background: var(--pen); color: #fff; }
.ball.hit { background: var(--slip); color: #fff; }
.ball.b.hit { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.fbox { display: grid; place-items: center; height: 44px; border: 1.5px solid var(--slip); border-radius: 3px; line-height: 1.1; background: var(--paper); }
.fbox b { font-size: 14px; color: #8a1a2b; }
.fbox.b { border-color: var(--pen); }
.fbox.b b { color: #1a2470; }
.fbox i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink); }
.fbox.l1 { background: #fbe3e7; } .fbox.l2 { background: #f5c0c9; } .fbox.l3 { background: #ec98a6; } .fbox.l4 { background: #df6c80; }
.fbox.b.l1 { background: #eef0fa; } .fbox.b.l2 { background: #d6dbf3; } .fbox.b.l3 { background: #b4bde8; } .fbox.b.l4 { background: #8d9ad9; }
.fbox.l3 b, .fbox.l4 b { color: #3d0a14; }
.fbox.b.l3 b, .fbox.b.l4 b { color: #0e1645; }
.scale { display: flex; align-items: center; gap: 3px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.scale .fbox { width: 26px; height: 12px; border-width: 1px; }
.scale span:first-child { margin-inline-end: 6px; }
.scale span:last-child { margin-inline-start: 6px; }

/* other lotteries */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; }
.tiles a { display: grid; gap: 1px; height: 100%; padding: 9px 12px 10px; border: 1px solid var(--rule); border-inline-start: 4px solid var(--slip); border-radius: 3px;
  color: var(--ink); text-decoration: none; font-weight: 700; }
.tiles a:hover { border-color: var(--pen); border-inline-start-color: var(--pen); }
.tiles span { font-size: 12px; font-weight: 600; color: var(--muted); }

/* home */
.countries { columns: 3 300px; column-gap: 24px; }
.country { break-inside: avoid; margin: 0 0 24px; }
.country h3 { font-size: 15px; color: var(--muted); margin: 0 0 8px; border-bottom: 2px solid var(--slip); padding-bottom: 4px; }
.country ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.game-card { display: grid; gap: 2px; background: var(--paper); border: 1px solid var(--rule); border-inline-start: 6px solid var(--slip); border-radius: 3px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.game-card:hover { border-color: var(--pen); border-inline-start-color: var(--pen); }
.g-name { font-weight: 700; font-size: 17px; }
.g-how, .g-days { font-size: 13px; color: var(--muted); }

.prose { background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 18px 22px; max-width: 760px; }
.prose h2 { font-size: 18px; margin-top: 20px; }

/* privacy summary and contact */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; max-width: 760px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; font-weight: 600; }
@media (max-width: 759px) { .chips { flex-direction: column; gap: 2px; } }
.chips svg { flex: none; color: var(--slip); }
.mail-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.mail-row .btn { font-size: 17px; }

/* year archive */
.top-nums .balls { gap: 8px; }
.top-nums .ball { width: 40px; height: 40px; font-size: 16px; border-width: 2px; }
.check-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.check-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.check-form legend { font-size: 13px; font-weight: 700; color: var(--slip); padding: 0; margin-bottom: 4px; }
.check-form .nums { display: flex; gap: 6px; }
.check-form input { width: 46px; height: 44px; font: 600 17px/1 var(--sans); text-align: center; border: 1.5px solid var(--slip); border-radius: 3px; padding: 0; color: var(--ink); background: var(--paper); }
.check-form .b input { border-color: var(--pen); }
.check-form input:focus-visible { outline: 3px solid var(--pen); outline-offset: 1px; }
.month { border-top: 1px solid var(--rule); }
.month:first-of-type { border-top: 0; }
.month summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
.month summary::-webkit-details-marker { display: none; }
.month summary::before { content: ""; width: 8px; height: 8px; border-right: 2.5px solid var(--slip); border-bottom: 2.5px solid var(--slip); transform: rotate(-45deg); flex: none; margin-inline-end: 2px; }
.month[open] summary::before { transform: translateY(-2px) rotate(45deg); }
.month summary small { font-size: 13px; font-weight: 600; color: var(--muted); }
.month summary .best { margin-inline-start: auto; font-size: 13px; color: #fff; background: var(--slip); border-radius: 3px; padding: 2px 8px; }
.month summary .best:empty { display: none; }
.month summary:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
.month .draws { margin-bottom: 12px; }

.foot { border-top: 1px solid var(--rule); background: var(--paper); font-size: 14px; color: var(--muted); }
.foot .wrap { padding-top: 18px; padding-bottom: 24px; }
.foot p { margin: 0 0 8px; }
.foot-links { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.foot-links a { white-space: nowrap; }
@media (max-width: 480px) { .foot-links { display: grid; grid-template-columns: repeat(2, max-content); } }

@media (max-width: 759px) {
  html { scroll-padding-bottom: 96px; }
  .langs { display: none; }
  .lang-menu { display: block; }
  h1 { margin-top: 8px; }
  .now { grid-template-columns: minmax(0, 1fr); border-inline-start-width: 6px; }
  .now-cell { padding: 12px 14px 14px; }
  .now-cell + .now-cell { border-inline-start: 0; border-top: 2px dashed var(--rule); }
  .now-balls { gap: 6px; }
  .cd { gap: 4px 14px; }
  .cd b { font-size: 34px; }
  .lead { font-size: 16px; margin-bottom: 16px; }
  .play { grid-template-columns: minmax(0, 1fr); grid-template-areas: "slip" "receipt" "facts"; grid-template-rows: none; gap: 20px; }
  .slip { padding: 14px 12px 14px; border-inline-start-width: 6px; }
  .grid { grid-template-columns: repeat(min(var(--cols), 7), minmax(0, 1fr)); }
  .grid .box { min-height: 42px; font-size: 16px; }
  .bar { position: sticky; bottom: 0; z-index: 5; margin: auto -12px -14px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule); box-shadow: 0 -10px 18px -14px rgba(20, 24, 33, .45); }
  .controls { gap: 8px; }
  .controls label { font-size: 12px; }
  select { min-width: 62px; }
  .controls .btn { flex: 1 1 auto; min-width: 0; padding: 0 12px; }
  .card, .facts, .more { padding: 16px 14px; }
  .draws thead { display: none; }
  .draws tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0 10px; }
  .draws td { display: block; border: 0; padding: 0; }
  .draws .d { width: auto; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
  .draws .d a { color: var(--muted); }
  .check-form input { width: 42px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* lottery page: the pool link next to copy, pulsing once when it first appears */
.r-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.r-acts a.btn-quiet:not([hidden]) { display: inline-flex; align-items: center; text-decoration: none; }
.r-acts a.nudge { animation: nudge 1.1s ease-out 2; }
@keyframes nudge {
  0% { box-shadow: 0 0 0 0 rgba(210, 58, 80, .55); border-color: var(--slip); color: var(--slip); }
  70% { box-shadow: 0 0 0 10px rgba(210, 58, 80, 0); border-color: var(--slip); color: var(--slip); }
  100% { box-shadow: 0 0 0 0 rgba(210, 58, 80, 0); }
}

/* home: the way into the pool */
.pool-entry { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 0 0 24px; padding: 12px 16px; background: var(--paper);
  border: 1px solid var(--rule); border-inline-start: 6px solid var(--slip); border-radius: 3px; color: var(--ink); text-decoration: none; }
.pool-entry:hover { border-color: var(--pen); border-inline-start-color: var(--pen); }
.pool-entry svg { flex: none; }
.pool-entry span { display: grid; gap: 1px; }
.pool-entry b { font-size: 18px; }
.pool-entry small { font-size: 14px; color: var(--muted); }

/* pool: one link holds the list; the board is a receipt, the add form a slip */
.pool [hidden], .pool-now [hidden], .join[hidden], .warn[hidden] { display: none !important; }
.btn:disabled { background: #eceef1; border-color: #c9ccd2; color: #50555e; cursor: default; }
.pool-now .now-cell { min-height: 104px; }
.pool-now select { width: 100%; max-width: 340px; font-weight: 700; }
.draw-zone { margin: -4px 0 8px; font-size: 13px; color: var(--muted); }
.pick-date input { font: 700 17px/1 var(--sans); height: 44px; padding: 0 10px; border: 1.5px solid var(--slip); border-radius: 3px; color: var(--ink); background: var(--paper); }
.pick-date input:focus-visible { outline: 3px solid var(--pen); outline-offset: 1px; }
.warn { margin: 0 0 12px; padding: 10px 14px; background: #fff4cc; border-inline-start: 5px solid #e3ad12; border-radius: 3px; font-size: 14px; font-weight: 600; }
.join { margin: 0 0 14px; }
.join .btn { width: 100%; max-width: 420px; height: 50px; font-size: 17px; }
.pool { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "form board"; gap: 24px; align-items: start; }
.pool.has-result { grid-template-areas: "board preview"; }
.pool > .slip { grid-area: form; }
.pool .board { grid-area: board; }
.preview { grid-area: preview; margin: 0; }
.preview img { display: block; width: 100%; height: auto; box-shadow: 0 10px 24px -14px rgba(20, 24, 33, .35); }
.add .slip-head { flex-wrap: nowrap; }
.add-name { display: grid; gap: 4px; flex: 1 1 auto; min-width: 0; }
.add-label { font-size: 13px; font-weight: 700; color: var(--slip); }
.add-name input { width: 100%; height: 44px; font: 700 17px/1 var(--sans); color: var(--ink); border: 1.5px solid var(--rule); border-radius: 3px; padding: 0 12px; background: var(--paper); }
.add-name input:focus-visible { outline: 3px solid var(--pen); outline-offset: 1px; border-color: var(--pen); }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 6px; }
.label-row .slip-label { margin: 0; }
.label-row .btn-quiet { height: 40px; }
.slip-label b { color: var(--ink); font-variant-numeric: tabular-nums; margin-inline-start: 4px; }
.add .bar { margin-top: 16px; }
.add .bar .btn, .win .bar .btn { width: 100%; height: 48px; }
.full { font-weight: 700; color: var(--slip); margin: 0; }
.win .check-form { margin: 4px 0 12px; }
.board .r-top { position: relative; }
.icon-btn { position: absolute; inset-inline-end: -6px; top: -4px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--rule);
  border-radius: 3px; background: var(--paper); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--pen); border-color: var(--pen); }
.icon-btn:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
.people { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.people .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px 0 14px; }
.step { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; font: 600 13px/1.3 var(--sans); color: var(--ink); }
.step b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; }
.p-row { position: relative; display: grid; grid-template-columns: 2.4ch minmax(0, 1fr) auto; grid-template-areas: "rank name score" ". balls balls";
  align-items: center; gap: 4px 8px; padding: 8px 8px 10px; margin: 0 -8px; border-bottom: 1px dashed #d6d9dd; background: #fcfcfb; }
.p-row:last-child { border-bottom: 0; }
.p-row.group { border-top: 2px solid var(--rule); }
.rank { grid-area: rank; font-weight: 800; font-size: 17px; }
.p-name { grid-area: name; font: 700 16px/1.3 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { grid-area: score; min-width: 3ch; font-weight: 700; text-align: end; white-space: nowrap; }
.p-row.won .score { font: 700 13px/1.3 var(--sans); background: #eceef1; color: var(--ink); border-radius: 3px; padding: 3px 8px; }
.p-row.top.won .score { background: #f5c02a; color: #3a2a00; }
.p-balls { grid-area: balls; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.p-balls .plus { color: #888; margin: 0 1px; }
.people .fold { padding: 10px 0 2px; text-align: center; }
.pb { --bg0: #fff; --fg0: var(--slip); --bd0: var(--slip); background: var(--bg0); font-family: var(--sans); }
.pb.b { --bg0: var(--pen); --fg0: #fff; --bd0: var(--pen); }
.pb.hit { --bg1: #f5c02a; --fg1: #3a2a00; --bd1: #c79500; }
.pb.bon { --bg1: var(--slip); --fg1: #fff; --bd1: #a92a3d; }
.pb.miss { --bg1: #f1f2f4; --fg1: #a2a7af; --bd1: #d3d6db; }
.pb.b.miss { --bg1: #fff; --fg1: #4f5aa0; --bd1: #8f96c4; }
.pb.hit, .pb.bon, .pb.miss { background: var(--bg1); color: var(--fg1); border-color: var(--bd1); }
.board.done .pb.hit, .board.done .pb.bon, .board.done .pb.miss { animation: turn 400ms ease-in-out var(--t, 0ms) both; }
@keyframes turn {
  0% { transform: scaleX(1); background: var(--bg0); color: var(--fg0); border-color: var(--bd0); }
  49.9% { background: var(--bg0); color: var(--fg0); border-color: var(--bd0); }
  50% { transform: scaleX(0); background: var(--bg1); color: var(--fg1); border-color: var(--bd1); }
  100% { transform: scaleX(1); background: var(--bg1); color: var(--fg1); border-color: var(--bd1); }
}
.board.done .rank, .board.done .score { animation: rise 300ms ease-out var(--end, 0ms) both; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } }
.board.done .p-row.top { background: #fff4cc; box-shadow: inset 5px 0 0 #e3ad12; animation: glow 400ms ease-out var(--end, 0ms) both; }
@keyframes glow { from { background-color: #fcfcfb; box-shadow: inset 0 0 0 #e3ad12; } }
#win-balls .ball { font-family: var(--sans); }
.board-foot { flex-wrap: wrap; gap: 10px; }
.next-acts { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.next-acts .btn { flex: 1 1 auto; height: 48px; }
.next-acts .btn-quiet { height: 48px; }
.share-wrap { position: relative; display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-wrap .tip { position: static; }
.share-wrap .tip-body { inset-inline-start: 0; inset-inline-end: auto; }
.share-wrap .btn, .share-wrap .btn-quiet { height: 44px; }
.result-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.merge { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.merge input { flex: 1 1 200px; min-width: 0; height: 40px; font: 15px/1 var(--sans); color: var(--ink); border: 1.5px solid var(--rule); border-radius: 3px; padding: 0 10px; background: var(--paper); }
.merge .err { flex-basis: 100%; margin: 0; }
.fallback { display: block; width: 100%; margin-top: 10px; font: 13px/1.4 var(--mono); color: var(--ink); border: 1.5px solid var(--pen); border-radius: 3px; padding: 8px; resize: vertical; background: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .board.done .pb.hit, .board.done .pb.bon, .board.done .pb.miss, .board.done .rank, .board.done .score, .board.done .p-row.top, .r-acts a.nudge { animation: none; }
}
@media (max-width: 759px) {
  .pool, .pool.has-result { grid-template-columns: minmax(0, 1fr); grid-template-areas: "board" "form"; gap: 20px; }
  .preview { display: none; }
  .pool-now .now-cell { min-height: 0; }
  .pool-now .now-cell + .now-cell { min-height: 96px; }
  .pool-now select { max-width: none; }
  .p-balls .ball { width: 28px; height: 28px; font-size: 12px; }
  /* the board sits above the form on phones, so a stuck bar would cover the name field */
  .add .bar, .win .bar { position: static; box-shadow: none; }
  .join .btn { max-width: none; }
}

@media print {
  .top, .foot, .slip, .facts, .card, .more, .now, .crumb, h1, .lead { display: none; }
  body { background: #fff; }
  .play { display: block; }
  .receipt { box-shadow: none; }
  .receipt button, .r-foot button { display: none; }
  .r-lines li { background: none !important; }
}

/* Korean breaks lines between words, not inside them */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }

/* pool: the next-round buttons wait for the reveal */
#next-acts:not([hidden]) { animation: pool-appear .3s ease-out var(--appear, 0ms) both; }
@keyframes pool-appear { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
@media (prefers-reduced-motion: reduce) { #next-acts:not([hidden]) { animation: none; } }

/* one draw's page: the numbers, my lines against them, the prize tiers */
.draw-now { margin-top: 4px; }
.draw-now .now-label { color: var(--ink); font-weight: 600; }
.draw-now .now-balls { margin-bottom: 14px; }
.draw-now .now-balls .ball.hit { background: var(--slip); color: #fff; }
.draw-now .now-balls .ball.b.hit { background: var(--pen); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4.5px var(--ink); }
.draw-go { height: 46px; }
.check-out { flex-basis: 100%; margin: 0; min-height: 1.4em; font-weight: 700; color: var(--slip); }
.mine-check { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.mine-check h3 { font-size: 15px; margin: 0 0 8px; }
.mine-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mine-rows li { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.mine-rows .tag { font-size: 13px; color: var(--muted); min-width: 1.2em; }
.mine-rows .ball:not(.hit) { color: var(--muted); border-color: var(--rule); }
.mine-rows .ball.b:not(.hit) { background: transparent; color: var(--muted); }
.mine-res { font-size: 14px; color: var(--muted); }
.mine-rows li.won .mine-res { color: var(--slip); font-weight: 700; }
.draw-prizes tbody tr.on, .draw-prizes tbody tr.on td { background: #fff4d6; }
.draw-prizes .wn-l { display: none; }
@media (max-width: 639px) { .draw-prizes .wn-l { display: inline; font-size: 12px; color: var(--muted); } }
.draw-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; margin-top: 24px; }
.draw-pager a { display: grid; font-weight: 600; text-decoration: none; }
.draw-pager a small { font-size: 12px; color: var(--muted); font-weight: 600; }
.draw-pager [rel="next"] { text-align: end; }
.draw-pager .draw-year { font-size: 14px; text-align: center; text-decoration: underline; }
@media (max-width: 520px) {
  .draw-pager { grid-template-columns: 1fr 1fr; }
  .draw-pager .draw-year { grid-column: 1 / -1; grid-row: 2; }
}

/* ===================================================================== the draw stage (2026-11-04)
   A TV draw studio at night: deep teal backdrop, warm tungsten light, a red on-air tally.
   Below the stage the page is light; cards lose the red side stripe of the first version.
   build.py puts this after style.css in every page. */
:root {
  --night: #081619; --night-2: #0f262b; --night-line: #1d3a40; --spot: #ffd27a; --tally: #ff3b30; --brass: #e7b04b;
  --on-night: #eef4f2; --on-night-muted: #9db6b4;
  --desk: #edf1ef; --pen: #0d6670; --hit: #ffc83d;
}
.top { background: var(--night); border-bottom: 1px solid var(--night-line); }
.brand { color: var(--on-night); }
.brand svg rect { stroke: var(--spot); }
.brand svg path { stroke: var(--on-night); }
.langs a, .lang-menu summary { color: var(--on-night-muted); }
.langs [aria-current] { color: var(--on-night); }
.lang-menu summary { border-color: var(--night-line); }
.lang-menu[open] summary { border-color: var(--on-night-muted); }
.lang-menu nav { border-top: 1px solid var(--rule); }

.stage { background: radial-gradient(120% 70% at 50% 0%, #17383e 0%, var(--night) 62%) var(--night); color: var(--on-night); }
.stage-in { max-width: 880px; margin: 0 auto; padding: 10px 16px 18px; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.stage-title { min-width: 0; }
.stage-lead { margin: -2px 0 6px; font-size: 13.5px; line-height: 1.35; color: var(--on-night-muted); }
:lang(ja) .stage h1, :lang(ja) .stage-lead, :lang(zh) .stage h1, :lang(zh) .stage-lead { word-break: auto-phrase; }
.stage h1 { font-size: clamp(21px, 3.4vw, 30px); line-height: 1.15; margin: 2px 0 6px; color: #fff; letter-spacing: -0.01em; }
.stage .crumb { margin: 0; font-size: 13px; }
.stage .crumb a { color: var(--on-night-muted); }
.snd { flex: none; display: grid; place-items: center; width: 42px; height: 42px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--night-line);
  background: var(--night-2); color: var(--on-night); cursor: pointer; }
.snd svg { width: 20px; height: 20px; }
.snd[aria-pressed="false"] .wave, .snd[aria-pressed="true"] .mute { display: none; }
.snd[aria-pressed="false"] { color: var(--on-night-muted); }
.picks { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 2px; padding: 2px 16px 6px; }
.picks::-webkit-scrollbar { display: none; }
.picks { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.picks a { flex: none; font-size: 14px; font-weight: 700; color: var(--on-night-muted); text-decoration: none; padding: 7px 12px; border-radius: 8px;
  border: 1.5px solid var(--night-line); background: rgba(255,255,255,.02); }
.picks a[aria-current] { color: var(--night); background: var(--spot); border-color: var(--spot); }

.next { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; font-size: 14px; color: var(--on-night-muted); min-height: 30px; }
.next > b { color: var(--on-night); font-weight: 700; }
.tally { width: 9px; height: 9px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 10px var(--tally); flex: none; animation: tally 1.6s ease-in-out infinite; }
@keyframes tally { 50% { opacity: .35; box-shadow: 0 0 2px var(--tally); } }
.stage .cd { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.stage .cd[hidden] { display: none; }
.stage .cd > span { display: inline-flex; align-items: baseline; gap: 2px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 6px; padding: 3px 7px; }
.stage .cd > span[hidden] { display: none; }
.stage .cd b { font-size: 19px; line-height: 1.1; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.stage .cd i { font-style: normal; font-size: 11px; color: var(--on-night-muted); }
.back { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: rgba(255,210,122,.12); color: var(--spot); font-size: 14px; font-weight: 600; }

.machine { position: relative; border-radius: 14px; overflow: hidden; background: #04090b; box-shadow: 0 0 0 1px var(--night-line), 0 28px 60px -34px #000; touch-action: manipulation; }
.machine canvas { display: block; width: 100%; height: clamp(300px, calc(100svh - 330px), 430px); }
@media (min-width: 760px) { .machine canvas { height: clamp(320px, calc(100vh - 360px), 460px); } }
.status { position: absolute; inset-inline-start: 14px; top: 12px; margin: 0; font: 800 13px/1 var(--sans); letter-spacing: .06em; color: var(--spot); pointer-events: none;
  text-shadow: 0 1px 6px rgba(0,0,0,.8); font-variant-numeric: tabular-nums; }
.drawing .status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tally); margin-inline-end: 7px; vertical-align: 1px; box-shadow: 0 0 8px var(--tally); }

/* the lower third: the last draw against the line just drawn */
.verdict { position: absolute; left: 10px; right: 10px; bottom: 96px; max-width: 520px; margin: 0 auto; padding: 10px 12px 10px; border-radius: 10px;
  background: #061113; border-top: 2px solid var(--brass); animation: lower .32s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 640px) { .verdict { bottom: 116px; } }
@media (max-width: 639px) { .tall .verdict { bottom: 140px; } }
.verdict.many .ball { width: 26px; height: 26px; font-size: 12px; }
.verdict.many .balls { gap: 3px; }
.verdict[hidden] { display: none; }
@keyframes lower { from { transform: translateY(14px); opacity: 0; } }
.v-head { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; font-size: 13px; font-weight: 700; color: var(--on-night-muted); }
.v-res { margin: 7px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 16px; }
.v-res .m { font-weight: 800; color: var(--on-night-muted); }
.v-res .m.on { color: #fff; }
.tier { color: var(--night); background: var(--hit); border-radius: 6px; padding: 2px 8px; font-size: 14px; font-weight: 800; }
.v-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0; font-size: 14px; }
.v-saved { display: inline-flex; align-items: center; gap: 5px; color: #7ee2a8; font-weight: 700; cursor: help; }
.v-saved svg { width: 16px; height: 16px; }
.v-mine { color: var(--spot); font-weight: 700; }

/* the big button: a round push button like the one pressed on the draw show */
.press { display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 4vw, 34px); padding: 16px 0 4px; }
/* the quick draw and the ticket size beside the big button: off is a dark ring, on glows brass */
.opt { flex: none; width: 76px; display: grid; justify-items: center; align-content: start; gap: 9px; padding-top: 14px; }
.opt-c { font: 700 12px/1.2 var(--sans); font-style: normal; color: var(--on-night-muted); text-align: center; word-break: keep-all; overflow-wrap: normal; hyphens: auto; }
.opt-b[aria-pressed="true"] + .opt-c { color: var(--brass); }
.opt-b b[hidden] { display: none; }
.opt[hidden] { visibility: hidden; display: grid; }
.opt-b { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1.5px solid var(--night-line); background: var(--night-2); color: var(--on-night-muted); -webkit-tap-highlight-color: transparent;
  transition: color .15s, border-color .15s, box-shadow .15s, background .15s; }
.opt-b svg { width: 24px; height: 24px; }
.opt-b b { position: absolute; bottom: -7px; inset-inline-end: -9px; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center;
  font: 800 12px/1 var(--sans); font-variant-numeric: tabular-nums; direction: ltr; background: var(--night); color: var(--on-night-muted); border: 1.5px solid var(--night-line); }
.opt-b[aria-pressed="true"] { color: #241a10; background: radial-gradient(circle at 50% 35%, #ffe2a0, var(--brass) 70%); border-color: var(--brass); box-shadow: 0 0 16px rgba(231,176,75,.45); }
.opt-b[aria-pressed="true"] b { background: var(--brass); color: #241a10; border-color: #241a10; }
.opt-b:disabled, .drawing .opt-b { opacity: .55; cursor: default; }
.opt-b:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.big { width: 104px; height: 104px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font: 800 19px/1.1 var(--sans); letter-spacing: -0.01em;
  background: radial-gradient(circle at 50% 32%, #ff6a5a 0%, #e5281d 46%, #a3140c 100%);
  box-shadow: 0 0 0 6px #241a10, 0 0 0 9px var(--brass), 0 10px 0 9px #6e4f1d, 0 22px 40px 6px rgba(0,0,0,.6);
  transition: transform .08s, box-shadow .08s; -webkit-tap-highlight-color: transparent; }
.big span { display: block; padding: 0 6px; text-shadow: 0 1px 0 rgba(0,0,0,.35); word-break: keep-all; overflow-wrap: anywhere; }
.big:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 0 0 6px #241a10, 0 0 0 9px var(--brass), 0 5px 0 9px #6e4f1d, 0 12px 26px 4px rgba(0,0,0,.6); }
.big:disabled { cursor: default; filter: saturate(.55) brightness(.8); transform: translateY(5px); box-shadow: 0 0 0 6px #241a10, 0 0 0 9px var(--brass), 0 5px 0 9px #6e4f1d, 0 12px 26px 4px rgba(0,0,0,.6); }
.big:focus-visible, .snd:focus-visible, .picks a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* glossy balls (stage, my lines, last draw) */
.verdict .ball, .mine .ball, .last .ball { white-space: nowrap; --c: #fbfbf7; --i: #111; width: 34px; height: 34px; border: 0; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font: 800 15px/1 var(--sans); color: var(--i); font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 50% 52%, rgba(255,255,255,.94) 0 44%, transparent 46%), radial-gradient(circle at 32% 28%, #fff 0 9%, var(--c) 36%, color-mix(in srgb, var(--c) 62%, #000) 100%);
  box-shadow: 0 2px 3px rgba(0,0,0,.25); }
.last .ball.b { --c: var(--bonus, #f0a92a); }
.last .ball.q { background: transparent; border: 1.5px dashed var(--night-line); color: var(--on-night-muted); box-shadow: none; }
/* the results table: small glossy balls instead of the first version's red rings */
.results .ball { --c: #fbfbf7; border: 0; color: #111; font-weight: 800; box-shadow: 0 1px 2px rgba(0,0,0,.25);
  background: radial-gradient(circle at 50% 52%, rgba(255,255,255,.94) 0 44%, transparent 46%), radial-gradient(circle at 32% 28%, #fff 0 9%, var(--c) 36%, color-mix(in srgb, var(--c) 62%, #000) 100%); }
.results .ball.b { --c: var(--bonus, #f0a92a); color: #111; }
.mine .rec .ball.miss { opacity: .55; }
.verdict .ball.hit, .mine .ball.hit { box-shadow: 0 0 0 3px var(--hit), 0 0 14px rgba(255,200,61,.6); }
.verdict .balls, .mine .balls, .last .balls { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.verdict .plus, .mine .plus, .last .plus { color: var(--on-night-muted); font-weight: 700; margin: 0 1px; }
@media (max-width: 380px) { .verdict .ball, .mine .ball, .last .ball { width: 30px; height: 30px; font-size: 13px; } }

/* below the stage */
.sec { margin: 0 0 18px; }
.sec > h2, .fold > summary h2 { font-size: 19px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.count:not(:empty) { font-size: 13px; font-weight: 800; color: #fff; background: var(--pen); border-radius: 10px; padding: 1px 8px; }
.mine .empty { margin: 0; padding: 16px; border: 1.5px dashed var(--rule); border-radius: 12px; color: var(--muted); }
.line { background: var(--paper); border-radius: 12px; padding: 12px 12px 10px; margin: 0 0 10px; box-shadow: 0 1px 2px rgba(10,30,30,.08), 0 8px 24px -18px rgba(10,30,30,.4); scroll-margin-top: 12px; }
.line.fresh { box-shadow: 0 0 0 2px var(--brass), 0 8px 24px -14px rgba(10,30,30,.4); }
.lh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.x { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; padding: 2px 8px; cursor: pointer; border-radius: 6px; }
.lr, .ls { margin: 8px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.ls { color: var(--muted); margin-top: 4px; }
.lr .dt, .rec .dt { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lr .m { font-weight: 800; color: var(--muted); }
.lr .m.on { color: var(--ink); }
.mine .plus { color: var(--muted); }
.rec { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rec li { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "dt rs" "b b"; gap: 4px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rec .dt { grid-area: dt; } .rec .rs { grid-area: rs; text-align: end; } .rec .balls { grid-area: b; }
.rec .ball { width: 26px; height: 26px; font-size: 12px; }
.rec .rs .m { font-weight: 700; color: var(--muted); } .rec .rs .m.on { color: var(--ink); }
.rec .tier { font-size: 12px; padding: 1px 6px; }
.la { display: flex; gap: 8px; margin: 10px 0 0; }
/* a ticket: one card, a row per line with its letter like the printed slip */
.tag { flex: none; display: inline-grid; place-items: center; min-width: 22px; padding: 0 3px; height: 22px; border-radius: 5px; font: 800 13px/1 var(--sans); background: var(--ink); color: var(--paper); }
.slip-h { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 800; font-size: 14px; }
.slip-h svg { width: 20px; height: 20px; color: var(--brass); }
.slip-h .dt { font-weight: 400; color: var(--muted); font-size: 13px; }
.set-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.set-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.set-rows .balls { gap: 4px; }
.set-rows .ball { width: 28px; height: 28px; font-size: 12px; }
.set-rows .rs { margin-inline-start: auto; display: inline-flex; gap: 6px; align-items: center; }
.set-rows .rs .m { font-weight: 700; color: var(--muted); } .set-rows .rs .m.on { color: var(--ink); }
.set-rows .tier { font-size: 12px; padding: 1px 6px; }
.tier .amt { font-weight: 700; margin-inline-start: 3px; padding-inline-start: 7px; border-inline-start: 1.5px solid rgba(0,0,0,.28); }
/* a shared ticket in the banner: every line, small */
.v-rows { list-style: none; margin: 8px 0 0; padding: 0; max-height: 168px; overflow-y: auto; }
.v-rows li { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.v-rows .ball { width: 24px; height: 24px; font-size: 11px; }
.v-rows .balls { gap: 3px; }
.v-rows .tag { background: var(--brass); color: #241a10; width: auto; min-width: 22px; padding: 0 3px; }
.v-of { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--on-night-muted); }
.v-of .tag { background: var(--brass); color: #241a10; }
/* a set's cost and what it would have won in the last draw */
.mn { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.mn-cost { color: var(--muted); }
.mn-win { color: var(--muted); }
.mn-win.on { color: var(--ink); }
.verdict .mn { margin-top: 7px; }
.verdict .mn-cost, .verdict .mn-win { color: var(--on-night-muted); }
.verdict .mn-win.on { color: var(--spot); }
.act { font: 700 14px/1 var(--sans); padding: 9px 12px; border-radius: 8px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer; }
.act:hover { border-color: var(--pen); color: var(--pen); }

.last { background: var(--night); color: var(--on-night); border-radius: 14px; padding: 14px 14px 12px; }
.last h2 { color: #fff; }
.last .cap { margin: 0 0 8px; font-size: 13px; color: var(--on-night-muted); font-weight: 700; }
.last .now-balls { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.last .now-link, .last a { color: var(--spot); font-size: 14px; font-weight: 700; }
.last .pend { display: flex; align-items: center; gap: 8px; color: var(--spot); font-size: 14px; font-weight: 700; margin: 6px 0; }
.last .typed { font-weight: 600; color: var(--on-night-muted); }
.type { margin: 6px 0 0; }
.type summary { cursor: pointer; color: var(--spot); font-weight: 700; font-size: 15px; width: max-content; max-width: 100%; }
.type .own { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 4px; }
.type input { width: 42px; height: 42px; border-radius: 50%; border: 0; text-align: center; font: 800 16px/1 var(--sans); color: #111;
  background: radial-gradient(circle at 34% 30%, #fff 0 18%, #f4f4ef 40%, #cfcec7 100%); appearance: textfield; -moz-appearance: textfield; }
.type input.ex { background: radial-gradient(circle at 34% 30%, #fff 0 14%, #ffd36b 40%, #c98d12 100%); }
.type .act { background: var(--spot); border-color: var(--spot); color: var(--night); }
.type .msg { color: #ffb4a8; font-size: 14px; min-height: 1.3em; margin: 2px 0 0; }

.fold { background: var(--paper); border-radius: 12px; padding: 4px 14px; box-shadow: 0 1px 2px rgba(10,30,30,.06); }
.fold > summary { list-style: none; cursor: pointer; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; font-size: 17px; }
.fold > summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); margin-inline-end: 4px; transition: transform .2s; }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold[open] { padding-bottom: 14px; }
.fold .play { margin-top: 6px; }
.info .how { margin: 0 0 10px; }
.info h3 { font-size: 16px; margin: 18px 0 8px; }
.info .facts dl { margin: 0; }
.results, .more { margin-top: 18px; }

/* the first version's side stripes go */
.slip { border-inline-start-width: 1px; }
.now { border-inline-start-width: 1px; border-radius: 12px; }
@media (max-width: 759px) { .now { border-inline-start-width: 1px; } }
.tiles a, .game-card { border-inline-start-width: 1px; border-inline-start-color: var(--rule); }
.tiles a { border-radius: 10px; }
.game-card { border-radius: 10px; border-color: transparent; box-shadow: 0 1px 2px rgba(10,30,30,.08); }
.game-card:hover, .tiles a:hover { border-color: var(--pen); }
.country h3 { border-bottom: 0; color: var(--ink); }

/* home: the pool, big */
.pool-entry { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 16px; border-radius: 14px; border: 0;
  background: linear-gradient(135deg, #12343a, var(--night)); color: var(--on-night); box-shadow: 0 14px 30px -20px rgba(8,22,25,.9); text-decoration: none; }
.pool-entry b { display: block; font-size: 21px; color: #fff; }
.pool-entry small { display: block; font-size: 14px; color: var(--on-night-muted); }
.pool-entry span { flex: 1; }
.pool-entry .go { color: var(--spot); flex: none; }
.pool-entry:hover { outline: 2px solid var(--brass); }
.list-h { font-size: 19px; margin: 0 0 12px; }
.home-lead { color: var(--muted); font-size: 14px; margin: 20px 0 0; }
@media (prefers-reduced-motion: reduce) { .tally { animation: none; } .verdict { animation: none; } }

/* pool: its top band takes the stage colors */
.pool-now { background: var(--night); color: var(--on-night); border-color: var(--night-line); }
.pool-now .now-cell + .now-cell { border-color: var(--night-line); }
.pool-now .now-label { color: var(--spot); }
.pool-now .now-label span { color: var(--on-night); }
.pool-now select, .pool-now input { background: var(--night-2); color: var(--on-night); border-color: var(--night-line); }
.pool-now .cd b { color: #fff; }
.pool-now .cd i, .pool-now .draw-zone { color: var(--on-night-muted); }

/* the live area under the draw button (assets/kit/live.mjs): the last 24 hours on the whole site,
   real records only. Counts, the newest draws with their balls, the numbers drawn most in this game. */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; flex: none; animation: tally 2.2s ease-in-out infinite; }
.lv { margin: 0 0 18px; padding: 12px 14px 12px; border: 1px solid var(--night-line); border-radius: 14px;
  background: linear-gradient(180deg, #12292e, var(--night)); color: var(--on-night-muted); box-shadow: 0 8px 24px -16px rgba(10,30,30,.6); }
.lv[hidden] { display: none; }
.lv-top { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--on-night); letter-spacing: 0; }
.lv-when { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--on-night-muted); }
.lv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; }
.lv-s { display: grid; justify-items: center; gap: 2px; padding: 7px 4px 6px; border-radius: 9px; background: rgba(255,255,255,.05); font-size: 11.5px; text-align: center; line-height: 1.15; }
.lv-s b { font: 800 19px/1 var(--sans); color: #fff; font-variant-numeric: tabular-nums; }
.lv-feed { list-style: none; margin: 0; padding: 0; }
.lv-feed li { padding: 8px 0; border-top: 1px solid var(--night-line); }
.lv-feed li.me { background: linear-gradient(90deg, rgba(231,176,75,.10), transparent 70%); }
.lv-feed li.new { animation: lv-in .6s ease-out; }
@keyframes lv-in { from { opacity: 0; transform: translateY(-10px); background-color: rgba(255,214,140,.22); } }
.lv-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 5px; font-size: 12.5px; }
.lv-meta .lv-g { color: var(--on-night); font-weight: 700; }
.lv-ago { font-variant-numeric: tabular-nums; }
.lv-me { color: #241a10; background: var(--brass); border-radius: 5px; padding: 0 6px; font-weight: 800; }
.lv-cc { color: var(--on-night); }
.lv-m { padding: 0 6px; border-radius: 5px; background: rgba(255,255,255,.07); }
.lv-m.on { color: var(--spot); font-weight: 700; }
.lv-tier { color: var(--night); background: var(--hit); border-radius: 5px; padding: 0 6px; font-weight: 800; }
.lv-line { display: flex; align-items: center; gap: 8px; margin: 0; }
.lv-more { font-size: 12px; font-weight: 700; color: var(--on-night-muted); white-space: nowrap; }
.lv-empty { font-size: 13px; padding: 10px 0 2px; }
.lv-hot { margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--night-line); }
.lv-sub { margin: 0 0 7px; font-size: 12.5px; font-weight: 700; color: var(--on-night); }
.lv-hb { display: flex; flex-wrap: wrap; gap: 8px 7px; }
.lv-h { display: grid; justify-items: center; gap: 3px; width: 30px; }
.lv-h i { display: block; width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.lv-h i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--brass); }
.lv-h small { font-size: 10.5px; font-variant-numeric: tabular-nums; }
.lv .ball { white-space: nowrap; --c: #fbfbf7; --i: #111; width: 26px; height: 26px; border: 0; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font: 800 12px/1 var(--sans); color: var(--i); font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 50% 52%, rgba(255,255,255,.94) 0 44%, transparent 46%), radial-gradient(circle at 32% 28%, #fff 0 9%, var(--c) 36%, color-mix(in srgb, var(--c) 62%, #000) 100%);
  box-shadow: 0 2px 3px rgba(0,0,0,.25); }
.lv .balls { display: inline-flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.lv .plus { color: var(--on-night-muted); font-weight: 700; margin: 0 1px; }
@media (max-width: 380px) { .lv .ball { width: 23px; height: 23px; font-size: 11px; } .lv-s b { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .lv-feed li.new, .live-dot { animation: none; } }
.stage-in { padding-bottom: 8px; }

/* feedback: the speech bubble in the header, the link in the footer, the window */
.top-end { display: flex; align-items: center; gap: 10px; }
/* the feedback controls appear once the records API has answered (assets/kit/track.mjs) */
html:not([data-api=on]) [data-fb], html:not([data-api=on]) .fb-row { display: none; }
.fb-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid var(--night-line); background: transparent;
  color: var(--on-night-muted); cursor: pointer; flex: none; }
.fb-btn:hover { color: var(--on-night); border-color: var(--on-night-muted); }
.fb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.foot .link { background: none; border: 0; padding: 0; font: inherit; color: var(--pen); text-decoration: underline; cursor: pointer; white-space: nowrap; }
.fb { width: min(460px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.55); }
.fb::backdrop { background: rgba(4, 12, 14, .62); }
.fb-in { display: grid; gap: 12px; padding: 16px; }
.fb-top { display: flex; align-items: center; justify-content: space-between; }
.fb-top h2 { margin: 0; font-size: 19px; }
.fb-x { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 8px; border-radius: 6px; }
.fb-kinds { display: flex; gap: 6px; }
.fb-kinds label { position: relative; }
.fb-kinds input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-kinds span { display: block; padding: 7px 14px; border-radius: 8px; border: 1.5px solid var(--rule); font-size: 14px; font-weight: 600; }
.fb-kinds input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.fb-kinds input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: 2px; }
.fb textarea, .fb input[type=email] { width: 100%; box-sizing: border-box; font: 16px/1.45 var(--sans); padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 8px; color: var(--ink); background: #fff; }
.fb textarea { resize: vertical; min-height: 120px; }
.fb textarea:focus-visible, .fb input[type=email]:focus-visible { outline: 3px solid var(--pen); outline-offset: 1px; }
.fb .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.fb-note { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.fb-end { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-msg { margin: 0; font-size: 14px; font-weight: 600; color: var(--slip); }
.fb-msg.ok { color: #1f7a4a; }
.fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fb-row .btn-quiet { display: inline-flex; align-items: center; gap: 6px; }

/* ad consent (assets/kit/consent.mjs): Brazil and South Korea only; Google asks in the EEA, UK, CH and US.
   Decline and Accept look the same on purpose (no nudging). */
.consent { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 50; width: min(560px, calc(100vw - 24px)); box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border-radius: 12px;
  background: #061113; color: var(--on-night); border: 1px solid var(--night-line); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); font-size: 14px; }
.consent[hidden] { display: none; }
.consent .c-text { flex: 1 1 220px; margin: 0; line-height: 1.4; }
.consent .c-text a { color: var(--spot); white-space: nowrap; }
.consent:not([data-region=br]) [data-for=br], .consent:not([data-region=kr]) [data-for=kr] { display: none; }
.c-btns { display: flex; gap: 8px; flex: none; }
.c-btns button { min-width: 84px; padding: 9px 14px; border-radius: 8px; border: 1.5px solid var(--on-night-muted); background: transparent; color: #fff;
  font: 700 14px/1 var(--sans); cursor: pointer; }
.c-btns button:hover { border-color: #fff; }
.c-btns button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html:not([data-region=br]):not([data-region=kr]) [data-consent] { display: none; }
@media (max-width: 639px) {
  .consent { top: 6px; bottom: auto; padding: 9px 12px; gap: 6px 10px; font-size: 13px; }
  .consent .c-text { flex-basis: 100%; }
  .c-btns { width: 100%; }
  .c-btns button { flex: 1; padding: 8px 10px; }
}

/* "?" tips next to words a beginner may not know (templates/_tip.html, assets/kit/tips.mjs).
   The bubble opens under the mark; tips.mjs shifts it sideways to stay on screen. */
.tip.q { display: inline-flex; vertical-align: middle; margin-inline-start: 6px; position: relative; }
.tip-q { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; }
.tip-q::before { content: ""; position: absolute; inset: -10px; }
.tip-q:hover, .tip.q.open .tip-q { color: var(--pen); }
.tip-q:focus-visible, .v-saved:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
.stage .tip-q, .lv .tip-q, .verdict .tip-q, .pool-row .tip-q { color: var(--on-night-muted); }
.stage .tip-q:hover, .stage .tip.q.open .tip-q { color: #fff; }
.tip.q .tip-body { top: calc(100% + 8px); bottom: auto; inset-inline-start: -8px; inset-inline-end: auto; width: min(300px, calc(100vw - 24px));
  font: 400 14px/1.5 var(--sans); letter-spacing: normal; text-align: start; white-space: normal; text-transform: none; z-index: 40; }
.tip.q .tip-body b { font-weight: 700; }
.lv { overflow: visible; }
.lv .tip.q { margin-inline-start: 2px; }
.stage .next .tip.q { margin-inline-start: 0; }
.tip.v-tip { position: relative; display: inline-flex; }
.v-saved { font: inherit; background: none; border: 0; padding: 4px 2px; min-height: 32px; }
.v-res .tip.q .tip-body, .v-foot .tip .tip-body { top: auto; bottom: calc(100% + 8px); }
.pool-row { display: flex; align-items: center; gap: 6px; margin: 0 0 22px; }
.pool-row .pool-entry { flex: 1; margin: 0; }
.pool-row .tip.q .tip-body { inset-inline-start: auto; inset-inline-end: 0; }

/* right to left (Arabic): the page flows from the right, while balls, number grids, the countdown
   and the odds pips stay left to right like the numbers on a real ticket */
[dir=rtl] :is(.balls, .now-balls, .p-balls, .nums, .own, .pips, .grid, .cd, .r-line, .r-lines, canvas) { direction: ltr; }
[dir=rtl] .month:not([open]) summary::before { transform: rotate(135deg); }
/* a monospace font has no proper Arabic shapes: Arabic receipts use the page font, numbers kept even */
:lang(ar) .receipt { font-family: var(--sans); font-variant-numeric: tabular-nums; }
[dir=rtl] .picks { -webkit-mask-image: linear-gradient(270deg, #000 85%, transparent); mask-image: linear-gradient(270deg, #000 85%, transparent); }
[dir=rtl] .check-form { direction: ltr; } [dir=rtl] .check-form legend { direction: rtl; }
/* no countdown (a game without a fixed draw time), no countdown tip */
.cd[hidden] + .tip.q { display: none; }
[dir=rtl] .pool-entry .go, [dir=rtl] .v-mine svg { transform: scaleX(-1); }
:lang(ar) :is(*, *::before, *::after) { letter-spacing: normal !important; }
/* the ball rows still start at the right edge of an Arabic page, in left-to-right order */
[dir=rtl] :is(.balls, .now-balls, .p-balls) { justify-content: flex-end; text-align: right; }
/* the countdown is a left-to-right island, so its own "inline start" is the left: push it to the end by hand */
[dir=rtl] .stage .cd { margin-left: 0; margin-right: auto; }
/* an open tip must never widen the page (a phone would zoom out to fit it) */
html, body { overflow-x: clip; }
/* a wide screen: the live feed in two columns */
@media (min-width: 900px) {
  .lv-feed { columns: 2; column-gap: 24px; }
  .lv-feed li { break-inside: avoid; }
  .lv-feed .lv-empty { column-span: all; }
}

/* ===================================================================== points and draw styles (2026-11-05)
   The level chip next to the sound button, short notes over the machine, the styles row under the
   big button with the chosen style's settings, and on a game page the points section. */
.stage-tools { flex: none; display: flex; align-items: center; gap: 8px; }
.lvl { display: inline-flex; align-items: center; gap: 6px; height: 42px; margin-top: 2px; padding: 0 12px 0 4px; border-radius: 21px; border: 1.5px solid var(--night-line);
  background: var(--night-2); color: var(--on-night); text-decoration: none; font: 800 14px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lvl[hidden] { display: none; }
.lvl svg { width: 32px; height: 32px; transform: rotate(-90deg); }
.lvl circle { fill: none; stroke-width: 3.2; }
.lvl .r0 { stroke: var(--night-line); }
.lvl .r1 { stroke: var(--brass); stroke-linecap: round; }
.lvl b { color: var(--spot); }
.lvl span { color: var(--on-night-muted); font-weight: 700; font-size: 13px; }
.lvl:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.pt-notes { position: absolute; top: 34px; inset-inline-end: 10px; display: grid; justify-items: end; gap: 6px; pointer-events: none; z-index: 4; }
.pt-note { margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(6,17,19,.92); border: 1px solid var(--brass); color: var(--spot);
  font: 800 13px/1.2 var(--sans); box-shadow: 0 6px 18px -8px #000; animation: pt-in .3s cubic-bezier(.2,.8,.2,1); transition: opacity .4s, transform .4s; }
.pt-note.up { background: var(--brass); color: #241a10; }
.pt-note.use { border-color: var(--night-line); color: var(--on-night); }
.pt-note.out { opacity: 0; transform: translateY(-6px); }
@keyframes pt-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.sty { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 4px 16px 6px; }
.sty::-webkit-scrollbar { display: none; }
.sty[hidden], .sty-opt[hidden] { display: none; }
@media (max-width: 759px) { .sty { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  [dir=rtl] .sty { -webkit-mask-image: linear-gradient(270deg, #000 88%, transparent); mask-image: linear-gradient(270deg, #000 88%, transparent); } }
@media (min-width: 760px) { .sty { justify-content: center; flex-wrap: wrap; } }
.sty-b { position: relative; flex: none; width: 78px; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 9px 4px 8px; border-radius: 10px;
  border: 1.5px solid var(--night-line); background: rgba(255,255,255,.02); color: var(--on-night); font: 700 12px/1.2 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sty-b i { position: relative; display: grid; place-items: center; width: 32px; height: 32px; color: var(--spot); }
/* pixel art stays on its grid: no rotation, whole-number sizes only */
.px { display: block; width: 32px; height: 32px; image-rendering: crisp-edges; image-rendering: pixelated; }
.sty-b span { text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.sty-b small { font: 800 11px/1 var(--sans); color: var(--brass); font-variant-numeric: tabular-nums; }
.sty-b[aria-pressed="true"] { color: #241a10; background: radial-gradient(circle at 50% 30%, #ffe2a0, var(--brass) 75%); border-color: var(--brass); box-shadow: 0 0 16px rgba(231,176,75,.35); }
.sty-b[aria-pressed="true"] i, .sty-b[aria-pressed="true"] small { color: #241a10; }
.sty-b.locked { color: var(--on-night-muted); border-style: dashed; }
.sty-b.locked i { color: var(--on-night-muted); }
.sty-b.locked i > .px { filter: grayscale(1) brightness(.75); opacity: .5; }
.sty-b .lk { position: absolute; inset-inline-end: -7px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--night); color: var(--spot); }
.sty-b .lk svg { width: 13px; height: 13px; opacity: 1; }
.sty-b:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.drawing .sty-b { opacity: .6; cursor: default; }

.sty-opt { margin: 6px 0 0; padding: 10px 12px 12px; border-radius: 10px; background: var(--night-2); border: 1px solid var(--night-line); font-size: 14px; }
.so-d { margin: 0; color: var(--on-night-muted); font-size: 13.5px; line-height: 1.45; }
.so-d b { color: #fff; margin-inline-end: 8px; }
.so-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; color: var(--on-night-muted); font-size: 13px; }
.so-c { color: var(--spot); font-weight: 800; font-variant-numeric: tabular-nums; }
.so-x, .seg { font: 700 13px/1 var(--sans); padding: 8px 11px; border-radius: 7px; border: 1.5px solid var(--night-line); background: transparent; color: var(--on-night); cursor: pointer; }
.so-x { margin-inline-start: auto; }
.seg[aria-pressed="true"] { background: var(--spot); color: var(--night); border-color: var(--spot); }
.nbs { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 6px; margin: 10px auto 0; direction: ltr; }
.nb { aspect-ratio: 1; min-width: 0; padding: 0; border-radius: 50%; border: 1.5px solid var(--night-line); background: transparent; color: var(--on-night);
  font: 700 13px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (min-width: 760px) { .nbs { max-width: 560px; } }
.nb[data-state="keep"] { background: var(--spot); color: var(--night); border-color: var(--spot); }
.nb[data-state="skip"] { color: #ff9b91; border-color: rgba(255,155,145,.6); text-decoration: line-through; }
.nbs.wheel .nb[data-state="keep"] { background: var(--brass); border-color: var(--brass); color: #241a10; }
.so-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 0; }
.st { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; grid-template-areas: "l l l" "m v p"; align-items: center; gap: 4px; padding: 6px 8px 8px; border: 1px solid var(--night-line); border-radius: 9px; background: var(--night); }
.st-l { grid-area: l; color: var(--on-night-muted); font-size: 12.5px; font-weight: 700; }
.st button[data-d="-1"] { grid-area: m; } .st button[data-d="1"] { grid-area: p; } .st b { grid-area: v; }
.st button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--night-line); background: var(--night-2); color: #fff; font: 800 17px/1 var(--sans); cursor: pointer; padding: 0; }
.st b { min-width: 0; text-align: center; color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; direction: ltr; }

.pts h3 { font-size: 15px; margin: 16px 0 8px; display: flex; align-items: center; gap: 6px; }
.pt-card { background: var(--night); color: var(--on-night); border-radius: 14px; padding: 14px 14px 12px; }
.pt-lv { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pt-lv b { font: 900 28px/1 var(--sans); color: var(--spot); }
.pt-lv span { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-bar { height: 10px; border-radius: 5px; background: var(--night-line); margin: 12px 0 6px; overflow: hidden; }
.pt-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--brass), var(--spot)); }
.pt-next { margin: 0; font-size: 13px; color: var(--on-night-muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-miss { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.pt-miss .tip-q { color: var(--on-night-muted); }
@media (max-width: 479px) { .lvl span { display: none; } .lvl { padding-inline-end: 10px; } }
/* the home page's game chips need the room on a phone */
@media (max-width: 479px) { .stage-head:has(.picks) .lvl { display: none; } }
.pt-run { margin-inline-start: auto; font: 800 12px/1 var(--sans); color: #fff; background: var(--slip); padding: 4px 8px; border-radius: 10px; }
.pt-cal ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.pt-cal li { display: grid; justify-items: center; gap: 3px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 0; white-space: nowrap; }
.pt-cal li i { width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--rule); display: grid; place-items: center; color: var(--slip); }
.pt-cal li.on i { border-style: solid; border-color: transparent; background: rgba(210,58,80,.08); }
@media (max-width: 479px) { .pt-cal ol { grid-template-columns: repeat(7, minmax(0, 1fr)); } .pt-cal li:nth-child(-n+3) { display: none; } }
.pt-cal li.cur span { font-weight: 800; color: var(--ink); }
.pt-cal li.cur i { border-color: var(--slip); }
.pt-parts ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.pt-parts li { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; font: 700 11.5px/1.2 var(--sans); color: var(--muted);
  padding: 8px 2px; border-radius: 10px; background: var(--paper); box-shadow: 0 1px 2px rgba(10,30,30,.08); word-break: keep-all; overflow-wrap: anywhere; min-width: 0; }
.pt-parts li i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--desk); color: var(--rule); }
.pt-parts li:not(.on) i .px { filter: grayscale(1); opacity: .35; }
.pt-parts li.on { color: var(--ink); }
/* a light warm disc: the sprites' dark outlines (#081619) need a light ground to show */
.pt-parts li.on i { background: #fbe7b8; box-shadow: inset 0 0 0 2px var(--brass); }
.pt-parts li em { font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 800; }
.pt-rc .paper { max-width: 360px; margin: 0 auto; padding: 14px 14px 22px; background: #fffdf6; color: #2b2b2b; font: 12.5px/1.45 var(--mono);
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 12px 26px -16px rgba(0,0,0,.4);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x; }
:lang(ar) .pt-rc .paper { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.rc-top { margin: 0 0 6px; padding-bottom: 8px; text-align: center; font-weight: 800; letter-spacing: .25em; border-bottom: 1.5px dashed #9a9a9a; }
.rc-top span { letter-spacing: 0; font-weight: 600; font-size: 11.5px; }
.pt-rc ol { list-style: none; margin: 0; padding: 0; }
.pt-rc li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; padding: 3px 0; border-bottom: 1px dotted #cfcfcf; }
.pt-rc li .d { color: #5c5c5c; }
.pt-rc li .w i { font-style: normal; color: #5c5c5c; }
.pt-rc li .w { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-rc li b { font-variant-numeric: tabular-nums; direction: ltr; }
.rc-empty { margin: 8px 0; color: #7a7a7a; text-align: center; }
.rc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0 0; padding-top: 8px; border-top: 1.5px dashed #9a9a9a; font-weight: 700; }
.rc-foot .act { font-family: var(--sans); }
@media (min-width: 760px) {
  .pts [data-r="pts-body"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); grid-template-areas: "card rc" "cal rc" "parts rc"; gap: 0 24px; align-items: start; }
  .pt-card { grid-area: card; } .pt-cal { grid-area: cal; } .pt-parts { grid-area: parts; } .pt-rc { grid-area: rc; }
  .pt-rc h3 { margin-top: 0; }
}
.pool-note { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 40; }

/* the engine record (templates/_dossier.html): a classified page; values typed, the secret blacked out */
.dossier { margin: 26px 0 30px; }
.ds-paper { position: relative; max-width: 560px; margin: 0 auto; padding: 22px 22px 16px; border-radius: 4px; color: #1e2a30; overflow: hidden;
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(60,90,110,.10) 31px 32px), #e6ecef;
  box-shadow: 0 1px 0 #fff inset, 0 10px 26px -14px rgba(10,30,30,.45), 0 2px 4px rgba(10,30,30,.12); }
.ds-paper::before { content: ""; position: absolute; inset-inline-start: 10px; top: 18px; bottom: 18px; width: 8px;
  background: radial-gradient(circle, #c9d2d6 0 3.2px, transparent 3.6px) 0 0 / 8px 44px repeat-y; opacity: .9; }
.ds-paper h2 { margin: 0 0 12px; padding-inline-start: 14px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; font-weight: 800; }
.ds-no { font: 700 13px/1 ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; color: #6b7d86; margin-inline-start: 6px; }
.ds-stamp { position: absolute; top: 14px; inset-inline-end: 16px; margin: 0; padding: 3px 10px; border: 2.5px solid #c8102e; border-radius: 4px;
  color: #c8102e; font: 900 14px/1.1 var(--sans); letter-spacing: .12em; transform: rotate(-7deg); opacity: .78; mix-blend-mode: multiply; }
.ds-list { margin: 0; padding-inline-start: 14px; }
.ds-list > div { display: grid; grid-template-columns: minmax(0, 11em) 1fr; gap: 2px 12px; align-items: center; min-height: 32px; }
.ds-list dt { font-size: 12.5px; color: #4b5d66; }
.ds-list dd { margin: 0; font: 700 14px/1.3 ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; color: #10181c; }
:lang(ar) .ds-list dd, :lang(ar) .ds-no { font-family: var(--sans); }
.rd { position: relative; display: inline-block; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; vertical-align: middle; }
.rd .rd-t { position: relative; display: inline-block; padding: 1px 0; color: transparent; }
.rd .rd-t::after { content: ""; position: absolute; inset: 0 -4px; background: #0b0f11; border-radius: 1px; transform-origin: right center; transition: transform .55s cubic-bezier(.6,0,.2,1); }
.rd:hover .rd-t::after, .rd:focus-visible .rd-t::after { background: #1d2a30; }
.rd.open .rd-t { color: #10181c; }
.rd.open .rd-t::after { transform: scaleX(0); }
:lang(ar) .rd .rd-t::after { transform-origin: left center; }
.rd.wide { display: block; width: 100%; }
.rd.wide .rd-t { display: block; }
.rd-stamp { position: absolute; inset: 50% auto auto 50%; padding: 1px 8px; border: 2px solid #c8102e; border-radius: 3px; background: rgba(230,236,239,.88);
  color: #c8102e; font: 900 12px/1.2 var(--sans); letter-spacing: .1em; white-space: nowrap; transform: translate(-50%, -50%) rotate(-5deg);
  animation: ds-stamp .32s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes ds-stamp { from { opacity: 0; transform: translate(-50%, -50%) rotate(-5deg) scale(1.9); } }
.ds-last { margin: 10px 0 0; padding-inline-start: 14px; }
.ds-hint { margin: 10px 0 0; padding-inline-start: 14px; font-size: 11.5px; color: #6b7d86; }
.dossier.still .rd .rd-t::after { transition: none; }
.dossier.still .rd-stamp { animation: none; }
.rd:focus-visible { outline: 2px solid #c8102e; outline-offset: 3px; }
@media (max-width: 420px) { .ds-list > div { grid-template-columns: 1fr; gap: 0; padding: 4px 0; } .ds-paper { padding: 20px 16px 14px 18px; } }
.ds-list > div[hidden] { display: none; }
/* typed look for Latin letters; Korean, Japanese, Chinese and Arabic read better in the plain face */
:lang(ko) .ds-list dd, :lang(ja) .ds-list dd, :lang(zh) .ds-list dd { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ===================================================================== the pixel version (2026-11-05)
   html[data-skin="dot"] (assets/kit/skin.mjs). The normal site stays as it is; this sheet only turns it
   into pixel art: the Galmuri11 bitmap font (12 px grid, OFL, assets/fonts), square corners, thick
   square borders with hard shadows, flat colours, pixel balls, and the draw machine drawn at low
   resolution (assets/kit/drum.mjs). build.py adds the font sizes snapped to 12 and 24 px after this. */
@font-face { font-family: "Galmuri11"; src: url("/lotto/assets/fonts/Galmuri11.woff2") format("woff2"); font-display: swap; }

html[data-skin="dot"] {
  --sans: "Galmuri11", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  --mono: "Galmuri11", ui-monospace, monospace;
  --pxs: 4px 4px 0 rgba(0, 0, 0, .45);
}
html[data-skin="dot"] body { font-family: var(--sans); -webkit-font-smoothing: none; -moz-osx-font-smoothing: unset; font-smooth: never; letter-spacing: 0; }
html[data-skin="dot"] :is(*, *::before, *::after) { font-family: var(--sans) !important; border-radius: 0 !important; text-shadow: none !important; }
/* long reading text and the feedback box keep the normal font: a 12 px pixel face is for labels */
html[data-skin="dot"] :is(.prose, .prose *, .guide p, .tip-body, .tip-body *, .fb textarea, .fb input) { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif !important; -webkit-font-smoothing: auto; }
html[data-skin="dot"] canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
html[data-skin="dot"] canvas { image-rendering: pixelated; }
html[data-skin="dot"] svg { shape-rendering: crispEdges; }

/* ---------------------------------------------------------------- the switch in the header */
.skin-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--night-line); background: transparent;
  color: var(--on-night-muted); font: 700 13px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.skin-btn:hover { color: var(--on-night); border-color: var(--on-night-muted); }
.skin-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.skin-btn[aria-pressed="true"] { color: #241a10; background: var(--spot); border-color: var(--spot); }
@media (max-width: 479px) { .skin-btn span { display: none; } .skin-btn { width: 36px; justify-content: center; padding: 0; } }

/* ---------------------------------------------------------------- frames: square, thick, hard shadow */
html[data-skin="dot"] :is(.machine, .verdict, .sty-opt, .pt-card, .last, .line, .fold, .card, .lv, .results, .slip, .receipt, .facts, .odds table, .tiles a, .game-card,
  .pt-parts li, .pt-rc .paper, .consent, .fb-in, .mine .empty, .step, .now, .best, .check-form) { box-shadow: var(--pxs) !important; }
html[data-skin="dot"] :is(.machine, .verdict) { border: 3px solid var(--brass) !important; }
html[data-skin="dot"] .machine { box-shadow: 6px 6px 0 rgba(0, 0, 0, .55) !important; }
html[data-skin="dot"] .verdict { border-width: 3px 3px 3px 3px !important; background: #061113; }
html[data-skin="dot"] :is(.line, .fold, .card, .lv, .results, .pt-parts li, .tiles a, .game-card) { border: 3px solid var(--ink) !important; }
html[data-skin="dot"] :is(.last, .pt-card) { border: 3px solid #000 !important; }
html[data-skin="dot"] .pt-rc .paper { -webkit-mask: none; mask: none; border: 3px solid #2b2b2b; border-bottom-style: dashed; }
html[data-skin="dot"] :is(.sty-opt, .st, .cd > span, .lvl, .snd, .fb-btn, .skin-btn, .picks a, .seg, .so-x, .act, .btn, .btn-quiet, .tip-btn, select, input, .type input) { border-width: 3px !important; }
html[data-skin="dot"] .tip-body { border: 3px solid var(--ink); box-shadow: var(--pxs); }

/* flat light instead of soft gradients: the stage is a dark field with a 2 px dither of the old glow */
html[data-skin="dot"] .stage { background: var(--night); background-image: radial-gradient(rgba(255, 210, 122, .07) 1px, transparent 1.5px); background-size: 4px 4px; }
html[data-skin="dot"] .top { background: #050e10; border-bottom: 3px solid var(--brass); }
html[data-skin="dot"] body { background: var(--desk); background-image: linear-gradient(45deg, rgba(0, 0, 0, .025) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, .025) 75%);
  background-size: 8px 8px; }
html[data-skin="dot"] .tally { animation: px-blink 1.6s steps(1) infinite; box-shadow: none; }
@keyframes px-blink { 50% { opacity: .2; } }
html[data-skin="dot"] .live-dot { box-shadow: none !important; }

/* ---------------------------------------------------------------- balls: a stepped circle, flat colour, a pixel highlight */
html[data-skin="dot"] .ball {
  --c: #fbfbf7; --i: #111;
  border: 0 !important; color: var(--i) !important; font-weight: 400 !important;
  clip-path: polygon(30% 0, 70% 0, 70% 6%, 82% 6%, 82% 12%, 88% 12%, 88% 18%, 94% 18%, 94% 30%, 100% 30%, 100% 70%, 94% 70%, 94% 82%, 88% 82%, 88% 88%, 82% 88%, 82% 94%,
    70% 94%, 70% 100%, 30% 100%, 30% 94%, 18% 94%, 18% 88%, 12% 88%, 12% 82%, 6% 82%, 6% 70%, 0 70%, 0 30%, 6% 30%, 6% 18%, 12% 18%, 12% 12%, 18% 12%, 18% 6%, 30% 6%);
  background:
    linear-gradient(#fff, #fff) 24% 20% / 12% 12% no-repeat,
    linear-gradient(#fbfbf7, #fbfbf7) center / 56% 44% no-repeat,
    linear-gradient(#fbfbf7, #fbfbf7) center / 44% 56% no-repeat,
    linear-gradient(135deg, var(--c) 0 58%, color-mix(in srgb, var(--c) 70%, #000) 58%) !important;
  box-shadow: none !important;
}
/* the old site's ring balls (results tables, slip): ink on white, the bonus in its own colour */
html[data-skin="dot"] :is(.results, .draws, .top-nums, .nums, .p-balls) .ball { --c: #e9e6dc; }
html[data-skin="dot"] .ball.b, html[data-skin="dot"] .last .ball.b, html[data-skin="dot"] .results .ball.b { --c: var(--bonus, #f0a92a); }
html[data-skin="dot"] .ball.hit { outline: 0; }
html[data-skin="dot"] :is(.verdict, .mine) .ball.hit { filter: drop-shadow(0 0 0 var(--hit)); background-color: var(--hit); }
html[data-skin="dot"] :is(.verdict, .mine) .ball.hit { --c: var(--hit); }
html[data-skin="dot"] .last .ball.q { clip-path: none; background: transparent !important; border: 3px dashed var(--night-line) !important; }

/* ---------------------------------------------------------------- the big button and the round option buttons: pixel sprites */
/* the sprites are 42 and 22 px: whole steps of 3 and 2 on a computer, 2.5 on a phone (5 device pixels at 2x) */
html[data-skin="dot"] .big { width: 126px; height: 126px; border: 0; background: url("/lotto/assets/kit/art/bigbtn.png") center / 100% 100% no-repeat !important; image-rendering: pixelated;
  box-shadow: none !important; color: #fff; }
html[data-skin="dot"] .big span { text-shadow: 2px 2px 0 #5a0d08 !important; }
html[data-skin="dot"] .big:active:not(:disabled), html[data-skin="dot"] .big:disabled { transform: translateY(4px); box-shadow: none !important;
  background-image: url("/lotto/assets/kit/art/bigbtn_down.png") !important; filter: none; }
html[data-skin="dot"] .big:disabled { filter: grayscale(.4) brightness(.85); }
@media (max-width: 759px) { html[data-skin="dot"] .big { width: 105px; height: 105px; } }
html[data-skin="dot"] :is(.opt-b, .snd) { width: 44px; height: 44px; border: 0 !important; background: url("/lotto/assets/kit/art/smallbtn.png") center / 100% 100% no-repeat !important; image-rendering: pixelated;
  box-shadow: none !important; color: var(--spot); }
html[data-skin="dot"] .opt-b[aria-pressed="true"] { filter: sepia(1) saturate(4) hue-rotate(-12deg) brightness(1.15); color: #241a10; }
html[data-skin="dot"] .opt-b b { border-width: 2px !important; }

/* ---------------------------------------------------------------- chips, steps, small controls */
html[data-skin="dot"] .sty-b { border: 3px solid var(--night-line) !important; box-shadow: 3px 3px 0 rgba(0, 0, 0, .5); align-content: center; }
html[data-skin="dot"] .sty-b[aria-pressed="true"] { background: var(--brass) !important; border-color: #241a10 !important; box-shadow: 3px 3px 0 #000; }
html[data-skin="dot"] .sty-b.locked { border-style: dashed !important; }
html[data-skin="dot"] .picks a[aria-current] { box-shadow: 3px 3px 0 rgba(0, 0, 0, .5); }
html[data-skin="dot"] :is(.nb, .st button) { border-width: 2px !important; }
html[data-skin="dot"] .nb[data-state="keep"] { box-shadow: 2px 2px 0 #000; }
html[data-skin="dot"] .pt-bar { height: 12px; border: 3px solid #000; background: var(--night-line); }
html[data-skin="dot"] .pt-bar i { background: repeating-linear-gradient(90deg, var(--spot) 0 6px, var(--brass) 6px 9px); }
html[data-skin="dot"] .pt-cal li i { border-width: 2px !important; }
html[data-skin="dot"] .pt-note { border-width: 3px; box-shadow: 3px 3px 0 #000; animation: px-in .3s steps(3); }
@keyframes px-in { from { transform: translateY(9px); opacity: 0; } }
html[data-skin="dot"] .tag { border: 2px solid #000; }
html[data-skin="dot"] .tier { border: 2px solid #241a10; }
html[data-skin="dot"] .count:not(:empty) { border: 2px solid #000; }
html[data-skin="dot"] .pips .pip { border-radius: 0 !important; }
html[data-skin="dot"] .fbox { border-width: 2px !important; }
html[data-skin="dot"] .box { border-width: 2px !important; }
html[data-skin="dot"] .fold > summary::after { border-width: 0 3px 3px 0; }
/* motion moves in steps */
html[data-skin="dot"] :is(.verdict, .line.fresh, .lv-feed li.new) { animation-timing-function: steps(4) !important; }
/* reading text stays at a size made for reading */
html[data-skin="dot"] :is(.prose, .guide p, .tip-body, .fb-note) { font-size: 15px !important; line-height: 1.6 !important; }
html[data-skin="dot"] .big span { line-height: 1 !important; padding: 0 10px; }
/* the wider pixel face: long labels wrap instead of pushing their "?" off a phone screen */
html[data-skin="dot"] .pool-row .pool-entry { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
html[data-skin="dot"] .pool-row .pool-entry * { min-width: 0; white-space: normal; }

/* the pixel version's font sizes, snapped to the 12 px grid (build.py dot_sizes) */
html[data-skin="dot"] body { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .brand { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .langs { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lang-menu summary { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lang-menu nav > * { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] h1 { font-size: 36px; line-height: 1.2; }
html[data-skin="dot"] h2 { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .lead { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .crumb { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .now-label { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .now-balls .ball { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .now-link { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .cd b { font-size: 36px; line-height: 1.2; }
html[data-skin="dot"] .cd i { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .slip-name { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .legend { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .slip-label { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .box { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .box.mini { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .hint { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .controls label { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .btn, html[data-skin="dot"] .btn-quiet { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .btn-quiet { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .err { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .tip-body { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .r-title { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .r-sub { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .r-lines { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .r-empty { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .r-foot { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .facts dt { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .checked, html[data-skin="dot"] .note { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .odds th { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .odds .pz-r { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pips .plus { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .results h3 { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .draws th { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .ball { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .fbox b { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .fbox i { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .scale { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .tiles span { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .country h3 { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .g-name { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .g-how, html[data-skin="dot"] .g-days { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .prose h2 { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .chips li { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .mail-row .btn { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .top-nums .ball { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .check-form legend { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .check-form input { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .month summary { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .month summary small { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .month summary .best { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .foot { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .cd b { font-size: 36px; line-height: 1.2; }
html[data-skin="dot"] .lead { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .grid .box { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .controls label { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .draws .d { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pool-entry b { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pool-entry small { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .draw-zone { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pick-date input { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .warn { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .join .btn { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .add-label { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .add-name input { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .step { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .step b { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .rank { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .p-name { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .p-row.won .score { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .merge input { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .fallback { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .p-balls .ball { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .mine-check h3 { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .mine-rows .tag { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .mine-res { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .draw-prizes .wn-l { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .draw-pager a small { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .draw-pager .draw-year { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .stage-lead { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .stage h1 { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .stage .crumb { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .picks a { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .next { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .stage .cd b { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .stage .cd i { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .back { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .status { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .verdict.many .ball { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .v-head { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .v-res { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .tier { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .v-foot { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .opt-c { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .opt-b b { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .big { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] /* glossy balls (stage, html[data-skin="dot"] my lines, html[data-skin="dot"] last draw) */ .verdict .ball, html[data-skin="dot"] .mine .ball, html[data-skin="dot"] .last .ball { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .verdict .ball, html[data-skin="dot"] .mine .ball, html[data-skin="dot"] .last .ball { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .sec > h2, html[data-skin="dot"] .fold > summary h2 { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .count:not(:empty) { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .x { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .lr, html[data-skin="dot"] .ls { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lr .dt, html[data-skin="dot"] .rec .dt { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .rec li { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .rec .ball { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .rec .tier { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] /* a ticket: one card, html[data-skin="dot"] a row per line with its letter like the printed slip */ .tag { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .slip-h { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .slip-h .dt { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .set-rows li { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .set-rows .ball { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .set-rows .tier { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .v-rows .ball { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .v-of { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] /* a set's cost and what it would have won in the last draw */ .mn { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .act { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .last .cap { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .last .now-link, html[data-skin="dot"] .last a { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .last .pend { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .type summary { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .type input { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .type .msg { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .fold > summary h2 { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .info h3 { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pool-entry b { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .pool-entry small { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .list-h { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .home-lead { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lv-top { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lv-when { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lv-s { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lv-s b { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .lv-meta { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lv-more { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lv-empty { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lv-sub { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lv-h small { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lv .ball { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lv .ball { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lv-s b { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .fb-top h2 { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .fb-x { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .fb-kinds span { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .fb textarea, html[data-skin="dot"] .fb input[type=email] { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .fb-note { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .fb-msg { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] /* ad consent (assets/kit/consent.mjs): Brazil and South Korea only; Google asks in the EEA, html[data-skin="dot"] UK, html[data-skin="dot"] CH and US. Decline and Accept look the same on purpose (no nudging). */ .consent { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .c-btns button { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .consent { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .tip.q .tip-body { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lvl { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .lvl span { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pt-note { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .sty-b { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .sty-b small { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .sty-opt { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .so-d { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .so-h { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .so-x, html[data-skin="dot"] .seg { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .nb { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .st-l { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .st button { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .st b { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pts h3 { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pt-lv b { font-size: 24px; line-height: 1.2; }
html[data-skin="dot"] .pt-lv span { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pt-next { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pt-run { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pt-cal li { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pt-parts li { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pt-parts li em { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .pt-rc .paper { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .rc-top span { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .ds-paper h2 { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .ds-no { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .ds-stamp { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .ds-list dt { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .ds-list dd { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .rd-stamp { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] .ds-hint { font-size: 12px; line-height: 1.4; }
html[data-skin="dot"] /* ---------------------------------------------------------------- the switch in the header */ .skin-btn { font-size: 12px; line-height: 1.4; }
