/* Flush: a 1970s TV game-show set. Cream studio wall, chocolate frames lined with bulbs, burnt-orange felt,
   harvest-orange buttons, mustard bulbs. Modak (display) + Dosis (text and numbers). */
@font-face { font-family: 'Modak'; src: url(/fonts/Modak.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Dosis'; src: url(/fonts/Dosis.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --cream: #f6ead3; --cream-2: #ecd6b0; --cream-3: #dcbf8f; --paper: #fff8ea;
  --ink: #2b170c; --ink-2: #5b3a22; --mute: #8a6a4e; --line: rgba(43, 23, 12, .14);
  --choc: #3a1f12; --choc-lit: #5a3220; --choc-deep: #22110a;
  --orange: #e2591c; --orange-hi: #f06a2a; --orange-deep: #a93a0c;
  --felt: #b9461a; --felt-lit: #d9662a; --felt-deep: #7e2b0c;
  --mustard: #f0a92a; --mustard-deep: #b9740d; --bulb: #ffe6a8; --avocado: #5f6b22; --bad: #c8321f;
  --pk-red: #c8321f;
  --display: 'Modak', 'Arial Rounded MT Bold', sans-serif; --text: 'Dosis', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --bulbs: radial-gradient(circle, #fffaf0 0 18%, var(--bulb) 19% 44%, var(--mustard) 45% 56%, transparent 58%);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--cream); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-weight: 500; font-size: 18px; line-height: 1.5; overflow-x: hidden; background: var(--cream); }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
code { font-family: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; font-size: .92em; word-break: break-all; letter-spacing: .02em; }
[hidden] { display: none !important; }
.muted { color: var(--mute); }

/* buttons: orange is the move, chocolate is the console, outline is the quiet way */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; font: 700 18px/1 var(--text); letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .08s, background-color .15s, box-shadow .15s; }
.btn:active { transform: translateY(3px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn-main { background: var(--orange); color: var(--paper); box-shadow: inset 0 -5px 0 var(--orange-deep), 0 3px 0 var(--choc); }
.btn-main:hover { background: var(--orange-hi); }
.btn-main:active { box-shadow: inset 0 -2px 0 var(--orange-deep), 0 0 0 var(--choc); }
.btn-choc { background: var(--choc); color: var(--paper); box-shadow: inset 0 -4px 0 var(--choc-deep); }
.btn-choc:hover { background: var(--choc-lit); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-quiet:hover { background: rgba(43, 23, 12, .06); }
.btn-big { min-height: 58px; padding: 0 30px; font-size: 20px; }

/* header */
.coin-strip { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px var(--gutter); background: var(--choc); color: var(--paper); font-size: 15px; font-weight: 700; }
.coin-strip code { font-size: 14px; }
.coin-strip a { color: var(--bulb); }
.coin-strip .btn-quiet { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper); min-height: 30px; padding: 0 12px; font-size: 14px; }
.top { display: flex; align-items: center; gap: 28px; padding: 16px var(--gutter); max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark svg { width: 46px; height: 46px; display: block; }
.brand-word { font: 400 46px/1 var(--display); color: var(--orange); text-shadow: 2px 3px 0 var(--choc); letter-spacing: .01em; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; font-weight: 700; color: var(--ink-2); font-size: 18px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-color: var(--orange); }
.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 studio stage, words on the plain wall to the left of the panels */
.hero { position: relative; margin: 6px 0 0; border-radius: 28px; overflow: hidden; min-height: clamp(520px, 48vw, 700px); display: flex; align-items: flex-start; background: #f1d7a8; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(58, 31, 18, .6); }
.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, 4vw, 58px) 0 0 clamp(32px, 3.4vw, 50px); max-width: min(480px, 36%); }
.hero h1 { font-size: clamp(54px, 4.7vw, 68px); color: var(--orange); text-shadow: 3px 4px 0 var(--choc); text-wrap: balance; }
.lede { font-size: clamp(18px, 1.35vw, 20px); color: var(--ink-2); max-width: 34em; margin-top: 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--mute); font-weight: 600; }

/* lobby: every table is a lit panel on the set */
.lobby { padding: clamp(48px, 6vw, 84px) 0 56px; scroll-margin-top: 12px; }
.lobby h2, .how h2 { font-size: clamp(42px, 4vw, 60px); color: var(--ink); }
.lobby-head { display: flex; align-items: baseline; gap: 10px 26px; flex-wrap: wrap; margin-bottom: 28px; }
.lobby-head p { color: var(--ink-2); }
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.lt {
  position: relative; background: var(--paper); color: var(--ink); border-radius: 22px; padding: 30px 28px 26px; display: grid; gap: 6px;
  border: 16px solid var(--choc); box-shadow: 0 16px 30px -22px rgba(43, 23, 12, .9);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.lt::before { content: ''; position: absolute; inset: -11px; border-radius: 15px; pointer-events: none; border: 6px dotted var(--bulb); }
.lt:hover { transform: translateY(-3px); }
.lt-top { display: grid; gap: 2px; }
.lt h3 { font-size: 34px; color: var(--ink); }
.lt-format { font-size: 15px; color: var(--ink-2); font-weight: 700; letter-spacing: .02em; }
.lt-buyin { font: 400 56px/1 var(--display); color: var(--orange); text-shadow: 2px 3px 0 var(--choc); margin-top: 12px; }
.lt-prize { font-weight: 800; font-size: 19px; }
.lt-meta { font-size: 15px; 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%; background: #e6d3b1; box-shadow: inset 0 0 0 2px var(--cream-3); }
.lt-seats i.on { background: radial-gradient(circle at 40% 35%, #fffaf0, var(--bulb) 45%, var(--mustard)); box-shadow: 0 0 0 2px var(--choc); }
.lt-count { font-size: 15px; font-weight: 700; 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.1; padding: 0 14px; font-size: 17px; }
.lobby-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; }
.lobby-cols h2 { font-size: 38px; 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: 1.5px solid var(--line); text-decoration: none; }
.lr::before { content: ''; grid-area: d; align-self: center; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fffaf0, var(--bulb) 45%, var(--mustard)); box-shadow: 0 0 0 2px var(--choc); }
.lr b { grid-area: a; font-weight: 800; }
.lr span:not(.lr-go) { grid-area: b; color: var(--mute); font-size: 16px; }
.lr-go { grid-area: c; align-self: center; font-weight: 800; color: var(--orange-deep); }
.lr:hover b { color: var(--orange-deep); }

/* how a table works */
.how { padding: 56px 0 84px; border-top: 1.5px solid var(--line); }
.how-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 64px; margin: 30px 0 0; max-width: 1160px; }
.how-list div { padding-left: 22px; border-left: 5px solid var(--orange); }
.how-list dt { font: 800 26px/1.1 var(--text); margin-bottom: 6px; letter-spacing: .01em; }
.how-list dd { margin: 0; color: var(--ink-2); }

/* table page */
.table-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 8px 0 14px; }
.table-head h1 { font-size: clamp(38px, 3.6vw, 54px); color: var(--ink); }
.th-id { font: 600 .42em var(--text); color: var(--mute); vertical-align: middle; }
.th-meta { display: flex; gap: 6px 20px; flex-wrap: wrap; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.th-level { color: var(--orange-deep); }
.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: 16px; }
.table-side h3 { font-size: 30px; margin-bottom: 6px; }
.fair, .results { background: var(--paper); border-radius: 16px; padding: 16px 18px; display: grid; gap: 6px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); }
.fair a, .results a { color: var(--orange-deep); font-weight: 700; }
.fair code { display: block; font-size: 14px; color: var(--ink); background: var(--cream); padding: 7px 9px; border-radius: 8px; }
.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); font-weight: 700; }
.payout { font-size: 15px; }

/* the table: burnt-orange felt in a chocolate rail with a ring of bulbs */
.pk-table { font-family: var(--text); }
.pk-rail {
  background: radial-gradient(110% 130% at 50% 0%, var(--choc-lit) 0, var(--choc) 45%, var(--choc-deep) 100%);
  box-shadow: 0 30px 50px -26px rgba(43, 23, 12, .9), inset 0 3px 0 rgba(255, 220, 180, .18), inset 0 -10px 24px rgba(0, 0, 0, .45);
}
.pk-rail::after { content: ''; position: absolute; inset: 1.9% 1.3%; border-radius: 999px; border: max(4px, .62cqw) dotted var(--bulb); opacity: .95; }
.pk-cloth { background: radial-gradient(72% 82% at 50% 38%, var(--felt-lit) 0, var(--felt) 58%, var(--felt-deep) 100%); box-shadow: inset 0 0 0 3px rgba(34, 17, 10, .55), inset 0 12px 34px rgba(34, 17, 10, .45); }
.pk-cloth::before { content: ''; position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .08 0 0 0 0 .02 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pk-line { border: 2px solid rgba(255, 230, 168, .4); }
.pk-mark { top: 71%; }
.pk-mark::after { content: 'Flush'; font: 400 5.4cqw/1 var(--display); color: var(--felt-deep); opacity: .55; }
.pk-slot { box-shadow: inset 0 0 0 1.5px rgba(255, 230, 168, .35); }
.pk-front { background: var(--paper); color: var(--ink); box-shadow: 0 .35cqw 1cqw rgba(34, 17, 10, .4), inset 0 0 0 1px rgba(43, 23, 12, .1); font-family: var(--text); }
.pk-idx b { font-weight: 800; }
.pk-court { font-family: var(--display); font-weight: 400; }
.pk-back { background: var(--paper); box-shadow: 0 .35cqw 1cqw rgba(34, 17, 10, .4); }
.pk-back::after {
  content: ''; position: absolute; inset: 6%; border-radius: calc(var(--cw) * .07);
  background: linear-gradient(var(--orange-hi), var(--orange-deep));
  box-shadow: inset 0 0 0 calc(var(--cw) * .05) var(--orange), inset 0 0 0 calc(var(--cw) * .085) var(--mustard), inset 0 0 0 calc(var(--cw) * .12) var(--orange), inset 0 0 0 calc(var(--cw) * .155) var(--paper), inset 0 0 0 calc(var(--cw) * .19) var(--orange), inset 0 0 0 calc(var(--cw) * .215) var(--choc);
}
.pk-back::before { content: ''; position: absolute; z-index: 1; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; background: var(--paper); transform: translate(-50%, -50%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90C22 68 6 52 6 32 6 17 17 7 30 7c9 0 16 5 20 13 4-8 11-13 20-13 13 0 24 10 24 25 0 20-16 36-44 58Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 90C22 68 6 52 6 32 6 17 17 7 30 7c9 0 16 5 20 13 4-8 11-13 20-13 13 0 24 10 24 25 0 20-16 36-44 58Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pk-banner { font: 800 clamp(15px, 2.2cqw, 25px)/1.15 var(--text); color: var(--paper); text-shadow: 0 2px 0 var(--felt-deep), 0 2px 8px rgba(34, 17, 10, .5); letter-spacing: .01em; }
.pk-pot-amt, .pk-bet-amt { font: 800 max(13px, 1.55cqw)/1 var(--text); color: var(--paper); text-shadow: 0 1px 0 var(--felt-deep), 0 1px 4px rgba(34, 17, 10, .7); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-plate { background: var(--choc); color: var(--paper); border-radius: 1.2cqw; box-shadow: 0 .5cqw 1.4cqw rgba(34, 17, 10, .45), inset 0 0 0 1px rgba(255, 230, 168, .15); font-size: max(12px, 1.4cqw); line-height: 1.25; }
.pk-who { font-weight: 600; font-size: .95em; color: var(--cream-2); font-variant-numeric: tabular-nums; }
.pk-stack { font-weight: 800; font-size: 1.25em; font-variant-numeric: tabular-nums; }
.pk-note { font-size: .92em; font-weight: 800; color: var(--mustard); }
.pk-clock { background: rgba(255, 230, 168, .15); }
.pk-clock i { background: var(--mustard); }
.pk-seat.is-late .pk-clock i { background: #ff6a3d; animation: late .5s steps(2) infinite; }
@keyframes late { 50% { opacity: .35; } }
.pk-seat.is-me .pk-plate { background: var(--paper); color: var(--ink); box-shadow: 0 .5cqw 1.4cqw rgba(34, 17, 10, .45), inset 0 0 0 .25cqw var(--choc); }
.pk-seat.is-me .pk-who { color: var(--ink-2); font-weight: 800; }
.pk-seat.is-me .pk-note { color: var(--orange-deep); }
.pk-seat.is-me .pk-clock { background: rgba(43, 23, 12, .12); }
.pk-seat.is-me .pk-clock i { background: var(--orange); }
.pk-seat.is-turn .pk-plate { box-shadow: 0 0 0 .34cqw var(--mustard), 0 .5cqw 1.4cqw rgba(34, 17, 10, .45); }
.pk-seat.is-winner .pk-plate { box-shadow: 0 0 0 .34cqw var(--bulb), 0 0 0 .62cqw var(--avocado), 0 .5cqw 1.4cqw rgba(34, 17, 10, .45); }
.pk-seat.is-empty .pk-plate { background: rgba(34, 17, 10, .28); color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(255, 230, 168, .45); }
.pk-seat.is-empty .pk-who { color: var(--paper); }
.pk-seat.is-out .pk-plate, .pk-seat.is-away .pk-plate { opacity: .62; }
.pk-dealer { background: var(--paper); color: var(--choc); font-family: var(--text); font-weight: 800; box-shadow: 0 0 0 2px var(--choc), 0 3px 6px rgba(34, 17, 10, .5); }
.pk-sit { font: 800 max(16px, 1.8cqw)/1 var(--text); background: var(--mustard); color: var(--choc); border: 0; border-radius: 12px; padding: 1.3cqw 2.8cqw; min-height: 48px; cursor: pointer; box-shadow: inset 0 -5px 0 var(--mustard-deep), 0 4px 0 var(--choc), 0 12px 24px rgba(34, 17, 10, .4); white-space: nowrap; letter-spacing: .02em; }
.pk-sit:hover { background: #f6b941; }

/* chips: 70s colours, painted edge spots */
.pk-chip { box-shadow: 0 calc(var(--cw) * .05) 0 var(--d, #000), 0 calc(var(--cw) * .08) calc(var(--cw) * .08) rgba(34, 17, 10, .45); background: radial-gradient(closest-side, var(--in, rgba(255,255,255,.16)) 0 50%, var(--s) 51% 57%, var(--c) 58%); }
.pk-chip::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 8deg, var(--s) 0 22deg, transparent 22deg 60deg); -webkit-mask: radial-gradient(closest-side, transparent 76%, #000 77%); mask: radial-gradient(closest-side, transparent 76%, #000 77%); }
.pk-chip-1 { --c: #fff8ea; --d: #c7ab80; --s: #3a1f12; --in: #fffdf6; }
.pk-chip-5 { --c: #e2591c; --d: #8a2f09; --s: #fff8ea; --in: #ec6e34; }
.pk-chip-25 { --c: #6e7a2a; --d: #3e4512; --s: #fff8ea; --in: #7d8a35; }
.pk-chip-100 { --c: #3a1f12; --d: #120804; --s: #f0a92a; --in: #4a2a1a; }
.pk-chip-500 { --c: #f0a92a; --d: #9a5f08; --s: #3a1f12; --in: #f5b947; }
.pk-chip-1000 { --c: #2f6f7a; --d: #173d43; --s: #fff8ea; --in: #3b808b; }
.pk-chip-5000 { --c: #8e3b5c; --d: #4f1d31; --s: #fff8ea; --in: #9e4a6b; }
.pk-chip-25000 { --c: #fff8ea; --d: #c7ab80; --s: #e2591c; --in: #fffdf6; }

/* action bar: the contestant's console */
.table-actions { margin-top: 16px; min-height: 64px; }
.act-box { display: grid; gap: 10px; background: var(--choc); border-radius: 18px; padding: 14px; box-shadow: 0 4px 0 var(--choc-deep), 0 20px 40px -26px rgba(34, 17, 10, .9); }
.act-turn { font: 400 30px/1 var(--display); color: var(--mustard); }
.act-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.act-row .btn { min-height: 60px; font-size: 20px; white-space: normal; line-height: 1.1; }
.act-fold { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px rgba(255, 248, 234, .65); }
.act-fold:hover { box-shadow: inset 0 0 0 2px var(--paper); }
.act-call { background: var(--paper); color: var(--ink); box-shadow: inset 0 -5px 0 var(--cream-3); }
.act-raise { background: var(--orange); color: var(--paper); box-shadow: inset 0 -5px 0 var(--orange-deep); }
.act-amt { font-variant-numeric: tabular-nums; }
.act-size { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.act-preset { min-height: 40px; padding: 0 14px; font-size: 16px; background: var(--choc-deep); color: var(--cream-2); box-shadow: inset 0 0 0 1.5px rgba(255, 230, 168, .2); }
.act-preset:hover { color: var(--paper); }
.act-range { flex: 1 1 160px; accent-color: var(--mustard); 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: 700; 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: 24px 0 80px; }
.page h1 { font-size: clamp(54px, 6vw, 84px); color: var(--orange); text-shadow: 3px 4px 0 var(--choc); }
.page .lede { margin-bottom: 28px; }
.rules { display: grid; gap: 12px; margin-top: 20px; }
.rules h2 { font-size: 40px; margin-top: 24px; scroll-margin-top: 20px; }
.rules p { color: var(--ink-2); }
.rules a { color: var(--ink); }
.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: 1.5px solid var(--line); }
.levels th { color: var(--mute); font-weight: 700; }
.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: 700; font-size: 15px; flex: 1 1 140px; color: var(--ink-2); }
.vf-form input { font: 600 17px var(--text); padding: 12px; border-radius: 10px; border: 2px solid var(--cream-3); background: var(--paper); color: var(--ink); min-width: 0; width: 100%; font-variant-numeric: tabular-nums; }
.vf-form input:focus { outline: none; border-color: var(--orange); }
.vf-manual { margin: 8px 0 20px; }
.vf-manual summary { cursor: pointer; font-weight: 700; 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: 150px; font-weight: 800; font-size: 20px; }
.vf-checks .ok b { color: var(--avocado); }
.vf-checks .bad b, .bad { color: var(--bad); }
.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: 15px; font-weight: 700; color: var(--ink-2); }
.vf-cards { display: flex; gap: 6px; }

/* dialogs: a lit panel */
.dlg { border: 12px solid var(--choc); border-radius: 22px; padding: 0; width: min(460px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(34, 17, 10, .45); }
.dlg::backdrop { background: rgba(43, 23, 12, .55); }
.dlg a { color: var(--ink); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 4px 22px; }
.dlg-head h2 { font-size: 36px; color: var(--ink); }
.dlg-x { border: 0; background: transparent; font-size: 32px; line-height: 1; cursor: pointer; width: 44px; height: 44px; color: var(--ink); }
.dlg-body { padding: 8px 22px 22px; 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: 800; text-align: right; font-variant-numeric: tabular-nums; }
.dlg-label { display: grid; gap: 6px; font-size: 15px; font-weight: 700; }
.dlg-seed { font: 600 16px var(--text); padding: 11px 12px; border-radius: 10px; border: 2px solid var(--cream-3); background: var(--cream); color: var(--ink); min-width: 0; width: 100%; }
.dlg-small { font-size: 15px; color: var(--ink-2); }
.dlg-status { font-size: 16px; min-height: 1.4em; }
.dlg-addr { font-weight: 700; font-size: 16px; word-break: break-all; }
.dlg-row, .dlg-wallets { display: grid; gap: 8px; }
.dlg-wallet { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--cream-3); background: var(--cream); font: 700 17px var(--text); cursor: pointer; text-decoration: none; color: var(--ink); }
.dlg-wallet:hover { border-color: var(--choc); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--choc); color: var(--paper); padding: 12px 18px; border-radius: 12px; max-width: calc(100vw - 32px); z-index: 50; font-weight: 700; box-shadow: 0 12px 34px rgba(34, 17, 10, .45); }
.pk-offline .table-head::after { content: 'Reconnecting…'; color: var(--bad); font-weight: 700; }

.foot { max-width: 1440px; margin: 0 auto; padding: 28px var(--gutter) 44px; border-top: 1.5px solid var(--line); display: grid; gap: 6px; color: var(--mute); font-size: 15px; font-weight: 600; }
.foot nav { display: flex; gap: 18px; margin-top: 8px; flex-wrap: wrap; }

@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; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
  .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; border-radius: 24px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -34px rgba(58, 31, 18, .7); }
}
@media (max-width: 860px) {
  .hero-art { aspect-ratio: 16 / 11; border-radius: 20px; margin-top: 28px; }
  .lobby-cols, .how-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .top { gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 8px; }
  .brand-word { font-size: 40px; }
  .brand-mark svg { width: 40px; height: 40px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 20px; font-size: 16px; }
  .nav-x { margin-left: auto; }
  .wallet-btn { margin-left: auto; min-height: 44px; min-width: 0; }
  .hero h1 { font-size: clamp(46px, 13vw, 60px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .lt { border-width: 13px; padding: 26px 22px 22px; }
  .lt-buyin { font-size: 48px; }
  .how-list { gap: 26px; }
  .vf-checks li b { min-width: 0; margin-right: 8px; }
  .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(transparent, var(--cream) 18%); }
  .act-turn { display: none; }
  .act-box { padding: 10px; gap: 8px; border-radius: 16px; }
  .act-size { gap: 6px; }
  .act-preset { min-height: 36px; padding: 0 10px; flex: 1 1 0; }
  .act-range { flex: 1 1 100%; height: 26px; }
  .act-row { gap: 8px; }
  .act-row .btn { min-height: 54px; font-size: 18px; padding: 0 10px; }
}
