/* /lottery/, /lottery/toto/ and /lottery/4d/: the balls and number tiles, the next draw, the draw picker, the number
   pickers and the counts */
.asof { display: inline-block; font-weight: 800; font-size: 14px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; margin: 0 0 12px; }
.balls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 12px; }
.ball { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; font-family: var(--font); font-weight: 700; font-size: 21px; box-shadow: 0 3px 0 rgba(27,27,58,.18); }
.ball.add { background: var(--yellow); }
.ball.hit { background: var(--teal); }
.plus { font-family: var(--font); font-weight: 700; font-size: 22px; color: var(--muted); }
.g1 { margin: 0 0 4px; }
.grid-table td small { display: block; color: var(--muted); font-family: var(--body); font-weight: 700; }
.prizes td:not(:first-child), .prizes th:not(:first-child) { text-align: right; white-space: nowrap; }
/* the draw box and the next draw are drawn by the script too: hold their room so nothing below moves */
[data-draw] { min-height: 470px; }
[data-next] { min-height: 92px; }
.next { display: grid; gap: 2px; background: #fff4d1; border: 3px solid var(--ink); border-radius: 18px; padding: 12px 16px; margin: 4px 0 14px; }
.next b { font-family: var(--font); font-weight: 700; font-size: 24px; }
.next span:last-child { font-weight: 700; color: var(--muted); }
.picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.picker label { font-family: var(--font); font-weight: 600; font-size: 17px; }
select { font: inherit; font-weight: 700; font-size: 16px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 7px 10px; max-width: 100%; }
.numgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; margin: 8px 0 10px; }
.pick { font-family: var(--font); font-weight: 700; font-size: 18px; aspect-ratio: 1; min-height: 40px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; cursor: pointer; padding: 0; }
.pick[aria-pressed="true"] { background: var(--ink); color: #fff; }
.typed { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 12px; }
.typed input { flex: 1 1 220px; min-width: 0; font-family: var(--font); font-weight: 600; font-size: 20px; padding: 8px 12px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; outline: none; }
.typed input:focus { box-shadow: 0 0 0 4px var(--yellow); }
.typed .btn { min-height: 44px; }
.typed .btn.alt { background: #fff; }
[data-count] { font-weight: 800; }
[data-check] .balls { margin-top: 14px; }
.freq { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 460px; margin: 6px 0 10px; }
.fq { display: grid; justify-items: center; border: 2px solid var(--ink); border-radius: 10px; padding: 4px 0;
  background: color-mix(in srgb, var(--pink) calc(var(--t) * 70%), #fff); }
.fq b { font-family: var(--font); font-weight: 700; font-size: 18px; line-height: 1.1; }
.fq span { font-size: 12px; font-weight: 800; color: var(--ink); }
.past td.nums { font-family: var(--font); white-space: nowrap; }
.past td:last-child { white-space: nowrap; }
.past .grid-table td small { font-size: 12px; }
.odds td:not(:first-child), .odds th:not(:first-child) { white-space: nowrap; }
.more { margin-top: 12px; background: #fff; min-height: 44px; }
.help { background: #fff4d1; }
@media (max-width: 520px) {
  .ball { width: 40px; height: 40px; font-size: 18px; }
  .balls { gap: 6px; }
  [data-draw] { min-height: 520px; }
  .past td, .past th { padding: 4px 4px; font-size: 13px; }
}

/* 4D: the 1st, 2nd and 3rd prizes as big tiles, the starters and consolations as small ones */
.tops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 6px; max-width: 520px; }
.top { display: grid; justify-items: center; gap: 4px; }
.top small { font-weight: 800; color: var(--muted); font-size: 13px; }
.num { display: inline-grid; place-items: center; font-family: var(--font); font-weight: 700; font-size: 20px; letter-spacing: 1px;
  border: 3px solid var(--ink); border-radius: 12px; background: #fff; padding: 4px 8px; min-width: 64px; box-shadow: 0 3px 0 rgba(27,27,58,.18); }
.num.big { font-size: 30px; min-width: 100%; padding: 8px 4px; background: var(--yellow); }
.num.hit { background: var(--teal); }
.nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 520px; margin: 4px 0 10px; }
h3.cat { font-family: var(--font); font-weight: 600; font-size: 17px; margin: 12px 0 4px; }
.fourd[data-draw] { min-height: 330px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.seg button { font: inherit; font-weight: 800; font-size: 16px; min-height: 44px; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.stakes { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 12px; }
.stakes label { font-family: var(--font); font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 4px; }
.stakes input { width: 84px; font-family: var(--font); font-weight: 600; font-size: 20px; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; }
.typed input { text-transform: uppercase; }
.typed input::placeholder { text-transform: none; }
.freq.ten { grid-template-columns: repeat(10, 1fr); max-width: 560px; }
.places td, .places th { text-align: right; }
.places td:first-child, .places th:first-child { text-align: left; }
.past td.n { font-family: var(--font); letter-spacing: 1px; }
.ibet th small { display: block; color: var(--muted); font-family: var(--body); font-weight: 700; font-size: 12px; }
.ibet td:not(:first-child), .ibet th:not(:first-child) { text-align: right; white-space: nowrap; }

/* /lottery/: both games' latest draws, one under the other */
.game h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.game h2 a { font-family: var(--body); font-size: 15px; font-weight: 800; }
.game .go { margin: 12px 0 0; font-weight: 800; }
[data-toto-draw] { min-height: 470px; }
[data-fourd-draw] { min-height: 330px; }
@media (max-width: 520px) {
  .num { font-size: 17px; min-width: 0; padding: 4px 2px; border-width: 2px; }
  .num.big { font-size: 24px; }
  [data-toto-draw] { min-height: 520px; }
  .nums { gap: 4px; }
  .freq.ten { grid-template-columns: repeat(5, 1fr); }
}
