/* River Club presentation layer. Poker rules and the existing UI hooks are unchanged. */
:root {
  --club-bg: #0b1412; --club-panel: #14211d; --club-line: #304038;
  --club-gold: #dfc28b; --club-ink: #f3efdf; --club-muted: #94a69b;
  --felt: #185441; --felt-dark: #092a24; --felt-light: #266b52;
}
body { color: var(--club-ink); background: var(--club-bg); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
body[data-theme="midnight"] { --felt: #193d59; --felt-dark: #0b2134; --felt-light: #2a5278; }
body[data-theme="blackgold"] { --felt: #373327; --felt-dark: #1a1a15; --felt-light: #4a4634; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #e9cf9e !important; outline-offset: 4px; }
body .btn-primary { min-height: 48px; border: 1px solid #ecd4a3; border-radius: 10px; background: linear-gradient(120deg,#ecd7aa,#cdae72); color: #1c251c; font-size: 15px; font-weight: 700; box-shadow: 0 6px 22px #0003; text-shadow: none; letter-spacing: .04em; }
body .btn-primary:hover { background: #f5dfb4; transform: translateY(-1px); }
body .btn-secondary { border: 1px solid var(--club-line); background: #213229; color: var(--club-ink); border-radius: 9px; min-height: 44px; box-shadow: none; }
body #lobby { padding: 0; overflow: auto; display: block; background: radial-gradient(ellipse at 18% 40%,#203c2e77,transparent 60%),#0b1412; }
body #lobby::before, body #lobby::after { content: none; }
.club-lobby { max-width: 1240px; padding: 32px 48px 24px; margin: auto; }
.club-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid #c8b78720; }
.club-brand { display: flex; gap: 13px; align-items: center; color: var(--club-gold); text-decoration: none; font-family: Georgia,serif; letter-spacing: .2em; font-size: 19px; }
.brand-suit { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid #b7a37470; border-radius: 50%; font-size: 28px; }
.club-brand small { display: block; font: 10px/2.4 "PingFang SC",sans-serif; letter-spacing: .36em; color: var(--club-muted); }
.career { width: 220px; font-size: 11px; }
.career > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.career b { color: #d9c49d; font-weight: 500; }
.career span { color: var(--club-muted); }
.career-track,.session-track { height: 3px; background: #c9c7a915; margin-top: 10px; overflow: hidden; border-radius: 5px; }
.career-track i,.session-track i { display: block; height: 100%; background: var(--club-gold); transition: width .6s ease; }
.lobby-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 66px; align-items: center; padding: 38px 0; }
.eyebrow { font: 10px/1.5 system-ui,sans-serif; letter-spacing: .24em; color: var(--club-gold); }
.eyebrow i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #80c89b; margin-right: 8px; box-shadow: 0 0 12px #80c89b; }
.club-intro h1 { font-family: "Songti SC","STSong",Georgia,serif; font-size: clamp(34px,3.4vw,49px); line-height: 1.5; letter-spacing: .03em; font-weight: 600; margin: 20px 0 16px; }
.club-intro h1 em { font-style: normal; color: var(--club-gold); }
.intro-copy { color: var(--club-muted); font-size: 13px; line-height: 2; }
.hero-scene { height: 244px; position: relative; display: grid; place-items: center; }
.hero-scene img { width: 285px; height: 245px; object-fit: contain; z-index: 1; filter: drop-shadow(0 20px 22px #0006); transform: rotate(-6deg); }
.hero-orbit { width: 290px; height: 110px; border: 1px solid #cab27a25; border-radius: 50%; position: absolute; bottom: 12px; transform: rotate(-10deg); background: radial-gradient(ellipse,#82945518,transparent 70%); }
.hero-note { position: absolute; bottom: -5px; right: 4px; font: 8px system-ui; letter-spacing: .28em; color: #9d9e7b; }
.career-stats { display: flex; border-top: 1px solid #c8b78720; padding-top: 20px; margin-top: 30px; gap: 40px; }
.career-stats b { display: block; font: 25px Georgia,serif; color: #ece1c4; }
.career-stats span { color: #81978b; font-size: 10px; display: block; margin-top: 7px; }
body .lobby-card { background: #14221deF; border: 1px solid #a9b79e25; color: var(--club-ink); box-shadow: 0 20px 60px #0003; }
body #lobby .club-play { width: 100%; max-height: none; overflow: visible; border-radius: 18px; padding: 28px; backdrop-filter: none; }
.play-heading h2 { margin: 7px 0 0; font-size: 23px; font-weight: 600; letter-spacing: .04em; }
body .lobby-tabs { background: none; border: none; padding: 0 0 12px; border-radius: 0; border-bottom: 1px solid #304038; gap: 4px; margin: 24px 0 20px; box-shadow: none; }
body .lobby-tab { color: #94a69b; border: none; border-radius: 6px; padding: 9px 3px; font-size: 12px; box-shadow: none; background: none; text-shadow: none; }
body .lobby-tab.active { background: #d4c49714; color: #e4cc9b; box-shadow: none; }
.format-list { display: grid; gap: 10px; }
.format-card { display: flex; align-items: center; gap: 15px; text-align: left; padding: 17px 15px; min-height: 79px; color: #eee9d7; background: #101d18; border: 1px solid #324437; border-radius: 10px; transition: border-color .18s, background .18s; }
.format-card:hover { background: #20372a; border-color: #899378; }
.format-card.selected { background: linear-gradient(105deg,#324631,#1c2d23); border-color: #c2ad7d; box-shadow: inset 3px 0 #dfc28b; }
.format-icon { width: 35px; color: #dac28d; font: 35px Georgia,serif; text-align: center; }
.format-card b { display: block; font-size: 15px; font-weight: 600; }
.format-card b i { font-style: normal; font-size: 9px; color: #dcca9e; border: 1px solid #b9a47066; margin-left: 8px; padding: 2px 5px; border-radius: 4px; }
.format-card small { display: block; font-size: 10px; line-height: 1.6; color: #9aa99c; margin-top: 5px; }
.format-check { margin-left: auto; color: #d8c294; font-size: 20px; opacity: .45; }
.selected .format-check { opacity: 1; }
.format-description { font-size: 10px; color: #a7b7aa; text-align: center; margin: 15px 0; }
.table-options { border-top: 1px solid #304038; padding-top: 14px; margin-top: 16px; }
.table-options summary { cursor: pointer; color: #d6ddcf; font-size: 12px; list-style-position: inside; }
.table-options summary span { float: right; font-size: 10px; color: #91a094; }
body .lobby-body { margin-top: 18px; }
body .field label { color: #a7b6a9; font-size: 11px; }
body .field input,body .field select { color: #e1e9dc; background: #0b1913; border: 1px solid #394d3f; border-radius: 7px; box-shadow: none; height: 40px; font-size: 12px; padding: 8px 10px; }
body .field select option { background: #17251c; color: #eceddb; }
body .field input:disabled,body .field select:disabled { opacity: .45; }
body .field-group { gap: 12px; margin-bottom: 12px; }
.pace-fields { margin-top: 14px; }
.preset-note { color: var(--club-muted); font-size: 10px; line-height: 1.8; align-self: center; }
body #lobby .lobby-actions { margin-top: 20px; display: block; }
body #startBtn { width: 100%; font-size: 14px; display: flex; justify-content: center; gap: 20px; align-items: center; }
body .lobby-footer { display: flex; align-items: center; flex-direction: column; gap: 12px; margin-top: 16px; }
body .hint { color: #91a393; font-size: 10px; }
.text-button { color: #cdbb95; border: none; background: none; font-size: 11px; padding: 4px; }
.club-footer { border-top: 1px solid #c8b78720; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; }
.club-footer > span { font: 9px system-ui; letter-spacing: .2em; color: #baa880; }
.club-footer > span small { display: block; font-size: 10px; color: #7d9486; letter-spacing: .03em; margin-top: 8px; }
.rival { display: flex; gap: 12px; align-items: center; font-size: 13px; color: #cfdbcd; }
.rival img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: #25392d; border: 1px solid #a5a07c45; }
.rival small { display: block; font-size: 10px; margin-top: 4px; color: #78927f; }
/* The table stays calm, with the decisions in one compact lower console. */
body #table { background: #0b1412; overflow: hidden; }
body .table-bg { background: radial-gradient(ellipse at 50% 42%,#1e3c2d99,transparent 65%),repeating-linear-gradient(90deg,#fff00002 0 1px,transparent 1px 4px),#0b1412; }
body .table-bg::before,body .table-bg::after { content: none; }
body .table-oval { position: absolute; left: 50%; top: 43%; width: min(960px,72vw); height: min(430px,44vh); aspect-ratio: auto; transform: translate(-50%,-50%); border: 15px solid #342f23; border-radius: 48%; background: radial-gradient(ellipse at 50% 35%,var(--felt-light),var(--felt) 60%,var(--felt-dark)); box-shadow: 0 0 0 2px #8e7b50,0 0 0 8px #181e17,0 0 0 10px #4e4c32,0 28px 50px #0008,inset 0 0 0 2px #b9a36a,inset 0 12px 40px #0007; overflow: visible; }
body .table-oval::before { content: ""; position: absolute; inset: 24px; border: 1px solid #d7e3b51c; border-radius: 48%; background: none; pointer-events: none; }
body .table-oval::after { content: none; }
.table-signature { position: absolute; left: 50%; top: 69%; transform: translateX(-50%); color: #dceaca1c; font: 24px Georgia,serif; letter-spacing: .22em; pointer-events: none; z-index: 1; }
.table-signature span { display: block; text-align: center; font: 7px/3 system-ui; letter-spacing: .42em; }
body .board { min-width: 0; padding: 0; border: none; background: none; box-shadow: none; position: absolute; left: 50%; top: 50%; width: auto; transform: translate(-50%,-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; z-index: 2; }
body .pot-info { position: relative; inset: auto; min-width: 140px; padding: 9px 25px; border-radius: 50px; background: #072d2280; border: 1px solid #aec99135; box-shadow: none; margin: 0 0 4px; transform: none; }
body .pot-info::before,body .pot-info::after { content: none; }
body .pot-label { color: #b8c7ad; font: 9px system-ui; letter-spacing: .15em; }
body .pot-amount { font: 34px/1.2 Georgia,serif; color: #f6e9c9; text-shadow: 0 2px 8px #0004; }
body .community-cards { display: flex; gap: 8px; margin: 0; padding: 0; }
body .community-cards .card { width: 60px; height: 84px; font-size: 22px; border-radius: 8px; }
body .stage-info { display: none; }
.street-progress { display: flex; gap: 18px; margin-top: 4px; color: #a0b79e70; font-size: 9px; }
.street-progress span { padding-top: 6px; border-top: 2px solid #a0b79e20; min-width: 32px; text-align: center; }
.street-progress .current { color: #f5e5b5; border-color: #ddc089; }
.street-progress .complete { color: #a6ccab; border-color: #7fa586; }
body .seat { width: 120px; padding: 6px; min-height: 0; border: none; border-radius: 15px; background: none; box-shadow: none; transform: translate(-50%,-50%); }
body .seat.active::before,body .seat.active::after { content: none; }
body .seat.active { background: #e1c3830a; box-shadow: 0 0 0 1px #d9be8055,0 0 35px #d9be8015; }
body .seat.folded { opacity: .45; filter: saturate(.6); }
body .seat-avatar { width: 57px; height: 57px; margin: 0 auto 6px; border: 2px solid #a38b56; box-shadow: 0 4px 15px #0006; }
body .seat-avatar.has-portrait { background: #1c3429 !important; }
body .seat-name { color: #f1eedf; font-size: 12px; line-height: 1.4; text-shadow: 0 2px 5px #000; max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-style { color: #afc0a8; font: 8px/1.7 system-ui; letter-spacing: .08em; }
body .seat-stack { color: #f1d9a0; background: #11261ceF; border: 1px solid #aab08933; border-radius: 5px; padding: 3px 13px; margin-top: 3px; font-size: 12px; font-weight: 600; box-shadow: 0 2px 4px #0003; }
body .seat-cards { margin-top: 5px; gap: 4px; }
body .seat-cards .card { width: 29px; height: 40px; border-radius: 4px; }
body .seat.self .seat-cards .card { width: 42px; height: 59px; }
body .seat.self .seat-avatar { width: 45px; height: 45px; }
body .seat.self { transform: translate(-50%,-36%); }
body .seat .countdown-ring { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 65px; height: 65px; }
body .seat.self .countdown-ring { width: 53px; height: 53px; }
body .seat-bet { position: absolute; left: calc(50% + 40px); top: 98px; bottom: auto; transform: none; min-width: 30px; color: #f2e4bb; background: #122a1f; border: 1px solid #8b9760; font-size: 10px; box-shadow: none; }
body .seat-tag { top: 0; right: 16px; left: auto; transform: none; }
body .seat-capsule { max-width: 120px; font-size: 10px; top: auto; bottom: -16px; box-shadow: none; }
body .seat-action-hint { display: none; }
body .dealer-log { position: absolute; top: auto; bottom: 18%; left: 50%; transform: translateX(-50%); background: none; border: none; box-shadow: none; color: #d5dec5; padding: 3px 10px; font-size: 10px; max-width: 60%; }
.session-hud { position: absolute; left: 28px; top: 22px; z-index: 10; width: 320px; }
.session-brand { color: #d9bd84; font: 12px Georgia,serif; letter-spacing: .1em; display: flex; align-items: center; gap: 12px; }
.session-brand span { color: #9ab19b; font: 10px system-ui; letter-spacing: 0; border-left: 1px solid #4a5241; padding-left: 12px; }
.session-info { display: flex; align-items: center; gap: 16px; font-size: 10px; color: #a1b3a4; margin-top: 15px; }
.session-info b { font-weight: 500; color: #edebd9; }
.session-goal { font-size: 9px; color: #778e7b; margin-top: 11px; }
.session-track { width: 220px; margin-top: 7px; height: 2px; }
body .top-bar { display: flex; flex-wrap: nowrap; width: auto; grid-template-columns: none; top: 20px; right: 25px; padding: 5px; gap: 5px; border: 1px solid #43543c70; border-radius: 10px; background: #122017d9; box-shadow: none; }
body .top-bar .icon-btn,body .top-bar .settings-wrap .icon-btn { --toolbar-btn-bg: #1c2c22; border: none; border-radius: 7px; width: 33px; height: 33px; box-shadow: none; color: #c9c5a0; font-size: 19px; filter: none; }
body .top-bar .icon-btn::before,body .top-bar .icon-btn::after { content: none; }
body .toolbar-icon { width: 17px; height: 17px; filter: none; }
body .settings-wrap { width: 33px; height: 33px; }
body .bet-history-panel { left: 25px; top: 160px; width: 160px; max-height: 260px; border: 1px solid #41503950; background: #11201788; border-radius: 10px; box-shadow: none; }
body .bet-history-head { background: none; padding: 12px; border-color: #59634730; }
body .bet-history-title { color: #b4b9a1; font-size: 11px; }
body .bet-history-subtitle { font-size: 9px; color: #7f927b; }
body .bet-history-item { background: none; border: none; font-size: 10px; }
body .action-bar { position: absolute; left: 50%; right: auto; bottom: max(18px,env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(790px,86vw); min-height: 0; height: auto; padding: 14px 20px; display: flex; flex-direction: row; align-items: center; gap: 22px; border: 1px solid #78826350; border-radius: 15px; background: linear-gradient(135deg,#25372bef,#101f17f5); box-shadow: 0 10px 45px #0005,inset 0 1px #eee7bd09; z-index: 20; }
body .action-bar::before,body .bet-console::before { content: none; }
.decision-context { position: absolute; left: 0; right: 0; top: -29px; text-align: center; color: #d6dabd; font-size: 10px; text-shadow: 0 2px 5px #000; }
body .hud-top { position: static; inset: auto; transform: none; display: flex; flex-direction: column; align-items: stretch; width: 155px; min-width: 155px; min-height: 0; gap: 7px; padding: 0 18px 0 0; margin: 0; border: none; border-right: 1px solid #78826330; background: none; box-shadow: none; border-radius: 0; }
body .hole-cards-mini { display: none; }
body .hud-side { min-width: 0; width: 100%; gap: 6px; }
body .hand-hint { color: #e1d4ae; padding: 0; font-size: 11px; background: none; border: none; box-shadow: none; min-width: 0; border-radius: 0; }
body .equity-meter { width: 100%; }
body .equity-label { color: #9db19e; font-size: 9px; }
body .equity-bar { height: 4px; background: #07150e; }
body .equity-value { color: #d7dcbd; }
body .bet-console { position: static; inset: auto; transform: none; height: auto; width: auto; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: none; }
body .bet-console > * { position: static; inset: auto; transform: none; }
body .bet-console .raise-presets-circle { position: static; inset: auto; display: flex; width: auto; height: 26px; gap: 4px; grid-column: 1 / -1; justify-content: flex-start; transform: none; }
body .bet-console .chip-preset { min-width: 0; flex: 1; width: auto; height: 26px; border-radius: 5px; border: 1px solid #7f896447; background: #38473350 !important; color: #bfccab; font: 10px system-ui; -webkit-text-stroke: 0; box-shadow: none; text-shadow: none; filter: none; }
body .bet-console .chip-preset:hover { background: #73835755 !important; color: #fff0bd; }
body .bet-console .chip-preset::before,body .bet-console .chip-preset::after { content: none; }
body .bet-console .raise-slider { position: relative; inset: auto; width: 100%; height: 20px; transform: none; grid-column: 1; align-self: center; }
body .raise-slider-visual { display: none; }
body .raise-slider input[type=range] { position: static; width: 100%; height: 20px; opacity: 1; appearance: auto; -webkit-appearance: auto; background: none; accent-color: #d2bb81; cursor: pointer; filter: none; pointer-events: auto; }
body .raise-value-badge { position: static; color: #ded5b1; background: none; border: none; border-radius: 0; box-shadow: none; text-align: right; padding: 2px; font-size: 11px; min-width: 0; }
body .bet-console .action-buttons-circle { position: static; inset: auto; width: 100%; height: 49px; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; grid-column: 1 / -1; transform: none; }
body .bet-console .circle-btn,body .bet-console .circle-btn:hover:not(:disabled),body .bet-console .circle-btn:active:not(:disabled) { width: 100%; height: 49px; border-radius: 7px; border: 1px solid #758b6755; background: #293a2d !important; color: #bfcab4; box-shadow: none !important; filter: none; transform: none; display: flex; flex-direction: column; gap: 2px; justify-content: center; align-items: center; padding: 4px; text-shadow: none; }
body .bet-console .circle-btn::before,body .bet-console .circle-btn::after { content: none; }
body .bet-console .circle-call,body .bet-console .circle-call:hover:not(:disabled) { background: #365e43 !important; border-color: #618261; color: #ebf4dd; }
body .bet-console .circle-raise,body .bet-console .circle-raise:hover:not(:disabled) { background: linear-gradient(120deg,#e4cd9b,#baa169) !important; border-color: #e1c791; color: #1d2e1f; }
body .bet-console .circle-allin { color: #d2b4b0; border-color: #97706f60; background: #493332 !important; }
body .bet-console .circle-btn:hover:not(:disabled) { filter: brightness(1.16); }
body .bet-console .circle-btn:active:not(:disabled) { transform: translateY(1px); }
body .circle-btn .circle-btn-label { display: block; position: static; inset: auto; transform: none; color: inherit; font: 600 13px system-ui; letter-spacing: .08em; text-shadow: none; -webkit-text-stroke: 0; }
body .circle-btn .circle-btn-amount { display: block; position: static; color: inherit; font: 10px system-ui; text-shadow: none; }
body .circle-btn:disabled { opacity: .3; }
body .pre-action-bar { left: 50%; bottom: 36px; transform: translateX(-50%); border: 1px solid #58664760; background: #17281b; box-shadow: none; padding: 12px 18px; border-radius: 10px; }
body .pre-action-label { color: #92a18c; }
body .pre-pill { border: 1px solid #536244; background: #283b27; color: #c4ceb1; font-size: 11px; }
/* Dialogs share the club palette and retain the existing result/history structure. */
body .hand-result,body .game-over,body .history-modal { background: #050c09b8; backdrop-filter: blur(8px); }
body .hand-result-card,body .history-card,body .privacy-card { background: linear-gradient(140deg,#233629,#102018); color: #e8e9d4; border: 1px solid #7b80604d; border-radius: 18px; box-shadow: 0 30px 90px #0008; }
body .hand-result-card { max-height: 88dvh; width: min(630px,94vw); padding: 26px; }
body .result-moment-art { display: none; }
body .hand-result-header { padding: 0 0 14px; }
body .hand-result-header h3,body .hand-result-card > h3 { font: 23px "Songti SC",Georgia,serif; color: #e5d5ac; }
body .result-row { background: #0f211a60; border-color: #84947622; box-shadow: none; padding: 10px; }
body .result-row.winner { background: #7e7c3825; border-color: #c2b47770; }
body .result-name { color: #e6e5d1; }
body .result-rank { color: #adbaa0; }
body .gain { color: #a9d7aa; }
body .loss { color: #dd9b91; }
.session-result { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid #536b4355; border-bottom: 1px solid #536b4355; padding: 14px 0; margin-bottom: 14px; }
.session-result strong { font: 24px Georgia,serif; }
.session-result span { font-size: 11px; color: #dbc798; }
.session-result small { flex-basis: 100%; color: #98af94; font-size: 10px; }
.session-finale { text-align: center; padding: 24px 0; }
.session-finale h2 { color: #e3d6a9; font-size: 26px; }
.session-finale strong { display: block; color: #e6cc91; font: 54px/1.6 Georgia,serif; }
.session-finale p { color: #a8bca0; font-size: 12px; }
body .rank-row { color: #bfcbb2; padding: 13px; border-bottom: 1px solid #52624630; font-size: 13px; }
body .settings-popup,body .chat-panel { background: #14251d; color: #dbdfc9; border-color: #65765370; box-shadow: 0 10px 30px #0008; }
body .settings-radio,body .history-entry,body .stats-cell { background: #15291d; border-color: #3d5337; color: #d5dec6; }
.guide-dialog { margin: auto; width: min(580px,92vw); max-height: 90dvh; overflow: auto; background: #17281e; color: #e4e8d5; border: 1px solid #7c8359; border-radius: 18px; padding: 28px; box-shadow: 0 25px 70px #0009; }
.guide-dialog::backdrop { background: #050c08bb; backdrop-filter: blur(6px); }
.guide-heading { display: flex; justify-content: space-between; align-items: center; }
.guide-heading button { background: none; border: none; color: #c3d1b6; font-size: 28px; width: 36px; height: 36px; }
.guide-dialog h2 { font: 26px/1.5 "Songti SC",Georgia,serif; color: #e5d2a4; margin: 12px 0; }
.guide-dialog p { color: #a9baa3; font-size: 12px; line-height: 1.9; }
.guide-steps { display: grid; gap: 18px; margin: 26px 0; }
.guide-steps b { color: #d0c19a; font-size: 13px; }
.hand-ranking { border-top: 1px solid #52623c; border-bottom: 1px solid #52623c; padding: 15px 0; }
.hand-ranking span { font-size: 11px; color: #e1c893; }
.guide-dialog .guide-note { font-size: 10px; padding: 16px 0; }
.guide-dialog .btn-primary { width: 100%; }
@media (min-width: 1500px) { .club-lobby { padding-top: 50px; } .lobby-layout { padding: 55px 0; } .hero-scene { height: 275px; } .hero-scene img { height: 270px; width: 320px; } }
@media (max-width: 1150px) { body .bet-history-panel { display: none; } body .table-oval { width: 82vw; } .lobby-layout { gap: 35px; } .club-lobby { padding: 25px; } }
@media (max-height: 780px) and (min-width: 761px) {
  .club-lobby { padding-top: 18px; } .club-header { padding-bottom: 15px; } .lobby-layout { padding: 22px 0; } .hero-scene { height: 170px; } .hero-scene img { height: 185px; } .club-intro h1 { font-size: 38px; }
  body .table-oval { top: 43%; height: 38vh; } body .seat-avatar { width: 43px; height: 43px; } body .seat .countdown-ring { width: 51px; height: 51px; } body .seat-cards .card { width: 24px; height: 33px; } body .seat.self .seat-cards .card { width: 33px; height: 46px; }
  body .seat.self .seat-avatar { display: none; } body .seat.self .countdown-ring { display: none; } body .community-cards .card { width: 48px; height: 67px; } body .pot-amount { font-size: 26px; } body .board { gap: 5px; } body .pot-info { padding: 5px 18px; } body .dealer-log { bottom: 10%; } body .action-bar { bottom: 12px; padding: 10px 16px; } body .table-signature { top: 27%; }
}
@media (max-width: 760px) {
  .club-lobby { padding: 20px; } .club-header { padding-bottom: 16px; } .club-brand { font-size: 13px; gap: 9px; } .brand-suit { width: 33px; height: 33px; font-size: 22px; } .club-brand small { font-size: 8px; } .career { width: 145px; font-size: 9px; }
  .lobby-layout { grid-template-columns: 1fr; gap: 24px; padding: 25px 0; } .club-intro { position: relative; min-height: 153px; } .club-intro .eyebrow { font-size: 8px; } .club-intro h1 { font-size: 29px; margin: 12px 0 8px; } .intro-copy { font-size: 10px; } .hero-scene { position: absolute; right: -20px; bottom: -5px; height: 160px; width: 160px; opacity: .85; pointer-events: none; } .hero-scene img { width: 165px; height: 155px; } .hero-orbit { width: 140px; height: 60px; } .hero-note,.career-stats { display: none; }
  body #lobby .club-play { padding: 22px 18px; } .play-heading h2 { font-size: 21px; } body .lobby-tabs { margin-top: 20px; } .format-card { padding: 15px 12px; gap: 12px; } .format-card small { font-size: 10px; } .format-card b { font-size: 14px; } .club-footer { flex-wrap: wrap; gap: 16px; } .club-footer > span { flex-basis: 100%; } .rival { gap: 8px; font-size: 11px; } .rival img { width: 33px; height: 33px; } .rival small { font-size: 9px; }
  body .session-hud { left: 16px; top: 16px; width: calc(100% - 32px); } .session-brand { font-size: 11px; } .session-brand span { font-size: 9px; } .session-info { gap: 14px; font-size: 10px; margin-top: 12px; } .session-goal { margin-top: 8px; } .session-track { width: 160px; }
  body .top-bar { top: auto; bottom: 196px; right: 10px; gap: 2px; padding: 4px; border-radius: 8px; } body .top-bar .icon-btn,body .top-bar .settings-wrap .icon-btn { width: 28px; height: 28px; } body .settings-wrap { width: 28px; height: 28px; } body .toolbar-icon { width: 15px; height: 15px; }
  body .settings-popup { bottom: 44px; top: auto; right: 0; }
  body .table-oval { top: 42%; width: 81vw; height: 41vh; border-width: 10px; border-radius: 44%; } body .table-oval::before { inset: 14px; border-radius: 43%; } body .table-signature { display: none; }
  body .board { top: 48%; gap: 5px; } body .community-cards { gap: 3px; } body .community-cards .card { width: 33px; height: 47px; border-radius: 5px; } body .community-cards .card .corner-rank { font-size: 12px; } body .community-cards .card .corner-suit { font-size: 10px; } body .community-cards .card .main-suit { font-size: 20px; }
  body .pot-info { padding: 5px 15px; min-width: 100px; } body .pot-label { font-size: 7px; } body .pot-amount { font-size: 27px; } .street-progress { gap: 6px; font-size: 8px; } .street-progress span { min-width: 25px; padding-top: 4px; }
  body .seat { width: 82px; padding: 4px; } body .seat-avatar { width: 39px; height: 39px; margin-bottom: 3px; } body .seat .countdown-ring { top: 0; width: 47px; height: 47px; } body .seat-name { font-size: 10px; } body .seat-style { font-size: 7px; } body .seat-stack { font-size: 10px; padding: 2px 7px; } body .seat-cards .card { width: 19px; height: 27px; border-radius: 3px; } body .seat-cards { gap: 2px; margin-top: 4px; }
  body .seat.self { transform: translate(-50%,-22%); } body .seat.self .seat-avatar { display: none; } body .seat.self .countdown-ring { display: none; } body .seat.self .seat-cards .card { width: 38px; height: 52px; } body .seat.self .seat-style { display: none; }
  body .seat-bet { top: 85px; left: calc(50% + 20px); font-size: 8px; min-width: 20px; padding: 2px 4px; } body .seat-tag { right: 3px; top: -6px; } body .seat-tag > span { font-size: 8px; width: 18px; height: 18px; } body .seat-capsule { font-size: 8px; bottom: -13px; max-width: 90px; }
  body .dealer-log { font-size: 8px; max-width: 68%; bottom: 17%; }
  body .action-bar { bottom: max(10px,env(safe-area-inset-bottom)); width: calc(100% - 20px); padding: 12px; flex-direction: column; gap: 10px; border-radius: 12px; }
  body .hud-top { width: 100%; min-width: 0; border: none; padding: 0; } body .hud-side { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; } body .hand-hint { font-size: 10px; flex: 1; } body .equity-meter { width: 120px; } body .equity-label { font-size: 8px; }
  body .bet-console { width: 100%; gap: 8px; } body .bet-console .action-buttons-circle { height: 46px; gap: 6px; } body .bet-console .circle-btn,body .bet-console .circle-btn:hover:not(:disabled),body .bet-console .circle-btn:active:not(:disabled) { height: 46px; } body .bet-console .raise-presets-circle { height: 24px; } body .bet-console .chip-preset { height: 24px; font-size: 9px; }
  .decision-context { font-size: 9px; top: -22px; } body .pre-action-bar { bottom: 66px; font-size: 10px; white-space: nowrap; } body .hand-result-card { padding: 18px; } body .result-row { padding: 8px; } .session-result strong { font-size: 22px; }
}
@media (max-width: 380px) { .club-lobby { padding: 15px; } .career { width: 120px; } .hero-scene { opacity: .5; width: 135px; } .format-card { gap: 7px; } .format-card small { font-size: 9px; } .club-intro h1 { font-size: 27px; } }
@media (max-height: 560px) and (orientation: landscape) {
  body #table { min-height: 500px; position: relative; } body:has(#table:not([style*="display: none"])) { overflow-y: auto; } body .table-oval { height: 230px; top: 210px; width: 66vw; } body .session-hud { top: 12px; left: 14px; } body .action-bar { position: absolute; bottom: 8px; } body .top-bar { top: 12px; bottom: auto; } body .seat.self .seat-cards .card { width: 30px; height: 41px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .deal-in { opacity: 1 !important; }
}

/* Native-sized slider and quiet card placeholders replace the old image controls. */
body .raise-slider input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: #81966b50; border: 0; }
body .raise-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #ddc38a; border: 2px solid #f0dbaf; box-shadow: 0 0 0 3px #ddc38a15; }
body .raise-slider input[type=range] { -webkit-appearance: none; appearance: none; }
body .community-cards .card.back { background: #a9b99e0c; border: 1px dashed #d8e4c550; opacity: 1 !important; box-shadow: none; }
body .community-cards .card.back::before { content: "♠"; background: none; font: 25px Georgia,serif; color: #c8d4b333; display: grid; place-items: center; }
body .community-cards .card.back::after { content: none; }
body .seat-capsule { background: #1a2b21; border: 1px solid #91a17160; color: #d3d7b6; }
body .seat-capsule.cap-raise { color: #e3ce95; border-color: #c4a96a; }
body .seat-capsule.cap-fold { color: #bca399; border-color: #81685b; }
body .seat-capsule.cap-allin { color: #e1b6ae; border-color: #b6847c; }
@media (max-width: 760px) {
  body .top-bar { width: auto; right: 10px; bottom: 205px; }
  body .top-bar .icon-btn,body .top-bar .settings-wrap .icon-btn { width: 32px; height: 32px; }
  body .settings-wrap { width: 32px; height: 32px; }
  body .community-cards .card.back::before { font-size: 18px; }
}

body #nextHandBtn { margin: 14px 0 0; width: 100%; border-radius: 9px; position: static; }
body .result-row.self { border-color: #84a48566; background: #26473344; }
body .result-row.self .result-name { color: #d6dfbc; }
body .result-row .result-delta.gain { color: #acd3a7; }
body .result-row .result-delta.loss { color: #dca29b; }
body .stage-banner { font-size: 34px; letter-spacing: .2em; text-shadow: 0 4px 15px #0005; }

@media (max-width: 760px) {
  .club-lobby { padding-top: 16px; }
  .lobby-layout { padding: 20px 0; gap: 18px; }
  .club-intro { min-height: 124px; }
  .club-intro h1 { font-size: 26px; margin: 9px 0 6px; }
  .hero-scene { height: 135px; width: 140px; }
  .hero-scene img { height: 135px; width: 145px; }
  body #lobby .club-play { padding: 18px; }
  .play-heading .eyebrow { font-size: 8px; }
  .play-heading h2 { font-size: 20px; margin-top: 5px; }
  body .lobby-tabs { grid-template-columns: repeat(4,1fr); margin: 15px 0; padding-bottom: 10px; }
  body .lobby-tab { font-size: 10px; padding: 8px 2px; }
  .format-card { min-height: 68px; padding: 12px 10px; }
  .format-description { font-size: 9px; margin: 12px 0; }
  body .lobby-footer { margin-top: 13px; gap: 8px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  body:has(#table:not([style*="display: none"])) { overflow-y: auto; }
  body #table { position: relative; min-height: 760px; }
  body .table-oval { top: 36%; height: 310px; }
}

@media (max-width: 760px) {
  body #table:is([data-seat-count="7"],[data-seat-count="8"]) .seat:not(.self) .seat-cards,
  body #table:is([data-seat-count="7"],[data-seat-count="8"]) .seat:not(.self) .seat-style { display: none; }
  body #table:is([data-seat-count="7"],[data-seat-count="8"]) .seat:not(.self) .seat-avatar { width: 32px; height: 32px; }
  body #table:is([data-seat-count="7"],[data-seat-count="8"]) .seat:not(.self) .countdown-ring { width: 40px; height: 40px; }
  body #table:is([data-seat-count="7"],[data-seat-count="8"]) .seat:not(.self) .seat-bet { top: 56px; }
}

/* Lift the far seats above the rail so their cards do not cover the pot. */
body .seat.seat-north { transform: translate(-50%, -95%); }
@media (max-width: 760px) { body .seat.seat-north { transform: translate(-50%, -70%); } }
