:root {
  --bg: #0a1714;
  --panel: #132722;
  --panel-2: #19332c;
  --felt: #165f49;
  --felt-dark: #0d4938;
  --cream: #f7edcf;
  --muted: #aebeb6;
  --gold: #e9bf58;
  --red: #df655f;
  --green: #54c18a;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--cream); }
body { min-height: 100vh; background-image: radial-gradient(circle at 50% -20%, #245b4c 0, transparent 42%); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.hidden { display: none !important; }

.landing { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.hero-card { width: min(980px, 100%); padding: 42px; border: 1px solid rgba(255,255,255,.08); border-radius: 28px; background: rgba(15, 36, 31, .9); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.brand-mark { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 20px; background: var(--gold); color: #193127; font-size: 38px; box-shadow: 0 12px 32px rgba(233,191,88,.22); }
.eyebrow { margin: 0 0 7px; color: var(--gold); letter-spacing: .16em; font-size: 12px; font-weight: 800; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 8vw, 78px); line-height: .98; }
.subtitle { max-width: 650px; margin: 18px 0 32px; color: var(--muted); line-height: 1.7; }
.landing-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.panel { border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: rgba(255,255,255,.035); }
.form-panel { padding: 24px; }
.form-panel h2 { margin: 0 0 20px; font-size: 18px; }
.form-panel label { display: grid; gap: 8px; margin-bottom: 15px; color: var(--muted); font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
input { width: 100%; min-width: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; outline: none; padding: 12px 13px; background: #0c1e19; color: var(--cream); }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,191,88,.1); }
button { border: 0; border-radius: 11px; padding: 11px 16px; color: var(--cream); background: rgba(255,255,255,.08); font-weight: 700; }
button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.primary { background: var(--gold); color: #1c2c25; }
.secondary { background: var(--green); color: #10251d; }
.ghost { border: 1px solid rgba(255,255,255,.12); background: transparent; }
.danger-ghost { border: 1px solid rgba(223,101,95,.35); background: transparent; color: #f39a95; }
.text-button { padding: 5px; background: none; color: var(--muted); }
.form-panel > button { width: 100%; margin-top: 4px; }
.language-dock { position: fixed; z-index: 85; top: 14px; left: 16px; padding: 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(9,24,20,.86); box-shadow: 0 10px 30px rgba(0,0,0,.24); backdrop-filter: blur(12px); }
.language-dock select { width: auto; min-width: 132px; padding: 8px 34px 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #0c1e19; color: var(--cream); font-weight: 800; }
.account-dock { position: fixed; z-index: 80; top: 14px; right: 16px; display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(9,24,20,.86); box-shadow: 0 10px 30px rgba(0,0,0,.24); backdrop-filter: blur(12px); }
.account-dock button { padding: 8px 11px; font-size: 12px; }
.resume-box { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 13px 16px; border-radius: 14px; background: rgba(233,191,88,.08); color: var(--muted); }
.resume-box span { margin-right: auto; }
.auth-card { max-width: 900px; }
#bankBadge { padding: 5px 8px; border-radius: 99px; background: rgba(233,191,88,.12); color: var(--gold); font-weight: 800; }

.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 6, .72); backdrop-filter: blur(5px); }
.modal-card { position: relative; z-index: 1; width: min(620px, 100%); max-height: min(760px, calc(100vh - 36px)); overflow: auto; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; background: rgba(15,36,31,.98); box-shadow: var(--shadow); }
.profile-card { padding: 22px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.modal-head .eyebrow { margin-bottom: 4px; }
.modal-head h2 { margin: 0; font-size: 22px; }
.profile-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.profile-summary div { padding: 13px; border-radius: 12px; background: rgba(255,255,255,.055); }
.profile-summary span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.profile-summary strong { color: var(--cream); font-size: 18px; }
.profile-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.profile-section h3 { margin: 0 0 11px; color: var(--gold); font-size: 14px; }
.profile-request-form { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px; margin-bottom: 12px; }
.profile-request-form input { padding: 10px 11px; }
.profile-request-form button { padding: 9px 12px; }
.profile-requests { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.profile-request { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border-radius: 10px; background: rgba(255,255,255,.052); }
.profile-request strong { display: block; margin-bottom: 3px; color: var(--cream); font-size: 13px; }
.profile-request small { color: var(--muted); font-size: 11px; }
.profile-request span { flex: none; padding: 4px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.status-pending { background: rgba(233,191,88,.18); color: var(--gold); }
.status-approved { background: rgba(84,193,138,.18); color: #8be0b3; }
.status-rejected { background: rgba(223,101,95,.18); color: #f2a09c; }
.password-form label { display: grid; gap: 7px; margin-bottom: 11px; color: var(--muted); font-size: 12px; }
.password-form input { padding: 10px 11px; }
.password-form button { width: 100%; margin-top: 4px; }
.rebuy-quick { margin: 2px 0 10px; flex-wrap: wrap; }
.rebuy-quick button { width: auto; margin-top: 0; }

.game { height: 100vh; overflow: hidden; }
.topbar { height: 56px; display: flex; align-items: center; gap: 18px; padding: 0 330px 0 170px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(9,24,20,.9); backdrop-filter: blur(12px); }
.brand-small { display: flex; align-items: center; gap: 9px; }
.brand-small span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--gold); color: #193127; font-size: 20px; }
.room-info { display: flex; align-items: center; gap: 9px; margin: auto; color: var(--muted); font-size: 12px; }
.room-code { padding: 7px 10px; background: rgba(255,255,255,.08); color: var(--gold); letter-spacing: .15em; font-size: 15px; }
.status-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.status-dot.offline::before { background: var(--red); }
.top-actions { display: flex; gap: 8px; }
.top-actions button { padding: 8px 12px; font-size: 12px; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; height: calc(100vh - 56px); min-height: 0; }
.table-column { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; min-width: 0; min-height: 0; padding: 14px 16px 12px; overflow: hidden; }
.poker-table { position: relative; width: min(100%, 1080px); max-height: 100%; aspect-ratio: 1.95 / 1; min-height: 300px; margin: auto; border: 12px solid #513626; border-radius: 48%; background: var(--felt); box-shadow: inset 0 0 0 5px rgba(255,255,255,.08), inset 0 0 80px rgba(0,0,0,.25), var(--shadow); overflow: visible; }
.felt-texture { position: absolute; inset: 0; border-radius: inherit; opacity: .2; background-image: repeating-linear-gradient(45deg, transparent 0 7px, rgba(255,255,255,.035) 7px 8px); pointer-events: none; }
.table-center { position: absolute; inset: 31% 25%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; }
.phase-label { padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.2); color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .08em; }
.community-cards { display: flex; justify-content: center; gap: 7px; min-height: 82px; }
.community-cards.dealing .pending-deal { animation: pending-deal 1.5s ease-in-out infinite; }
.card { position: relative; width: clamp(38px, 4.5vw, 58px); aspect-ratio: .7; padding: 6px; border-radius: 8px; background: #fffdf4; color: #17211d; box-shadow: 0 5px 13px rgba(0,0,0,.28); font-family: Georgia, "Times New Roman", serif; font-weight: 800; }
.card.dealt { animation: deal-card .32s ease-out both; }
.card.winner-card { box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(233,191,88,.56), 0 5px 13px rgba(0,0,0,.28); transform: translateY(-4px); }
.card.red { color: #c94640; }
.card .rank { display: block; font-size: clamp(14px, 2vw, 21px); line-height: 1; text-align: left; }
.card .suit { position: absolute; right: 7px; bottom: 4px; font-size: clamp(20px, 3vw, 34px); }
.card.back { border: 3px solid #f8e9bd; background: repeating-linear-gradient(45deg, #263d76 0 5px, #36508c 5px 10px); }
.pot-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; background: rgba(9,25,20,.62); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.pot-chip span { color: var(--muted); font-size: 11px; }
.pot-chip strong { color: var(--gold); }
.deal-notice { width: min(220px, 80%); padding: 8px 11px; border: 1px solid rgba(233,191,88,.3); border-radius: 12px; background: rgba(9,25,20,.86); box-shadow: 0 10px 24px rgba(0,0,0,.22); color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.deal-progress { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.deal-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold); transition: width .05s linear; }
.last-action { min-height: 18px; max-width: 360px; color: rgba(255,255,255,.7); font-size: 12px; }

.seat { position: absolute; z-index: 2; width: 142px; transform: translate(-50%, -50%); }
.seat-box { position: relative; padding: 10px 10px 9px; border: 2px solid transparent; border-radius: 14px; background: rgba(8,24,19,.94); box-shadow: 0 7px 20px rgba(0,0,0,.28); transition: .2s ease; }
.seat.active .seat-box { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233,191,88,.16), 0 7px 20px rgba(0,0,0,.28); animation: active-seat 1s ease-in-out infinite; }
.seat.my-active .seat-box { border-color: #fff0a6; background: rgba(39,51,30,.98); box-shadow: 0 0 0 6px rgba(233,191,88,.28), 0 0 28px rgba(233,191,88,.35), 0 7px 20px rgba(0,0,0,.28); }
.seat.folded { opacity: .48; filter: grayscale(.4); }
.seat.disconnected .seat-box { border-style: dashed; }
.seat-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.seat-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.badge { flex: none; padding: 1px 5px; border-radius: 5px; background: var(--gold); color: #26362f; font-size: 9px; }
.badge.blind { background: #a9c8bc; }
.badge.ready { background: var(--green); color: #10251d; }
.badge.allin { background: var(--red); color: white; }
.badge.move { padding: 1px 5px; border-radius: 99px; color: #10251d; font-size: 9px; font-weight: 900; line-height: 1.45; }
.badge.move-check { background: #9fb2aa; }
.badge.move-call { background: #54c18a; }
.badge.move-raise { background: #e9bf58; }
.badge.move-fold { background: #df655f; color: white; }
.badge.move-allin { background: #f08a4b; color: #23140a; }
.badge.move-blind { background: #7fc0df; color: #0d2630; }
.seat-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.seat-bet { color: var(--gold); }
.hand-strength { margin-top: 5px; padding: 3px 7px; border-radius: 7px; background: rgba(255,255,255,.08); color: #dce9e3; font-size: 10px; font-weight: 800; text-align: center; }
.strength-0 { background: rgba(174,190,182,.14); color: #d7e2dd; }
.strength-1 { background: rgba(127,192,223,.18); color: #9ed8ef; }
.strength-2 { background: rgba(84,193,138,.18); color: #8be0b3; }
.strength-3 { background: rgba(90,166,232,.2); color: #9bcdf6; }
.strength-4 { background: rgba(233,191,88,.22); color: #f0cf75; }
.strength-5 { background: rgba(196,132,240,.2); color: #d9aff8; }
.strength-6 { background: rgba(240,138,75,.22); color: #ffb07c; }
.strength-7, .strength-8, .strength-revealed { background: rgba(223,101,95,.22); color: #f2a09c; }
.hole-cards { position: absolute; left: 50%; bottom: calc(100% - 2px); display: flex; transform: translateX(-50%); }
.hole-cards .card { width: 38px; border-radius: 6px; }
.hole-cards .card + .card { margin-left: -10px; transform: rotate(5deg); }
.hole-cards .card:first-child { transform: rotate(-5deg); }
.hole-cards .card.winner-card { z-index: 2; transform: translateY(-5px) rotate(-5deg); }
.hole-cards .card.winner-card + .card.winner-card { transform: translateY(-5px) rotate(5deg); }
.seat-status { position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); white-space: nowrap; padding: 3px 7px; border-radius: 99px; background: rgba(0,0,0,.35); color: #d7e4df; font-size: 9px; }
.chat-bubble { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 42px); width: max-content; max-width: 180px; transform: translateX(-50%); padding: 8px 10px; border-radius: 12px; background: #f7edcf; color: #17211d; box-shadow: 0 10px 24px rgba(0,0,0,.28); font-size: 12px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; animation: chat-bubble .18s ease-out both; }
.chat-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); background: inherit; }

.result-panel { width: min(100%, 920px); margin: 10px auto 0; padding: 12px 16px; border: 1px solid rgba(233,191,88,.22); border-radius: 16px; background: rgba(233,191,88,.08); }
.result-panel h3 { margin: 0 0 8px; color: var(--gold); font-size: 15px; }
.result-list { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #e9efe9; font-size: 13px; }

.control-panel { position: sticky; bottom: 0; z-index: 20; width: min(100%, 920px); min-height: 92px; margin: 10px auto 0; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(19,39,34,.98); box-shadow: 0 12px 30px rgba(0,0,0,.24); }
.waiting-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 92px; padding: 14px 16px; }
.waiting-controls p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.control-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.action-controls { padding: 12px 14px 14px; }
.action-controls.attention { animation: action-panel 1s ease-in-out infinite; border-radius: 16px; }
.turn-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.turn-meta span { color: var(--gold); font-size: 11px; }
.turn-meta strong { display: block; margin-top: 2px; font-size: 14px; }
.timer { display: flex; align-items: center; gap: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timer-track { width: 100px; height: 5px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.1); }
.timer-track i { display: block; width: 100%; height: 100%; background: var(--gold); transition: width .2s linear; }
.action-row { display: grid; grid-template-columns: 110px 140px minmax(300px, 1fr); gap: 9px; }
.action { min-height: 48px; font-size: 15px; }
.action.fold { background: rgba(223,101,95,.15); color: #f39a95; }
.action.call { background: var(--green); color: #10251d; }
.raise-box { display: grid; grid-template-columns: minmax(150px, 1fr) auto 100px; align-items: center; gap: 8px; }
.raise-inputs { display: grid; grid-template-columns: 1fr 88px; gap: 7px; }
.raise-inputs input { padding: 8px; }
input[type="range"] { accent-color: var(--gold); }
.quick-raises { display: flex; gap: 4px; }
.quick-raises button { padding: 7px 8px; color: var(--muted); font-size: 10px; }
.action.raise { min-height: 48px; background: var(--gold); color: #1d3028; }

.side-panel { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid rgba(255,255,255,.07); background: #0d1e1a; overflow: hidden; }
.tabs { display: flex; padding: 13px 13px 0; }
.tab { flex: 1; border-radius: 9px 9px 0 0; background: transparent; color: var(--muted); font-size: 12px; }
.tab.active { background: var(--panel); color: var(--cream); }
.tab-view { display: none; flex: 1; min-height: 0; flex-direction: column; background: var(--panel); }
.tab-view.active { display: flex; }
.messages { flex: 1; min-height: 300px; overflow-y: auto; padding: 15px; }
.message { margin-bottom: 13px; }
.message-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.message-head strong { font-size: 12px; }
.message-head time { color: #71867d; font-size: 9px; }
.message p { margin: 0; color: #ced9d4; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 7px; padding: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.chat-form input { padding: 10px; }
.chat-form button { padding: 8px 11px; background: var(--gold); color: #1d3028; }
.log-item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 5px 8px; margin: 0 0 8px; padding: 8px 10px 8px 12px; border-left: 4px solid rgba(255,255,255,.16); border-radius: 8px; color: #d6e2dc; font-size: 11px; line-height: 1.45; }
.log-item::before { content: ""; position: absolute; left: -6px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(0,0,0,.2); }
.log-item.phase-start { margin-top: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.log-phase-badge { grid-row: 1 / span 2; align-self: start; min-width: 44px; padding: 2px 6px; border-radius: 99px; background: rgba(0,0,0,.24); color: currentColor; text-align: center; font-size: 9px; font-weight: 800; }
.log-text { min-width: 0; overflow-wrap: anywhere; }
.log-item time { grid-column: 2; color: rgba(215,228,223,.58); font-size: 9px; }
.log-phase-lobby { border-left-color: #6f8179; background: rgba(111,129,121,.12); color: #b8cac2; }
.log-phase-preflop { border-left-color: #e9bf58; background: rgba(233,191,88,.13); color: #f1d37a; }
.log-phase-flop { border-left-color: #54c18a; background: rgba(84,193,138,.13); color: #8be0b3; }
.log-phase-turn { border-left-color: #5aa6e8; background: rgba(90,166,232,.13); color: #9bcdf6; }
.log-phase-river { border-left-color: #c484f0; background: rgba(196,132,240,.14); color: #d9aff8; }
.log-phase-showdown, .log-phase-hand_over { border-left-color: #df655f; background: rgba(223,101,95,.14); color: #f2a09c; }
.hand-rankings { display: flex; flex-direction: column; gap: 8px; }
.hand-rank { display: grid; gap: 7px; padding: 10px 12px; border-left: 4px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.055); }
.hand-rank strong { color: var(--cream); font-size: 13px; }
.hand-rank span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.hand-rank.selected { position: relative; border-left-color: var(--gold); background: rgba(233,191,88,.14); box-shadow: inset 0 0 0 1px rgba(233,191,88,.18); }
.hand-rank.selected::after { content: attr(data-current-label); position: absolute; top: 9px; right: 10px; padding: 3px 7px; border-radius: 99px; background: var(--gold); color: #1d3028; font-size: 10px; font-weight: 900; }
.hand-rank.low { opacity: .82; }
.hand-example { display: flex; gap: 4px; }
.hand-rank .card.mini { width: 34px; flex: none; padding: 5px; border-radius: 6px; box-shadow: 0 3px 8px rgba(0,0,0,.24); color: #17211d; }
.hand-rank .card.mini.red { color: #c94640; }
.card.mini .rank { color: inherit; font-size: 13px; }
.card.mini .suit { right: 5px; bottom: 3px; color: inherit; font-size: 18px; }
.admin-panel h3 { margin: 12px 0 8px; color: var(--gold); font-size: 13px; }
#adminModal .modal-card { width: min(760px, 100%); }
.admin-row { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; align-items: center; margin-bottom: 8px; padding: 9px; border-radius: 8px; background: rgba(255,255,255,.055); }
.admin-row strong { font-size: 12px; }
.admin-row span, .admin-row small { color: var(--muted); font-size: 11px; }
.admin-row input { width: 74px; padding: 7px; }
.admin-row button { padding: 7px 9px; font-size: 11px; }
.ledger-row { margin-bottom: 6px; padding: 7px 9px; border-radius: 7px; background: rgba(0,0,0,.16); color: #cbd8d2; font-size: 11px; }

.toast { position: fixed; z-index: 100; left: 50%; top: 18px; transform: translate(-50%, -20px); padding: 10px 16px; border-radius: 10px; background: #f4ead1; color: #1d2d27; box-shadow: var(--shadow); font-size: 13px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: #f6c0bd; color: #5e1d19; }

@media (max-width: 1000px) {
  .game { height: auto; min-height: 100vh; overflow: visible; }
  .game-layout { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 56px); }
  .side-panel { min-height: 320px; border-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
  .poker-table { min-height: 330px; }
  .messages { max-height: 330px; }
}

@media (max-width: 720px) {
  .account-dock { top: 8px; right: 8px; max-width: calc(100vw - 16px); }
  .language-dock { top: 8px; left: 8px; }
  .language-dock select { min-width: 104px; max-width: 32vw; }
  .account-dock button { padding: 7px 9px; }
  .profile-card { padding: 18px; }
  .profile-summary { grid-template-columns: 1fr; }
  .profile-request { align-items: flex-start; flex-direction: column; }
  .landing { padding: 14px; }
  .hero-card { padding: 25px 18px; border-radius: 20px; }
  .landing-grid { grid-template-columns: 1fr; }
  .profile-request-form { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row label:first-child { grid-column: 1 / -1; }
  .topbar { height: auto; min-height: 52px; flex-wrap: wrap; padding: 52px 10px 8px; gap: 8px; }
  .brand-small strong { display: none; }
  .room-info { order: 2; margin-left: auto; }
  .top-actions { order: 3; width: 100%; }
  .top-actions button { flex: 1; }
  .game-layout { min-height: calc(100vh - 92px); }
  .table-column { padding: 8px 6px 0; }
  .poker-table { width: 100%; min-height: 310px; aspect-ratio: 1 / 1.04; border-width: 8px; border-radius: 43%; }
  .table-center { inset: 34% 13%; gap: 6px; }
  .seat { width: 104px; }
  .seat-box { padding: 7px; }
  .seat-name strong { font-size: 11px; }
  .badge { font-size: 8px; }
  .seat-meta { font-size: 9px; }
  .hand-strength { padding: 2px 5px; font-size: 9px; }
  .hole-cards .card { width: 31px; }
  .community-cards { gap: 3px; min-height: 60px; }
  .card { width: 36px; padding: 5px; }
  .card .suit { font-size: 22px; }
  .control-panel { width: calc(100% + 12px); margin-left: -6px; margin-right: -6px; border-radius: 14px 14px 0 0; }
  .waiting-controls { align-items: flex-start; flex-direction: column; }
  .control-buttons { justify-content: flex-start; }
  .action-row { grid-template-columns: 1fr 1fr; }
  .raise-box { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .quick-raises { justify-content: stretch; }
  .quick-raises button { flex: 1; }
  .raise-inputs { grid-template-columns: 1fr 84px; }
}
.card-slot { width: clamp(42px, 5vw, 62px); aspect-ratio: .7; border: 1px dashed rgba(255,255,255,.18); border-radius: 8px; background: rgba(0,0,0,.06); }
@media (max-width: 720px) { .card-slot { width: 36px; } }

@keyframes active-seat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes action-panel {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(233,191,88,0); }
  50% { box-shadow: inset 0 0 0 3px rgba(233,191,88,.35); }
}

@keyframes deal-card {
  from { opacity: 0; transform: translateY(-18px) rotate(-5deg) scale(.92); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes chat-bubble {
  from { opacity: 0; transform: translate(-50%, 8px) scale(.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes pending-deal {
  0%, 100% { transform: translateY(0) rotate(-2deg); filter: brightness(.9); }
  50% { transform: translateY(-8px) rotate(2deg); filter: brightness(1.18); }
}
