:root {
  color-scheme: dark;
  --ink: #f2ecdf;
  --muted: #9ca79f;
  --gold: #d4af63;
  --gold-bright: #edcb7d;
  --night: #05120f;
  --panel: #0b1e19;
  --panel-2: #0f2821;
  --felt: #0a563f;
  --felt-dark: #073d2e;
  --line: rgba(219, 203, 164, 0.16);
  --danger: #b96555;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 50% 0%, #11332a 0, var(--night) 46%, #030a08 100%); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }

.welcome-shell { width: min(1160px, calc(100% - 40px)); margin: auto; padding: 28px 0 54px; }
.brand { display: flex; align-items: center; }
.brand-logo { display: block; width: 320px; height: auto; }
.welcome-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(42px, 6vw, 90px); align-items: center; min-height: 0; margin-top: 28px; }
.kicker { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }
.welcome-copy h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 5vw, 4.8rem); font-weight: 400; line-height: .98; letter-spacing: -.04em; margin: 18px 0 28px; }
.welcome-copy .keep-line { white-space: nowrap; }
.intro { max-width: 600px; color: #bdc7c0; font-family: Georgia, serif; font-size: 1.23rem; line-height: 1.65; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 38px; color: #83958b; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.trust-row span::before { content: "◆"; margin-right: 8px; color: var(--gold); font-size: .5rem; vertical-align: 2px; }

.entry-card { background: linear-gradient(145deg, rgba(17, 48, 40, .96), rgba(7, 24, 20, .98)); border: 1px solid rgba(216, 182, 108, .24); box-shadow: 0 26px 80px rgba(0,0,0,.42); padding: 9px 30px 30px; border-radius: 4px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -30px 26px; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: transparent; color: var(--muted); padding: 19px 10px 16px; border-bottom: 2px solid transparent; }
.tab.active { color: var(--ink); border-color: var(--gold); }
.entry-form { display: grid; gap: 18px; }
label, legend { color: #cbd1cc; font-size: .85rem; }
input, select { width: 100%; margin-top: 8px; color: var(--ink); background: rgba(1, 9, 7, .55); border: 1px solid rgba(207, 219, 210, .18); border-radius: 3px; padding: 13px 14px; outline: none; }
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 99, .1); }
#join-code { text-transform: uppercase; letter-spacing: .22em; font-weight: 700; }
fieldset { border: 0; margin: 0; padding: 0; }
.duration-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 9px; }
.duration-grid label { position: relative; }
.duration-grid input { position: absolute; opacity: 0; }
.duration-grid span { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); background: rgba(2, 12, 9, .4); }
.duration-grid input:checked + span { border-color: var(--gold); background: rgba(212, 175, 99, .1); }
.duration-grid small, .label-note, .form-note { color: var(--muted); font-size: .75rem; }
.entry-fee-toggle { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); background: rgba(2, 12, 9, .4); cursor: pointer; }
.entry-fee-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.entry-fee-toggle span { display: grid; gap: 2px; }
.entry-fee-toggle small { color: var(--muted); font-size: .72rem; }
.paid-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border: 1px solid rgba(212,175,99,.25); background: rgba(212,175,99,.05); }
.paid-options label { display: flex; min-width: 0; flex-direction: column; }
.paid-options .field-label { min-height: 2.7em; line-height: 1.35; }
.paid-options input, .paid-options select { box-sizing: border-box; min-height: 47px; }
.primary { border: 1px solid #e6c575; background: linear-gradient(#ddbc70, #c59c4b); color: #142019; font-weight: 750; padding: 14px 18px; border-radius: 3px; box-shadow: 0 5px 20px rgba(0,0,0,.25); }
.primary:hover { filter: brightness(1.08); }
.form-note { text-align: center; margin: -6px 0 0; }

.game-shell { min-height: 100vh; }
.game-header { height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 28px; background: rgba(4, 17, 14, .95); border-bottom: 1px solid var(--line); }
.mini-brand { display: flex; gap: 9px; align-items: center; }
.mini-logo { display: block; width: 58px; height: 58px; object-fit: contain; }
.mini-brand div { display: grid; }
.mini-brand small { color: var(--gold); font-size: .61rem; letter-spacing: .15em; }
.mini-brand strong { font-size: .8rem; margin-top: 2px; }
.header-status { color: #99aaa0; font-size: .78rem; }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #71b890; box-shadow: 0 0 10px #71b890; }
.quiet-button { justify-self: end; color: #d5dcd7; border: 1px solid var(--line); background: transparent; padding: 8px 12px; border-radius: 3px; }

.lobby-view { max-width: 980px; margin: 70px auto; padding: 0 24px; }
.lobby-card { border: 1px solid var(--line); background: rgba(9, 31, 25, .84); padding: 34px; box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.lobby-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 26px; }
.lobby-heading h2 { font: 400 2.4rem Georgia, serif; margin: 4px 0; }
.lobby-heading p { margin: 0; color: var(--muted); }
.code-lockup { text-align: right; }
.code-lockup small { color: var(--gold); letter-spacing: .14em; }
.code-lockup strong { display: block; font-size: 2rem; letter-spacing: .16em; margin-top: 4px; }
.lobby-grid { display: grid; grid-template-columns: 1fr 310px; gap: 30px; margin-top: 28px; }
.player-list { display: grid; gap: 10px; }
.player-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); background: rgba(0,0,0,.12); }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 50%; background: #174a3c; color: var(--gold-bright); font-family: Georgia, serif; }
.player-row .name { flex: 1; }
.player-row small { color: var(--muted); }
.approve-buttons { display: flex; gap: 6px; }
.approve-buttons button { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 6px 9px; }
.approve-buttons .approve { color: var(--gold-bright); border-color: rgba(212,175,99,.5); }
.approve-buttons .remove-player { color: #d7978b; border-color: rgba(185,101,85,.45); }
.setup-summary { padding: 20px; border: 1px solid var(--line); background: rgba(0,0,0,.15); }
.setup-summary h3 { margin-top: 0; font: 400 1.2rem Georgia, serif; }
.summary-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 12px 0; color: var(--muted); font-size: .83rem; }
.summary-row strong { color: var(--ink); }
.setup-summary .primary { width: 100%; margin-top: 14px; }
.secondary-button { width: 100%; margin-top: 14px; border: 1px solid rgba(212,175,99,.45); background: transparent; color: var(--gold-bright); padding: 11px 14px; border-radius: 3px; }
.secondary-button:hover:not(:disabled) { background: rgba(212,175,99,.08); }
.secondary-button:disabled { opacity: .35; cursor: not-allowed; }
.secondary-button.start-over { color: #c9d1cc; border-color: rgba(207,219,210,.22); }

.table-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; min-height: calc(100vh - 74px); }
.table-column { min-width: 0; display: flex; flex-direction: column; }
.tournament-bar { display: flex; align-items: center; justify-content: center; gap: 42px; min-height: 63px; background: rgba(8, 30, 24, .8); border-bottom: 1px solid var(--line); }
.tournament-bar > div { display: grid; text-align: center; }
.tournament-bar small { color: #83958c; font-size: .61rem; letter-spacing: .15em; }
.tournament-bar strong { font: 400 1rem Georgia, serif; margin-top: 3px; }
.mobile-leaderboard { display: none; }
.clock-block { padding: 0 42px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.clock-block strong { color: var(--gold-bright); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.icon-button { width: 32px; height: 32px; color: var(--muted); border: 1px solid var(--line); background: transparent; }
.felt-wrap { flex: 1; display: grid; place-items: center; min-height: 610px; padding: 38px 36px; overflow: hidden; }
.felt { position: relative; width: min(890px, 96%); aspect-ratio: 1.65; border-radius: 50%; background: radial-gradient(ellipse, #0d654a 0%, var(--felt) 52%, var(--felt-dark) 100%); border: 11px solid #261811; box-shadow: 0 0 0 2px #6f5935, 0 0 0 15px #120d0a, 0 30px 80px rgba(0,0,0,.55), inset 0 0 90px rgba(0,0,0,.35); }
.felt::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(235,211,158,.17); border-radius: 50%; }
.felt-ring { position: absolute; inset: 15%; border: 1px solid rgba(229,211,166,.08); border-radius: 50%; }
.center-mark { position: absolute; inset: 0; display: grid; place-items: center; opacity: .16; transform: translateY(-3%); }
.center-mark img { display: block; width: min(23%, 190px); height: auto; filter: saturate(.72); }
.pot-display { position: absolute; top: 33%; left: 50%; transform: translate(-50%, -50%); display: grid; text-align: center; z-index: 2; }
.pot-display small { color: #a4b7ae; font-size: .58rem; letter-spacing: .18em; }
.pot-display strong { color: var(--gold-bright); font: 400 1.2rem Georgia, serif; }
.board { position: absolute; top: 51%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 7px; z-index: 2; }
.card { position: relative; width: 78px; height: 108px; display: grid; grid-template-rows: auto 1fr; padding: 7px; color: #181b1a; background: #f7f3e9; border: 1px solid rgba(0,0,0,.12); border-radius: 7px; box-shadow: 0 5px 14px rgba(0,0,0,.34); font-family: Georgia, serif; font-weight: 700; }
.card-corner { display: grid; justify-items: start; align-content: start; line-height: .78; font-size: 1.55rem; }
.card-corner b { font-weight: 700; }
.card-corner i { font-size: 1.3rem; font-style: normal; margin-top: 6px; }
.card .suit-big { place-self: center; font-size: 3.35rem; line-height: 1; }
.card.suit-h { color: #b82f3b; }
.card.suit-d { color: #c45b25; }
.card.suit-c { color: #17604b; }
.card.suit-s { color: #171c24; }
.card.back { background: repeating-linear-gradient(45deg, #142c25 0, #142c25 5px, #c3a45f 6px, #c3a45f 7px); border: 3px solid #e9dfc9; }
.empty-card { width: 78px; height: 108px; border: 1px dashed rgba(235,225,198,.15); border-radius: 7px; }

#seats { position: absolute; inset: 0; }
.seat { position: absolute; width: 144px; z-index: 4; transform: translate(-50%, -50%); text-align: center; }
.seat-count-2 .seat:nth-child(1) { left: 50%; top: 96%; } .seat-count-2 .seat:nth-child(2) { left: 50%; top: 4%; }
.seat-count-3 .seat:nth-child(1) { left: 50%; top: 96%; } .seat-count-3 .seat:nth-child(2) { left: 13%; top: 28%; } .seat-count-3 .seat:nth-child(3) { left: 87%; top: 28%; }
.seat-count-4 .seat:nth-child(1) { left: 50%; top: 96%; } .seat-count-4 .seat:nth-child(2) { left: 8%; top: 50%; } .seat-count-4 .seat:nth-child(3) { left: 50%; top: 4%; } .seat-count-4 .seat:nth-child(4) { left: 92%; top: 50%; }
.seat-count-5 .seat:nth-child(1) { left: 50%; top: 96%; } .seat-count-5 .seat:nth-child(2) { left: 10%; top: 70%; } .seat-count-5 .seat:nth-child(3) { left: 23%; top: 8%; } .seat-count-5 .seat:nth-child(4) { left: 77%; top: 8%; } .seat-count-5 .seat:nth-child(5) { left: 90%; top: 70%; }
.seat-count-6 .seat:nth-child(1) { left: 50%; top: 96%; } .seat-count-6 .seat:nth-child(2) { left: 12%; top: 77%; } .seat-count-6 .seat:nth-child(3) { left: 12%; top: 23%; } .seat-count-6 .seat:nth-child(4) { left: 50%; top: 4%; } .seat-count-6 .seat:nth-child(5) { left: 88%; top: 23%; } .seat-count-6 .seat:nth-child(6) { left: 88%; top: 77%; }
.seat-count-7 .seat:nth-child(1) { left: 50%; top: 96%; } .seat-count-7 .seat:nth-child(2) { left: 14%; top: 80%; } .seat-count-7 .seat:nth-child(3) { left: 7%; top: 42%; } .seat-count-7 .seat:nth-child(4) { left: 28%; top: 6%; } .seat-count-7 .seat:nth-child(5) { left: 72%; top: 6%; } .seat-count-7 .seat:nth-child(6) { left: 93%; top: 42%; } .seat-count-7 .seat:nth-child(7) { left: 86%; top: 80%; }
.seat-count-8 .seat:nth-child(1) { left: 50%; top: 96%; } .seat-count-8 .seat:nth-child(2) { left: 19%; top: 84%; } .seat-count-8 .seat:nth-child(3) { left: 7%; top: 51%; } .seat-count-8 .seat:nth-child(4) { left: 20%; top: 15%; } .seat-count-8 .seat:nth-child(5) { left: 50%; top: 4%; } .seat-count-8 .seat:nth-child(6) { left: 80%; top: 15%; } .seat-count-8 .seat:nth-child(7) { left: 93%; top: 51%; } .seat-count-8 .seat:nth-child(8) { left: 81%; top: 84%; }
.seat-box { position: relative; padding: 8px 10px; background: rgba(5, 18, 15, .94); border: 1px solid rgba(229,211,166,.22); box-shadow: 0 5px 18px rgba(0,0,0,.32); }
.seat.active .seat-box { border-color: var(--gold-bright); box-shadow: 0 0 0 2px rgba(212,175,99,.13), 0 5px 24px rgba(0,0,0,.45); }
.seat.folded { opacity: .5; }
.seat-name { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat-name .offline { width: 5px; height: 5px; background: #bd655e; border-radius: 50%; }
.seat-chips { margin-top: 3px; color: var(--gold-bright); font: 400 .95rem Georgia, serif; }
.seat-action { min-height: 15px; color: #93a39a; font-size: .65rem; margin-top: 3px; }
.seat-cards { display: flex; justify-content: center; gap: 4px; height: 58px; margin-bottom: -4px; }
.seat-cards .card { width: 46px; height: 64px; padding: 4px; border-radius: 4px; transform-origin: bottom center; }
.seat-cards .card:first-child { transform: rotate(-5deg); }
.seat-cards .card:last-child { transform: rotate(5deg); }
.seat-cards .card-corner { font-size: 1.05rem; line-height: .7; }
.seat-cards .card-corner i { font-size: .9rem; margin-top: 3px; }
.seat-cards .suit-big { font-size: 1.72rem; }
.badge { position: absolute; top: -10px; right: -8px; width: 22px; height: 22px; display: grid; place-items: center; background: #e8e4da; color: #161b18; border: 2px solid #b99a58; border-radius: 50%; font: 700 .65rem Georgia, serif; }
.blind-badge { position: absolute; left: -12px; bottom: -9px; padding: 2px 5px; background: #24352f; border: 1px solid var(--line); color: #d4ddd7; font-size: .55rem; }
.bet-chip { position: absolute; left: 50%; top: -28px; transform: translateX(-50%); color: var(--gold-bright); font-size: .7rem; white-space: nowrap; }
.bet-chip::before { content: "●"; color: #cf6658; margin-right: 4px; }

.result-banner { position: absolute; left: 50%; top: 51%; z-index: 10; transform: translate(-50%, -50%); box-sizing: border-box; width: min(680px, 86%); text-align: center; padding: 14px 18px; border: 1px solid rgba(212,175,99,.55); background: rgba(10, 31, 25, .94); box-shadow: 0 10px 30px rgba(0,0,0,.48); color: #ddd4c1; pointer-events: none; }
.result-banner strong { color: var(--gold-bright); }
.action-dock { position: relative; min-height: 112px; padding: 14px 24px 18px; background: rgba(5, 18, 15, .96); border-top: 1px solid var(--line); }
.action-context { display: flex; justify-content: center; gap: 12px; min-height: 24px; font-size: .78rem; color: var(--muted); }
.action-context strong { color: var(--gold-bright); }
.action-buttons { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.action { min-width: 92px; border: 1px solid rgba(213,220,215,.2); color: var(--ink); background: #142a23; padding: 10px 14px; border-radius: 3px; }
.action:hover:not(:disabled) { border-color: var(--gold); }
.action:disabled { opacity: .35; cursor: not-allowed; }
.action.danger { color: #d7978b; }
.action.accent { background: #1a4b3b; border-color: #35765f; }
.action.gold { color: #161d18; background: var(--gold); border-color: var(--gold-bright); font-weight: 700; }
.raise-control { display: flex; }
.raise-control input { width: 95px; margin: 0; border-radius: 3px 0 0 3px; padding: 9px; }
.raise-control .action { border-radius: 0 3px 3px 0; min-width: 75px; }
.show-one { text-align: center; color: var(--muted); font-size: .75rem; margin-top: 10px; }
.show-one button { margin-left: 6px; background: transparent; border: 0; color: var(--gold-bright); text-decoration: underline; }
.rebuy-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; color: var(--muted); font-size: .74rem; }
.rebuy-controls button { border: 1px solid rgba(212,175,99,.45); background: rgba(212,175,99,.08); color: var(--gold-bright); padding: 7px 10px; border-radius: 3px; }

.side-panel { display: flex; flex-direction: column; background: #071713; border-left: 1px solid var(--line); min-height: 0; }
.leaderboard { flex: 0 0 auto; padding: 15px 16px 13px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(20,52,42,.52), rgba(7,23,19,.45)); }
.leaderboard header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #aebbb3; font-size: .62rem; letter-spacing: .15em; }
.leaderboard header small { color: var(--gold-bright); font-size: .55rem; }
.leaderboard ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.leaderboard li { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 7px; min-height: 30px; padding: 5px 7px; color: #c6d0c9; border-left: 2px solid transparent; font-size: .76rem; }
.leaderboard li.is-me { border-left-color: var(--gold); background: rgba(212,175,99,.08); }
.leaderboard li.is-out { opacity: .46; }
.leader-rank { color: #6f8278; text-align: center; font: 400 .82rem Georgia, serif; }
.leader-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-name small { color: var(--gold); font-size: .52rem; letter-spacing: .1em; }
.leaderboard li strong { color: var(--gold-bright); font: 400 .82rem Georgia, serif; }
.leaderboard li.is-out strong { color: #8d9b94; font: 600 .58rem Inter, sans-serif; letter-spacing: .1em; }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.side-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 19px 8px; }
.side-tabs button.active { color: var(--ink); border-color: var(--gold); }
.panel-body { flex: 1; min-height: 240px; overflow-y: auto; padding: 16px; }
.chat-list, .log-list { display: grid; gap: 14px; }
.chat-message { display: grid; grid-template-columns: 30px 1fr; gap: 9px; }
.chat-message .avatar { width: 30px; height: 30px; font-size: .75rem; }
.chat-message strong { font-size: .76rem; }
.chat-message time { margin-left: 6px; color: #62736b; font-size: .62rem; }
.chat-message p { color: #aebbb3; font-size: .78rem; line-height: 1.45; margin: 3px 0 0; overflow-wrap: anywhere; }
.log-line { color: #93a49b; font-size: .76rem; line-height: 1.45; border-bottom: 1px solid rgba(255,255,255,.04); padding-bottom: 9px; }
.chat-form { display: flex; gap: 7px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { margin: 0; padding: 10px; font-size: .76rem; }
.chat-form button { border: 1px solid var(--line); color: var(--gold-bright); background: #112a22; padding: 0 10px; }
.table-note { padding: 12px; text-align: center; color: #66786e; font-size: .67rem; border-top: 1px solid var(--line); }
.table-note span { color: var(--gold); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translateX(-50%); max-width: 92%; padding: 11px 16px; color: #f3eadb; background: #2e2620; border: 1px solid #8b7154; box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: .82rem; }

@media (max-width: 980px) {
  .welcome-grid { grid-template-columns: 1fr; min-height: auto; margin-top: 30px; padding-top: 0; }
  .welcome-copy h2 { font-size: clamp(3rem, 11vw, 5rem); }
  .entry-card { max-width: 600px; width: 100%; }
  .table-layout { grid-template-columns: 1fr; }
  .side-panel { min-height: 420px; border-left: 0; border-top: 1px solid var(--line); }
  .felt-wrap { min-height: 520px; padding: 45px 16px; }
  .felt { width: 92%; min-width: 620px; }
}

@media (max-width: 680px) {
  .welcome-shell { width: min(100% - 28px, 560px); padding-top: 24px; }
  .brand-logo { width: 230px; }
  .welcome-grid { margin-top: 22px; padding-top: 0; gap: 42px; }
  .welcome-copy h2 { font-size: 3.35rem; }
  .welcome-copy .keep-line { white-space: normal; }
  .trust-row { display: grid; gap: 10px; }
  .entry-card { padding: 8px 20px 24px; }
  .tabs { margin-left: -20px; margin-right: -20px; }
  .game-header { height: 62px; grid-template-columns: 1fr auto; padding: 0 12px; }
  .mini-logo { width: 49px; height: 49px; }
  .mini-brand small { font-size: .54rem; }
  .mini-brand strong { font-size: .7rem; }
  .header-status { display: none; }
  .quiet-button { font-size: .68rem; padding: 7px 9px; }
  .lobby-view { margin: 30px auto; }
  .lobby-card { padding: 22px; }
  .lobby-heading { display: grid; }
  .code-lockup { text-align: left; }
  .lobby-grid { grid-template-columns: 1fr; }
  .table-layout { min-height: calc(100vh - 62px); }
  .tournament-bar { min-height: 56px; gap: 12px; padding: 0 8px; }
  .tournament-bar small { font-size: .52rem; }
  .tournament-bar strong { font-size: .84rem; }
  .clock-block { padding: 0 12px; }
  .clock-block strong { font-size: 1.15rem; }
  .next-blinds { display: none !important; }
  .mobile-leaderboard { position: sticky; top: 0; z-index: 13; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 9px; border-bottom: 1px solid var(--line); background: rgba(5,18,15,.97); box-shadow: 0 5px 14px rgba(0,0,0,.24); }
  .mobile-leaderboard > span { flex: 0 0 auto; color: var(--gold); font-size: .52rem; letter-spacing: .14em; }
  .mobile-leaderboard ol { display: flex; flex: 1; gap: 6px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; list-style: none; }
  .mobile-leaderboard ol::-webkit-scrollbar { display: none; }
  .mobile-leaderboard li { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; padding: 4px 7px; border: 1px solid rgba(255,255,255,.08); color: #b9c5bd; font-size: .65rem; }
  .mobile-leaderboard li.is-me { border-color: rgba(212,175,99,.48); background: rgba(212,175,99,.08); }
  .mobile-leaderboard li.is-out { opacity: .45; }
  .mobile-leaderboard li b { color: #6f8278; }
  .mobile-leaderboard li strong { color: var(--gold-bright); font: 400 .72rem Georgia, serif; }
  .felt-wrap { min-height: 560px; padding: 48px 10px 56px; overflow: visible; align-items: center; }
  .felt { width: calc(100vw - 28px); min-width: 0; height: 500px; aspect-ratio: auto; border-width: 8px; border-radius: 45%; }
  .felt::after { inset: 5px; border-radius: 45%; }
  .felt-ring { inset: 14% 10%; }
  .center-mark img { width: 128px; }
  .pot-display { top: 38%; }
  .board { top: 51%; gap: 4px; }
  .board .card, .board .empty-card { width: 52px; height: 74px; }
  .board .card { padding: 4px; }
  .board .card-corner { font-size: 1.08rem; }
  .board .card-corner i { font-size: .9rem; margin-top: 3px; }
  .board .card .suit-big { font-size: 2.05rem; }
  #seats { inset: 8px; }
  .seat { width: 106px; }
  .seat-box { padding: 6px 5px; }
  .seat-name { font-size: .68rem; }
  .seat-chips { font-size: .82rem; }
  .seat-action { font-size: .57rem; }
  .seat-cards { height: 52px; }
  .seat-cards .card { width: 40px; height: 56px; }
  .seat-cards .card-corner { font-size: .92rem; }
  .seat-cards .card-corner i { font-size: .78rem; }
  .seat-cards .suit-big { font-size: 1.45rem; }
  .seat-count-2 .seat:nth-child(1) { top: 96%; } .seat-count-2 .seat:nth-child(2) { top: 4%; }
  .seat-count-4 .seat:nth-child(2) { left: 4%; } .seat-count-4 .seat:nth-child(4) { left: 96%; }
  .seat-count-6 .seat:nth-child(2), .seat-count-6 .seat:nth-child(3) { left: 5%; } .seat-count-6 .seat:nth-child(5), .seat-count-6 .seat:nth-child(6) { left: 95%; }
  .seat-count-7 .seat:nth-child(2) { left: 9%; } .seat-count-7 .seat:nth-child(3) { left: 3%; } .seat-count-7 .seat:nth-child(6) { left: 97%; } .seat-count-7 .seat:nth-child(7) { left: 91%; }
  .seat-count-8 .seat:nth-child(2) { left: 10%; } .seat-count-8 .seat:nth-child(3) { left: 3%; } .seat-count-8 .seat:nth-child(4) { left: 12%; } .seat-count-8 .seat:nth-child(6) { left: 88%; } .seat-count-8 .seat:nth-child(7) { left: 97%; } .seat-count-8 .seat:nth-child(8) { left: 90%; }
  .action-dock { position: sticky; bottom: 0; z-index: 12; min-height: 0; padding: 10px 8px 12px; box-shadow: 0 -10px 28px rgba(0,0,0,.35); }
  .action-context { min-height: 20px; }
  .action-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .action { min-width: 0; width: 100%; padding: 10px 6px; font-size: .78rem; }
  .raise-control { min-width: 0; }
  .raise-control input { width: 52%; min-width: 0; padding: 8px 4px; font-size: .76rem; }
  .raise-control .action { min-width: 0; }
  .side-panel { min-height: 360px; }
  .paid-options { grid-template-columns: 1fr; }
  .paid-options .field-label { min-height: 0; }
  .leaderboard { padding: 14px 12px 10px; }
  .leaderboard ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 8px; }
  .leaderboard li { min-height: 28px; }
}
