/* Allin: claret felt, black padded rail, bone paper, chips in black and mustard. Eczar + Pathway Extreme + Cousine. */
@font-face { font-family: 'Eczar'; src: url(/fonts/Eczar.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Pathway Extreme'; src: url(/fonts/PathwayExtreme.woff2) format('woff2'); font-weight: 100 900; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Cousine'; src: url(/fonts/Cousine.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bone: #efe7d9; --paper: #faf6ee; --ink: #1b1512; --ink-2: #4b3f37; --ink-3: #7a6c60; --hair: #d9cdb9;
  --felt: #6f1d2a; --felt-lit: #8c2a38; --felt-deep: #4a111c; --rail: #17110f; --stitch: #5b4a40; --line: #d8b36a;
  --claret: #7a2030; --claret-press: #4e1320; --mustard: #e0a133; --mustard-deep: #a8701b; --win: #1f6b45; --bad: #a3242f;
  --pk-red: #b3303a;
  --display: 'Eczar', Georgia, serif; --text: 'Pathway Extreme', system-ui, sans-serif; --mono: 'Cousine', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bone); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.5; font-stretch: 92%; overflow-x: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .86em; word-break: break-all; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; font: 600 16px/1 var(--text); font-stretch: 88%; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .08s, background-color .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.btn-main { background: var(--claret); color: var(--paper); box-shadow: inset 0 -3px 0 var(--claret-press), 0 1px 0 rgba(0,0,0,.12); }
.btn-main:hover { background: #8a2738; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: inset 0 -3px 0 #000; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-quiet:hover { background: rgba(27,21,18,.06); }
.btn-big { min-height: 54px; padding: 0 28px; font-size: 18px; }

/* header */
.coin-strip { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px var(--gutter); background: var(--ink); color: var(--paper); font-size: 14px; }
.coin-strip .btn-quiet { color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); min-height: 30px; }
.top { display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter); max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 34px/1 var(--display); letter-spacing: -.03em; }
.brand-mark { width: 40px; height: 40px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; font-weight: 600; font-stretch: 85%; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current] { border-color: var(--claret); }
.nav-x svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.wallet-btn { font-family: var(--text); min-width: 112px; }
.wallet-btn.is-connected { font-family: var(--mono); font-size: 14px; font-weight: 400; }

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

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(12px, 3vw, 40px) 0 clamp(40px, 6vw, 80px); }
.hero h1 { font-size: clamp(46px, 5.6vw, 86px); font-weight: 800; line-height: .94; letter-spacing: -.035em; max-width: 12.5ch; }
.lede { font-size: clamp(17px, 1.45vw, 21px); color: var(--ink-2); max-width: 36em; margin-top: 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.hero-art { border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(40,10,15,.55), 0 0 0 1px rgba(0,0,0,.06); aspect-ratio: 720 / 600; background: var(--felt); }
.hero-art svg { display: block; width: 100%; height: 100%; }

/* lobby */
.lobby { padding-bottom: 56px; scroll-margin-top: 12px; }
.lobby h2, .talk h2 { font-size: clamp(30px, 3vw, 44px); }
.lobby-head { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; }
.lobby-head p { color: var(--ink-2); }
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.lt { position: relative; background: var(--paper); border-radius: 16px; padding: 22px 22px 20px; display: grid; gap: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 14px 30px -22px rgba(40,20,10,.5); border-top: 7px solid var(--felt); }
.lt-six { border-top-color: var(--rail); }
.lt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lt h3 { font-size: 25px; }
.lt-format { font-size: 14px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.lt-buyin { font: 800 44px/1 var(--display); letter-spacing: -.03em; margin-top: 8px; }
.lt-prize { font-weight: 600; }
.lt-meta { font-size: 14px; color: var(--ink-3); }
.lt-foot { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.lt-seats { display: flex; gap: 5px; }
.lt-seats i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--hair); background: repeating-conic-gradient(from 8deg, transparent 0 30deg, transparent 30deg 60deg); }
.lt-seats i.on { background: repeating-conic-gradient(from 8deg, var(--ink) 0 30deg, var(--mustard) 30deg 60deg); box-shadow: inset 0 0 0 4px var(--ink); }
.lt-count { font-size: 14px; font-weight: 600; }
.lt-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 4px; }
.lt-actions .btn { white-space: normal; text-align: center; line-height: 1.15; }
.lobby-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 52px; }
.lobby-cols h2 { font-size: 26px; margin-bottom: 12px; }
.lr-list { display: grid; }
.lr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "a c" "b c"; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); text-decoration: none; }
.lr b { grid-area: a; font-weight: 700; }
.lr span:not(.lr-go) { grid-area: b; color: var(--ink-2); font-size: 15px; }
.lr-go { grid-area: c; align-self: center; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.talk { padding: 48px 0 72px; border-top: 1px solid var(--hair); }
.talk-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; margin-top: 24px; max-width: 1100px; }
.talk-lines p { font-size: 18px; color: var(--ink-2); }
.talk-lines b { color: var(--ink); display: block; font-family: var(--display); font-size: 23px; line-height: 1.15; margin-bottom: 4px; }

/* table page */
.table-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 6px 0 14px; }
.table-head h1 { font-size: clamp(28px, 3vw, 40px); }
.th-id { font: 400 .5em var(--mono); color: var(--ink-3); vertical-align: middle; }
.th-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; font-weight: 600; color: var(--ink-2); }
.th-level { color: var(--claret); }
.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: 18px; font-size: 15px; }
.table-side h3 { font-size: 21px; margin-bottom: 6px; }
.fair, .results { background: var(--paper); border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px; }
.fair code { display: block; font-size: 12.5px; color: var(--ink-2); background: var(--bone); padding: 6px 8px; border-radius: 6px; }
.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; }
.results li span:nth-child(2) { font-family: var(--mono); font-size: 14px; }
.payout { font-size: 14px; color: var(--ink-2); }

/* the table itself */
.pk-table { --pk-font: var(--text); font-family: var(--text); }
.pk-rail { background: radial-gradient(120% 140% at 50% 10%, #3b2d27 0, var(--rail) 40%, #060404 100%); box-shadow: 0 30px 50px -24px rgba(40,10,15,.6), inset 0 2px 0 rgba(255,255,255,.08), inset 0 -10px 24px rgba(0,0,0,.6); }
.pk-rail::after { content: ''; position: absolute; inset: 1.6% 1.1%; border-radius: 999px; border: 1.5px dashed var(--stitch); opacity: .9; }
.pk-cloth { background: radial-gradient(70% 80% at 50% 38%, var(--felt-lit) 0, var(--felt) 55%, var(--felt-deep) 100%); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 10px 40px rgba(0,0,0,.35); }
.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='.95' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .86 0 0 0 0 .82 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pk-line { border: 1.5px solid rgba(216,179,106,.55); }
.pk-mark { top: 77%; }
.pk-mark::after { content: 'Allin'; font: 800 5cqw/1 var(--display); letter-spacing: -.04em; color: var(--felt-deep); opacity: .55; }
.pk-slot { box-shadow: inset 0 0 0 1px rgba(216,179,106,.28); }
.pk-front { background: var(--paper); color: var(--ink); box-shadow: 0 .3cqw .9cqw rgba(0,0,0,.3), inset 0 0 0 1px rgba(0,0,0,.08); font-family: var(--display); }
.pk-court { font-weight: 800; }
.pk-back { background: var(--paper); box-shadow: 0 .3cqw .9cqw rgba(0,0,0,.35); }
.pk-back::after { content: ''; position: absolute; inset: 7%; border-radius: calc(var(--cw) * .06); border: 1px solid rgba(216,179,106,.8); background: repeating-linear-gradient(45deg, var(--felt) 0 3px, var(--felt-lit) 3px 4.5px), var(--felt); }
.pk-banner { font: 700 clamp(14px, 2.1cqw, 22px)/1.2 var(--display); color: var(--paper); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.pk-pot-amt, .pk-bet-amt { font: 700 max(11px, 1.4cqw)/1 var(--text); color: var(--paper); background: rgba(14,6,8,.55); padding: .35cqw .8cqw; border-radius: 99px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-plate { background: var(--paper); color: var(--ink); border-radius: 1.2cqw; box-shadow: 0 .5cqw 1.4cqw rgba(0,0,0,.35); font-size: max(11px, 1.35cqw); line-height: 1.25; }
.pk-who { font-family: var(--mono); font-size: .92em; color: var(--ink-2); }
.pk-stack { font-weight: 700; font-size: 1.18em; font-variant-numeric: tabular-nums; }
.pk-note { font-size: .9em; font-weight: 600; color: var(--claret); }
.pk-clock { background: rgba(0,0,0,.08); }
.pk-clock i { background: var(--mustard); }
.pk-seat.is-late .pk-clock i { background: var(--bad); }
.pk-seat.is-me .pk-plate { background: var(--ink); color: var(--paper); }
.pk-seat.is-me .pk-who { color: var(--mustard); font-family: var(--text); font-weight: 700; }
.pk-seat.is-me .pk-note { color: var(--mustard); }
.pk-seat.is-turn .pk-plate { box-shadow: 0 0 0 .35cqw var(--mustard), 0 .5cqw 1.4cqw rgba(0,0,0,.35); }
.pk-seat.is-winner .pk-plate { box-shadow: 0 0 0 .35cqw var(--line), 0 .5cqw 1.4cqw rgba(0,0,0,.35); }
.pk-seat.is-empty .pk-plate { background: rgba(250,246,238,.16); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(250,246,238,.35); }
.pk-seat.is-empty .pk-who { color: var(--paper); font-family: var(--text); }
.pk-seat.is-out .pk-plate, .pk-seat.is-away .pk-plate { opacity: .62; }
.pk-dealer { background: var(--paper); color: var(--ink); font-family: var(--display); font-weight: 800; box-shadow: 0 2px 0 #b9ad98, 0 3px 6px rgba(0,0,0,.4); }
.pk-sit { font: 700 max(14px, 1.7cqw)/1 var(--text); background: var(--mustard); color: var(--ink); border: 0; border-radius: 99px; padding: 1.3cqw 2.6cqw; min-height: 44px; cursor: pointer; box-shadow: inset 0 -3px 0 var(--mustard-deep), 0 6px 16px rgba(0,0,0,.35); white-space: nowrap; }

/* chips: side view, edge spots */
.pk-chip { box-shadow: 0 calc(var(--cw) * .05) 0 var(--d, #000), 0 calc(var(--cw) * .07) calc(var(--cw) * .08) rgba(0,0,0,.35); background: radial-gradient(closest-side, var(--c) 58%, var(--s) 59% 66%, var(--c) 67%), var(--c); }
.pk-chip::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 10deg, transparent 0 22deg, var(--s) 22deg 34deg); -webkit-mask: radial-gradient(closest-side, transparent 80%, #000 81%); mask: radial-gradient(closest-side, transparent 80%, #000 81%); }
.pk-chip-1 { --c: #f3ede2; --d: #c9bda8; --s: #7a2030; }
.pk-chip-5 { --c: #b3303a; --d: #7c1c25; --s: #f3ede2; }
.pk-chip-25 { --c: #2e7a52; --d: #1c4d33; --s: #f3ede2; }
.pk-chip-100 { --c: #1d1816; --d: #000; --s: #f3ede2; }
.pk-chip-500 { --c: #e0a133; --d: #a8701b; --s: #1d1816; }
.pk-chip-1000 { --c: #2f5fb8; --d: #1d3c7a; --s: #f3ede2; }
.pk-chip-5000 { --c: #f3ede2; --d: #c9bda8; --s: #1d1816; }
.pk-chip-25000 { --c: #6b4fa0; --d: #45306b; --s: #f3ede2; }

/* action bar */
.table-actions { margin-top: 14px; min-height: 64px; }
.act-box { display: grid; gap: 10px; background: var(--paper); border-radius: 16px; padding: 14px; box-shadow: 0 14px 30px -24px rgba(40,20,10,.6); }
.act-turn { font: 700 20px/1 var(--display); color: var(--claret); }
.act-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.act-row .btn { min-height: 56px; font-size: 18px; white-space: normal; line-height: 1.1; }
.act-fold { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.act-call { background: var(--ink); color: var(--paper); box-shadow: inset 0 -3px 0 #000; }
.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 12px; font-size: 14px; background: var(--bone); color: var(--ink); }
.act-range { flex: 1 1 160px; accent-color: var(--claret); 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; }

/* pages */
.page { max-width: 860px; padding: 20px 0 80px; }
.page h1 { font-size: clamp(40px, 5vw, 68px); font-weight: 800; letter-spacing: -.03em; }
.page .lede { margin-bottom: 28px; }
.rules { display: grid; gap: 12px; margin-top: 18px; }
.rules h2 { font-size: 28px; margin-top: 22px; }
.rules p { color: var(--ink-2); }
.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 var(--hair); }
.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; }
.vf-form input, .dlg-seed { font: 15px var(--mono); padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--hair); background: var(--paper); color: var(--ink); min-width: 0; width: 100%; }
.vf-manual { margin: 8px 0 20px; }
.vf-manual summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
.vf-checks { list-style: none; padding: 0; display: grid; gap: 6px; margin: 10px 0 18px; }
.vf-checks li b { display: inline-block; min-width: 140px; }
.vf-checks .ok b { color: var(--win); }
.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-family: var(--mono); font-size: 14px; }
.vf-cards { display: flex; gap: 6px; }

/* dialogs */
.dlg { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.dlg::backdrop { background: rgba(27,10,14,.55); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
.dlg-head h2 { font-size: 26px; }
.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 20px 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-3); }
.dlg-facts dd { margin: 0; font-weight: 600; text-align: right; }
.dlg-label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.dlg-small { font-size: 14px; color: var(--ink-3); }
.dlg-status { font-size: 15px; min-height: 1.4em; }
.dlg-addr { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.dlg-row, .dlg-wallets { display: grid; gap: 8px; }
.dlg-wallet { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--hair); background: var(--paper); 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(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; max-width: calc(100vw - 32px); z-index: 50; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.pk-offline .table-head::after { content: 'Reconnecting…'; color: var(--bad); font-weight: 600; }

.foot { max-width: 1440px; margin: 0 auto; padding: 28px var(--gutter) 44px; border-top: 1px solid var(--hair); display: grid; gap: 6px; color: var(--ink-3); font-size: 14px; }
.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: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: 2; }
  .lobby-cols, .talk-lines { 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: 10px; }
  .brand { font-size: 28px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 18px; font-size: 15px; }
  .nav-x { margin-left: auto; }
  .wallet-btn { margin-left: auto; min-height: 40px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .lt-buyin { font-size: 38px; }
  .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(--bone) 18%); }
  .act-row .btn { min-height: 52px; font-size: 17px; }
}

.table-actions:empty { min-height: 0; margin: 0; }
.act-raise { white-space: nowrap !important; flex-wrap: nowrap; }
@media (max-width: 640px) {
  .act-turn { display: none; }
  .act-box { padding: 10px; gap: 8px; border-radius: 14px; }
  .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: 50px; font-size: 16px; padding: 0 10px; }
}
