/* Bluff: a card room after midnight. Graphite felt under one lamp, cognac leather rail, cream cards, coral.
   Noto Serif Display (black italic) + Fira Sans + Anonymous Pro. */
@font-face { font-family: 'Noto Serif Display'; src: url(/fonts/NotoSerifDisplay-Italic.woff2) format('woff2'); font-style: italic; font-weight: 500 900; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url(/fonts/FiraSans-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url(/fonts/FiraSans-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url(/fonts/FiraSans-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url(/fonts/FiraSans-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Anonymous Pro'; src: url(/fonts/AnonymousPro.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --room: #15100c; --room-2: #1f1711; --room-3: #2a1f17; --smoke: rgba(244, 234, 216, .1);
  --cream: #f4ead8; --cream-2: #e3d3b6; --cream-3: #b9a98d; --mute: #9d8f7a; --ink: #1a1411; --ink-2: #4a3d33;
  --felt: #3b403e; --felt-lit: #62675f; --felt-deep: #1f2221;
  --cognac: #9a5426; --cognac-lit: #c47a42; --cognac-deep: #572a10; --stitch: #efd9b4;
  --coral: #ef6a4c; --coral-hi: #f6845f; --coral-deep: #b8432c; --mint: #7fd6a8; --bad: #ff6b55;
  --pk-red: #c8372d;
  --display: 'Noto Serif Display', Georgia, serif; --text: 'Fira Sans', system-ui, sans-serif; --mono: 'Anonymous Pro', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--room); color: var(--cream); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.5; overflow-x: hidden;
  background:
    radial-gradient(1100px 520px at 70% -120px, rgba(255, 196, 120, .07), transparent 70%),
    linear-gradient(var(--room), var(--room-2) 900px, var(--room));
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 800; line-height: 1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; word-break: break-all; }
[hidden] { display: none !important; }
.muted { color: var(--mute); }

/* buttons: coral is the move, cream is a card you pick up, outline is the quiet way out */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 0 20px; border-radius: 8px; border: 0; font: 600 16px/1 var(--text); 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(--cream); outline-offset: 2px; }
.btn-main { background: var(--coral); color: var(--ink); box-shadow: inset 0 -4px 0 var(--coral-deep), 0 8px 18px -10px rgba(239, 106, 76, .8); }
.btn-main:hover { background: var(--coral-hi); }
.btn-main:active { box-shadow: inset 0 -2px 0 var(--coral-deep); }
.btn-cream { background: var(--cream); color: var(--ink); box-shadow: inset 0 -4px 0 var(--cream-3); }
.btn-cream:hover { background: #fff4e2; }
.btn-quiet { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(244, 234, 216, .55); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--cream); background: rgba(244, 234, 216, .06); }
.btn-big { min-height: 56px; padding: 0 30px; 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(--coral); color: var(--ink); font-size: 14px; font-weight: 600; }
.coin-strip code { font-size: 13px; }
.coin-strip .btn-quiet { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); min-height: 30px; padding: 0 12px; }
.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; font: italic 900 38px/1 var(--display); letter-spacing: -.02em; }
.brand-mark { width: 52px; height: 26px; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; font-weight: 500; color: var(--cream-2); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--cream); }
.nav a[aria-current] { color: var(--cream); border-color: var(--coral); }
.nav-x svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.wallet-btn { min-width: 116px; }
.wallet-btn.is-connected { font-family: var(--mono); font-size: 15px; font-weight: 400; }

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

/* hero: the felt itself, lamp on the right, words on the dark side of the cloth */
.hero { position: relative; margin: 6px 0 0; border-radius: 26px; overflow: hidden; min-height: clamp(460px, 44vw, 640px); display: flex; align-items: center; box-shadow: 0 40px 80px -40px #000, inset 0 0 0 1px rgba(255, 255, 255, .05); background: var(--felt-deep); }
.hero-art { position: absolute; inset: 0; }
.hero-art svg { display: block; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 1; padding: clamp(32px, 5vw, 76px); max-width: min(640px, 52%); }
.hero h1 { font-size: clamp(50px, 5.4vw, 86px); font-weight: 900; line-height: .95; letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--cream-2); max-width: 34em; margin-top: 24px; }
.hero .lede { color: #e4dccd; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: #cfc7b8; }

/* lobby: every table is a card lying face up */
.lobby { padding: clamp(48px, 6vw, 84px) 0 56px; scroll-margin-top: 12px; }
.lobby h2, .tells h2 { font-size: clamp(34px, 3.4vw, 50px); font-weight: 900; }
.lobby-head { display: flex; align-items: baseline; gap: 10px 26px; flex-wrap: wrap; margin-bottom: 26px; }
.lobby-head p { color: var(--cream-2); }
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.lt {
  position: relative; background: var(--cream); color: var(--ink); border-radius: 18px; padding: 22px 22px 20px; display: grid; gap: 6px;
  box-shadow: inset 0 0 0 7px var(--cream), inset 0 0 0 8.5px rgba(26, 20, 17, .14), 0 22px 40px -24px #000;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.lt:hover { transform: translateY(-3px) rotate(-.4deg); }
.lt::before { position: absolute; right: 20px; top: 14px; font: italic 900 40px/1 var(--display); color: var(--ink); }
.lt::after { content: ''; position: absolute; right: 23px; top: 58px; width: 18px; height: 18px; background: var(--ink); -webkit-mask: var(--suit) center / contain no-repeat; mask: var(--suit) center / contain no-repeat; }
.lt-hu { --suit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5c14 20 42 34 42 56 0 14-10 22-21 22-8 0-14-4-17-10 1 11 6 19 14 23H32c8-4 13-12 14-23-3 6-9 10-17 10C18 83 8 75 8 61 8 39 36 25 50 5Z'/%3E%3C/svg%3E"); }
.lt-six { --suit: 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"); }
.lt-hu::before { content: '2'; }
.lt-six::before { content: '6'; color: var(--pk-red); }
.lt-six::after { background: var(--pk-red); }
.lt-top { display: grid; gap: 2px; padding-right: 48px; }
.lt h3 { font-size: 28px; font-weight: 900; }
.lt-format { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.lt-buyin { font: italic 900 50px/1 var(--display); letter-spacing: -.02em; margin-top: 14px; }
.lt-prize { font-weight: 600; }
.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 2px rgba(26, 20, 17, .25); }
.lt-seats i.on { background: radial-gradient(circle, var(--coral) 0 38%, var(--cream) 39% 52%, var(--coral) 53%); box-shadow: 0 1px 0 var(--coral-deep); }
.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; }
.lt .btn-quiet { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lt .btn-quiet:hover { background: rgba(26, 20, 17, .06); }
.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 var(--smoke); text-decoration: none; }
.lr::before { content: ''; grid-area: d; align-self: center; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--room), 0 0 0 3px rgba(239, 106, 76, .45); }
.lr b { grid-area: a; font-weight: 600; }
.lr span:not(.lr-go) { grid-area: b; color: var(--mute); font-size: 15px; }
.lr-go { grid-area: c; align-self: center; font-weight: 600; color: var(--coral); }
.lr:hover b { color: #fff; }

/* the tells */
.tells { padding: 56px 0 84px; border-top: 1px solid var(--smoke); }
.tells-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 64px; margin: 30px 0 0; max-width: 1160px; }
.tells-list div { padding-left: 22px; border-left: 2px solid var(--coral); }
.tells-list dt { font: italic 800 clamp(26px, 2.3vw, 32px)/1.05 var(--display); margin-bottom: 8px; }
.tells-list dd { margin: 0; color: var(--cream-2); font-size: 17px; }

/* 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(32px, 3.2vw, 46px); font-weight: 900; }
.th-id { font: 400 .45em var(--mono); font-style: normal; color: var(--mute); vertical-align: middle; }
.th-meta { display: flex; gap: 6px 20px; flex-wrap: wrap; font-weight: 500; color: var(--cream-2); }
.th-level { color: var(--coral); }
.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(--room-3); border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px; box-shadow: inset 0 0 0 1px var(--smoke); color: var(--cream-2); }
.fair a, .results a { color: var(--coral); }
.fair code { display: block; font-size: 13px; color: var(--cream); background: var(--room); padding: 7px 9px; 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; color: var(--cream); }
.results li span:nth-child(2) { font-family: var(--mono); font-size: 14px; }
.payout { font-size: 14px; }

/* the table itself */
.pk-table { font-family: var(--text); }
.pk-rail {
  background: radial-gradient(110% 130% at 50% 0%, var(--cognac-lit) 0, var(--cognac) 38%, var(--cognac-deep) 100%);
  box-shadow: 0 40px 70px -30px #000, inset 0 3px 0 rgba(255, 220, 180, .25), inset 0 -12px 28px rgba(40, 14, 2, .7);
}
.pk-rail::after { content: ''; position: absolute; inset: 1.7% 1.15%; border-radius: 999px; border: 1.5px dashed var(--stitch); opacity: .6; }
.pk-cloth { background: radial-gradient(72% 82% at 50% 36%, var(--felt-lit) 0, var(--felt) 56%, var(--felt-deep) 100%); box-shadow: inset 0 0 0 3px rgba(20, 8, 2, .55), inset 0 14px 40px rgba(0, 0, 0, .5); }
.pk-cloth::before { content: ''; position: absolute; inset: 0; opacity: .55; 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='11'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .88 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pk-line { border: 1.5px solid rgba(244, 234, 216, .22); }
.pk-mark { top: 72%; display: grid; justify-items: center; gap: .4cqw; opacity: .75; }
.pk-mark::before { content: ''; width: 9cqw; height: 4.4cqw; opacity: .5; background: var(--felt-deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-130 -60 260 130'%3E%3Cpath d='M-12 -32C-40 -38-88-40-108-29C-124-18-122 14-110 34C-98 56-76 66-58 63C-36 59-22 42-16 20C-12 4-10-14-12-32ZM12 -32C40 -38 88-40 108-29C124-18 122 14 110 34C98 56 76 66 58 63C36 59 22 42 16 20C12 4 10-14 12-32Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-130 -60 260 130'%3E%3Cpath d='M-12 -32C-40 -38-88-40-108-29C-124-18-122 14-110 34C-98 56-76 66-58 63C-36 59-22 42-16 20C-12 4-10-14-12-32ZM12 -32C40 -38 88-40 108-29C124-18 122 14 110 34C98 56 76 66 58 63C36 59 22 42 16 20C12 4 10-14 12-32Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pk-mark::after { content: 'Bluff'; font: italic 900 4.2cqw/1 var(--display); color: var(--felt-deep); opacity: .62; }
.pk-slot { box-shadow: inset 0 0 0 1px rgba(244, 234, 216, .2); }
.pk-front { background: var(--cream); color: var(--ink); box-shadow: 0 .35cqw 1cqw rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(0, 0, 0, .08); font-family: var(--display); font-style: italic; }
.pk-idx b { font-weight: 900; }
.pk-court { font-weight: 900; }
.pk-back { background: var(--cream); box-shadow: 0 .35cqw 1cqw rgba(0, 0, 0, .4); }
.pk-back::after {
  content: ''; position: absolute; inset: 7.5%; border-radius: calc(var(--cw) * .05);
  background: repeating-radial-gradient(ellipse 50% 50% at 50% 50%, var(--felt) 0 6%, var(--felt-lit) 6% 9%, var(--felt-deep) 9% 11%), var(--felt);
}
.pk-back::before { content: ''; position: absolute; z-index: 1; left: 50%; top: 50%; width: 18%; aspect-ratio: 1 / 1.45; background: var(--cream); transform: translate(-50%, -50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.pk-banner { font: italic 800 clamp(15px, 2.2cqw, 24px)/1.15 var(--display); color: var(--cream); text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.pk-pot-amt, .pk-bet-amt { font: 700 max(12px, 1.45cqw)/1 var(--text); color: var(--cream); text-shadow: 0 1px 3px rgba(0, 0, 0, .8); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-plate { background: rgba(14, 10, 8, .86); color: var(--cream); border-radius: 1cqw; box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(244, 234, 216, .12); font-size: max(11px, 1.35cqw); line-height: 1.25; backdrop-filter: blur(3px); }
.pk-who { font-family: var(--mono); font-size: .95em; color: var(--cream-3); }
.pk-stack { font-weight: 700; font-size: 1.2em; font-variant-numeric: tabular-nums; }
.pk-note { font-size: .9em; font-weight: 600; color: var(--coral); }
.pk-clock { background: rgba(244, 234, 216, .1); }
.pk-clock i { background: var(--coral); }
.pk-seat.is-late .pk-clock i { background: var(--bad); animation: late .5s steps(2) infinite; }
@keyframes late { 50% { opacity: .35; } }
.pk-seat.is-me .pk-plate { background: var(--cream); color: var(--ink); }
.pk-seat.is-me .pk-who { color: var(--ink-2); font-family: var(--text); font-weight: 700; }
.pk-seat.is-me .pk-note { color: var(--coral-deep); }
.pk-seat.is-me .pk-clock { background: rgba(26, 20, 17, .12); }
.pk-seat.is-turn .pk-plate { box-shadow: 0 0 0 .32cqw var(--coral), 0 .6cqw 1.6cqw rgba(0, 0, 0, .45); }
.pk-seat.is-winner .pk-plate { box-shadow: 0 0 0 .32cqw var(--mint), 0 .6cqw 1.6cqw rgba(0, 0, 0, .45); }
.pk-seat.is-empty .pk-plate { background: rgba(0, 0, 0, .28); color: var(--cream-2); box-shadow: inset 0 0 0 1px rgba(244, 234, 216, .28); backdrop-filter: none; }
.pk-seat.is-empty .pk-who { color: var(--cream-2); font-family: var(--text); }
.pk-seat.is-out .pk-plate, .pk-seat.is-away .pk-plate { opacity: .6; }
.pk-dealer { background: var(--cream); color: var(--ink); font-family: var(--display); font-style: italic; font-weight: 900; box-shadow: 0 2px 0 var(--cream-3), 0 3px 8px rgba(0, 0, 0, .5); }
.pk-sit { font: 700 max(15px, 1.7cqw)/1 var(--text); background: var(--coral); color: var(--ink); border: 0; border-radius: 10px; padding: 1.3cqw 2.8cqw; min-height: 46px; cursor: pointer; box-shadow: inset 0 -4px 0 var(--coral-deep), 0 10px 24px rgba(0, 0, 0, .45); white-space: nowrap; }
.pk-sit:hover { background: var(--coral-hi); }

/* clay chips, side view: wide edge inlays and a lighter inlay disc */
.pk-chip { box-shadow: 0 calc(var(--cw) * .05) 0 var(--d, #000), 0 calc(var(--cw) * .08) calc(var(--cw) * .09) rgba(0, 0, 0, .45); background: radial-gradient(closest-side, var(--in, rgba(255,255,255,.16)) 0 52%, var(--s) 53% 58%, var(--c) 59%); }
.pk-chip::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 4deg, var(--s) 0 16deg, transparent 16deg 45deg); -webkit-mask: radial-gradient(closest-side, transparent 74%, #000 75%); mask: radial-gradient(closest-side, transparent 74%, #000 75%); }
.pk-chip-1 { --c: #f4ead8; --d: #b9a98d; --s: #3b403e; --in: #fbf4e6; }
.pk-chip-5 { --c: #ef6a4c; --d: #a63a24; --s: #f4ead8; --in: #f47d61; }
.pk-chip-25 { --c: #4a6fc6; --d: #253f86; --s: #f4ead8; --in: #5a7fd2; }
.pk-chip-100 { --c: #2a221d; --d: #000; --s: #f4ead8; --in: #3a302a; }
.pk-chip-500 { --c: #c47a42; --d: #6b3514; --s: #f4ead8; --in: #cf8a55; }
.pk-chip-1000 { --c: #7fd6a8; --d: #3f8a64; --s: #1a1411; --in: #92ddb5; }
.pk-chip-5000 { --c: #a98bd6; --d: #634a8f; --s: #f4ead8; --in: #b79ade; }
.pk-chip-25000 { --c: #f4ead8; --d: #b9a98d; --s: #c8372d; --in: #fbf4e6; }

/* action bar */
.table-actions { margin-top: 16px; min-height: 64px; }
.act-box { display: grid; gap: 10px; background: var(--room-3); border-radius: 16px; padding: 14px; box-shadow: inset 0 0 0 1px var(--smoke), 0 20px 40px -26px #000; }
.act-turn { font: italic 800 24px/1 var(--display); color: var(--cream); }
.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: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(244, 234, 216, .6); }
.act-fold:hover { box-shadow: inset 0 0 0 2px var(--cream); }
.act-call { background: var(--cream); color: var(--ink); box-shadow: inset 0 -4px 0 var(--cream-3); }
.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(--room); color: var(--cream-2); box-shadow: inset 0 0 0 1px var(--smoke); }
.act-preset:hover { color: var(--cream); }
.act-range { flex: 1 1 160px; accent-color: var(--coral); 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: 500; color: var(--cream-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(46px, 5.4vw, 76px); font-weight: 900; letter-spacing: -.02em; }
.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; }
.rules p { color: var(--cream-2); }
.rules a { color: var(--cream); }
.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(--smoke); }
.levels th { color: var(--mute); font-weight: 500; }
.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(--cream-2); }
.vf-form input { font: 16px var(--mono); padding: 12px; border-radius: 8px; border: 1.5px solid rgba(244, 234, 216, .22); background: var(--room); color: var(--cream); min-width: 0; width: 100%; }
.vf-form input:focus { outline: none; border-color: var(--coral); }
.vf-manual { margin: 8px 0 20px; }
.vf-manual summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; color: var(--cream-2); }
.vf-checks { list-style: none; padding: 0; display: grid; gap: 8px; margin: 10px 0 18px; }
.vf-checks li { color: var(--cream-2); }
.vf-checks li b { display: inline-block; min-width: 120px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 20px; }
.vf-checks .ok b { color: var(--mint); }
.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; color: var(--cream-2); }
.vf-cards { display: flex; gap: 6px; }

/* dialogs: a cream card on a dark table */
.dlg { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 7px var(--cream), inset 0 0 0 8.5px rgba(26, 20, 17, .14); }
.dlg::backdrop { background: rgba(8, 6, 4, .72); }
.dlg a { color: var(--ink); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 6px 24px; }
.dlg-head h2 { font-size: 30px; font-weight: 900; }
.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 24px 24px; 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: 600; text-align: right; }
.dlg-label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.dlg-seed { font: 15px var(--mono); padding: 11px 12px; border-radius: 8px; border: 1.5px solid rgba(26, 20, 17, .2); 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-family: var(--mono); font-size: 15px; word-break: break-all; }
.dlg-row, .dlg-wallets { display: grid; gap: 8px; }
.dlg .btn-quiet { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dlg-wallet { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 14px; border-radius: 10px; border: 1.5px solid rgba(26, 20, 17, .18); 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(--cream); color: var(--ink); padding: 12px 18px; border-radius: 10px; max-width: calc(100vw - 32px); z-index: 50; font-weight: 600; box-shadow: 0 12px 34px rgba(0, 0, 0, .55); }
.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(--smoke); display: grid; gap: 6px; color: var(--mute); 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: 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: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px #000; }
  .hero h1 { text-shadow: none; }
  .hero .lede { color: var(--cream-2); }
  .hero-note { color: var(--mute); }
}
@media (max-width: 860px) {
  .hero-art { aspect-ratio: 4 / 3; border-radius: 20px; margin-top: 28px; }
  .lobby-cols, .tells-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: 8px; }
  .brand { font-size: 32px; }
  .brand-mark { width: 44px; height: 22px; }
  .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; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 60px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .lt-buyin { font-size: 44px; }
  .tells-list { gap: 26px; }
  .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(--room) 18%); }
  .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: 52px; font-size: 16px; padding: 0 10px; }
}
