/* Cards: the card table of an alpine ski lodge on a snowy afternoon. Knotty pine walls, a knitted Nordic band under
   the header, mullioned windows with snow falling on the slope outside, a deep red boiled-wool table in a pine rail
   with a cream running stitch. Type: Hepta Slab (carved-sign slab) + Mukta (text) + Fira Code (seeds, hashes).
   Built from scratch/cards/cards.css.tpl by art.mjs (knit bands inlined; pine and windows are SVG files). */
@font-face { font-family: 'Hepta Slab'; src: url(/fonts/hepta-slab.woff2) format('woff2'); font-weight: 1 900; font-display: swap; }
@font-face { font-family: 'Mukta'; src: url(/fonts/mukta-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mukta'; src: url(/fonts/mukta-600.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Mukta'; src: url(/fonts/mukta-800.woff2) format('woff2'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'Fira Code'; src: url(/fonts/fira-code.woff2) format('woff2'); font-display: swap; }

:root {
  --pine: #ecd09c; --pine-2: #d9b273; --pine-3: #b98a4c; --pine-dark: #8a5a2b;
  --cream: #f6efe2; --cream-2: #ebe0cc; --snow: #fbfdff; --snow-blue: #dbe6f0;
  --ink: #2b1d16; --ink-2: #66503f; --line: rgba(43,29,22,.16);
  --red: #a3202a; --red-hi: #c33a3f; --red-lo: #6e1218; --fir: #2e5b45; --fir-hi: #3f7a5d;
  --card-face: #fffdf8; --card-edge: #d6cbb7; --court: #f8ecdf;
  --suit-red: #a3202a; --suit-black: #2b1d16;
  --win: #2e6b48; --lose: #a3202a;
  --display: 'Hepta Slab', 'Rockwell', Georgia, serif;
  --text: 'Mukta', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --mono: 'Fira Code', 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(--pine); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 500 18px/1.5 var(--text); overflow-x: hidden;
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(rgba(255,250,240,.28), rgba(255,250,240,.28)), url(pine.svg) 0 0 / 480px 480px, var(--pine);
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- header: cream knit with a red Nordic band of diamonds knitted underneath ---------- */
.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: linear-gradient(rgba(246,239,226,.55), rgba(246,239,226,.55)), url(knit-plain.svg) 0 0 / 30px 30px;
}
.rail-top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 39px; pointer-events: none;
  background: url(knit-band.svg) 0 0 / 24px 39px; box-shadow: 0 6px 10px -6px rgba(43,29,22,.5); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--red); }
.brand svg { width: 46px; height: 46px; filter: drop-shadow(0 3px 3px rgba(43,29,22,.35)); }
.brand span { font: 800 36px/1 var(--display); letter-spacing: -.01em; }
.rail-top nav { display: flex; gap: var(--s5); margin-left: var(--s4); }
.rail-top nav a { text-decoration: none; font-weight: 700; font-size: 17px; 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(--red); }
.btn-wallet { margin-left: auto; }

/* ---------- buttons: red wool, cream wool, fir green; a hard lower edge and a cream running stitch ---------- */
.btn {
  --edge: #4a0c11; --stitch: rgba(246,239,226,.75); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 8px; font: 800 17px/1 var(--text); letter-spacing: .03em; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 0 var(--edge), 0 10px 16px -10px rgba(43,29,22,.7);
  transform: translateY(0); transition: transform .08s, box-shadow .08s, filter .15s; -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed var(--stitch); border-radius: 4px; pointer-events: none; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge), 0 3px 6px -4px rgba(43,29,22,.5); }
.btn:disabled { cursor: not-allowed; filter: saturate(.25) opacity(.5); }
.btn-brass { background: linear-gradient(#b8303a, var(--red) 60%, #8f1b24); color: var(--cream); --edge: #5a0f15; }
.btn-ivory { background: linear-gradient(#fffaf1, var(--cream-2)); color: var(--ink); --edge: #b8a98e; --stitch: rgba(163,32,42,.45); }
.btn-claret { background: linear-gradient(#3b7058, var(--fir) 60%, #244a37); color: var(--cream); --edge: #15301f; }
.btn-ink { background: linear-gradient(#4a3428, var(--ink)); color: var(--cream); --edge: #120b08; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn kbd { font: 400 12px/1 var(--mono); opacity: .65; border: 1px solid currentColor; border-radius: 4px; padding: 3px 4px 2px; }

/* ---------- the lodge wall behind the table: a mullioned window onto the snow (two tall ones on wide screens) ---------- */
.table-wrap { --win-w: min(720px, calc(100vw - 48px)); --win-h: calc(var(--win-w) * .1667);
  position: relative; isolation: isolate; padding: calc(var(--win-h) + 76px) 24px 0; max-width: 1220px; margin: 0 auto; }
.table-wrap::before { content: ""; position: absolute; z-index: -1; top: 56px; left: 50%; width: var(--win-w); margin-left: calc(var(--win-w) / -2); height: var(--win-h); pointer-events: none;
  background: url(window-wide.svg) 0 0 / 100% 100% no-repeat; filter: drop-shadow(0 8px 8px rgba(90,55,20,.35)); }
/* the window sill under it */
.table-wrap::after { content: ""; position: absolute; z-index: -1; top: calc(56px + var(--win-h)); left: 50%; width: calc(var(--win-w) + 36px); margin-left: calc(var(--win-w) / -2 - 18px); height: 12px; pointer-events: none;
  background: linear-gradient(#e7c58b, #c99556); border-radius: 2px; box-shadow: 0 6px 8px -4px rgba(90,55,20,.5); }
@media (min-width: 1320px) {
  .table-wrap { max-width: 1080px; padding-top: 70px; --tw: min(210px, calc(50vw - 540px - 40px)); }
  .table-wrap::before { top: 110px; left: 0; margin-left: calc(540px - 50vw); width: 100vw; height: calc(var(--tw) * 1.6);
    background: url(window-tall.svg) calc((50vw - 540px - var(--tw)) / 2 + 4px) 0 / var(--tw) calc(var(--tw) * 1.6) no-repeat, url(window-tall.svg) calc(100vw - (50vw - 540px + var(--tw)) / 2 - 4px) 0 / var(--tw) calc(var(--tw) * 1.6) no-repeat; }
  .table-wrap::after { top: calc(110px + var(--tw) * 1.6); left: 0; margin-left: calc(540px - 50vw); width: 100vw; box-shadow: none; height: 14px;
    background: linear-gradient(#e7c58b, #c99556) calc((50vw - 540px - var(--tw)) / 2 - 10px) 0 / calc(var(--tw) + 28px) 14px no-repeat, linear-gradient(#e7c58b, #c99556) calc(100vw - (50vw - 540px + var(--tw)) / 2 + 10px) 0 / calc(var(--tw) + 28px) 14px no-repeat; }
}
.table-rail {
  position: relative; padding: 16px; border: 4px solid #7a4d24;
  border-radius: 36px 36px 196px 196px / 36px 36px 126px 126px;
  background:
    repeating-linear-gradient(94deg, rgba(150,100,50,0) 0 22px, rgba(150,100,50,.18) 22px 23px, rgba(150,100,50,0) 23px 41px, rgba(255,255,255,.18) 41px 42px),
    linear-gradient(180deg, #f0d39f, #dcb06c 40%, #c38d4c);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.4), inset 0 -6px 10px -4px rgba(90,55,20,.5), 0 34px 50px -30px rgba(60,30,10,.85);
}
#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% 26%, #b72b35, var(--red) 58%, #7f1720);
  box-shadow: inset 0 0 0 1px rgba(60,8,12,.6), inset 0 14px 22px -14px rgba(40,5,8,.7), inset 0 -18px 30px -20px rgba(40,5,8,.6);
}
#felt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .6; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* a cream running stitch around the wool, and the cool window light across it */
#felt::after { content: ""; position: absolute; inset: 11px; border-radius: 16px 16px 172px 172px / 16px 16px 104px 104px; pointer-events: none; border: 2px dashed rgba(246,239,226,.62);
  background: linear-gradient(170deg, rgba(219,230,240,.14), rgba(219,230,240,0) 45%); }
.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: 800 31px var(--display); letter-spacing: 1px; fill: var(--cream); opacity: .78; }
.print-small { font: 700 12.5px var(--text); letter-spacing: 3.2px; fill: var(--cream); opacity: .62; }
.print-star { fill: var(--cream); opacity: .55; }
.print-rule { stroke: var(--cream); stroke-width: 1.6; stroke-dasharray: 6 5; fill: none; opacity: .5; }
.print-narrow .print-big { font-size: 22px; letter-spacing: .5px; }
.print-narrow .print-small { font-size: 11px; letter-spacing: 2.2px; }
.felt .spot { border: 2px dashed rgba(246,239,226,.7); box-shadow: 0 0 0 5px rgba(40,5,8,.1); }
.felt .spot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(246,239,226,.35); }
.felt .card .face, .felt .card .back { box-shadow: 0 1px 0 rgba(43,29,22,.3), 0 10px 14px -6px rgba(40,5,8,.65); }
.felt .card.won .face { box-shadow: 0 0 0 3px var(--snow), 0 0 0 5px var(--fir), 0 10px 16px -8px rgba(40,5,8,.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(--display); letter-spacing: -.5px; }
.cx-court { font: 800 42px var(--display); }
.chip-label { font: 800 15px var(--text); }
.felt .total {
  font: 800 calc(var(--card-w) * .25) / 1 var(--display); color: var(--ink); padding: 6px 11px 5px; border-radius: 6px;
  background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 0 0 4px var(--cream), inset 0 0 0 5px rgba(163,32,42,.5), 0 4px 0 rgba(40,5,8,.4);
}
.felt .total.bust { color: var(--cream); background: var(--ink); box-shadow: 0 4px 0 #120b08; }
.felt .total.bj { color: var(--cream); background: var(--fir); box-shadow: inset 0 0 0 4px var(--fir), inset 0 0 0 5.5px rgba(246,239,226,.7), 0 4px 0 #15301f; }
.felt .total.active { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px var(--snow), 0 4px 0 rgba(40,5,8,.4); }
.felt .discard.has::before { content: ""; position: absolute; inset: 0; border-radius: 7px; background: var(--red); border: 3px solid var(--card-face);
  box-shadow: 1px 1px 0 #d6cbb7, 2px 2px 0 var(--card-face), 3px 3px 0 #c7b9a0, calc(var(--n,1) * 1px + 3px) calc(var(--n,1) * 1px + 3px) 0 #b5a689, 0 10px 14px -8px rgba(40,5,8,.6); transform: rotate(-6deg); }
.felt .rack svg .rack-body { fill: #d9b273; }
.felt .rack svg .rack-lip { fill: #8a5a2b; }
.felt .rack { filter: drop-shadow(0 6px 6px rgba(40,5,8,.5)); }
.felt .shoe { filter: drop-shadow(0 10px 10px rgba(40,5,8,.5)); }

/* the table's line under the felt */
.talk { min-height: 66px; display: flex; align-items: center; justify-content: center; padding: var(--s3) var(--s4) 0; }
.talk .dealer-line { position: static; transform: none; font: 700 23px/1.3 var(--display); color: var(--ink); max-width: 46ch; text-align: center; }
.talk .dealer-line.in { animation: line-in .5s ease-out; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- the player's side ---------- */
.controls { max-width: 1100px; margin: 0 auto; padding: var(--s3) 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(60,30,10,.4)); }
.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(--display); min-width: 4ch; text-align: right; color: var(--ink); }
.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: 0 auto; padding: var(--s4) 24px 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--ink-2); font-size: 16px; }
.under b { color: var(--ink); font-weight: 800; }
.under .mono, .mono { font-family: var(--mono); font-size: .86em; 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(--red); text-underline-offset: 3px; cursor: pointer; color: var(--ink); font-weight: 800; }
.testnote { color: var(--fir); font-weight: 700; }

/* ---------- under the table ---------- */
.sect { max-width: 1100px; margin: 0 auto; padding: var(--s8) 24px 0; }
.sect h2 { font: 800 clamp(30px, 3.6vw, 42px)/1.05 var(--display); margin: 0 0 var(--s5); color: var(--red); }
.two { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s7); align-items: start; }
.floor { width: 100%; border-collapse: collapse; font-size: 17px; background: rgba(251,247,238,.9); box-shadow: 0 0 0 1.5px rgba(43,29,22,.18); }
.floor th { text-align: left; font-weight: 800; color: var(--cream); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 11px 10px 9px; background: var(--red); }
.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(219,230,240,.9); } }
.empty { color: var(--ink-2); padding: var(--s4) 10px; font-style: italic; }
/* the house rules on a knitted panel: cream wool, a red band top and bottom, a running stitch */
.placard { position: relative; color: var(--ink); border-radius: 6px; padding: 58px var(--s5) 58px; text-align: left;
  background: url(knit-red.svg) 0 0 / 24px 30px repeat-x, url(knit-red.svg) 0 100% / 24px 30px repeat-x, var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(43,29,22,.18), 0 26px 40px -26px rgba(60,30,10,.8); }
.placard::after { content: ""; position: absolute; left: 10px; right: 10px; top: 40px; bottom: 40px; border: 2px dashed rgba(163,32,42,.45); border-radius: 4px; pointer-events: none; }
.placard h3 { font: 800 30px/1.1 var(--display); margin: 0 0 var(--s3); text-align: center; color: var(--red); }
.placard ul { margin: 0; padding: 0 8px; list-style: none; }
.placard li { padding: 7px 0 5px; 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 8px 8px; }
.placard a { color: var(--ink); text-decoration-color: var(--red); }
.edge { font: 800 64px/1 var(--display); color: var(--red); margin: var(--s4) 0 var(--s2); text-align: center; }

/* ---------- inner pages ---------- */
.page { max-width: 980px; margin: 0 auto; padding: calc(var(--s7) + 40px) 24px 0; }
.page h1 { font: 800 clamp(40px, 6vw, 64px)/1 var(--display); margin: 0 0 var(--s5); color: var(--red); }
.page h2 { font: 800 28px/1.15 var(--display); margin: var(--s7) 0 var(--s3); }
.page p, .page li { max-width: 68ch; }
.page .lead { font-size: 21px; }
.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(--snow-blue); } .strategy td.D { background: var(--red); color: var(--cream); } .strategy td.P { background: var(--fir); color: var(--cream); }
.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: 6px; background: var(--snow); color: var(--ink); min-width: 0; }
.check { margin-top: var(--s4); padding: var(--s4) var(--s5); border-radius: 6px; background: var(--cream); box-shadow: inset 0 0 0 2px var(--fir), 0 3px 0 rgba(43,29,22,.25); }
.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(43,29,22,.35)); }

.foot { max-width: 1100px; margin: var(--s8) auto 0; padding: var(--s6) 24px var(--s7); position: relative; color: var(--ink-2); font-size: 16px; }
.foot::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 15px; background: url(knit-red.svg) 0 0 / 12px 15px; }
.foot-links { display: flex; gap: var(--s5); flex-wrap: wrap; font-weight: 700; }
.castrip { background: var(--fir); color: var(--cream); text-align: center; padding: 48px 16px 8px; font-weight: 700; }
.castrip span { overflow-wrap: anywhere; font-family: var(--mono); }

dialog { border: 0; border-radius: 8px; padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--cream); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 7px var(--cream), 0 30px 60px -20px rgba(43,29,22,.75); }
dialog::backdrop { background: rgba(43,29,22,.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); border-bottom: 2px dashed rgba(163,32,42,.35); margin: 0 12px; }
.dlg-head h2 { margin: 0; font: 800 26px/1 var(--display); color: var(--red); }
.dlg-x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; color: var(--ink); }
.dlg-body { padding: var(--s5); 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: 8px; background: var(--snow); 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: 16px; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); visibility: hidden; background: var(--ink); color: var(--cream); padding: 13px 18px 11px; border-radius: 8px; font-weight: 700; transition: transform .25s; z-index: 50; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px -10px rgba(43,29,22,.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: 17px; }
  .rail-top { padding: 9px 14px 10px; gap: var(--s3); }
  .rail-top::after { height: 26px; background-size: 16px 26px; }
  .brand span { font-size: 30px; }
  .brand svg { width: 40px; height: 40px; }
  .btn-wallet { min-height: 42px; padding: 0 14px; font-size: 14.5px; }
  .table-wrap { --win-w: calc(100vw - 32px); padding: calc(var(--win-h) + 60px) 8px 0; }
  .table-wrap::before { top: 40px; }
  .table-wrap::after { top: calc(40px + var(--win-h)); width: calc(var(--win-w) + 16px); margin-left: calc(var(--win-w) / -2 - 8px); }
  .table-rail { padding: 10px; border-width: 3px; border-radius: 24px 24px 80px 80px / 24px 24px 64px 64px; }
  #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; }
  #felt::after { inset: 7px; border-radius: 10px 10px 66px 66px / 10px 10px 50px 50px; }
  .talk { min-height: 58px; }
  .talk .dealer-line { font-size: 19.5px; }
  .controls { grid-template-columns: minmax(0, 1fr); padding: var(--s2) 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(--s4) 14px 0; font-size: 15px; }
  .sect { padding: var(--s7) 14px 0; }
  .floor .hide-s { display: none; }
  .page { padding: calc(var(--s7) + 20px) 14px 0; }
  .strategy th, .strategy td { width: 26px; height: 24px; font-size: 11.5px; }
  .placard { padding: 54px 20px 54px; }
}
