/* Deal & Dice: table, cards, dice */
:root { --cw: clamp(52px, 11vw, 92px); --felt: #2c6e4f; --felt-dark: #1f5039; }

.game-shell { margin: 8px 0 28px; }
.game-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.game-bar .btn-row { margin: 0; }
.status { font-weight: 600; font-size: 1.05rem; min-height: 1.6em; }
.table { background: radial-gradient(ellipse at center, var(--felt) 0%, var(--felt-dark) 100%); border-radius: 16px; padding: clamp(10px, 2.5vw, 22px); color: #f3f7f2; box-shadow: inset 0 0 0 3px #184030, 0 4px 14px rgba(0,0,0,.15); position: relative; }
.table h3, .table .seat-name { color: #f3f7f2; font-family: var(--sans); font-size: .95rem; font-weight: 600; margin: 0 0 6px; }
.table .status { color: #fff; }
.table .hint { color: #cfe3d6; font-size: .9rem; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.row.center { justify-content: center; }
.seat { padding: 8px; border-radius: 12px; }
.seat.active { box-shadow: 0 0 0 3px #ffd75e; background: rgba(255,255,255,.06); }
.seat-score { font-size: .85rem; color: #cfe3d6; font-weight: 400; margin-left: 6px; }

/* Cards */
.pc { position: relative; width: var(--cw); aspect-ratio: 5 / 7; border-radius: calc(var(--cw) * .09); background: #fff; color: #1b1b1b; border: 1px solid #bbb; box-shadow: 0 1px 3px rgba(0,0,0,.35); font-family: var(--sans); padding: 0; flex: none; user-select: none; display: block; text-align: left; }
button.pc { cursor: pointer; }
.pc-red { color: #c0182b; }
.pc-corner { position: absolute; top: 4%; left: 7%; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.pc-corner b { font-size: calc(var(--cw) * .30); font-weight: 700; letter-spacing: -.04em; }
.pc-corner i { font-style: normal; font-size: calc(var(--cw) * .24); }
.pc-corner-br { top: auto; left: auto; bottom: 4%; right: 7%; transform: rotate(180deg); }
.pc-center { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--cw) * .55); }
.pc-joker .pc-center { font-size: calc(var(--cw) * .16); font-weight: 800; letter-spacing: .05em; color: #6b2fb3; }
.pc-back { background: repeating-linear-gradient(45deg, #9c2230 0 6px, #b8323f 6px 12px); border: 3px solid #fff; }
.pc-empty { background: rgba(255,255,255,.08); border: 2px dashed rgba(255,255,255,.45); box-shadow: none; color: #e6efe9; }
.pc-empty-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: calc(var(--cw) * .15); padding: 4px; line-height: 1.15; }
.pc-small { --cw: clamp(38px, 8vw, 62px); }
.pc-click:hover { transform: translateY(-3px); }
.pc-selected { transform: translateY(-10px); box-shadow: 0 0 0 3px #ffd75e, 0 6px 12px rgba(0,0,0,.4); }
.pc-dim { opacity: .5; }
.pc-hint { box-shadow: 0 0 0 3px #7fd3ff, 0 1px 3px rgba(0,0,0,.35); }
.pile { position: relative; }
.pile-stack .pc { box-shadow: 1px 1px 0 #999, 2px 2px 0 #ccc, 3px 3px 4px rgba(0,0,0,.35); }
.pile-count { position: absolute; right: -6px; bottom: -6px; background: #111; color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 6px; }
.fan { display: flex; flex-wrap: wrap; gap: 4px; }
.fan.overlap { gap: 0; }
.fan.overlap > * + * { margin-left: calc(var(--cw) * -.45); }
.pile-label { font-size: .78rem; text-align: center; color: #cfe3d6; margin-top: 4px; }

/* Overlay messages */
.overlay { position: absolute; inset: 0; background: rgba(10,30,20,.72); display: grid; place-items: center; border-radius: 16px; z-index: 5; padding: 16px; }
.overlay-box { background: var(--surface); color: var(--ink); border-radius: 12px; padding: 20px 24px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.overlay-box h2 { margin-top: 0; }
.overlay-box table { margin: 10px auto; }

/* Settings bar */
.settings { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: .95rem; }
.settings label { display: flex; align-items: center; gap: 6px; }
.settings select { width: auto; min-height: 38px; padding: 4px 8px; }

/* Dice */
.die { width: clamp(46px, 11vw, 64px); aspect-ratio: 1; border-radius: 12px; background: #fffef8; border: 2px solid #d6cfbd; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 14%; box-shadow: 0 2px 4px rgba(0,0,0,.3); cursor: default; }
button.die { cursor: pointer; }
.die span { width: 72%; aspect-ratio: 1; border-radius: 50%; background: #1b1b1b; place-self: center; visibility: hidden; }
.die.held { background: #ffe9a8; border-color: #d4a514; transform: translateY(-4px); }
.die.scoring { box-shadow: 0 0 0 3px #7fd3ff; }
.die.rolling { animation: roll .35s ease-out; }
@keyframes roll { 0% { transform: rotate(-25deg) scale(.85); } 60% { transform: rotate(12deg) scale(1.05); } 100% { transform: none; } }
.die[data-v="1"] span:nth-child(5),
.die[data-v="2"] span:nth-child(1), .die[data-v="2"] span:nth-child(9),
.die[data-v="3"] span:nth-child(1), .die[data-v="3"] span:nth-child(5), .die[data-v="3"] span:nth-child(9),
.die[data-v="4"] span:nth-child(1), .die[data-v="4"] span:nth-child(3), .die[data-v="4"] span:nth-child(7), .die[data-v="4"] span:nth-child(9),
.die[data-v="5"] span:nth-child(1), .die[data-v="5"] span:nth-child(3), .die[data-v="5"] span:nth-child(5), .die[data-v="5"] span:nth-child(7), .die[data-v="5"] span:nth-child(9),
.die[data-v="6"] span:nth-child(1), .die[data-v="6"] span:nth-child(3), .die[data-v="6"] span:nth-child(4), .die[data-v="6"] span:nth-child(6), .die[data-v="6"] span:nth-child(7), .die[data-v="6"] span:nth-child(9) { visibility: visible; }

/* Rules and content */
.rules { max-width: 72ch; }
.rules h2 { margin-top: 1.6em; }
.score-table { border-collapse: collapse; font-size: .95rem; }
.score-table th, .score-table td { padding: 5px 10px; border-bottom: 1px solid var(--rule); text-align: center; }
.score-table th:first-child, .score-table td:first-child { text-align: left; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 20px; }

/* Golf */
.golf-grid { display: grid; grid-template-columns: repeat(3, var(--cw)); gap: 8px; }
.golf-grid.small { --cw: clamp(36px, 7.5vw, 58px); gap: 5px; }
.golf-middle { margin: 14px 0; gap: 18px; align-items: flex-end; }

/* Kings in the Corner */
.kings-grid { display: grid; grid-template-columns: repeat(3, auto); grid-template-rows: repeat(3, auto); gap: 10px 14px; justify-content: center; margin: 16px 0; }
.kings-pile, .kings-stock { position: relative; display: flex; flex-direction: column; align-items: center; }
.kings-pile.has-run { padding-top: calc(var(--cw) * .32); }
.kings-bottom { position: absolute; top: 0; left: 50%; transform: translateX(-50%); opacity: .95; }
.kings-bottom .pc { --cw: clamp(40px, 8.5vw, 70px); }
.kings-hand { justify-content: center; gap: 6px; }

/* Spite and Malice */
.sm-seat .row { gap: 18px; align-items: flex-end; }
.sm-discards { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-discard { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sm-under { display: flex; gap: 3px; font-size: .72rem; font-weight: 700; min-height: 1.1em; }
.sm-under span { background: #fff; color: #222; border-radius: 3px; padding: 0 3px; }
.sm-under span.red { color: #c0182b; }
.sm-center { margin: 18px 0; gap: 14px; align-items: flex-start; }
.sm-build { position: relative; display: flex; flex-direction: column; align-items: center; }
.sm-wild { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); background: #ffd75e; color: #222; font-weight: 800; font-size: .8rem; padding: 1px 6px; border-radius: 99px; }

/* Oh Hell */
.oh-seat .row { gap: 10px; align-items: center; }
.oh-winner { box-shadow: 0 0 0 3px #7fd3ff; }
.oh-middle { margin: 14px 0; gap: 22px; align-items: center; }
.oh-info { font-weight: 600; text-align: center; line-height: 1.5; }
.oh-bids { justify-content: center; background: rgba(0,0,0,.2); padding: 10px; border-radius: 10px; }
.oh-bids .btn { min-width: 44px; background: #fff; color: var(--accent); border-color: #fff; }
.oh-bids .btn:disabled { opacity: .35; }

/* Dominoes */
.dom { display: inline-flex; align-items: center; background: #fffef6; border: 1px solid #bdb59f; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.35); font: 800 1.25rem/1 var(--sans); padding: 6px 4px; gap: 4px; flex: none; min-height: 0; }
button.dom { cursor: pointer; }
.dom-half { width: 1.6em; text-align: center; }
.dom-bar { width: 2px; align-self: stretch; background: #bdb59f; }
.dom-small { font-size: .95rem; padding: 3px 2px; border-radius: 6px; }
.dom-selected { box-shadow: 0 0 0 3px #ffd75e, 0 4px 10px rgba(0,0,0,.4); transform: translateY(-4px); }
.mt-hand button.dom:not(.dom-selected) { outline: 2px solid #7fd3ff; }
.mt-hand span.dom { opacity: .55; }
.mt-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.mt-others { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-trains { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.mt-train { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.18); border: 2px solid transparent; color: inherit; font: inherit; text-align: left; width: 100%; }
button.mt-train { cursor: pointer; }
.mt-target { border-color: #ffd75e; background: rgba(255,215,94,.18); }
.mt-pending { border-color: #ff8787; }
.mt-label { min-width: 150px; font-weight: 600; font-size: .92rem; }
.mt-marker { color: #ffd75e; font-weight: 700; }
.mt-tiles { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mt-more { font-size: .8rem; color: #cfe3d6; }
.mt-end { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; border-radius: 50%; border: 2px dashed rgba(255,255,255,.6); font-weight: 800; }
.mt-end.hot { background: #ffd75e; color: #222; border-style: solid; }
.mt-hand { display: flex; flex-wrap: wrap; gap: 8px; }

/* Shut the Box */
.box-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: #6b4423; padding: 12px; border-radius: 10px; box-shadow: inset 0 0 0 4px #4a2e17; }
.box-tile { width: clamp(34px, 8vw, 58px); height: clamp(58px, 13vw, 92px); display: grid; place-items: center; background: #f4e3c1; color: #3a2410; font: 800 clamp(1.2rem, 3.5vw, 1.8rem) var(--serif); border-radius: 6px; border: 2px solid #c9a36b; transition: transform .15s; padding: 0; }
button.box-tile { cursor: pointer; }
button.box-tile:hover { transform: translateY(-3px); }
.box-tile.sel { background: #ffd75e; border-color: #b8860b; transform: translateY(-6px); }
.box-tile.shut { background: #3b2412; color: #6b4423; border-color: #2a190c; transform: scaleY(.35); transform-origin: bottom; }

/* Farkle */
.farkle-seat { text-align: center; min-width: 110px; }
.farkle-total { font: 800 1.5rem var(--serif); }
.farkle-turn { text-align: center; font-weight: 700; font-size: 1.1rem; margin-top: 8px; }
.farkle-aside b { background: #fff; color: #222; border-radius: 4px; padding: 0 5px; }

/* Mancala */
.mancala-board { display: flex; align-items: stretch; gap: 10px; background: linear-gradient(#a86b3c, #8a5429); border-radius: 60px; padding: 16px; box-shadow: inset 0 0 0 4px #6b3f1c; max-width: 820px; margin: 0 auto; }
.mancala-rows { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.mancala-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.mancala-pit, .mancala-store { position: relative; background: radial-gradient(circle at 40% 35%, #5c3417, #3f220d); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid #4a2a10; color: #fff; padding: 0; font: inherit; }
.mancala-store { border-radius: 40px; aspect-ratio: auto; width: clamp(54px, 11vw, 90px); height: 100%; min-height: 150px; }
.mancala-side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
button.mancala-pit { cursor: pointer; }
.mancala-pit.playable { box-shadow: 0 0 0 3px #ffd75e; }
.mancala-pit.playable:hover { background: radial-gradient(circle at 40% 35%, #7a4720, #4f2b10); }
.mancala-pit.last { box-shadow: 0 0 0 3px #7fd3ff; }
.seeds { position: absolute; inset: 12%; }
.seeds span { position: absolute; transform: translate(-50%, -50%); width: 18%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9f2ff, #3a8fbf); box-shadow: 0 1px 1px rgba(0,0,0,.5); }
.seed-count { position: absolute; bottom: -2px; right: 6%; background: #111; color: #fff; font-size: .8rem; border-radius: 99px; padding: 0 6px; }
@media (max-width: 560px) { .mancala-board { border-radius: 24px; padding: 8px; gap: 6px; } .mancala-row { gap: 4px; } }

/* Dots and Boxes */
.dots-wrap { background: #fffdf5; border-radius: 12px; padding: 8px; margin: 12px auto; max-width: 640px; }
.dots-board { display: block; width: 100%; height: auto; }
.dots-line .vis { stroke: #d9d2c0; stroke-width: 4; stroke-dasharray: 2 6; stroke-linecap: round; }
.dots-line.drawn .vis { stroke: #1b1b1b; stroke-width: 6; stroke-dasharray: none; }
.dots-line.last .vis { stroke: #e08a00; }
.dots-line .hit { stroke: transparent; stroke-width: 22; cursor: pointer; }
.dots-line:hover .vis, .dots-line .hit:focus-visible + .vis { stroke: #7fb2ff; stroke-width: 6; stroke-dasharray: none; }
.dots-line .hit:focus-visible { outline: none; stroke: rgba(47,111,223,.25); }
.dots-seat { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.dots-swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* Peg solitaire */
.peg-board { --h: clamp(34px, 9vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 6px; background: radial-gradient(circle, #c89457, #9b6a33); border-radius: 50%; padding: 30px; margin: 10px auto; width: fit-content; box-shadow: inset 0 0 0 5px #7a4f22; }
.peg-triangle { border-radius: 18px; clip-path: none; }
.peg-row { display: flex; gap: 6px; justify-content: center; }
.peg-gap, .peg-hole { width: var(--h); height: var(--h); }
.peg-hole { border-radius: 50%; background: radial-gradient(circle at 50% 60%, #3d2410 40%, #5c3a1a 70%); border: none; padding: 0; display: grid; place-items: center; }
button.peg-hole { cursor: pointer; }
.peg { width: 70%; height: 70%; border-radius: 50%; visibility: hidden; background: radial-gradient(circle at 35% 30%, #ffe9a8, #d4a017 55%, #8a6400); box-shadow: 0 3px 4px rgba(0,0,0,.45); }
.has-peg .peg { visibility: visible; }
.peg-hole.sel .peg { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 3px #fff, 0 6px 8px rgba(0,0,0,.5); }
.peg-hole.target { box-shadow: 0 0 0 3px #7fd3ff; background: radial-gradient(circle, #1f5d7a 40%, #3d2410 72%); }

/* Nine Men's Morris */
.morris-wrap { background: #e9cf9f; border-radius: 12px; padding: 6px; margin: 12px auto; max-width: 560px; box-shadow: inset 0 0 0 4px #b58a4c; }
.morris-board { display: block; width: 100%; height: auto; }
.morris-board .piece.w { fill: #fbf8f0; stroke: #333; stroke-width: 2; }
.morris-board .piece.b { fill: #262626; stroke: #000; stroke-width: 2; }
.morris-pt .hit { fill: transparent; cursor: pointer; }
.morris-pt.click > circle:first-child { fill: #1f6f4a; r: 12; }
.morris-pt.click .hit:hover, .morris-pt .hit:focus-visible { fill: rgba(31,111,74,.25); outline: none; }
.morris-pt.sel .piece { stroke: #e08a00; stroke-width: 6; }
.morris-pt.remove .piece { stroke: #d63333; stroke-width: 6; }
.morris-pt.last .piece { stroke: #2f6fdf; stroke-width: 4; }
.morris-seat { display: flex; align-items: center; gap: 6px; font-weight: 600; flex-wrap: wrap; }
.morris-swatch { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 2px solid #333; }
.morris-swatch.w { background: #fbf8f0; } .morris-swatch.b { background: #262626; }

/* Score sheets */
.sheet { border-collapse: collapse; width: 100%; min-width: 420px; background: var(--surface); font-size: 1rem; }
.sheet th, .sheet td { border: 1px solid var(--rule); padding: 4px 6px; text-align: center; }
.sheet thead th { background: var(--accent); color: #fff; }
.sheet thead input { background: rgba(255,255,255,.95); font-weight: 700; text-align: center; min-height: 38px; }
.sheet tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.sheet th small, .sheet td small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.sheet select { min-height: 40px; text-align: center; font-weight: 700; padding: 4px; }
.sheet select.filled { background: #eef7f1; }
.sheet select.zero { background: #fbeaea; color: #a33; }
.sheet tr.section th { background: #efe9dc; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.sheet tr.sub td, .sheet tr.sub th { background: #f8f5ee; font-weight: 700; }
.sheet tr.grand td, .sheet tr.grand th { background: #e7f1ea; font-size: 1.2rem; font-weight: 800; }
.sheet td.lead { color: var(--accent); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 8px; }
.stepper .btn { min-width: 36px; padding: 2px 8px; }
.helper { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.helper select { width: auto; min-width: 64px; }
@media print {
  .sheet select { appearance: none; -webkit-appearance: none; border: none; background: none !important; color: #000 !important; }
  .sheet thead th { background: #ddd !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet thead input { border: none; }
  .sheet th, .sheet td { padding: 8px 6px; }
  .stepper .btn { display: none; }
  .rules, #roll-helper { display: none; }
}

/* Tally scorekeeper */
.tally-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tally-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 12px; border: 2px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.tally-card.current { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.tally-card.lead .tally-total { color: var(--accent); }
.tally-name { font-weight: 600; }
.tally-total { font: 800 2rem var(--serif); line-height: 1.1; }
.tally-need { font-size: .8rem; color: var(--muted); }
.tally-entry input { width: 160px; font-size: 1.3rem; font-weight: 700; }
.tally-for { font-size: 1.05rem; }
.tally-table { min-width: 0; }

/* Cribbage */
.crib-players { display: flex; flex-direction: column; gap: 12px; }
.crib-player.winner { border-color: var(--accent); border-width: 2px; }
.crib-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.crib-name { width: 160px; font-weight: 700; border-width: 2px; }
.crib-score { font: 800 2.2rem var(--serif); }
.crib-track { width: 100%; height: auto; background: linear-gradient(#e2c08d, #cfa468); border-radius: 10px; margin: 8px 0; }
.crib-buttons .btn { min-width: 48px; }

/* Darts */
.darts-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.darts-card { text-align: center; margin: 0; }
.darts-card.current { border: 2px solid var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.darts-name { text-align: center; font-weight: 700; }
.darts-remaining { font: 800 3rem var(--serif); line-height: 1.1; margin: 6px 0; }
.darts-checkout { font-weight: 700; color: var(--accent); min-height: 1.5em; }
.darts-last { display: flex; justify-content: center; gap: 6px; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.darts-last .bust { color: #c92a2a; text-decoration: line-through; }
.darts-entry { margin-top: 12px; }
.darts-entry-val { font: 800 1.8rem var(--mono); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 320px; margin: 10px 0; }
.keypad .btn { font-size: 1.4rem; min-height: 56px; }
.cricket th.current { background: #1a5a3c; }
.cricket-cell { width: 100%; min-height: 48px; font: 800 1.5rem var(--sans); background: #fff; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; color: var(--ink); }
.cricket-cell.closed { background: #e7f1ea; color: var(--accent); }

/* Bingo caller */
.bingo-top { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 18px; }
.bingo-ball { width: clamp(150px, 30vw, 210px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #ffd75e 45%, #d49b00); font: 900 clamp(2.2rem, 7vw, 3.4rem) var(--sans); color: #1d1d1d; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.bingo-ball.empty { background: radial-gradient(circle at 35% 30%, #fff, #ddd 55%, #aaa); font-size: 1.6rem; color: #555; }
.bingo-side { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.bingo-next { font-size: 1.2rem; min-height: 56px; }
.bingo-recent span { display: inline-block; background: var(--surface); border: 1px solid var(--rule); border-radius: 99px; padding: 1px 10px; margin: 2px; font-weight: 700; }
.bingo-board { display: grid; grid-template-columns: 44px repeat(15, 1fr); gap: 4px; }
.bingo-board.b90 { grid-template-columns: repeat(10, 1fr); }
.bingo-letter { display: grid; place-items: center; background: var(--accent); color: #fff; font: 900 1.4rem var(--sans); border-radius: 6px; }
.bingo-num { display: grid; place-items: center; aspect-ratio: 1; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; font-weight: 700; color: #b5ad9c; font-size: clamp(.7rem, 1.8vw, 1.05rem); }
.bingo-num.on { background: #e03131; color: #fff; border-color: #c92a2a; }
.bingo-num.now { outline: 3px solid #ffd75e; outline-offset: 1px; }
@media (max-width: 560px) { .bingo-board { grid-template-columns: 26px repeat(15, 1fr); gap: 2px; } .bingo-letter { font-size: .9rem; } }
@media print { .bingo-num.on { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .bingo-top .btn, .bingo-top .settings { display: none; } }

/* Hand and Foot */
.hf-melds { display: flex; flex-wrap: wrap; gap: 10px; min-height: 60px; align-items: flex-end; }
.hf-meld { background: rgba(255,255,255,.08); border: 2px solid transparent; border-radius: 10px; padding: 6px; color: inherit; font: inherit; }
button.hf-meld { cursor: pointer; }
.hf-meld.target { border-color: #ffd75e; }
.hf-meld.clean { border-color: #ff6b6b; background: rgba(255,107,107,.15); }
.hf-meld.dirty { border-color: #adb5bd; background: rgba(0,0,0,.2); }
.hf-meld.staged { border: 2px dashed #ffd75e; }
.hf-middle { margin: 12px 0; gap: 20px; align-items: flex-end; }
.hf-info { line-height: 1.5; }
.hf-hand { gap: 4px; }
