/* Hits: blackjack at the counter of a 1950s roadside diner. White subway tile, a ribbed stainless header with a cherry
   stripe, the chrome jukebox wallbox over the counter (a full jukebox with bubble tubes and a turning 45 and a milkshake
   mixer beside the table on wide screens), a cherry cracked-ice counter top in a ribbed chrome edge, a black letter board
   for the table's line, house rules on a jukebox title strip and a checker floor under the footer.
   Type: Lily Script One (diner sign script) + Onest (text, letter board) + Reddit Mono (seeds, hashes).
   Art: tile.svg, checker.svg, ice.svg, wallbox.svg, jukebox.svg, shake.svg (scratch/hits/art.mjs). */
@font-face { font-family: 'Lily Script One'; src: url(/fonts/lily-script-one.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Onest'; src: url(/fonts/onest.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Reddit Mono'; src: url(/fonts/reddit-mono.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }

:root {
  --cherry: #c8102e; --cherry-hi: #e0303f; --cherry-lo: #8e0c22;
  --black: #141414; --white: #fbfaf6; --cream: #f4efe4; --enamel: #ffffff;
  --chrome: #d9dee2; --chrome-hi: #f6f8f9; --chrome-lo: #8a949c; --chrome-dk: #5a646c;
  --butter: #f4b63f; --mint: #9fd6c7;
  --ink: #141414; --ink-2: #555b60; --line: rgba(20,20,20,.14);
  --card-face: #ffffff; --card-edge: #d8d2c4; --court: #f7f1e6;
  --suit-red: #c8102e; --suit-black: #141414;
  --win: #16794f; --lose: #c8102e;
  --chrome-grad: linear-gradient(180deg, var(--chrome-hi), var(--chrome) 35%, var(--chrome-lo) 55%, var(--chrome-hi) 72%, var(--chrome-lo));
  --display: 'Lily Script One', 'Brush Script MT', Georgia, serif;
  --text: 'Onest', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Reddit Mono', ui-monospace, Menlo, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--white); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 500 17px/1.5 var(--text); overflow-x: hidden;
  background: url(tile.svg) 0 0 / 96px 48px, var(--white);
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; }

/* ---------- header: ribbed stainless steel with the cherry diner stripe under it ---------- */
.rail-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--s5);
  padding: 12px max(24px, env(safe-area-inset-left)) 12px; color: var(--ink);
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.55) 0 2px, rgba(120,130,138,.18) 2px 4px), var(--chrome-grad);
}
.rail-top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none;
  background: linear-gradient(var(--cherry) 0 13px, var(--white) 13px 17px, var(--cherry) 17px 23px, rgba(0,0,0,.18) 23px 26px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--cherry); }
.brand svg { width: 50px; height: 50px; filter: drop-shadow(0 3px 3px rgba(20,20,20,.3)); }
.brand span { font: 400 40px/1 var(--display); text-shadow: 2px 2px 0 var(--white); }
.rail-top nav { display: flex; gap: var(--s5); margin-left: var(--s4); }
.rail-top nav a { text-decoration: none; font-weight: 700; font-size: 16px; color: var(--ink); padding: 6px 0 3px; border-bottom: 3px solid transparent; }
.rail-top nav a:hover, .rail-top nav a[aria-current] { border-color: var(--cherry); }
.btn-wallet { margin-left: auto; }

/* ---------- buttons: cherry enamel in a chrome ring, white enamel, black; a hard lower edge ---------- */
.btn {
  --edge: #5c0715; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px;
  border: 0; border-radius: 12px; font: 800 17px/1 var(--text); letter-spacing: .02em; cursor: pointer; text-decoration: none;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.75), inset 0 0 0 4px rgba(90,100,108,.6), 0 4px 0 var(--edge), 0 10px 16px -10px rgba(20,20,20,.7);
  transform: translateY(0); transition: transform .08s, box-shadow .08s, filter .15s; -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 0 0 3px rgba(255,255,255,.75), inset 0 0 0 4px rgba(90,100,108,.6), 0 1px 0 var(--edge), 0 3px 6px -4px rgba(20,20,20,.5); }
.btn:disabled { cursor: not-allowed; filter: saturate(.25) opacity(.5); }
.btn-brass { background: linear-gradient(var(--cherry-hi), var(--cherry) 55%, var(--cherry-lo)); color: var(--white); --edge: #5c0715; }
.btn-ivory { background: linear-gradient(#ffffff, #ece9e2); color: var(--ink); --edge: #9aa2a8; }
.btn-claret { background: linear-gradient(#3a3a3a, var(--black) 60%); color: var(--white); --edge: #000; }
.btn-ink { background: var(--chrome-grad); color: var(--ink); --edge: var(--chrome-dk); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn kbd { font: 500 12px/1 var(--mono); opacity: .7; border: 1px solid currentColor; border-radius: 4px; padding: 3px 4px 2px; }

/* ---------- over the counter: the chrome wallbox; on wide screens the jukebox and the malt mixer beside the table ---------- */
.table-wrap { --win-w: min(760px, calc(100vw - 48px)); --win-h: calc(var(--win-w) * .189);
  position: relative; isolation: isolate; padding: calc(var(--win-h) + 66px) 24px 0; max-width: 1220px; margin: 0 auto; }
.table-wrap::before { content: ""; position: absolute; z-index: -1; top: 46px; left: 50%; width: var(--win-w); margin-left: calc(var(--win-w) / -2); height: var(--win-h); pointer-events: none;
  background: url(wallbox.svg) 0 0 / 100% 100% no-repeat; filter: drop-shadow(0 8px 8px rgba(20,20,20,.3)); }
.table-wrap::after { display: none; }
@media (min-width: 1320px) {
  .table-wrap { max-width: 1080px; padding-top: 70px; --tw: min(230px, calc(50vw - 540px - 30px)); }
  .table-wrap::before { top: 80px; left: 0; margin-left: calc(540px - 50vw); width: 100vw; height: calc(var(--tw) * 1.75);
    background: url(jukebox.svg) calc((50vw - 540px - var(--tw)) / 2) 0 / var(--tw) calc(var(--tw) * 1.75) no-repeat, url(shake.svg) calc(100vw - (50vw - 540px + var(--tw)) / 2) 0 / var(--tw) calc(var(--tw) * 1.75) no-repeat; }
}
/* the counter edge: ribbed chrome with a black rubber gasket */
.table-rail {
  position: relative; padding: 16px; border: 2px solid var(--chrome-dk);
  border-radius: 36px 36px 196px 196px / 36px 36px 126px 126px;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.6) 0 2px, rgba(90,100,108,.25) 2px 4px), var(--chrome-grad);
  box-shadow: inset 0 2px 0 #fff, inset 0 -4px 8px -2px rgba(40,46,50,.45), 0 34px 50px -30px rgba(20,20,20,.75);
}
.table-rail::before { content: ""; position: absolute; inset: 11px; border-radius: 30px 30px 188px 188px / 30px 30px 120px 120px; border: 5px solid var(--black); pointer-events: none; }
#felt {
  height: clamp(420px, calc(100vh - 400px), 620px); height: clamp(420px, calc(100svh - 400px), 620px);
  border-radius: 24px 24px 182px 182px / 24px 24px 112px 112px; container-type: inline-size;
  background: radial-gradient(80% 70% at 50% 24%, var(--cherry-hi), var(--cherry) 55%, #a50d26);
  box-shadow: inset 0 0 0 1px rgba(60,4,12,.6), inset 0 12px 20px -14px rgba(50,0,10,.7), inset 0 -18px 30px -20px rgba(50,0,10,.55);
}
#felt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5; background: url(ice.svg) 0 0 / 260px 260px; }
/* the shine of the laminate under the diner lights */
#felt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.12) 38%, rgba(255,255,255,0) 46%); }
.felt .print { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.felt .print-narrow { display: none; }
@container (max-width: 640px) { .felt .print-wide { display: none; } .felt .print-narrow { display: block; } }
.print-big { font: 400 40px var(--display); fill: var(--white); opacity: .88; }
.print-small { font: 800 13px var(--text); letter-spacing: 3.6px; fill: var(--white); opacity: .75; }
.print-check rect { fill: var(--black); opacity: .55; }
.print-check rect.w { fill: var(--white); opacity: .7; }
.print-narrow .print-big { font-size: 27px; }
.print-narrow .print-small { font-size: 10.5px; letter-spacing: 2.2px; }
.felt .spot { border: 3px solid rgba(251,250,246,.8); box-shadow: 0 0 0 5px rgba(60,0,10,.12); }
.felt .spot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(251,250,246,.45); }
.felt .card .face, .felt .card .back { box-shadow: 0 1px 0 rgba(20,20,20,.3), 0 10px 14px -6px rgba(50,0,10,.6); }
.felt .card.won .face { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--butter), 0 10px 16px -8px rgba(50,0,10,.6); }
.felt .card.dead .card-inner { filter: saturate(.4) brightness(.78); }
.cardface > rect:first-child { stroke-width: 1.2; }
.cx-rank { font: 800 20px var(--text); }
.cx-court { font: 400 44px var(--display); }
.chip-label { font: 800 15px var(--text); }
.felt .total {
  font: 800 calc(var(--card-w) * .24) / 1 var(--text); color: var(--ink); padding: 6px 11px 5px; border-radius: 8px;
  background: var(--white); box-shadow: inset 0 0 0 2px var(--black), 0 4px 0 rgba(50,0,10,.45);
}
.felt .total.bust { color: var(--white); background: var(--black); box-shadow: 0 4px 0 #000; }
.felt .total.bj { color: var(--ink); background: var(--butter); box-shadow: inset 0 0 0 2px var(--black), 0 4px 0 #7a5410; }
.felt .total.active { box-shadow: inset 0 0 0 2px var(--black), 0 0 0 4px var(--butter), 0 4px 0 rgba(50,0,10,.45); }
.felt .discard.has::before { content: ""; position: absolute; inset: 0; border-radius: 7px; background: var(--cherry); border: 3px solid var(--card-face);
  box-shadow: 1px 1px 0 #d8d2c4, 2px 2px 0 var(--card-face), 3px 3px 0 #c9c2b4, calc(var(--n,1) * 1px + 3px) calc(var(--n,1) * 1px + 3px) 0 #b5ad9c, 0 10px 14px -8px rgba(50,0,10,.6); transform: rotate(-6deg); }
.felt .rack svg .rack-body { fill: var(--chrome-lo); }
.felt .rack svg .rack-lip { fill: var(--chrome-dk); }
.felt .rack { filter: drop-shadow(0 6px 6px rgba(50,0,10,.5)); }
.felt .shoe { filter: drop-shadow(0 10px 10px rgba(50,0,10,.5)); }

/* the table's line on a black letter board with white plastic letters */
.talk { min-height: 72px; display: flex; align-items: center; justify-content: center; padding: var(--s3) var(--s4) 0; }
.talk .dealer-line { position: static; transform: none; display: inline-block; max-width: min(46ch, 100%); text-align: center;
  font: 700 19px/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--white); padding: 11px 20px 9px; border-radius: 6px;
  background: repeating-linear-gradient(180deg, #1c1c1c 0 5px, #0b0b0b 5px 6px); box-shadow: 0 0 0 4px var(--chrome), 0 0 0 5px var(--chrome-dk), 0 10px 16px -8px rgba(20,20,20,.6); }
.talk .dealer-line:empty { display: none; }
.talk .dealer-line.in { animation: line-in .45s ease-out; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- the player's side ---------- */
.controls { max-width: 1100px; margin: 0 auto; padding: var(--s4) 24px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4) var(--s6); align-items: center; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chipbtn { width: 66px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .15s cubic-bezier(.3,1.5,.5,1); -webkit-tap-highlight-color: transparent; filter: drop-shadow(0 5px 3px rgba(20,20,20,.35)); }
.chipbtn:hover:not(:disabled) { transform: translateY(-5px); }
.chipbtn:active:not(:disabled) { transform: translateY(1px) scale(.96); }
.chipbtn:disabled { opacity: .35; cursor: not-allowed; }
.betbox { display: flex; align-items: center; gap: var(--s3); justify-content: flex-end; flex-wrap: wrap; }
.betamt { font: 800 34px/1 var(--text); min-width: 4ch; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.betamt small { font: 700 15px var(--text); color: var(--ink-2); margin-left: 6px; }
.acts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.acts .btn { min-height: 60px; font-size: 19px; }
.under { max-width: 1100px; margin: var(--s4) auto 0; padding: var(--s3) 24px; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--ink-2); font-size: 15px; background: rgba(255,255,255,.85); }
.under b { color: var(--ink); font-weight: 800; }
.under .mono, .mono { font-family: var(--mono); font-size: .88em; word-break: break-all; }
.under button.link, .link { background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--cherry); text-underline-offset: 3px; cursor: pointer; color: var(--ink); font-weight: 800; }
.testnote { color: var(--cherry); font-weight: 700; }

/* ---------- under the table ---------- */
.sect { max-width: 1100px; margin: 0 auto; padding: var(--s8) 24px 0; }
.sect h2 { font: 400 clamp(36px, 4vw, 48px)/1.05 var(--display); margin: 0 0 var(--s5); color: var(--cherry); text-shadow: 2px 2px 0 var(--white); }
.two { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s7); align-items: start; }
.floor { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--enamel); box-shadow: 0 0 0 3px var(--chrome), 0 0 0 4px var(--chrome-dk); }
.floor th { text-align: left; font-weight: 700; color: var(--white); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; padding: 11px 10px 9px;
  background: repeating-linear-gradient(180deg, #1c1c1c 0 5px, #0b0b0b 5px 6px); }
.floor td { padding: 11px 10px 9px; border-bottom: 1px solid var(--line); }
.floor td.n, .floor th.n { text-align: right; }
.floor .up { color: var(--win); font-weight: 800; }
.floor .down { color: var(--lose); font-weight: 800; }
.floor tr.new td { animation: rowin 1.3s ease-out; }
@keyframes rowin { from { background: rgba(244,182,63,.45); } }
.empty { color: var(--ink-2); padding: var(--s4) 10px; font-style: italic; }
/* the house rules on a jukebox title strip: white card, cherry bands top and bottom, a chrome frame */
.placard { position: relative; color: var(--ink); border-radius: 6px; padding: 0 0 30px; text-align: left; background: var(--enamel); overflow: hidden;
  box-shadow: 0 0 0 5px var(--chrome), 0 0 0 6px var(--chrome-dk), 0 26px 40px -26px rgba(20,20,20,.7); }
.placard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(var(--white) 0 3px, var(--cherry) 3px); }
.placard h3 { font: 400 34px/1 var(--display); margin: 0 0 var(--s4); padding: 16px 20px 14px; text-align: center; color: var(--white); background: var(--cherry); box-shadow: inset 0 -4px 0 var(--white), inset 0 -8px 0 var(--black); }
.placard ul { margin: 0; padding: 0 26px; list-style: none; }
.placard li { padding: 8px 0 6px; display: flex; align-items: baseline; gap: 0; border-bottom: 1px solid var(--line); }
.placard li:last-child { border-bottom: 0; }
.placard li::after { content: ""; order: 1; flex: 1 1 18px; min-width: 18px; }
.placard li b { order: 2; font-weight: 800; text-align: right; max-width: 62%; }
.placard .muted { color: var(--ink-2); padding: 0 26px 8px; }
.placard a { color: var(--ink); text-decoration-color: var(--cherry); }
.edge { font: 800 60px/1 var(--text); color: var(--cherry); margin: var(--s4) 0 var(--s2); text-align: center; }

/* ---------- inner pages: a white enamel panel in a chrome frame ---------- */
.page { max-width: 1020px; margin: calc(var(--s7) + 20px) auto 0; padding: var(--s7) 44px; background: var(--enamel); border-radius: 10px;
  box-shadow: 0 0 0 5px var(--chrome), 0 0 0 6px var(--chrome-dk), 0 24px 40px -28px rgba(20,20,20,.6); }
.page h1 { font: 400 clamp(46px, 6.4vw, 70px)/1 var(--display); margin: 0 0 var(--s5); color: var(--cherry); }
.page h2 { font: 800 26px/1.15 var(--text); margin: var(--s7) 0 var(--s3); }
.page p, .page li { max-width: 68ch; }
.page .lead { font-size: 20px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.strategy { border-collapse: separate; border-spacing: 2px; font: 800 13px var(--text); margin: var(--s3) 0; }
.strategy th, .strategy td { width: 34px; height: 28px; text-align: center; border-radius: 3px; }
.strategy th { color: var(--ink-2); font-weight: 700; }
.strategy td.H { background: var(--cream); } .strategy td.S { background: var(--mint); } .strategy td.D { background: var(--cherry); color: var(--white); } .strategy td.P { background: var(--black); color: var(--white); }
.scroll-x { overflow-x: auto; max-width: 100%; }
.form { display: grid; gap: var(--s3); max-width: 640px; }
.form label { font-weight: 800; display: grid; gap: 6px; }
.form input { font: 400 16px var(--mono); padding: 12px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); color: var(--ink); min-width: 0; }
.check { margin-top: var(--s4); padding: var(--s4) var(--s5); border-radius: 8px; background: var(--white); box-shadow: inset 0 0 0 2px var(--win), 0 3px 0 rgba(20,20,20,.2); }
.check .ok { color: var(--win); font-weight: 800; }
.check .no { color: var(--lose); font-weight: 800; }
.minicards { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.minicards svg { width: 46px; height: auto; filter: drop-shadow(0 2px 2px rgba(20,20,20,.35)); }

/* the footer: a black kick plate over the checker floor */
.foot { margin: var(--s8) 0 0; padding: var(--s6) max(24px, calc(50vw - 526px)) calc(var(--s6) + 64px); position: relative; color: var(--white); font-size: 15px;
  background: linear-gradient(var(--black), var(--black)) 0 0 / 100% calc(100% - 64px) no-repeat, url(checker.svg) 0 100% / 56px 56px, var(--white);
  box-shadow: inset 0 6px 0 var(--chrome), inset 0 7px 0 var(--chrome-dk); }
.foot .risk { margin: var(--s2) 0 var(--s3); max-width: 70ch; }
.foot-links { display: flex; gap: var(--s5); flex-wrap: wrap; font-weight: 700; margin: 0; }
.castrip { background: var(--black); color: var(--white); text-align: center; padding: 34px 16px 8px; font-weight: 700; }
.castrip span { overflow-wrap: anywhere; font-family: var(--mono); }

dialog { border: 0; border-radius: 12px; padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--enamel); color: var(--ink);
  box-shadow: inset 0 0 0 5px var(--chrome), inset 0 0 0 6px var(--chrome-dk), 0 30px 60px -20px rgba(20,20,20,.75); }
dialog::backdrop { background: rgba(20,20,20,.5); }
dialog .muted { color: var(--ink-2); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) var(--s5) var(--s3); margin: 6px 6px 0; background: var(--cherry); border-radius: 6px 6px 0 0; }
.dlg-head h2 { margin: 0; font: 400 30px/1 var(--display); color: var(--white); }
.dlg-x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; color: var(--white); }
.dlg-body { padding: var(--s5) calc(var(--s5) + 4px) calc(var(--s5) + 4px); display: grid; gap: var(--s3); }
.dlg-body a { color: var(--ink); }
.wallets { display: grid; gap: var(--s2); }
.wallets button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); color: var(--ink); font-weight: 800; cursor: pointer; text-align: left; box-shadow: 0 3px 0 var(--ink); }
.wallets button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.wallets img { width: 28px; height: 28px; border-radius: 6px; }
.muted { color: var(--ink-2); font-size: 15px; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); visibility: hidden; background: var(--black); color: var(--white); padding: 13px 18px 11px; border-radius: 10px; font-weight: 700; transition: transform .25s; z-index: 50; max-width: calc(100vw - 32px); box-shadow: 0 0 0 3px var(--chrome), 0 10px 30px -10px rgba(20,20,20,.8); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 900px) {
  .rail-top nav { display: none; }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .rail-top { padding: 9px 14px 9px; gap: var(--s3); }
  .rail-top::after { height: 18px; background: linear-gradient(var(--cherry) 0 9px, var(--white) 9px 12px, var(--cherry) 12px 16px, rgba(0,0,0,.18) 16px 18px); }
  .brand span { font-size: 34px; }
  .brand svg { width: 42px; height: 42px; }
  .btn-wallet { min-height: 42px; padding: 0 14px; font-size: 14.5px; }
  .table-wrap { --win-w: calc(100vw - 28px); padding: calc(var(--win-h) + 46px) 8px 0; }
  .table-wrap::before { top: 34px; }
  .table-rail { padding: 11px; border-radius: 24px 24px 80px 80px / 24px 24px 64px 64px; }
  .table-rail::before { inset: 7px; border-width: 3px; border-radius: 20px 20px 76px 76px / 20px 20px 60px 60px; }
  #felt { height: clamp(400px, calc(100vh - 320px), 540px); height: clamp(400px, calc(100svh - 320px), 540px); border-radius: 16px 16px 72px 72px / 16px 16px 56px 56px; }
  .talk { min-height: 64px; }
  .talk .dealer-line { font-size: 15.5px; padding: 9px 14px 7px; letter-spacing: .07em; }
  .controls { grid-template-columns: minmax(0, 1fr); padding: var(--s3) 14px 0; }
  .chips { justify-content: center; gap: 6px; }
  .chipbtn { width: 52px; }
  .betbox { justify-content: center; }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acts .btn { min-height: 56px; }
  .under { padding: var(--s3) 14px; font-size: 14.5px; }
  .sect { padding: var(--s7) 14px 0; }
  .floor .hide-s { display: none; }
  .page { margin: calc(var(--s7) + 6px) 12px 0; padding: var(--s6) 18px; }
  .strategy th, .strategy td { width: 26px; height: 24px; font-size: 11.5px; }
  .placard ul, .placard .muted { padding-left: 18px; padding-right: 18px; }
  .foot { padding: var(--s6) 14px calc(var(--s6) + 56px); background-size: 100% calc(100% - 56px), 48px 48px, auto; }
}
