/*
 * Keno (GAMES-K · ADDENDUM §3): the board of 24 chunky tiles (6 × 4, the same on phones and PC; founder: "a little
 * simpler … less to track and click", so the tiles are bigger), the payout strip, the result card, and the
 * RISK control (Low · Classic · High + Auto pick · Clear). Party Night look: night tiles with the 4px edge, Grape for
 * your picks, Go green for hits, the viewed player's colour (--pc) for someone else's picks. Prefix: .keno-
 *
 * The stage is a size container: narrow (phones, tablets, the 1-column game) = a header row (your Chipper, the rule
 * line, recent results) over a full-width board; wide (≥ 760px, the desktop card) = the board centred with your
 * Chipper bottom-left and the rule line / recent results in the side margins, like the Limbo stage.
 * Owner: GAMES-K.
 */

/* ---------------------------------------------------------------- stage */
.keno { container: keno / inline-size; position: relative; }
.keno-stage {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 8px 10px; border-radius: 24px;
  background: radial-gradient(60% 80% at 50% 45%, color-mix(in srgb, var(--pc) 10%, transparent), transparent 70%), var(--night-0);
  border: 1px solid var(--line);
}
.keno-head { width: 100%; max-width: 600px; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 2px; }
.keno .keno-head .stage-chip { position: relative; left: auto; bottom: auto; flex: none; width: 42px; height: 42px; display: grid; place-items: center; }
.keno .keno-head .stage-chip .chip { width: 40px; height: 40px; }
.keno-tip { flex: 1; min-width: 0; margin: 0; font: 700 13.5px/1.25 var(--f-ui); color: var(--ink-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.keno-tip b { color: var(--ink); }
.keno-hist { flex: none; display: flex; gap: 5px; pointer-events: none; }
.keno-hist span { flex: none; font: 800 13px/1 var(--f-ui); padding: 7px 8px; border-radius: 9px; background: rgba(255,255,255,.06); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.keno-hist span.w { background: var(--go-soft); color: var(--go); }
.keno-hist span:first-child { animation: feedIn .35s var(--out); }
.keno-hist span:nth-child(n+4) { display: none; }

/* ---------------------------------------------------------------- the board: each button is a whole cell (no dead
   gaps between tiles), the chunky tile is its face */
.keno-board { position: relative; width: 100%; max-width: 600px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.keno-t {
  appearance: none; border: 0; background: none; margin: 0; padding: 2px; min-width: 0; height: 54px;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  color: inherit; border-radius: 13px;
}
.keno-t:focus-visible { outline: 3px solid var(--grape); outline-offset: -1px; }
.keno-f {
  position: relative; display: grid; place-items: center; width: 100%; height: calc(100% - 3px);
  border-radius: 11px; background: var(--night-2); border: 2px solid var(--line-2); color: var(--ink-2);
  box-shadow: 0 3px 0 var(--edge-dark);
  font: 800 18px/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  transition: transform .1s var(--out), box-shadow .1s var(--out), background-color .15s, border-color .15s, color .15s;
}
.keno-f b { position: relative; z-index: 1; font: inherit; }
.keno-board:not(.drawing) .keno-t:active .keno-f, .keno-t.press .keno-f { transform: translateY(3px); box-shadow: 0 0 0 var(--edge-dark); }
@media (hover: hover) {
  .keno:not(.is-watch) .keno-board:not(.drawing) .keno-t:not(.pick):not(.hit):hover .keno-f { border-color: var(--line-3); color: var(--ink); }
}
.keno-board.drawing .keno-t, .keno.is-watch .keno-t { cursor: default; }
.keno.is-watch .keno-t { pointer-events: none; }

/* your pick: filled Grape (someone else's: their colour) */
.keno-t.pick .keno-f {
  color: #fff; border-color: #A391FF;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 60%), var(--grape);
  box-shadow: 0 3px 0 var(--grape-edge), 0 10px 22px -12px rgba(123,97,255,.8);
}
.keno.is-watch .keno-t.pick .keno-f {
  color: #140F2B; border-color: var(--pc);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 60%), color-mix(in srgb, var(--pc) 70%, var(--night-2));
  box-shadow: 0 3px 0 color-mix(in srgb, var(--pc) 45%, #0E0A22);
}
/* a hit: glows green */
.keno-t.hit .keno-f {
  color: var(--go-ink); border-color: #8FF5C0;
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0) 60%), var(--go);
  box-shadow: 0 3px 0 var(--go-edge), 0 0 22px rgba(43,216,129,.5);
}
.keno-spark { position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; color: #fff; opacity: 0; pointer-events: none; }
.keno-t.hit .keno-spark { opacity: .95; }
/* drawn, but not picked: sinks in, with a quiet ball ring */
.keno-t.drawn .keno-f {
  transform: translateY(3px); color: var(--ink-3); border-color: var(--line);
  background: var(--night-0); box-shadow: inset 0 2px 0 rgba(0,0,0,.4);
}
.keno-t.drawn .keno-f::before { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, rgba(255,255,255,.16), rgba(255,255,255,.05) 70%); }
/* your pick that missed: stays outlined */
.keno-t.miss .keno-f { color: var(--grape-ink); background: rgba(123,97,255,.08); border-color: var(--grape); }
.keno.is-watch .keno-t.miss .keno-f { color: var(--ink); background: color-mix(in srgb, var(--pc) 10%, transparent); border-color: var(--pc); }

/* pressed: down onto its edge, whatever state it is in */
.keno .keno-board:not(.drawing) .keno-t:active .keno-f, .keno .keno-t.press .keno-f { box-shadow: none; }

/* motion */
.keno-t.land .keno-f { animation: kenoLand .4s var(--spring); }
@keyframes kenoLand { 0% { transform: translateY(-7px) scale(1.34); } 55% { transform: translateY(1px) scale(.95); } }
.keno-t.hit.land .keno-f::after { content: ""; position: absolute; inset: -5px; border-radius: 14px; border: 3px solid var(--go); pointer-events: none; animation: kenoRing .6s var(--out) forwards; }
@keyframes kenoRing { from { opacity: .95; transform: scale(.88); } to { opacity: 0; transform: scale(1.4); } }
.keno-t.pop .keno-f { animation: kenoPop .34s var(--spring); }
@keyframes kenoPop { 0% { transform: scale(.82); } 55% { transform: scale(1.12); } }
.keno-t.nope .keno-f { animation: kenoNope .36s var(--out); }
@keyframes kenoNope { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* ---------------------------------------------------------------- the result card (over the board) */
.keno-pop { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; pointer-events: none; }
.keno-pop.on { display: grid; }
.keno-pop-in {
  display: grid; justify-items: center; gap: 5px; padding: 14px 24px 13px; border-radius: 22px;
  background: rgba(13, 10, 28, .88); border: 2px solid var(--line-2);
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.85);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: kenoCardIn .5s var(--spring) both;
}
.keno-pop.leave .keno-pop-in { animation: kenoCardOut .3s var(--out) forwards; }
@keyframes kenoCardIn { from { transform: scale(.6) translateY(10px); opacity: 0; } }
@keyframes kenoCardOut { to { transform: scale(.94) translateY(-6px); opacity: 0; } }
.keno-pop-in b { font: 900 40px/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.keno-pop-in span { font: 800 16px/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.keno-pop-in small { font: 700 13px/1 var(--f-ui); color: var(--ink-3); }
.keno-pop-in.win { border-color: var(--go); }
.keno-pop-in.win b, .keno-pop-in.win span { color: var(--go); }
.keno-pop-in.win b { text-shadow: 0 0 30px rgba(43,216,129,.5); }
.keno-pop-in.big { border-color: var(--gold); }
.keno-pop-in.big b, .keno-pop-in.big span { color: var(--gold); }
.keno-pop-in.big b { text-shadow: 0 0 36px rgba(255,200,61,.55); }
.keno-pop-in.part b, .keno-pop-in.part span { color: var(--ink-2); }
.keno-pop-in.lose { padding: 11px 18px; border-radius: 999px; }
.keno-pop-in.lose small { font-size: 14px; color: var(--ink-2); }

/* ---------------------------------------------------------------- the payout strip: hits → pays */
.keno-strip {
  width: 100%; max-width: 600px; display: flex; gap: 2px; padding: 3px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
}
.keno-strip::-webkit-scrollbar { display: none; }
.keno-strip.empty { justify-content: center; align-items: center; min-height: 48px; padding: 8px 12px; border-style: dashed; border-color: var(--line-2); text-align: center; font: 700 13px/1.3 var(--f-ui); color: var(--ink-3); }
.keno-leg, .keno-c { display: grid; justify-items: center; align-content: center; gap: 5px; padding: 6px 2px 7px; border-radius: 10px; }
.keno-leg { flex: none; justify-items: start; padding: 6px 6px 7px 7px; }
.keno-c { flex: 1 1 0; min-width: min-content; transition: background-color .15s, box-shadow .15s; }
.keno-leg i, .keno-c i { font: 700 13px/1 var(--f-ui); font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.keno-leg b { font: 800 13px/1 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.keno-leg i { letter-spacing: .04em; text-transform: uppercase; font-weight: 800; }
.keno-c b { font: 800 13.5px/1 var(--f-ui); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.keno-c b small { font-size: .8em; margin-left: 1px; }
.keno-c.zero b { color: var(--ink-3); opacity: .75; }
.keno-c.part b { color: var(--ink-2); }
.keno-c.top b { color: var(--gold); }
.keno-c.cur { background: var(--grape-soft); box-shadow: inset 0 0 0 2px var(--grape); }
.keno-c.cur i { color: var(--grape-ink); }
.keno.is-watch .keno-c.cur { background: color-mix(in srgb, var(--pc) 16%, transparent); box-shadow: inset 0 0 0 2px var(--pc); }
.keno-c.final { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 2px var(--line-3); }
.keno-c.final.win { background: var(--go-soft); box-shadow: inset 0 0 0 2px var(--go); animation: winPop .45s var(--spring); }
.keno-c.final.win b, .keno-c.final.win i { color: var(--go); opacity: 1; }
/* 7+ picks on a phone: 8+ hit counts share one row, so the cells tighten up (text stays ≥ 13px). Dormant while
   CFG.KENO.MAX_PICKS is 6: 7 cells fit a 360px phone as they are (High, 6 picks: "45.27×" and "1,000×" included) */
.keno-strip.many { gap: 1px; padding: 2px; }
.keno-strip.many .keno-leg { display: none; }
.keno-strip.many .keno-c { padding: 6px 0 7px; }
.keno-strip.many .keno-c b { font-size: 13px; letter-spacing: -.03em; }
.keno-strip.many .keno-c b small { margin-left: 0; }
.keno-strip.many .keno-c.zero b small { display: none; }
.keno-strip.flash { animation: changed .8s var(--out); }

/* ---------------------------------------------------------------- wide stage (the desktop card) */
@container keno (min-width: 760px) {
  .keno-stage { min-height: 290px; padding: 14px 20px 14px; gap: 10px; justify-content: center; }
  /* the left margin is a little rail: the rule line, recent results, your Chipper at the bottom. The right margin
     stays free for game mode's corner pills (watching you, Share, the last-10 count). */
  .keno-head {
    position: absolute; left: 20px; top: 16px; bottom: 16px; width: calc((100% - 480px) / 2 - 34px); max-width: none; min-height: 0;
    padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: none;
  }
  .keno .keno-head .stage-chip { position: absolute; left: 2px; bottom: 0; width: auto; height: auto; display: block; }
  .keno .keno-head .stage-chip .chip { width: 76px; height: 76px; }
  .keno-tip { flex: none; width: 100%; font-size: 14px; line-height: 1.35; -webkit-line-clamp: 4; }
  .keno-hist { flex-direction: column; align-items: flex-start; }
  .keno-hist span:nth-child(n+4) { display: inline-block; }
  .keno-hist span:nth-child(n+5) { display: none; }
  .keno-board, .keno-strip { max-width: 480px; }
  .keno-t { height: 64px; padding: 3px; border-radius: 15px; }
  .keno-f { height: calc(100% - 4px); border-radius: 12px; font-size: 21px; box-shadow: 0 4px 0 var(--edge-dark); }
  .keno-board:not(.drawing) .keno-t:active .keno-f, .keno-t.press .keno-f, .keno-t.drawn .keno-f { transform: translateY(4px); }
  .keno-t.pick .keno-f { box-shadow: 0 4px 0 var(--grape-edge), 0 10px 22px -12px rgba(123,97,255,.8); }
  .keno.is-watch .keno-t.pick .keno-f { box-shadow: 0 4px 0 color-mix(in srgb, var(--pc) 45%, #0E0A22); }
  .keno-t.hit .keno-f { box-shadow: 0 4px 0 var(--go-edge), 0 0 24px rgba(43,216,129,.5); }
  .keno-t.miss .keno-f { box-shadow: 0 4px 0 var(--edge-dark); }
  .keno-t.drawn .keno-f::before { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .keno-spark { width: 12px; height: 12px; top: 4px; right: 4px; }
  .keno-c b { font-size: 14.5px; }
  .keno-pop-in b { font-size: 52px; }
  .keno-pop-in span { font-size: 18px; }
}
/* roomy narrow stages (tablets, the 1-column game): the 6 columns stay near-square instead of stretching wide */
@container keno (min-width: 480px) and (max-width: 759.98px) {
  .keno-board, .keno-strip { max-width: 480px; }
  .keno-t { height: 64px; }
  .keno-f { font-size: 20px; }
  .keno-hist span:nth-child(n+4) { display: inline-block; }
  .keno-hist span:nth-child(n+5) { display: none; }
  .keno-strip.many .keno-leg { display: grid; }
}
@container keno (min-width: 480px) {
  .keno-strip.many { gap: 2px; padding: 3px; }
  .keno-strip.many .keno-c { padding: 6px 2px 7px; }
  .keno-strip.many .keno-c b { font-size: 13.5px; letter-spacing: -.01em; }
  .keno-strip.many .keno-c.zero b small { display: inline; }
}
/* very narrow (360px phones): tighter strip cells so 7 hit counts still fit */
@container keno (max-width: 330px) {
  .keno-c { padding: 6px 1px 7px; }
  .keno-c b { font-size: 13px; }
  .keno-f { font-size: 17px; }
  .keno-hist span:nth-child(n+3) { display: none; }
}

/* ---------------------------------------------------------------- the big desktop stage (ADDENDUM §8d): the 6 × 4
   board fills the stage with chunky near-square tiles and a readable strip, centred in the height; the band under it
   is where the party chat's corner sits. The stage is a size container here (it fills the stage column's height), so
   the board width --kb is the most that fits both ways: the width, and the height left after the head row, the strip
   and the chat band (board height = --kb × 4/6: square tiles). The tile numbers grow with the tiles. */
@media (min-width: 1024px) and (min-height: 561px) {
  .gm-stage .keno { container: kenobig / size; }
  .gm-stage .keno-stage {
    --kb: max(320px, min(760px, 100cqw - 42px, (100cqh - 246px) * 1.5));
    justify-content: center; gap: 12px; padding: 16px 20px 76px;
  }
  .gm-stage .keno-head { position: static; width: 100%; max-width: var(--kb); min-height: 52px; flex-direction: row; align-items: center; gap: 12px; pointer-events: auto; padding: 0 2px; }
  .gm-stage .keno .keno-head .stage-chip { position: relative; left: auto; bottom: auto; width: 56px; height: 56px; display: grid; place-items: center; }
  .gm-stage .keno .keno-head .stage-chip .chip { width: 54px; height: 54px; }
  .gm-stage .keno-tip { font-size: 15px; -webkit-line-clamp: 2; }
  .gm-stage .keno-hist { flex-direction: row; }
  .gm-stage .keno-hist span:nth-child(n+4) { display: none; }
  .gm-stage .keno-board, .gm-stage .keno-strip { max-width: var(--kb); }
  .gm-stage .keno-t { height: auto; aspect-ratio: 1; padding: 4px; border-radius: 16px; }
  .gm-stage .keno-f { height: calc(100% - 5px); border-radius: 14px; font-size: clamp(20px, calc(var(--kb) * .05), 36px); box-shadow: 0 5px 0 var(--edge-dark); }
  .gm-stage .keno-board:not(.drawing) .keno-t:active .keno-f, .gm-stage .keno-t.press .keno-f, .gm-stage .keno-t.drawn .keno-f { transform: translateY(5px); }
  .gm-stage .keno-t.pick .keno-f { box-shadow: 0 5px 0 var(--grape-edge), 0 12px 26px -12px rgba(123,97,255,.8); }
  .gm-stage .keno.is-watch .keno-t.pick .keno-f { box-shadow: 0 5px 0 color-mix(in srgb, var(--pc) 45%, #0E0A22); }
  .gm-stage .keno-t.hit .keno-f { box-shadow: 0 5px 0 var(--go-edge), 0 0 26px rgba(43,216,129,.5); }
  .gm-stage .keno-t.miss .keno-f { box-shadow: 0 5px 0 var(--edge-dark); }
  .gm-stage .keno-t.drawn .keno-f::before { width: 54%; height: auto; aspect-ratio: 1; margin: -27% 0 0 -27%; }   /* % margins follow the width */
  .gm-stage .keno-spark { width: 16px; height: 16px; top: 6px; right: 6px; }
  .gm-stage .keno-c b { font-size: 16px; }
  .gm-stage .keno-c i, .gm-stage .keno-leg i, .gm-stage .keno-leg b { font-size: 14px; }
  .gm-stage .keno-pop-in b { font-size: 60px; }
  .gm-stage .keno-pop-in span { font-size: 20px; }
  .gm-stage .keno-pop-in.lose { padding: 13px 22px; }
  .gm-stage .keno-pop-in.lose small { font-size: 17px; }
}

/* Keno's payout strip and bottom row of numbers run along the stage's bottom edge, so game mode's corner overlay
   (the "watching you" pill, Share, the last-10 count: GAMEMODE's .gm-ov-br, bottom-right by default) moves to the
   top-right corner while Keno is on screen. Keno only; the classes are GAMEMODE's. */
.gm-stage-wrap:has(.keno) .gm-ov-br { top: 12px; bottom: auto; }
@media (max-width: 700px) { .gm-stage-wrap:has(.keno) .gm-ov-br { top: 8px; } }
@media (min-width: 701px) {    /* desktop: keep the pills inside the free right margin beside the board */
  .gm-stage-wrap:has(.keno) .gm-ov-br { max-width: 160px; }
  .gm-stage-wrap:has(.keno) .gm-wy-long { display: none; }
  .gm-stage-wrap:has(.keno) .gm-wy-short { display: inline; }
}
@media (min-width: 1024px) and (min-height: 561px) {   /* the big stage has a free band under the board: they go there */
  .gm-stage-wrap:has(.keno) .gm-ov-br { top: auto; bottom: 16px; max-width: max(220px, calc(100% - 440px)); }   /* (a 450px stage at 1100 × 690 left it 10px) */
  .gm-stage-wrap:has(.keno) .gm-wy-long { display: inline; }
  .gm-stage-wrap:has(.keno) .gm-wy-short { display: none; }
}

/* ---------------------------------------------------------------- RISK control (+ Auto pick · Clear) */
.keno-risk {
  display: flex; gap: 5px; height: 56px; padding: 5px; border-radius: 16px;
  background: var(--night-0); border: 2px solid var(--line-2); box-shadow: inset 0 3px 0 rgba(0,0,0,.3);
}
.keno-risk button {
  appearance: none; flex: 1 1 0; min-width: 0; border: 0; margin: 0; padding: 0 6px; border-radius: 11px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: transparent; color: var(--ink-3); font: 800 15px/1 var(--f-ui); white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s, transform .09s var(--out);
}
.keno-risk button span { overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .keno-risk button:hover { color: var(--ink-2); } }
.keno-risk button[aria-checked="true"] { background: var(--night-3); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 0 var(--edge-dark); }
.keno-risk button[aria-checked="true"] .keno-bars { color: var(--grape-ink); }
.keno-risk button:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.keno-risk button:disabled { opacity: .4; cursor: not-allowed; }
.keno-risk button:focus-visible { outline-offset: -2px; }
.keno-bars { flex: none; width: 16px; height: 14px; }
.keno-risk.changed { animation: changed .8s var(--out); }
.keno-ctl.is-watch .keno-risk, .keno-ctl.is-watch .keno-quick { pointer-events: none; }
.keno-ctl.is-watch .keno-risk button[aria-checked="true"] { background: color-mix(in srgb, var(--pc) 24%, var(--night-3)); }
.keno-ctl.is-watch .keno-quick .q { opacity: .55; }
.keno-ctl .field-l span { transition: color .2s; }
.keno-ctl .field-l span.flash { animation: kenoFlashText .8s var(--out); }
@keyframes kenoFlashText { 0% { color: var(--pc); } }
.keno-quick .q { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.keno-quick .q .ic { flex: none; opacity: .85; }
@media (max-width: 700px) {
  .keno-c b small, .keno-strip.many .keno-c b small { font-size: 13px; margin-left: 0; }   /* text never below 13px */
  .keno-quick .q { height: 44px; font-size: 14px; }
  .keno-risk button { font-size: 14.5px; gap: 6px; }
}
@media (max-width: 360px) { .keno-bars { display: none; } }

/* ---------------------------------------------------------------- mobile QA (founder) */
@media (max-width: 700px) {
  /* the result card never sits on the numbers: misses and partial pays are already in the header ("1 of 9 hit") and
     in the result chip at the top of the game, so only a WIN pops, and it pops at the top edge, clear of the board */
  .keno-pop:has(.keno-pop-in.lose), .keno-pop:has(.keno-pop-in.part) { display: none !important; }
  .keno-pop { place-items: start center; padding-top: 2px; }
  .keno-pop-in { padding: 8px 16px 8px; gap: 3px; border-radius: 16px; }
  .keno-pop-in b { font-size: 26px; }
  .keno-pop-in span { font-size: 14px; }
  /* drawn-but-not-picked numbers: readable and calm, not dark holes */
  .keno-t.drawn .keno-f { background: var(--night-2); color: var(--ink-2); box-shadow: none; transform: none; border-style: dashed; border-color: var(--line-3); }
  .keno-t.drawn .keno-f::before { display: none; }
  /* the payout strip: every cell keeps its own width and a little air, so "3.91× 11× 56×" never runs together;
     with many picks it scrolls sideways (the current hit count stays in view) */
  .keno-strip.many { gap: 3px; padding: 3px; }
  .keno-strip.many .keno-c { flex: 0 0 auto; min-width: 46px; padding: 6px 5px 7px; background: rgba(255, 255, 255, .035); }
  .keno-strip.many .keno-c b { letter-spacing: 0; }
}
@media (max-width: 700px) {
  /* QA: on phones the result card never covers the numbers: the header ("3 of 9 hit"), the payout strip's green cell
     and the result chip at the top of the game already say it */
  .keno-pop { display: none !important; }
}
