/* Royal: a royal flush on a palace card table. Ivory panelled walls with gilt mouldings, a verdure tapestry, a gilt
   mirror, oxblood leather with gilt tooling. Lobby tables are gilt-framed panels with a leather head and a woven band;
   the table is oxblood leather inside a carved giltwood rail. Cinzel (display) + Proza Libre (text, lining figures). */
@font-face { font-family: 'Cinzel'; src: url(/fonts/Cinzel.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Proza Libre'; src: url(/fonts/ProzaLibre-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Proza Libre'; src: url(/fonts/ProzaLibre-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Proza Libre'; src: url(/fonts/ProzaLibre-700.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Proza Libre'; src: url(/fonts/ProzaLibre-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --ivory: #f5eedf; --ivory-2: #ebe1cc; --ivory-3: #d9cbaa; --paper: #fcf8ef;
  --ink: #24170f; --ink-2: #57483b; --mute: #8a7a68; --line: rgba(36, 23, 15, .14);
  --ox: #6e1f1b; --ox-lit: #8e2f27; --ox-deep: #44110e;
  --gilt: #b98a35; --gilt-lit: #ecd28a; --gilt-deep: #7a5418; --gilt-shine: #fff2c6;
  --sage: #7b8a62; --tap-blue: #2f4656;
  --bad: #a3261f; --good: #3d6b3a;
  --pk-red: #a3261f;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif; --text: 'Proza Libre', 'Gill Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --giltgrad: linear-gradient(180deg, var(--gilt-shine), var(--gilt-lit) 22%, var(--gilt) 58%, var(--gilt-deep));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--ivory); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-weight: 500; font-size: 18px; line-height: 1.55; overflow-x: hidden; font-variant-numeric: lining-nums; background: var(--ivory); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: .015em; }
p { margin: 0; }
code { font-family: var(--text); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; font-size: .9em; word-break: break-all; }
[hidden] { display: none !important; }
.muted { color: var(--mute); }

/* buttons: oxblood is the move, gilt is the wallet, an oxblood outline is the quiet way */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 0 24px; border-radius: 4px; border: 0; font: 700 18px/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(--gilt-deep); outline-offset: 2px; }
.btn-main { background: var(--ox); color: var(--paper); box-shadow: inset 0 0 0 3px var(--ox), inset 0 0 0 4.5px var(--gilt-lit), 0 4px 0 var(--ox-deep), 0 14px 22px -14px rgba(68, 17, 14, .8); }
.btn-main:hover { background: var(--ox-lit); box-shadow: inset 0 0 0 3px var(--ox-lit), inset 0 0 0 4.5px var(--gilt-shine), 0 4px 0 var(--ox-deep), 0 14px 22px -14px rgba(68, 17, 14, .8); }
.btn-ink, .btn-choc { background: var(--giltgrad); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(122, 84, 24, .6), inset 0 -3px 0 var(--gilt-deep), 0 8px 16px -12px rgba(68, 42, 10, .8); }
.btn-ink:hover, .btn-choc:hover { filter: brightness(1.05); }
.btn-quiet { background: transparent; color: var(--ox); box-shadow: inset 0 0 0 2px var(--ox); }
.btn-quiet:hover { background: rgba(110, 31, 27, .06); }
.btn-big { min-height: 58px; padding: 0 34px; 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(--ox-deep); color: var(--paper); font-size: 16px; font-weight: 700; }
.coin-strip code { font-size: 15px; }
.coin-strip a { color: var(--gilt-lit); }
.coin-strip .btn-quiet { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--gilt); min-height: 30px; padding: 0 12px; font-size: 15px; }
.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: 50px; height: 50px; display: block; border-radius: 50%; box-shadow: 0 0 0 2px var(--gilt); }
.brand-word { font: 700 44px/1 var(--display); color: var(--ox); letter-spacing: .06em; }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; font-weight: 700; color: var(--ink-2); font-size: 17px; }
.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(--gilt); }
.nav-x svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.wallet-btn { min-width: 160px; }
.wallet-btn.is-connected { font-variant-numeric: tabular-nums; }

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

/* hero: the salon in daylight; the words sit on the ivory panels at the left */
.hero { position: relative; margin: 4px 0 0; border-radius: 6px; overflow: hidden; min-height: clamp(560px, 48vw, 700px); display: flex; align-items: center; background: #f3ead8; box-shadow: inset 0 0 0 1px var(--line), 0 0 0 6px var(--paper), 0 0 0 8px var(--gilt), 0 34px 60px -40px rgba(68, 42, 10, .7); }
.hero-art { position: absolute; inset: 0; }
.hero-art svg { display: block; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 1; margin: -40px 0 0 clamp(28px, 4vw, 64px); max-width: min(520px, 35%); padding: 34px 34px 36px; background: rgba(252, 248, 239, .93); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(185, 138, 53, .55), inset 0 0 0 7px rgba(252, 248, 239, .93), inset 0 0 0 8px rgba(185, 138, 53, .35); }
.hero h1 { font-size: clamp(36px, 3.1vw, 48px); color: var(--ox); text-wrap: balance; line-height: 1.1; }
.lede { font-size: clamp(18px, 1.3vw, 20px); color: var(--ink-2); max-width: 32em; margin-top: 16px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* lobby: every table is a gilt-framed panel with an oxblood leather head and a woven band */
.lobby { padding: clamp(52px, 6vw, 88px) 0 56px; scroll-margin-top: 12px; }
.lobby h2, .how h2 { font-size: clamp(38px, 3.4vw, 52px); color: var(--ox); }
.lobby-head { display: flex; align-items: baseline; gap: 10px 26px; flex-wrap: wrap; margin-bottom: 36px; }
.lobby-head p { color: var(--ink-2); max-width: 46em; }
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 30px 26px; }
.lt {
  position: relative; background: var(--paper); color: var(--ink); border-radius: 3px; padding: 0 22px 22px; display: grid; gap: 6px; overflow: hidden;
  box-shadow: 0 0 0 3px var(--gilt), 0 0 0 4px var(--gilt-deep), inset 0 0 0 6px var(--paper), inset 0 0 0 7px rgba(185, 138, 53, .55), 14px 18px 0 -2px rgba(68, 42, 10, .13);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.lt:hover { transform: translateY(-3px); }
.lt-top { position: relative; display: grid; gap: 4px; margin: 0 -22px 0; padding: 20px 22px 50px; background: var(--rf-tap) center bottom / 100% 38px no-repeat, radial-gradient(120% 140% at 30% 0%, var(--ox-lit), var(--ox) 55%, var(--ox-deep)); color: var(--paper); }
.lt-top::before { content: ''; position: absolute; left: 10px; right: 10px; top: 10px; bottom: 46px; border: 1px solid rgba(236, 210, 138, .6); outline: 1px dotted rgba(236, 210, 138, .45); outline-offset: 3px; pointer-events: none; }
.lt h3 { font-size: 27px; color: var(--gilt-lit); letter-spacing: .03em; }
.lt-format { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f0d9c9; }
.lt-buyin { font: 700 52px/1 var(--display); color: var(--ox); margin-top: 14px; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .01em; }
.lt-prize { font-weight: 700; font-size: 19px; }
.lt-meta { font-size: 16px; color: var(--ink-2); }
.lt-foot { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; }
.lt-seats { display: flex; gap: 5px; }
.lt-seats i { width: 15px; height: 21px; border-radius: 2px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--gilt); }
.lt-seats i.on { background: var(--ox); box-shadow: inset 0 0 0 1.5px var(--gilt), inset 0 0 0 3px var(--ox); }
.lt-count { font-size: 16px; 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 16px; font-size: 17px; }
.lobby-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; }
.lobby-cols h2 { font-size: 32px; margin-bottom: 10px; }
.lr-list { display: grid; }
.lr { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-areas: "d a c" "d b c"; column-gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); text-decoration: none; }
.lr::before { content: ''; grid-area: d; align-self: center; width: 13px; height: 18px; border-radius: 2px; background: var(--ox); box-shadow: inset 0 0 0 1.5px var(--gilt); }
.lr b { grid-area: a; font-weight: 700; }
.lr span:not(.lr-go) { grid-area: b; color: var(--mute); font-size: 16px; }
.lr-go { grid-area: c; align-self: center; font-weight: 700; color: var(--ox); }
.lr:hover b { color: var(--ox-lit); }

/* how a table works: four boiserie panels, gilt moulding with corner bosses */
.how { padding: 56px 0 88px; border-top: 1px solid var(--line); }
.how-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin: 32px 0 0; max-width: 1160px; }
.how-list div { position: relative; padding: 26px 30px 28px; background: var(--paper); border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--gilt), inset 0 0 0 9px var(--paper), inset 0 0 0 10px var(--ivory-3), 0 16px 24px -22px rgba(68, 42, 10, .6); }
.how-list div::before, .how-list div::after { content: ''; position: absolute; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gilt); }
.how-list div::before { left: 9px; } .how-list div::after { right: 9px; }
.how-list dt { font: 700 24px/1.1 var(--display); margin-bottom: 10px; color: var(--ox); letter-spacing: .02em; }
.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: 10px 0 16px; }
.table-head h1 { font-size: clamp(32px, 3vw, 44px); color: var(--ox); }
.th-id { font: 700 .5em 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(--gilt-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: 22px; margin-bottom: 6px; color: var(--ox); }
.fair, .results { background: var(--paper); border-radius: 3px; padding: 18px 20px; display: grid; gap: 6px; box-shadow: inset 0 0 0 1.5px var(--gilt), inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--ivory-3); color: var(--ink-2); }
.fair a, .results a { color: var(--ox); font-weight: 700; }
.fair code { display: block; font-size: 14px; color: var(--ink); background: var(--ivory); padding: 7px 9px; border-radius: 3px; }
.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: oxblood leather with gilt tooling inside a carved giltwood rail */
.pk-table { font-family: var(--text); }
.pk-rail { background: radial-gradient(closest-side, #f5dc95 0 70%, #c99a45 84%, #7a5418 97%); box-shadow: 18px 26px 0 -8px rgba(68, 42, 10, .2), inset 0 3px 0 rgba(255, 242, 198, .7), inset 0 -6px 14px rgba(90, 55, 10, .45); }
.pk-rail::before { content: ''; position: absolute; inset: 1.3% .9%; border-radius: 999px; border: max(2px, .34cqw) dotted rgba(122, 84, 24, .75); }
.pk-rail::after { content: ''; position: absolute; inset: 3.6% 2.4%; border-radius: 999px; box-shadow: 0 0 0 max(1.5px, .2cqw) var(--gilt-deep); }
.pk-cloth { background: radial-gradient(ellipse at 45% 38%, #8e2f27, #6e1f1b 55%, #44110e); box-shadow: inset 0 0 0 2px rgba(68, 17, 14, .7), inset 0 12px 30px 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='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .02 0 0 0 0 .02 0 0 0 .55 -.12'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pk-line { border: 1.5px solid rgba(236, 210, 138, .75); box-shadow: 0 0 0 max(3px, .45cqw) transparent, 0 0 0 max(4px, .6cqw) rgba(236, 210, 138, .35); }
.pk-mark { top: 77%; }
.pk-mark::after { content: 'Royal'; font: 700 4.6cqw/1 var(--display); letter-spacing: .2em; color: var(--gilt-lit); opacity: .34; }
.pk-slot { box-shadow: inset 0 0 0 1.5px rgba(236, 210, 138, .38); }
.pk-front { background: var(--paper); color: var(--ink); box-shadow: .5cqw .7cqw 0 rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(36, 23, 15, .12); font-family: var(--text); }
.pk-idx b { font-family: var(--display); font-weight: 700; }
.pk-court { font-family: var(--display); font-weight: 700; }
.pk-back { background: var(--rf-back) center / 100% 100% no-repeat; box-shadow: .5cqw .7cqw 0 rgba(0, 0, 0, .3); }
.pk-banner { font: 700 clamp(15px, 2.2cqw, 25px)/1.15 var(--text); color: var(--gilt-lit); text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.pk-pot-amt, .pk-bet-amt { font: 800 max(13px, 1.6cqw)/1 var(--text); color: var(--paper); text-shadow: 0 1px 0 rgba(0, 0, 0, .55); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-plate { background: var(--paper); color: var(--ink); border-radius: .4cqw; box-shadow: inset 0 0 0 max(1px, .14cqw) var(--gilt), inset 0 -.45cqw 0 var(--ox), .45cqw .6cqw 0 rgba(0, 0, 0, .28); font-size: max(12px, 1.5cqw); line-height: 1.2; }
.pk-who { font-weight: 600; font-size: .95em; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.pk-stack { font-weight: 800; font-size: 1.25em; font-variant-numeric: lining-nums tabular-nums; }
.pk-note { font-size: .92em; font-weight: 800; color: var(--ox); }
.pk-clock { background: rgba(36, 23, 15, .15); }
.pk-clock i { background: var(--gilt); }
.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(--ox); color: var(--paper); box-shadow: inset 0 0 0 max(1px, .14cqw) var(--gilt-lit), inset 0 -.45cqw 0 var(--gilt), .45cqw .6cqw 0 rgba(0, 0, 0, .3); }
.pk-seat.is-me .pk-who { color: var(--gilt-lit); font-weight: 700; }
.pk-seat.is-me .pk-note { color: #ffd9c9; }
.pk-seat.is-me .pk-clock { background: rgba(252, 248, 239, .2); }
.pk-seat.is-me .pk-clock i { background: var(--gilt-lit); }
.pk-seat.is-turn .pk-plate { outline: .3cqw solid var(--gilt); outline-offset: .25cqw; }
.pk-seat.is-winner .pk-plate { outline: .45cqw solid var(--gilt-lit); outline-offset: .3cqw; }
.pk-seat.is-empty .pk-plate { background: rgba(252, 248, 239, .55); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px rgba(185, 138, 53, .8); }
.pk-seat.is-empty .pk-who { color: var(--ink-2); }
.pk-seat.is-out .pk-plate, .pk-seat.is-away .pk-plate { opacity: .62; }
.pk-dealer { background: var(--paper); color: var(--ox); font-family: var(--display); font-weight: 700; box-shadow: 0 0 0 2px var(--gilt), 2px 3px 0 rgba(0, 0, 0, .35); }
.pk-sit { font: 700 max(16px, 1.9cqw)/1 var(--text); background: var(--ox); color: var(--paper); border: 0; border-radius: 4px; padding: 1.3cqw 3cqw; min-height: 48px; cursor: pointer; box-shadow: inset 0 0 0 3px var(--ox), inset 0 0 0 4.5px var(--gilt-lit), 8px 10px 0 -2px rgba(0, 0, 0, .3); white-space: nowrap; }
.pk-sit:hover { background: var(--ox-lit); }

/* chips: ivory, oxblood, gilt, tapestry sage, tapestry blue, ink */
.pk-chip { box-shadow: 0 calc(var(--cw) * .05) 0 var(--d, #000), calc(var(--cw) * .06) calc(var(--cw) * .09) 0 rgba(0, 0, 0, .28); 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 20deg, transparent 20deg 60deg); -webkit-mask: radial-gradient(closest-side, transparent 74%, #000 75%); mask: radial-gradient(closest-side, transparent 74%, #000 75%); }
.pk-chip-1 { --c: #fcf8ef; --d: #cdbf9d; --s: #6e1f1b; --in: #ffffff; }
.pk-chip-5 { --c: #6e1f1b; --d: #44110e; --s: #fcf8ef; --in: #7a2620; }
.pk-chip-25 { --c: #7b8a62; --d: #4f5c3d; --s: #fcf8ef; --in: #879670; }
.pk-chip-100 { --c: #c99a45; --d: #7a5418; --s: #fcf8ef; --in: #d6a955; }
.pk-chip-500 { --c: #2f4656; --d: #1b2a35; --s: #ecd28a; --in: #3a5466; }
.pk-chip-1000 { --c: #24170f; --d: #000; --s: #ecd28a; --in: #33231a; }
.pk-chip-5000 { --c: #44110e; --d: #1f0705; --s: #ecd28a; --in: #551713; }
.pk-chip-25000 { --c: #ecd28a; --d: #7a5418; --s: #6e1f1b; --in: #f3dda5; }

/* action bar: oxblood leather with gilt; call is ivory, raise is gilt */
.table-actions { margin-top: 16px; min-height: 64px; }
.act-box { display: grid; gap: 10px; background: radial-gradient(130% 160% at 30% 0%, var(--ox-lit), var(--ox) 50%, var(--ox-deep)); border-radius: 4px; padding: 14px; box-shadow: inset 0 0 0 2px var(--gilt), inset 0 0 0 6px var(--ox-deep), inset 0 0 0 7px rgba(236, 210, 138, .4), 0 4px 0 var(--ox-deep), 0 20px 40px -26px rgba(40, 10, 5, .9); }
.act-turn { font: 700 26px/1 var(--display); color: var(--gilt-lit); letter-spacing: .03em; padding: 4px 4px 0; }
.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(252, 248, 239, .55); }
.act-fold:hover { box-shadow: inset 0 0 0 2px var(--paper); }
.act-call { background: var(--paper); color: var(--ox-deep); box-shadow: inset 0 -4px 0 var(--ivory-3); }
.act-raise { background: var(--giltgrad); color: var(--ink); box-shadow: inset 0 -4px 0 var(--gilt-deep), inset 0 0 0 1px rgba(122, 84, 24, .5); }
.act-raise:hover { filter: brightness(1.06); }
.act-amt { font-variant-numeric: lining-nums 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(--ox-deep); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(236, 210, 138, .35); }
.act-preset:hover { color: #fff; }
.act-range { flex: 1 1 160px; accent-color: var(--gilt); 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: 28px 0 80px; }
.page h1 { font: 700 clamp(44px, 5vw, 66px)/1.05 var(--display); color: var(--ox); padding-bottom: 6px; }
.page .lede { margin-bottom: 28px; margin-top: 14px; }
.rules { display: grid; gap: 12px; margin-top: 20px; }
.rules h2 { font-size: 30px; margin-top: 24px; scroll-margin-top: 20px; color: var(--ox); }
.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: 1px 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: 16px; flex: 1 1 140px; color: var(--ink-2); }
.vf-form input { font: 700 18px var(--text); padding: 12px; border-radius: 4px; border: 2px solid var(--ivory-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(--gilt); }
.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: 700; font-size: 19px; }
.vf-checks .ok b { color: var(--good); }
.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: 16px; font-weight: 700; color: var(--ink-2); }
.vf-cards { display: flex; gap: 6px; }

/* dialogs: ivory with an oxblood band and a gilt line on top */
.dlg { border: 0; border-radius: 4px; padding: 0; width: min(460px, calc(100vw - 32px)); color: var(--ink); background: linear-gradient(var(--ox), var(--ox)) top / 100% 10px no-repeat, linear-gradient(var(--gilt), var(--gilt)) 0 10px / 100% 2px no-repeat, var(--paper); box-shadow: 0 30px 80px rgba(40, 20, 8, .45), inset 0 0 0 1px rgba(185, 138, 53, .5); }
.dlg::backdrop { background: rgba(36, 23, 15, .55); }
.dlg a { color: var(--ink); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 30px 22px 4px 28px; }
.dlg-head h2 { font-size: 30px; color: var(--ox); }
.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 28px 28px; 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: 16px; font-weight: 700; }
.dlg-seed { font: 700 17px var(--text); padding: 11px 12px; border-radius: 4px; border: 2px solid var(--ivory-3); background: var(--ivory); 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: 4px; border: 2px solid var(--ivory-3); background: var(--ivory); font: 700 18px var(--text); cursor: pointer; text-decoration: none; color: var(--ink); }
.dlg-wallet:hover { border-color: var(--gilt); }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ox-deep); color: var(--paper); padding: 12px 18px; border-radius: 4px; max-width: calc(100vw - 32px); z-index: 50; font-weight: 700; box-shadow: inset 0 -3px 0 var(--gilt), 0 12px 34px rgba(40, 20, 8, .5); }
.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: 1px solid var(--line); display: grid; gap: 6px; color: var(--mute); font-size: 15px; font-weight: 700; }
.foot nav { display: flex; gap: 18px; margin-top: 8px; flex-wrap: wrap; }

/* the candles flicker and the mirror's reflection drifts, barely */
.rf-flame { animation: flame 2.6s ease-in-out infinite alternate; }
.rf-flame:nth-of-type(2n) { animation-duration: 3.1s; animation-delay: -1.2s; }
@keyframes flame { 0% { transform: scaleY(1) skewX(0deg); } 35% { transform: scaleY(1.07) skewX(2deg); } 70% { transform: scaleY(.95) skewX(-1.5deg); } 100% { transform: scaleY(1.04) skewX(1deg); } }
.rf-sheen { animation: sheen 14s ease-in-out infinite alternate; }
@keyframes sheen { from { transform: translateX(-18px); } to { transform: translateX(22px); } }
@media (prefers-reduced-motion: reduce) { .rf-flame, .rf-sheen { animation: none; } }

@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; margin: 0; order: 1; background: none; box-shadow: none; }
  .hero-art { position: relative; inset: auto; order: 2; margin: 32px 6px 0; aspect-ratio: 16 / 8; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--gilt), 0 24px 50px -34px rgba(68, 42, 10, .8); }
  .hero h1 { font-size: clamp(34px, 5vw, 48px); }
}
@media (max-width: 860px) {
  .hero-art { aspect-ratio: 16 / 12; 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: 36px; }
  .brand-mark svg { width: 42px; height: 42px; }
  .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; padding: 0 16px; font-size: 16px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .lt-buyin { font-size: 46px; }
  .how-list { gap: 16px; }
  .how-list div { padding: 24px 22px 24px; }
  .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(--ivory) 18%); }
  .act-turn { display: none; }
  .act-box { padding: 10px; gap: 8px; }
  .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: 17px; padding: 0 10px; }
  .page h1 { font-size: 42px; }
}
