/* Kings: an antique court card printed from an engraved plate. Cream card stock, bottle-green and black ink,
   vermilion for red suits, gold only as a thin rule. Prata + Source Sans 3. Drawings come from brand/kings-art.mjs
   (hero in index.html, card back / rosette / note band in art.css). */
@font-face { font-family: 'Prata'; src: url(/fonts/Prata.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url(/fonts/SourceSans3-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url(/fonts/SourceSans3-400i.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url(/fonts/SourceSans3-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url(/fonts/SourceSans3-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --paper: #f3ecdb; --paper-2: #e9dfc6; --paper-3: #ddd0b1; --card: #f8f3e6;
  --ink: #141613; --ink-2: #3c3f38; --mute: #6c6d5d;
  --green: #1d4a36; --green-lit: #2f6b4f; --green-deep: #0f2a1f; --green-wash: rgba(29, 74, 54, .08);
  --red: #a8322d; --gold: #b8923a; --gold-lit: #d9b665;
  --pk-red: #a8322d;
  --display: 'Prata', 'Times New Roman', serif; --text: 'Source Sans 3', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --rule: 0 0 0 1px var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.5; overflow-x: hidden;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .26 0 0 0 0 .16 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
code { font-family: var(--text); font-size: .92em; font-variant-numeric: tabular-nums; letter-spacing: .01em; word-break: break-all; }
[hidden] { display: none !important; }
.muted { color: var(--mute); }

/* buttons: printed in green with a cream inner rule; quiet ones are an ink outline */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 0 20px; border-radius: 4px; border: 0;
  font: 600 16px/1 var(--text); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .08s, background-color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-main { background: var(--green); color: var(--card); box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px rgba(248, 243, 230, .55), 0 3px 0 var(--green-deep); }
.btn-main:hover { background: var(--green-lit); box-shadow: inset 0 0 0 3px var(--green-lit), inset 0 0 0 4px rgba(248, 243, 230, .6), 0 3px 0 var(--green-deep); }
.btn-main:active { box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px rgba(248, 243, 230, .55), 0 1px 0 var(--green-deep); }
.btn-quiet { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), 0 3px 0 var(--paper-3); }
.btn-quiet:hover { background: #fffaf0; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 18px; }

/* header: a printed masthead, double rule underneath */
.coin-strip { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px var(--gutter); background: var(--green); color: var(--card); font-size: 14px; font-weight: 600; }
.coin-strip code { font-size: 13px; }
.coin-strip .btn-quiet { color: var(--ink); min-height: 30px; padding: 0 12px; }
.top { display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter) 16px; max-width: 1440px; margin: 0 auto; position: relative; }
.top::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 5px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 400 40px/1 var(--display); letter-spacing: -.01em; }
.brand-mark { width: 44px; height: 44px; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; font-weight: 600; color: var(--ink-2); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-color: var(--green); }
.nav-x svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.wallet-btn { min-width: 150px; }
.wallet-btn.is-connected { font-variant-numeric: tabular-nums; }

main { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* hero: the engraved plate with the two kings on the right, words on the plain paper */
.hero { position: relative; margin: 22px 0 0; min-height: clamp(470px, 44vw, 620px); display: flex; align-items: center; border: 1.5px solid var(--ink); outline: 1px solid var(--gold); outline-offset: -8px; background: var(--paper); overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.hero-art svg { display: block; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 1; padding: clamp(36px, 5vw, 76px); max-width: min(640px, 50%); }
.hero h1 { font-size: clamp(46px, 4.9vw, 78px); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); max-width: 34em; margin-top: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--mute); }

/* lobby: every table is an engraved note, the buy-in printed as its value */
.lobby { padding: clamp(48px, 6vw, 84px) 0 56px; scroll-margin-top: 12px; }
.lobby h2, .facts h2 { font-size: clamp(34px, 3.3vw, 48px); }
.lobby-head { display: flex; align-items: baseline; gap: 10px 26px; flex-wrap: wrap; margin-bottom: 26px; }
.lobby-head p { color: var(--ink-2); max-width: 40em; }
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.lt {
  position: relative; background: var(--card); color: var(--ink); border-radius: 6px; padding: 58px 22px 20px; display: grid; gap: 6px;
  box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--gold), 0 18px 30px -22px rgba(20, 22, 19, .55);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.lt::before { content: ''; position: absolute; left: 7px; right: 7px; top: 7px; height: 40px; background: var(--kg-band) 0 0 / 240px 40px repeat-x, var(--green); }
.lt-six::before { background-color: var(--ink); }
.lt::after { position: absolute; right: 16px; top: 18px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--card) var(--kg-ring) center / 100% no-repeat; box-shadow: 0 0 0 1.5px var(--ink); font: 400 24px/1 var(--display); color: var(--ink); }
.lt-hu::after { content: '2'; }
.lt-six::after { content: '6'; }
.lt:hover { transform: translateY(-3px); }
.lt-top { display: grid; gap: 2px; padding-right: 60px; }
.lt h3 { font-size: 28px; }
.lt-format { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.lt-buyin { font: 400 46px/1 var(--display); letter-spacing: -.01em; margin-top: 12px; font-variant-numeric: lining-nums; }
.lt-prize { font-weight: 700; color: var(--green); }
.lt-meta { font-size: 14px; color: var(--ink-2); }
.lt-foot { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.lt-seats { display: flex; gap: 6px; }
.lt-seats i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--card); }
.lt-seats i.on { background: radial-gradient(circle, var(--card) 0 28%, var(--green) 30%); }
.lt-count { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.lt-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 6px; }
.lt-actions .btn, .lt > .btn { white-space: normal; text-align: center; line-height: 1.15; padding: 0 12px; font-size: 15px; }
.lobby-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; }
.lobby-cols h2 { font-size: 30px; margin-bottom: 10px; }
.lr-list { display: grid; }
.lr { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "d a c" "d b c"; column-gap: 14px; padding: 13px 0; border-top: 1px solid rgba(20, 22, 19, .2); text-decoration: none; }
.lr::before { content: ''; grid-area: d; align-self: center; width: 10px; height: 10px; transform: rotate(45deg); background: var(--green); }
.lr b { grid-area: a; font-weight: 700; }
.lr span:not(.lr-go) { grid-area: b; color: var(--mute); font-size: 15px; }
.lr-go { grid-area: c; align-self: center; font-weight: 700; color: var(--green); }
.lr:hover b { text-decoration: underline; }

/* how a table works: fine print under an engraved rule */
.facts { padding: 56px 0 84px; position: relative; }
.facts::before { content: ''; display: block; height: 5px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 48px; }
.facts-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 48px; margin: 30px 0 0; }
.facts-list div { padding-top: 14px; border-top: 1px solid var(--gold); }
.facts-list dt { font: 400 26px/1.1 var(--display); margin-bottom: 8px; }
.facts-list dd { margin: 0; color: var(--ink-2); font-size: 17px; }

/* table page */
.table-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0 14px; }
.table-head h1 { font-size: clamp(32px, 3.2vw, 46px); }
.th-id { font: 400 .45em var(--text); color: var(--mute); vertical-align: middle; }
.th-meta { display: flex; gap: 6px 20px; flex-wrap: wrap; font-weight: 600; color: var(--ink-2); }
.th-level { color: var(--green); }
.table-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-bottom: 60px; align-items: start; }
.table-main { min-width: 0; }
.table-side { display: grid; gap: 16px; font-size: 15px; }
.table-side h3 { font-size: 24px; margin-bottom: 6px; }
.fair, .results { background: var(--card); border-radius: 4px; padding: 16px 18px; display: grid; gap: 6px; box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 0 0 5px var(--card), inset 0 0 0 6px var(--gold); color: var(--ink-2); }
.fair a, .results a { color: var(--green); font-weight: 600; }
.fair code { display: block; font-size: 13px; color: var(--ink); background: var(--paper); padding: 7px 9px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(20, 22, 19, .15); }
.results ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.results li { display: grid; grid-template-columns: 44px 1fr auto; font-variant-numeric: tabular-nums; color: var(--ink); }
.payout { font-size: 14px; }

/* the table: bottle-green rail with a gold rule, the cloth an engraved cream plate with a rosette */
.pk-table { font-family: var(--text); }
.pk-rail {
  background: radial-gradient(120% 140% at 50% 0%, var(--green-lit) 0, var(--green) 40%, var(--green-deep) 100%);
  box-shadow: 0 30px 50px -28px rgba(15, 42, 31, .8), inset 0 0 0 2px var(--ink), inset 0 3px 0 rgba(248, 243, 230, .18);
}
.pk-rail::after { content: ''; position: absolute; inset: 1.6% 1.1%; border-radius: 999px; border: 1.5px solid var(--gold); opacity: .85; }
.pk-cloth { background-color: var(--card); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--ink), inset 0 10px 30px rgba(15, 42, 31, .12);
  background-image: repeating-linear-gradient(0deg, rgba(29, 74, 54, .13) 0 1px, transparent 1px 4px); }
.pk-cloth::before { content: ''; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); background: var(--kg-rose) center / contain no-repeat; opacity: .22; }
.pk-line { border: 1px solid var(--gold); }
.pk-mark { top: 80%; display: grid; justify-items: center; opacity: .7; }
.pk-mark::after { content: 'Kings'; font: 400 4.2cqw/1 var(--display); color: var(--green); }
.pk-slot { box-shadow: inset 0 0 0 1px rgba(20, 22, 19, .28); background: rgba(248, 243, 230, .6); }
.pk-front { background: var(--card); color: var(--ink); box-shadow: 0 .3cqw .9cqw rgba(20, 22, 19, .28), inset 0 0 0 1px rgba(20, 22, 19, .2), inset 0 0 0 calc(var(--cw) * .05) var(--card), inset 0 0 0 calc(var(--cw) * .05 + 1px) rgba(184, 146, 58, .6); font-family: var(--display); }
.pk-idx b { font-weight: 400; }
.pk-court { font-weight: 400; }
.pk-court::before { content: ''; position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%); background: var(--kg-ring) center / contain no-repeat; opacity: .45; z-index: -1; }
.pk-back { background: var(--kg-back) center / 100% 100% no-repeat, var(--green); box-shadow: 0 .3cqw .9cqw rgba(20, 22, 19, .3); }
.pk-banner { font: 400 clamp(15px, 2.1cqw, 24px)/1.15 var(--display); color: var(--ink); text-shadow: 0 0 6px var(--card), 0 0 2px var(--card); }
.pk-pot-amt, .pk-bet-amt { font: 700 max(12px, 1.45cqw)/1 var(--text); color: var(--ink); background: var(--card); padding: .25em .5em; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-plate { background: var(--card); color: var(--ink); border-radius: .4cqw; box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 0 0 .4cqw var(--card), inset 0 0 0 calc(.4cqw + 1px) var(--gold), 0 .5cqw 1.2cqw rgba(15, 42, 31, .35); font-size: max(11px, 1.35cqw); line-height: 1.25; }
.pk-who { font-size: .95em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pk-stack { font-weight: 700; font-size: 1.2em; font-variant-numeric: tabular-nums; }
.pk-note { font-size: .9em; font-weight: 700; color: var(--green); }
.pk-clock { background: rgba(20, 22, 19, .12); }
.pk-clock i { background: var(--green); }
.pk-seat.is-late .pk-clock i { background: var(--red); animation: late .5s steps(2) infinite; }
@keyframes late { 50% { opacity: .35; } }
.pk-seat.is-me .pk-plate { background: var(--green); color: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 0 0 .4cqw var(--green), inset 0 0 0 calc(.4cqw + 1px) var(--gold), 0 .5cqw 1.2cqw rgba(15, 42, 31, .4); }
.pk-seat.is-me .pk-who { color: #d9e4d6; font-weight: 700; }
.pk-seat.is-me .pk-note { color: var(--gold-lit); }
.pk-seat.is-me .pk-clock { background: rgba(248, 243, 230, .2); }
.pk-seat.is-me .pk-clock i { background: var(--card); }
.pk-seat.is-turn .pk-plate { outline: .35cqw solid var(--green); outline-offset: .25cqw; }
.pk-seat.is-me.is-turn .pk-plate { outline-color: var(--ink); }
.pk-seat.is-winner .pk-plate { outline: .35cqw solid var(--gold); outline-offset: .25cqw; }
.pk-seat.is-empty .pk-plate { background: rgba(248, 243, 230, .7); color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(20, 22, 19, .35); }
.pk-seat.is-out .pk-plate, .pk-seat.is-away .pk-plate { opacity: .6; }
.pk-dealer { background: var(--card); color: var(--ink); font-family: var(--display); box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 3px var(--card), 0 0 0 4px var(--gold), 0 3px 6px rgba(0, 0, 0, .3); }
.pk-sit { font: 700 max(15px, 1.7cqw)/1 var(--text); background: var(--green); color: var(--card); border: 0; border-radius: 4px; padding: 1.3cqw 2.8cqw; min-height: 46px; cursor: pointer; box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px rgba(248, 243, 230, .55), 0 3px 0 var(--green-deep), 0 10px 24px rgba(15, 42, 31, .35); white-space: nowrap; }
.pk-sit:hover { background: var(--green-lit); }

/* chips: engraved like coins, a rim of ridges and an inner rule */
.pk-chip { box-shadow: 0 calc(var(--cw) * .05) 0 var(--d, #000), 0 calc(var(--cw) * .07) calc(var(--cw) * .06) rgba(15, 42, 31, .35); background: radial-gradient(closest-side, var(--c) 0 50%, var(--s) 51% 55%, var(--c) 56% 76%, var(--s) 77% 80%, var(--c) 81%); }
.pk-chip::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, var(--s) 0 4deg, transparent 4deg 12deg); -webkit-mask: radial-gradient(closest-side, transparent 84%, #000 85%); mask: radial-gradient(closest-side, transparent 84%, #000 85%); opacity: .7; }
.pk-chip-1 { --c: #f8f3e6; --d: #b7aa8c; --s: #1d4a36; }
.pk-chip-5 { --c: #a8322d; --d: #6b1d19; --s: #f8f3e6; }
.pk-chip-25 { --c: #1d4a36; --d: #0f2a1f; --s: #f8f3e6; }
.pk-chip-100 { --c: #141613; --d: #000; --s: #d9b665; }
.pk-chip-500 { --c: #b8923a; --d: #7a5c1c; --s: #141613; }
.pk-chip-1000 { --c: #5b6f8f; --d: #33435d; --s: #f8f3e6; }
.pk-chip-5000 { --c: #7a4a6a; --d: #4a2a40; --s: #f8f3e6; }
.pk-chip-25000 { --c: #f8f3e6; --d: #b7aa8c; --s: #a8322d; }

/* action bar */
.table-actions { margin-top: 16px; min-height: 64px; }
.act-box { display: grid; gap: 10px; background: var(--card); border-radius: 4px; padding: 14px; box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 0 0 5px var(--card), inset 0 0 0 6px var(--gold), 0 18px 30px -24px rgba(20, 22, 19, .6); }
.act-turn { font: 400 24px/1 var(--display); color: var(--ink); }
.act-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.act-row .btn { min-height: 58px; font-size: 18px; white-space: normal; line-height: 1.1; }
.act-fold { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), 0 3px 0 var(--paper-3); }
.act-fold:hover { background: #fffaf0; }
.act-call { background: var(--ink); color: var(--card); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(248, 243, 230, .4), 0 3px 0 #000; }
.act-call:hover { background: #262923; }
.act-amt { font-variant-numeric: tabular-nums; }
.act-size { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.act-preset { min-height: 38px; padding: 0 13px; font-size: 14px; background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(20, 22, 19, .35); }
.act-preset:hover { color: var(--ink); background: #fffaf0; }
.act-range { flex: 1 1 160px; accent-color: var(--green); min-width: 0; height: 32px; }
.act-wait { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 2px; font-weight: 600; color: var(--ink-2); }
.table-actions:empty { min-height: 0; margin: 0; }
.act-raise { white-space: nowrap !important; flex-wrap: nowrap; }

/* pages */
.page { max-width: 880px; padding: 32px 0 80px; }
.page h1 { font-size: clamp(46px, 5.2vw, 72px); letter-spacing: -.015em; }
.page .lede { margin-bottom: 28px; }
.rules { display: grid; gap: 12px; margin-top: 20px; }
.rules h2 { font-size: 32px; margin-top: 24px; scroll-margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--gold); }
.rules p { color: var(--ink-2); }
.rules a { color: var(--green); }
.levels { border-collapse: collapse; width: min(100%, 360px); font-variant-numeric: tabular-nums; }
.levels th, .levels td { text-align: left; padding: 6px 10px; border-bottom: 1px solid rgba(20, 22, 19, .2); }
.levels th { color: var(--mute); font-weight: 600; }
.vf-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.vf-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; flex: 1 1 140px; color: var(--ink-2); }
.vf-form input { font: 16px var(--text); font-variant-numeric: tabular-nums; padding: 12px; border-radius: 4px; border: 1.5px solid rgba(20, 22, 19, .35); background: var(--card); color: var(--ink); min-width: 0; width: 100%; }
.vf-form input:focus { outline: none; border-color: var(--green); }
.vf-manual { margin: 8px 0 20px; }
.vf-manual summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; color: var(--ink-2); }
.vf-checks { list-style: none; padding: 0; display: grid; gap: 8px; margin: 10px 0 18px; }
.vf-checks li { color: var(--ink-2); }
.vf-checks li b { display: inline-block; min-width: 140px; font-family: var(--display); font-weight: 400; font-size: 21px; }
.vf-checks .ok b { color: var(--green); }
.vf-checks .bad b, .bad { color: var(--red); }
.vf-deck { --cw: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin: 10px 0 24px; }
.vf-deck .pk-card, .vf-cards .pk-card { --cw: 44px; }
.vf-hand { display: grid; gap: 10px; }
.vf-seat { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vf-seat > span:first-child { min-width: 170px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vf-cards { display: flex; gap: 6px; }

/* dialogs: a printed card with the double rule and gold line */
.dlg { border: 0; border-radius: 6px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(15, 42, 31, .45), inset 0 0 0 1.5px var(--ink), inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--gold); }
.dlg::backdrop { background: rgba(15, 42, 31, .55); }
.dlg a { color: var(--green); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 20px 6px 26px; }
.dlg-head h2 { font-size: 30px; }
.dlg-x { border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; width: 44px; height: 44px; color: var(--ink); }
.dlg-body { padding: 8px 26px 26px; display: grid; gap: 14px; }
.dlg-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.dlg-facts dt { color: var(--ink-2); }
.dlg-facts dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.dlg-label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.dlg-seed { font: 15px var(--text); font-variant-numeric: tabular-nums; padding: 11px 12px; border-radius: 4px; border: 1.5px solid rgba(20, 22, 19, .3); background: #fffaf0; color: var(--ink); min-width: 0; width: 100%; }
.dlg-small { font-size: 14px; color: var(--ink-2); }
.dlg-status { font-size: 15px; min-height: 1.4em; }
.dlg-addr { font-size: 15px; word-break: break-all; font-variant-numeric: tabular-nums; }
.dlg-row, .dlg-wallets { display: grid; gap: 8px; }
.dlg-wallet { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 14px; border-radius: 4px; border: 1.5px solid rgba(20, 22, 19, .25); background: #fffaf0; font: 600 16px var(--text); cursor: pointer; text-decoration: none; color: var(--ink); }
.dlg-wallet:hover { border-color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--green); color: var(--card); padding: 12px 18px; border-radius: 4px; max-width: calc(100vw - 32px); z-index: 50; font-weight: 600; box-shadow: 0 12px 34px rgba(15, 42, 31, .45), inset 0 0 0 3px var(--green), inset 0 0 0 4px rgba(248, 243, 230, .5); }
.pk-offline .table-head::after { content: 'Reconnecting…'; color: var(--red); font-weight: 600; }

.foot { max-width: 1440px; margin: 0 auto; padding: 28px var(--gutter) 44px; display: grid; gap: 6px; color: var(--mute); font-size: 14px; position: relative; }
.foot::before { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 5px; border-top: 1px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.foot nav { display: flex; gap: 18px; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .table-grid { grid-template-columns: minmax(0, 1fr); }
  .table-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
}
@media (max-width: 1240px) {
  .hero { display: grid; min-height: 0; border: 0; outline: 0; overflow: visible; background: transparent; }
  .hero-copy { max-width: 760px; padding: 18px 0 0; order: 1; }
  .hero-art { position: relative; inset: auto; order: 2; margin-top: 32px; aspect-ratio: 16 / 8; overflow: hidden; border: 1.5px solid var(--ink); outline: 1px solid var(--gold); outline-offset: -8px; }
}
@media (max-width: 860px) {
  .hero-art { aspect-ratio: 4 / 3; margin-top: 28px; }
  .lobby-cols, .facts-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 12px; }
  .brand { font-size: 34px; }
  .brand-mark { width: 38px; height: 38px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 20px; font-size: 15px; }
  .nav-x { margin-left: auto; }
  .wallet-btn { margin-left: auto; min-height: 42px; min-width: 0; }
  .hero h1 { font-size: clamp(40px, 11vw, 54px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .lt-buyin { font-size: 42px; }
  .table-actions { position: sticky; bottom: 0; z-index: 10; margin: 10px calc(var(--gutter) * -1) 0; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(243, 236, 219, 0), var(--paper) 18%); }
  .act-turn { display: none; }
  .act-box { padding: 10px; gap: 8px; }
  .act-size { gap: 6px; }
  .act-preset { min-height: 34px; padding: 0 10px; flex: 1 1 0; }
  .act-range { flex: 1 1 100%; height: 26px; }
  .act-row { gap: 8px; }
  .act-row .btn { min-height: 52px; font-size: 16px; padding: 0 10px; }
}
