/* 德州扑克样式 v25 - 沉浸音频 + 克制牌桌 + 语义动效 */
* { margin:0; padding:0; box-sizing:border-box; }

html, body {
    width:100%; height:100%; overflow:hidden;
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'PingFang SC',sans-serif;
    background:radial-gradient(ellipse at 50% 0%, #122a4a 0%, #0a1628 60%, #060d1a 100%);
    color:#fff;
    -webkit-tap-highlight-color:transparent;
}
body { display:flex; flex-direction:column; }

.screen { display:none; width:100%; flex:1; min-height:0; flex-direction:column; }
.screen.active { display:flex; animation:fadeIn .3s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* ========== 顶部栏 ========== */
.top-bar {
    display:flex; align-items:center; padding:8px 14px;
    background:rgba(0,0,0,.35); backdrop-filter:blur(10px);
    gap:10px; flex-shrink:0; height:46px;
    border-bottom:1px solid rgba(255,255,255,.06);
    z-index:20;
}
.top-title { font-size:15px; font-weight:700; letter-spacing:.5px; }
.top-info { font-size:12px; color:#8899aa; margin-left:auto; }

.game-status {
    padding:2px 10px; border-radius:10px; font-size:11px;
    background:rgba(255,255,255,.1); color:#aaa; transition:all .3s;
}
.game-status.active { background:linear-gradient(135deg,#4CAF50,#2E7D32); color:#fff; box-shadow:0 0 10px rgba(76,175,80,.5); }

.btn-back, .btn-icon {
    background:rgba(255,255,255,.1); border:none; color:#fff;
    padding:6px 12px; border-radius:8px; cursor:pointer; font-size:12px;
    transition:all .15s; flex-shrink:0;
}
.btn-icon { font-size:15px; padding:5px 9px; }
.btn-back:hover, .btn-icon:hover { background:rgba(255,255,255,.22); transform:translateY(-1px); }
.btn-back:active, .btn-icon:active { transform:scale(.94); }

.btn-close-game {
    background:rgba(244,67,54,.18); border:1px solid rgba(244,67,54,.45);
    color:#ff8a80; padding:6px 12px; border-radius:8px; cursor:pointer;
    font-size:11px; flex-shrink:0; transition:all .15s;
}
.btn-close-game:hover { background:rgba(244,67,54,.4); color:#fff; }

/* ========== 加入界面 ========== */
#join-screen {
    justify-content:center; align-items:center;
    background:
        radial-gradient(circle at 20% 30%, rgba(76,175,80,.12), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(33,150,243,.12), transparent 40%),
        linear-gradient(135deg,#0a1628 0%,#123524 50%,#0a1628 100%);
}
.join-container {
    text-align:center; padding:38px 34px;
    background:rgba(255,255,255,.06); border-radius:20px;
    border:1px solid rgba(255,255,255,.12);
    backdrop-filter:blur(20px);
    max-width:400px; width:90%;
    box-shadow:0 20px 60px rgba(0,0,0,.5);
    animation:popIn .45s cubic-bezier(.2,1.2,.4,1);
}
@keyframes popIn { from{opacity:0; transform:translateY(24px) scale(.96)} to{opacity:1; transform:none} }

.join-cards { position:relative; height:56px; margin-bottom:6px; }
.jc {
    position:absolute; top:0; width:42px; height:56px; border-radius:7px;
    background:#fff; font-weight:800; font-size:20px;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 6px 16px rgba(0,0,0,.4);
}
.jc-a { left:calc(50% - 44px); color:#212121; transform:rotate(-12deg); animation:floatL 3s ease-in-out infinite; }
.jc-b { left:calc(50% + 2px); color:#d32f2f; transform:rotate(10deg); animation:floatR 3s ease-in-out infinite; }
@keyframes floatL { 0%,100%{transform:rotate(-12deg) translateY(0)} 50%{transform:rotate(-12deg) translateY(-7px)} }
@keyframes floatR { 0%,100%{transform:rotate(10deg) translateY(0)} 50%{transform:rotate(10deg) translateY(-7px)} }

.join-container h1 { font-size:27px; margin-bottom:4px; background:linear-gradient(90deg,#ffd700,#fff,#ffd700); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.join-subtitle { color:#8899aa; margin-bottom:22px; font-size:12px; }
.join-form { display:flex; flex-direction:column; gap:10px; }
.join-form input {
    padding:13px 14px; border-radius:10px;
    border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08);
    color:#fff; font-size:14px; outline:none; text-align:center; transition:all .2s;
}
.join-form input:focus { border-color:#4CAF50; box-shadow:0 0 0 3px rgba(76,175,80,.18); }

.btn-primary {
    padding:13px 22px; border-radius:10px; border:none;
    background:linear-gradient(135deg,#4CAF50,#2E7D32);
    color:#fff; font-size:14px; font-weight:700; cursor:pointer;
    transition:all .15s; box-shadow:0 4px 14px rgba(76,175,80,.35);
}
.btn-primary:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(76,175,80,.5); }
.btn-primary:active { transform:scale(.97); }

.error-msg { color:#ff6b6b; margin-top:8px; min-height:16px; font-size:12px; }
.join-info { margin-top:22px; text-align:left; display:flex; flex-direction:column; gap:9px; }
.info-item { display:flex; align-items:center; gap:8px; font-size:11px; color:#99aabb; }
.info-icon { font-size:14px; }

/* ========== 游戏主区域 ========== */
.game-main { flex:1; display:flex; min-height:0; overflow:hidden; }

/* ========== 侧边面板 ========== */
.side-panel {
    display:flex; flex-direction:column;
    background:rgba(0,0,0,.28); flex-shrink:0; overflow-y:auto;
}
.side-left { width:218px; padding:12px; border-right:1px solid rgba(255,255,255,.07); }
.side-right {
    width:232px; border-left:1px solid rgba(255,255,255,.07);
    overflow:hidden; position:relative;
    transition:width .25s ease, border-color .25s ease;
}
/* 电脑端收起右侧聊天栏 */
body.chat-collapsed .side-right { width:0 !important; min-width:0; border-left-color:transparent; }
body.chat-collapsed .side-right .chat-panel-inner { opacity:0; }

/* 顶部聊天按钮未读红点 */
.btn-chat-top { position:relative; }
.chat-unread {
    position:absolute; top:-5px; right:-5px;
    min-width:16px; height:16px; padding:0 4px;
    background:#f44336; color:#fff; border-radius:8px;
    font-size:10px; font-weight:800; line-height:16px; text-align:center;
    box-shadow:0 0 0 2px #0a1628;
}

.player-summary {
    background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px; padding:11px; margin-bottom:12px;
}
.summary-row { display:flex; justify-content:space-between; align-items:center; padding:3px 0; font-size:12px; }
.summary-label { color:#8899aa; }
.summary-value { font-weight:700; }
.summary-value.chips { color:#ffd700; }
.summary-value.debt { color:#ff8a80; }
.side-cards { display:flex; gap:4px; min-height:34px; align-items:center; }

.btn-bank-inline {
    width:100%; margin-top:8px; padding:7px; border-radius:8px;
    border:1px solid rgba(255,215,0,.35); background:rgba(255,215,0,.1);
    color:#ffd700; font-size:11px; font-weight:600; cursor:pointer; transition:all .15s;
}
.btn-bank-inline:hover { background:rgba(255,215,0,.2); }

.action-area { flex:1; }

/* 思考倒计时 */
.turn-timer {
    display:flex; align-items:center; gap:8px; margin-bottom:10px;
    background:rgba(0,0,0,.25); border-radius:8px; padding:6px 9px;
}
.timer-bar { flex:1; height:6px; background:rgba(255,255,255,.12); border-radius:3px; overflow:hidden; }
.timer-fill {
    height:100%; width:100%; border-radius:3px;
    background:linear-gradient(90deg,#4CAF50,#8BC34A);
    transition:width .9s linear, background .3s;
}
.timer-fill.warn { background:linear-gradient(90deg,#FF9800,#FFC107); }
.timer-fill.danger { background:linear-gradient(90deg,#f44336,#ff5722); animation:timerBlink .6s infinite; }
@keyframes timerBlink { 50%{opacity:.55} }
#timer-text { font-size:12px; font-weight:700; min-width:24px; text-align:right; }
.turn-timer-mini { font-size:11px; font-weight:700; color:#ffd700; }

.action-buttons { display:flex; flex-direction:column; gap:7px; }
.action-row { display:flex; gap:7px; }
.action-row .btn-action { flex:1; }

.btn-action {
    padding:11px; border-radius:9px; border:none; color:#fff;
    font-size:13px; font-weight:700; cursor:pointer; width:100%; text-align:center;
    transition:transform .1s, filter .15s, opacity .2s;
    box-shadow:0 3px 10px rgba(0,0,0,.3);
}
.btn-action:hover:not(:disabled) { filter:brightness(1.15); transform:translateY(-1px); }
.btn-action:active:not(:disabled) { transform:scale(.96); }
.btn-action:disabled { opacity:.28; cursor:not-allowed; box-shadow:none; }

.btn-fold { background:linear-gradient(135deg,#ef5350,#c62828); }
.btn-check { background:linear-gradient(135deg,#42A5F5,#1565C0); }
.btn-call { background:linear-gradient(135deg,#66BB6A,#2E7D32); }
.btn-raise { background:linear-gradient(135deg,#FFA726,#E65100); }
.btn-allin { background:linear-gradient(135deg,#AB47BC,#6A1B9A); }

.raise-control { display:flex; flex-direction:column; gap:6px; background:rgba(255,255,255,.05); padding:8px; border-radius:9px; }
.raise-line { display:flex; gap:6px; align-items:center; }
.raise-control input[type="range"] { flex:1; accent-color:#FF9800; }
.raise-control input[type="number"] {
    width:64px; padding:6px; border-radius:6px;
    border:1px solid rgba(255,255,255,.2); background:rgba(0,0,0,.3);
    color:#fff; font-size:13px; text-align:center;
}

/* 快捷下注按钮 */
.quick-bets { display:flex; gap:5px; }
.btn-quick-bet {
    flex:1; padding:5px 0; border-radius:6px; border:1px solid rgba(255,152,0,.4);
    background:rgba(255,152,0,.12); color:#FFB74D; font-size:11px; font-weight:800;
    cursor:pointer; transition:all .15s; letter-spacing:.5px;
}
.btn-quick-bet:hover { background:rgba(255,152,0,.28); border-color:#FF9800; color:#fff; transform:translateY(-1px); }
.btn-quick-bet:active { transform:scale(.95); }

/* 轮到自己时操作区高亮 */
.action-buttons.my-turn {
    background:linear-gradient(135deg,rgba(255,215,0,.08),rgba(255,152,0,.05));
    border:1px solid rgba(255,215,0,.3); border-radius:10px;
    box-shadow:0 0 20px rgba(255,215,0,.15);
    animation:myTurnGlow 1.5s ease-in-out infinite;
}
@keyframes myTurnGlow {
    0%,100%{box-shadow:0 0 12px rgba(255,215,0,.1)}
    50%{box-shadow:0 0 24px rgba(255,215,0,.25)}
}

/* Toast 提示 */
#toast-msg {
    position:fixed; top:60px; left:50%; transform:translateX(-50%) translateY(-20px);
    background:rgba(244,67,54,.95); color:#fff; padding:10px 22px; border-radius:10px;
    font-size:13px; font-weight:700; z-index:99999; opacity:0; pointer-events:none;
    transition:all .3s ease; box-shadow:0 4px 20px rgba(0,0,0,.4); max-width:80%; text-align:center;
}
#toast-msg.show { opacity:1; transform:translateX(-50%) translateY(0); }

.ready-panel { display:none; text-align:center; padding:10px 0; }
.ready-panel.active { display:block; animation:fadeIn .3s; }

/* 旁观/等待下一手面板 */
.waiting-panel {
    display:none; text-align:center; padding:16px 12px;
    background:linear-gradient(135deg,rgba(255,193,7,.12),rgba(255,152,0,.06));
    border:1px solid rgba(255,193,7,.25); border-radius:10px;
    animation:fadeIn .3s;
}
.waiting-panel.active { display:block; }
.waiting-icon { font-size:28px; margin-bottom:4px; animation:waitingPulse 1.6s ease-in-out infinite; }
@keyframes waitingPulse { 0%,100%{transform:scale(1);opacity:.8} 50%{transform:scale(1.15);opacity:1} }
.waiting-text { font-size:14px; font-weight:800; color:#FFC107; margin-bottom:2px; }
.waiting-sub { font-size:10px; color:#99a; line-height:1.4; }
.spectator-ready-btn {
    margin-top:10px; padding:8px 18px; border-radius:8px; border:1px solid rgba(255,193,7,.4);
    background:rgba(255,193,7,.12); color:#FFC107; font-size:12px; font-weight:700;
    cursor:pointer; transition:all .15s;
}
.spectator-ready-btn:hover:not(:disabled) { background:rgba(255,193,7,.22); }
.spectator-ready-btn:disabled { opacity:.5; cursor:not-allowed; }
.spectator-ready-btn.ready {
    background:linear-gradient(135deg,#4CAF50,#2E7D32); color:#fff;
    border-color:#4CAF50;
}
.btn-ready-btn {
    padding:13px 30px; border-radius:11px; border:none;
    background:linear-gradient(135deg,#4CAF50,#2E7D32); color:#fff;
    font-size:15px; font-weight:800; cursor:pointer; width:100%;
    transition:all .15s; box-shadow:0 4px 16px rgba(76,175,80,.4);
}
.btn-ready-btn:hover { filter:brightness(1.12); }
.btn-ready-btn:active { transform:scale(.97); }
.btn-ready-btn.ready { background:linear-gradient(135deg,#ef5350,#c62828); box-shadow:0 4px 16px rgba(244,67,54,.4); }
#ready-info,#next-hand-info,#ready-info-m,#next-hand-info-m { display:block; margin-top:8px; font-size:12px; color:#81C784; }

/* ========== 牌桌 ========== */
.poker-table-container {
    flex:1; display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    padding:10px; min-width:0; min-height:0; position:relative;
}
.table-info-bar {
    display:flex; align-items:center; gap:14px; padding:4px 12px;
    font-size:12px; color:#aabbcc; margin-bottom:8px; flex-shrink:0;
}
.poker-table {
    width:100%; max-width:760px; flex:1; max-height:100%;
    position:relative;
    background:radial-gradient(ellipse at center,#1e7a26 0%,#15641c 55%,#0b3d11 100%);
    border-radius:50%/42%;
    border:10px solid #6d4c41;
    box-shadow:
        inset 0 0 50px rgba(0,0,0,.45),
        inset 0 2px 8px rgba(255,255,255,.08),
        0 10px 35px rgba(0,0,0,.55),
        0 0 0 3px #4e342e;
    min-height:210px;
}
.felt-ring {
    position:absolute; inset:14px; border-radius:50%/42%;
    border:2px dashed rgba(255,255,255,.08); pointer-events:none;
}

.community-area { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; z-index:5; width:90%; }
.community-cards { display:flex; gap:5px; justify-content:center; margin-bottom:8px; min-height:52px; }
.pot-display {
    background:rgba(0,0,0,.5); padding:5px 14px; border-radius:16px;
    display:inline-flex; align-items:center; gap:5px; font-size:13px;
    border:1px solid rgba(255,215,0,.25);
}
.pot-icon { display:inline-block; }
.pot-label { color:#ffd700; }
#pot-amount { font-weight:800; }
.pot-bump { animation:potBump .4s ease; }
@keyframes potBump { 30%{transform:scale(1.18)} }
.game-message { margin-top:6px; font-size:11px; color:#c5d6c5; min-height:14px; }

/* 座位 */
.player-seats { position:absolute; width:100%; height:100%; top:0; left:0; }
.player-seat {
    position:absolute; width:92px; text-align:center;
    transform:translate(-50%,-50%); z-index:10;
    transition:opacity .3s;
}
.player-seat.empty { opacity:.28; }
.player-avatar {
    width:40px; height:40px; border-radius:50%;
    background:linear-gradient(135deg,#667eea,#764ba2);
    display:flex; align-items:center; justify-content:center;
    font-size:17px; margin:0 auto 2px; border:2px solid transparent;
    position:relative; transition:all .25s;
}
.player-seat.is-me .player-avatar { border-color:#4CAF50; box-shadow:0 0 10px rgba(76,175,80,.4); }
.player-seat.current-turn { z-index:15; }
.player-seat.current-turn .player-avatar {
    border-color:#ffd700; box-shadow:0 0 18px rgba(255,215,0,.9);
    animation:turnPulse .8s infinite; transform:scale(1.15);
}
.player-seat.current-turn .player-name {
    color:#ffd700; font-weight:800; text-shadow:0 0 8px rgba(255,215,0,.6);
}
.player-seat.current-turn::after { display:none; }
@keyframes turnPulse {
    0%,100%{box-shadow:0 0 12px rgba(255,215,0,.7); transform:scale(1.12)}
    50%{box-shadow:0 0 28px rgba(255,215,0,1); transform:scale(1.18)}
}
@keyframes turnBadgeBounce {
    0%,100%{transform:translateX(-50%) translateY(0)}
    50%{transform:translateX(-50%) translateY(-2px)}
}
.player-seat.folded { opacity:.4; }
.player-seat.folded .player-avatar { filter:grayscale(.8); }
.player-seat.allin .player-avatar { border-color:#ff5722; box-shadow:0 0 12px rgba(255,87,34,.6); }
.player-seat.waiting { opacity:.65; }
.player-seat.waiting .player-avatar { filter:grayscale(.5); border-style:dashed; }
.waiting-badge {
    display:inline-block; margin-top:2px; padding:1px 6px;
    background:rgba(255,193,7,.15); color:#FFC107;
    border:1px solid rgba(255,193,7,.3); border-radius:8px;
    font-size:8px; font-weight:700; white-space:nowrap;
}
.player-seat.winner .player-avatar {
    border-color:#ffd700; animation:winnerGlow 1s ease-in-out infinite;
}
@keyframes winnerGlow {
    0%,100%{box-shadow:0 0 12px rgba(255,215,0,.7); transform:scale(1)}
    50%{box-shadow:0 0 28px rgba(255,215,0,1); transform:scale(1.08)}
}

.dealer-btn {
    position:absolute; top:-4px; right:-4px; width:19px; height:19px;
    background:linear-gradient(135deg,#fff,#ddd); color:#000; border-radius:50%;
    font-size:9px; font-weight:900; display:flex; align-items:center; justify-content:center;
    border:2px solid #333;
}
.player-name { font-size:10px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:92px; text-shadow:0 1px 2px #000; }
.player-chips { font-size:9px; color:#ffd700; background:rgba(0,0,0,.55); padding:1px 7px; border-radius:8px; display:inline-block; margin-top:1px; }
.player-bet {
    font-size:9px; color:#fff; margin-top:2px; min-height:13px; font-weight:700;
}
.player-bet:not(:empty) { animation:betPop .3s ease; }
@keyframes betPop { from{transform:translateY(6px); opacity:0} to{transform:none; opacity:1} }
.player-action { font-size:8px; font-weight:700; min-height:10px; }
.player-action:empty { display:none; }
.player-cards { display:flex; gap:2px; justify-content:center; margin-top:3px; min-height:30px; }

/* ========== v28 全桌发牌演出：中央牌堆、两轮逐张发牌、本人座位翻明后同步摘要 ========== */
.dealer-deck {
    position:absolute; left:50%; top:50%; width:34px; height:48px; z-index:18;
    transform:translate(-50%,-50%) rotate(-4deg); border-radius:5px;
    background:linear-gradient(145deg,#1c5b88,#0a2b49 65%,#071a2d);
    border:1px solid rgba(184,220,241,.78);
    box-shadow:3px 3px 0 #09233b,6px 6px 0 #061624,0 9px 22px rgba(0,0,0,.45);
    pointer-events:none;
}
.dealer-deck::after,.deal-flight-card::after {
    content:'♠'; position:absolute; inset:4px; display:grid; place-items:center;
    border:1px solid rgba(255,255,255,.18); border-radius:3px; color:rgba(255,255,255,.5); font-size:15px;
}
.deal-flight-card {
    position:absolute; left:50%; top:50%; width:28px; height:39px; z-index:40;
    margin:-20px 0 0 -14px; border-radius:5px; pointer-events:none;
    background:linear-gradient(145deg,#1c5b88,#0a2b49 65%,#071a2d);
    border:1px solid rgba(184,220,241,.82); box-shadow:0 7px 15px rgba(0,0,0,.42);
    opacity:0; transform:translate3d(0,0,0) rotate(-5deg) scale(.86);
    will-change:transform,opacity;
}
.deal-flight-card.flying { animation:dealToSeat var(--deal-duration,500ms) cubic-bezier(.18,.74,.24,1) forwards; }
@keyframes dealToSeat {
    0%{opacity:0;transform:translate3d(0,0,0) rotate(-5deg) scale(.86)}
    12%{opacity:1}
    72%{opacity:1;transform:translate3d(calc(var(--deal-x)*.92),calc(var(--deal-y)*.92),0) rotate(var(--deal-r)) scale(1.02)}
    100%{opacity:0;transform:translate3d(var(--deal-x),var(--deal-y),0) rotate(var(--deal-r)) scale(.74)}
}
.card.tiny.seat-hole-reveal { animation:seatHoleReveal .48s cubic-bezier(.2,.82,.25,1.08) both; backface-visibility:hidden; }
@keyframes seatHoleReveal {
    0%{opacity:.35;transform:rotateY(90deg) scale(.86);filter:brightness(.75)}
    58%{opacity:1;transform:rotateY(-8deg) scale(1.08);filter:brightness(1.18)}
    100%{opacity:1;transform:none;filter:none}
}
.card.mine.summary-arrive { opacity:0; animation:summaryCardArrive .48s cubic-bezier(.18,.82,.22,1) both; }
.card.mine.summary-arrive-2 { animation-delay:.08s; }
@keyframes summaryCardArrive {
    0%{opacity:0;transform:translateY(14px) scale(.88);filter:brightness(.72)}
    65%{opacity:1;transform:translateY(-2px) scale(1.04);filter:brightness(1.12)}
    100%{opacity:1;transform:none;filter:none}
}

/* 扑克牌：公牌最大、自己手牌次大、他人最小 */
.card {
    width:32px; height:44px; background:#fff; border-radius:5px;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    font-weight:800; font-size:12px; line-height:1; box-shadow:0 3px 6px rgba(0,0,0,.45);
    animation:dealIn .4s cubic-bezier(.2,1.1,.4,1);
    position:relative;
}
.card-rank { font-size:1.05em; line-height:1; }
.card-suit { font-size:.92em; line-height:1; margin-top:2px; }
@keyframes dealIn { from{opacity:0; transform:translateY(-18px) scale(.7) rotate(8deg)} to{opacity:1; transform:none} }
.card.red { color:#d32f2f; }
.card.black { color:#212121; }
.card.back { background:linear-gradient(135deg,#1565C0,#0D47A1); color:transparent; overflow:hidden; }
.card.back::after { content:'♠'; position:absolute; color:rgba(255,255,255,.35); font-size:1.15em; }
/* 公共牌（桌面中央，最大） */
.card.community { width:54px; height:74px; font-size:23px; border-radius:6px; }
/* 自己的手牌 */
.card.mine { width:44px; height:61px; font-size:19px; border-radius:6px; }
/* 结算弹窗摊牌 */
.card.small { width:30px; height:42px; font-size:13px; }
/* 其他玩家座位牌（最小） */
.card.tiny { width:20px; height:28px; font-size:10px; animation-duration:.3s; border-radius:3px; }
.card.tiny .card-suit { margin-top:1px; }
.card.win-card { box-shadow:0 0 12px 2px rgba(255,215,0,.9); animation:winCard .8s ease-in-out infinite; }
@keyframes winCard { 50%{transform:translateY(-4px)} }

/* ========== 聊天 ========== */
.chat-panel-inner {
    position:absolute; inset:0;
    display:flex; flex-direction:column;
    width:100%; height:100%;
}
.chat-header { padding:11px 13px; font-size:13px; font-weight:700; border-bottom:1px solid rgba(255,255,255,.07); flex-shrink:0; }
.chat-messages { flex:1 1 auto; min-height:0; overflow-y:auto; padding:9px 11px; font-size:11px; }
.chat-msg { margin-bottom:5px; line-height:1.45; word-break:break-word; animation:msgIn .25s ease; }
@keyframes msgIn { from{opacity:0; transform:translateX(6px)} to{opacity:1; transform:none} }
.chat-player { color:#64B5F6; font-weight:700; }
.chat-text { color:#d5dce5; }
.chat-msg.system { text-align:center; }
.chat-msg.system .chat-text {
    color:#ffd777; background:rgba(255,215,0,.09);
    padding:2px 8px; border-radius:9px; font-size:10px; display:inline-block;
}
.chat-input { display:flex; padding:7px; border-top:1px solid rgba(255,255,255,.07); gap:5px; flex-shrink:0; }
.chat-input input {
    flex:1; padding:7px 9px; border-radius:7px; min-width:0;
    border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.08);
    color:#fff; font-size:11px; outline:none;
}
.chat-input input:focus { border-color:#4CAF50; }
.chat-input button {
    padding:7px 12px; border-radius:7px; border:none;
    background:linear-gradient(135deg,#4CAF50,#2E7D32); color:#fff;
    font-size:11px; font-weight:700; cursor:pointer; flex-shrink:0;
}

/* ========== 底部栏（窄屏） ========== */
.bottom-bar { display:none; background:rgba(0,0,0,.5); padding:8px 10px; border-top:1px solid rgba(255,255,255,.1); flex-shrink:0; position:relative; }
.bottom-cards-row { display:flex; align-items:center; gap:9px; margin-bottom:6px; font-size:12px; flex-wrap:wrap; }
.my-cards-label { color:#aabbcc; flex-shrink:0; }
.my-cards { display:flex; gap:3px; }
.my-bet { color:#ffd700; flex-shrink:0; }
.my-chips-inline { color:#ffd700; margin-left:auto; flex-shrink:0; }
.btn-mini-icon { background:rgba(255,255,255,.12); border:none; color:#ffd700; width:30px; height:26px; border-radius:7px; cursor:pointer; font-size:13px; }
.bottom-actions { display:flex; flex-direction:row !important; gap:5px; align-items:center; flex-wrap:wrap; }
.bottom-actions .btn-action { width:auto; flex:1; min-width:54px; padding:8px 5px; font-size:11px; }
.bottom-actions .raise-control { flex-direction:row; align-items:center; gap:4px; flex:2; min-width:140px; padding:4px 6px; }
.bottom-actions .raise-control input[type="range"] { width:56px; flex:1; }
.bottom-actions .raise-control input[type="number"] { width:48px; }
.bottom-actions .raise-control .btn-action { flex:0 0 auto; min-width:48px; }

.chat-toggle-btn {
    position:absolute; right:8px; top:-36px; width:33px; height:33px; border-radius:50%;
    border:none; background:rgba(0,0,0,.65); color:#fff; font-size:16px;
    cursor:pointer; z-index:50; box-shadow:0 3px 10px rgba(0,0,0,.4);
}
.mobile-chat {
    display:none; position:absolute; bottom:100%; right:8px; width:250px; height:290px;
    background:rgba(10,22,40,.97); border-radius:11px; border:1px solid rgba(255,255,255,.15);
    flex-direction:column; z-index:100; overflow:hidden;
}
.mobile-chat.active { display:flex; animation:popIn .25s ease; }

/* ========== 弹窗 ========== */
.modal {
    display:none; position:fixed; inset:0; background:rgba(0,0,0,.7);
    z-index:9999; justify-content:center; align-items:center; padding:16px;
}
.modal.active { display:flex; animation:fadeIn .2s; }
.modal-content {
    background:linear-gradient(160deg,#1c2f45,#142233); border-radius:16px;
    padding:24px; max-width:400px; width:100%; text-align:center;
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 24px 70px rgba(0,0,0,.6);
    animation:popIn .3s cubic-bezier(.2,1.1,.4,1);
    max-height:90vh; overflow-y:auto;
}
.modal-content h3 { margin-bottom:14px; font-size:18px; }
.result-winner { font-size:15px; color:#ffd700; margin:8px 0; font-weight:800; }
.result-hand { color:#81C784; font-size:12px; margin-bottom:4px; }
.result-showdown { display:flex; gap:4px; justify-content:center; margin:6px 0; }
.btn-modal-close {
    margin-top:10px; background:rgba(255,255,255,.1); border:none; color:#ccc;
    padding:9px 18px; border-radius:9px; cursor:pointer; font-size:13px;
}
.btn-modal-close:hover { background:rgba(255,255,255,.2); }

/* 银行 */
.bank-balance { display:flex; justify-content:space-around; margin-bottom:12px; }
.bank-balance>div { display:flex; flex-direction:column; gap:3px; }
.bb-label { font-size:10px; color:#99aabb; }
.bb-val { font-size:19px; font-weight:800; }
.bb-val.gold { color:#ffd700; }
.bb-val.red { color:#ff8a80; }
.bank-tip { font-size:10px; color:#8899aa; line-height:1.6; margin-bottom:12px; }
.bank-quick { display:flex; gap:7px; justify-content:center; margin-bottom:9px; }
.bank-quick button {
    flex:1; padding:8px; border-radius:8px; border:1px solid rgba(255,215,0,.3);
    background:rgba(255,215,0,.08); color:#ffd700; font-weight:700; cursor:pointer; font-size:12px;
}
.bank-quick button:hover { background:rgba(255,215,0,.18); }
.bank-input {
    width:100%; padding:11px; border-radius:9px; margin-bottom:6px; text-align:center;
    border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.08); color:#fff; font-size:15px; outline:none;
}
.bank-btns { display:flex; gap:9px; margin-top:6px; }
.bank-btns button { flex:1; padding:11px; border-radius:9px; border:none; font-weight:700; cursor:pointer; font-size:13px; }
.btn-bank-borrow { background:linear-gradient(135deg,#FFA726,#E65100); color:#fff; }
.btn-bank-repay { background:linear-gradient(135deg,#42A5F5,#1565C0); color:#fff; }
.bank-btns button:active { transform:scale(.97); }

/* 设置 */
.setting-row { display:flex; align-items:center; justify-content:space-between; padding:9px 4px; font-size:13px; }
.setting-row input {
    width:110px; padding:8px 10px; border-radius:8px; text-align:center;
    border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.08); color:#fff; font-size:14px; outline:none;
}

/* ========== 大牌特效层 ========== */
.fx-overlay { position:fixed; inset:0; pointer-events:none; z-index:9000; overflow:hidden; }
.action-fx { position:absolute; width:0; height:0; opacity:0; z-index:2; }
.action-fx strong {
    position:absolute; left:0; top:-42px; transform:translateX(-50%) scale(.72);
    padding:4px 10px; border-radius:999px; white-space:nowrap;
    font-size:12px; font-weight:900; letter-spacing:1.2px;
    color:#fff4dc; background:linear-gradient(135deg,rgba(153,43,12,.96),rgba(255,108,44,.93));
    border:1px solid rgba(255,211,144,.78); box-shadow:0 7px 20px rgba(0,0,0,.38),0 0 18px rgba(255,94,31,.42);
}
.action-fx.allin.show { opacity:1; }
.action-fx.allin.show strong { animation:allInLabel 1.45s cubic-bezier(.2,.8,.2,1) both; }
.action-fx-chip {
    position:absolute; left:-8px; top:-2px; width:16px; height:7px; border-radius:50%;
    background:linear-gradient(#ffd681,#e8781d); border:1px solid rgba(255,244,202,.9);
    box-shadow:0 2px 0 #8c3810,0 3px 7px rgba(0,0,0,.35); opacity:0;
}
.action-fx-chip:nth-of-type(2){ left:0; top:3px; animation-delay:.08s!important; }
.action-fx-chip:nth-of-type(3){ left:7px; top:-4px; animation-delay:.16s!important; }
.action-fx.allin.show .action-fx-chip { animation:chipToPot 1.15s cubic-bezier(.2,.72,.28,1) .16s both; }
.action-fx.fold strong {
    color:#d8e0e6; background:rgba(20,30,39,.88); border-color:rgba(192,207,217,.32);
    box-shadow:0 6px 16px rgba(0,0,0,.32); letter-spacing:.6px;
}
.action-fx.fold.show { opacity:1; }
.action-fx.fold.show strong { animation:foldLabel .78s ease both; }
.fold-card {
    position:absolute; width:20px; height:29px; left:-12px; top:-8px; border-radius:4px;
    background:linear-gradient(145deg,#496171,#1b2b36); border:1px solid rgba(220,232,239,.55);
    box-shadow:0 5px 10px rgba(0,0,0,.32); opacity:0;
}
.fold-card.two { left:2px; transform:rotate(8deg); }
.action-fx.fold.show .fold-card.one { animation:foldCardToMuck .74s cubic-bezier(.32,.66,.3,1) both; }
.action-fx.fold.show .fold-card.two { animation:foldCardToMuckTwo .78s cubic-bezier(.32,.66,.3,1) .05s both; }
@keyframes allInLabel { 0%{opacity:0;transform:translateX(-50%) translateY(10px) scale(.7)} 20%,65%{opacity:1;transform:translateX(-50%) translateY(0) scale(1)} 100%{opacity:0;transform:translateX(-50%) translateY(-7px) scale(.94)} }
@keyframes chipToPot { 0%{opacity:0;transform:translate(0,0) scale(.65)} 24%{opacity:1;transform:translate(0,-8px) scale(1)} 100%{opacity:0;transform:translate(var(--fx-dx),var(--fx-dy)) scale(.45)} }
@keyframes foldLabel { 0%{opacity:0;transform:translateX(-50%) translateY(3px) scale(.86)} 22%,58%{opacity:.9;transform:translateX(-50%) translateY(0) scale(1)} 100%{opacity:0;transform:translateX(-50%) translateY(-4px) scale(.94)} }
@keyframes foldCardToMuck { 0%{opacity:.9;transform:translate(0,0) rotate(-7deg) scale(1)} 100%{opacity:0;transform:translate(var(--fx-dx),var(--fx-dy)) rotate(42deg) scale(.55)} }
@keyframes foldCardToMuckTwo { 0%{opacity:.9;transform:translate(0,0) rotate(8deg) scale(1)} 100%{opacity:0;transform:translate(var(--fx-dx),var(--fx-dy)) rotate(-34deg) scale(.55)} }
.fx-banner {
    position:absolute; top:38%; left:50%; transform:translate(-50%,-50%) scale(.5);
    font-size:clamp(30px,7vw,68px); font-weight:900; letter-spacing:3px; white-space:nowrap;
    opacity:0; text-align:center;
}
.fx-banner.show { animation:bannerShow 2.6s cubic-bezier(.2,1.1,.4,1) forwards; }
@keyframes bannerShow {
    0%{opacity:0; transform:translate(-50%,-50%) scale(.4) rotate(-6deg)}
    15%{opacity:1; transform:translate(-50%,-50%) scale(1.1) rotate(2deg)}
    25%{transform:translate(-50%,-50%) scale(1) rotate(0)}
    80%{opacity:1; transform:translate(-50%,-50%) scale(1)}
    100%{opacity:0; transform:translate(-50%,-50%) scale(1.15)}
}
.fx-banner.big {
    background:linear-gradient(90deg,#ffd700,#fff7cc,#ffb300,#fff7cc,#ffd700);
    background-size:200% 100%;
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
    filter:drop-shadow(0 0 24px rgba(255,180,0,.8));
    animation:bannerShow 2.6s cubic-bezier(.2,1.1,.4,1) forwards, shine 1.4s linear infinite;
}
@keyframes shine { to{background-position:200% 0} }
.fx-banner.mid {
    color:#7ee7ff; filter:drop-shadow(0 0 20px rgba(80,190,255,.8));
}
.fx-flash { position:absolute; inset:0; opacity:0; }
.fx-flash.big { background:radial-gradient(circle at center,rgba(255,200,60,.28),transparent 70%); animation:flashBig 2.6s ease; }
@keyframes flashBig { 0%{opacity:0} 20%{opacity:1} 100%{opacity:0} }
.confetti {
    position:absolute; top:-12px; width:9px; height:14px; opacity:.95;
    animation:confettiFall linear forwards;
}
@keyframes confettiFall {
    to { transform:translateY(105vh) rotate(720deg); opacity:.8; }
}

/* ========== 响应式：宽屏 ========== */
@media (min-width:900px) {
    .side-panel { display:flex; }
    .bottom-bar { display:none !important; }
}

/* ========== 窄屏 ========== */
@media (max-width:899px) {
    .game-main { flex-direction:column; padding-bottom:170px; }
    .side-panel { display:none; }
    .bottom-bar {
        display:block; position:fixed; bottom:0; left:0; right:0;
        z-index:100; background:rgba(8,14,28,.92); backdrop-filter:blur(8px);
        box-shadow:0 -4px 20px rgba(0,0,0,.5);
    }
    .chat-toggle-btn { display:none !important; }
    .table-info-bar { font-size:11px; gap:10px; }
    .poker-table { border-width:7px; }
    .player-seat { width:72px; }
    .player-avatar { width:32px; height:32px; font-size:14px; }
    .player-name { font-size:9px; max-width:72px; }
    .card.community { width:42px; height:58px; font-size:18px; }
    .card.mine { width:34px; height:47px; font-size:15px; }
    .card.tiny { width:17px; height:24px; font-size:9px; }
    .community-cards { min-height:60px; }
    /* 手机端操作栏：按钮第一行，加注滑块第二行全宽，快捷下注第三行 */
    .bottom-actions .btn-allin { order:1; }
    .bottom-actions .raise-control {
        order:2; flex:0 0 100%; min-width:0;
        background:rgba(255,255,255,.06); border-radius:8px; padding:6px 8px;
    }
    .bottom-actions .raise-control input[type="range"] { flex:1; min-width:40px; }
    .bottom-actions .raise-control input[type="number"] { width:52px; }
    .quick-bets-m { order:3; flex:0 0 100%; }
    .quick-bets-m .btn-quick-bet { padding:6px 0; font-size:12px; }
}

@media (max-width:480px) {
    .top-bar { padding:6px 9px; gap:6px; height:40px; }
    .top-title { font-size:13px; }
    .top-info { display:none; }
    .btn-icon { padding:4px 7px; font-size:13px; }
    .btn-close-game { padding:4px 8px; font-size:10px; }
    .table-info-bar { gap:8px; font-size:10px; padding:2px 8px; }
    .poker-table-container { padding:4px; }
    .poker-table { border-width:5px; min-height:150px; }
    .felt-ring { inset:9px; }
    .player-seat { width:60px; }
    .player-avatar { width:27px; height:27px; font-size:11px; }
    .dealer-btn { width:15px; height:15px; font-size:8px; }
    .player-name { font-size:8px; max-width:60px; }
    .player-chips { font-size:8px; }
    .player-bet,.player-action { font-size:8px; }
    .player-cards { min-height:24px; }
    .card.community { width:34px; height:47px; font-size:15px; }
    .card.mine { width:28px; height:39px; font-size:13px; }
    .card.small { width:22px; height:31px; font-size:11px; }
    .card.tiny { width:15px; height:21px; font-size:8px; }
    .community-cards { gap:3px; min-height:50px; }
    .bottom-bar { padding:6px 8px; }
    .bottom-cards-row { font-size:11px; gap:6px; margin-bottom:4px; }
    .bottom-actions { gap:4px; }
    .bottom-actions .btn-action { min-width:44px; padding:7px 4px; font-size:10px; }
    .bottom-actions .raise-control { min-width:120px; }
    .join-container { padding:24px; }
}

/* 超矮宽屏 */
@media (max-height:600px) and (min-width:900px) {
    .side-left { width:188px; padding:8px; }
    .side-right { width:204px; }
    .player-summary { padding:8px; margin-bottom:8px; }
    .summary-row { padding:2px 0; font-size:11px; }
    .btn-action { padding:8px; font-size:12px; }
    .action-buttons { gap:5px; }
    .poker-table { border-width:7px; }
    .player-seat { width:76px; }
    .player-avatar { width:33px; height:33px; font-size:14px; }
    .card.community { width:46px; height:63px; font-size:20px; }
    .card.mine { width:38px; height:52px; font-size:16px; }
    .card.tiny { width:18px; height:25px; font-size:9px; }
}

/* ========== v17 可读性重构：八人桌、牌面优先、强状态反馈 ========== */
:root {
    --felt:#0f6b43;
    --felt-deep:#07422d;
    --panel:rgba(7,16,28,.86);
    --gold:#f7c84b;
    --cyan:#60c8ff;
    --danger:#ff6b6b;
}
.poker-table-container { padding:8px 16px 14px; }
.poker-table {
    max-width:1080px;
    border-radius:48%/43%;
    border-width:12px;
    background:
        radial-gradient(ellipse at 50% 42%,rgba(44,160,101,.28),transparent 42%),
        radial-gradient(ellipse at center,var(--felt) 0%,#0b5b3b 58%,var(--felt-deep) 100%);
}
.community-area { width:62%; top:49%; }
.street-label {
    display:inline-flex; margin-bottom:10px; padding:4px 12px; border-radius:999px;
    background:rgba(2,18,15,.56); border:1px solid rgba(255,255,255,.14);
    color:#cfe9df; font-size:11px; font-weight:800; letter-spacing:1.5px;
    text-transform:uppercase;
}
.community-cards { gap:10px; min-height:104px; align-items:center; margin-bottom:10px; perspective:1000px; }
.community-cards .card:nth-child(4), .community-cards .card:nth-child(5) { margin-left:7px; }
.community-empty { align-self:center; color:rgba(255,255,255,.58); font-weight:700; letter-spacing:2px; }
.card.community {
    width:72px; height:100px; font-size:30px; border-radius:9px;
    border:1px solid rgba(255,255,255,.85); box-shadow:0 8px 20px rgba(0,0,0,.48);
    transform-origin:center bottom; backface-visibility:hidden;
    animation:none;
}
.card.community.dealt { animation:none; }
.card.community.pending-reveal {
    opacity:1; transform:translateY(-24px) rotateY(90deg) scale(.78);
    color:transparent !important; text-shadow:none;
    background:
        radial-gradient(circle at 50% 45%,rgba(255,255,255,.16),transparent 34%),
        repeating-linear-gradient(135deg,rgba(255,255,255,.08) 0 3px,transparent 3px 7px),
        linear-gradient(145deg,#174f7c,#0a2946 62%,#071d32);
    border-color:rgba(163,211,242,.78);
    box-shadow:0 9px 24px rgba(0,0,0,.5), inset 0 0 0 3px rgba(255,255,255,.08);
}
.card.community.pending-reveal .card-rank,.card.community.pending-reveal .card-suit { visibility:hidden; }
.card.community.card-reveal { animation:boardReveal .72s cubic-bezier(.18,.8,.25,1.15) both; }
.card.community.river-spinning { color:transparent !important; z-index:5; }
.card.community.river-spinning::after { content:'♠'; position:absolute; inset:6px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.18); border-radius:5px; color:rgba(255,255,255,.52); font-size:.76em; }
.card.community.normal-river-spinning { animation:riverBackSpin 1.8s cubic-bezier(.16,.72,.2,1) both; }
.card.community.allin-river-spinning { animation:allInRiverBackSpin 3.8s cubic-bezier(.19,.62,.18,1) both; }
.card.community.river-final-reveal { animation:riverFinalReveal .68s cubic-bezier(.18,.78,.22,1.12) both; z-index:5; }
.card.community.river-final-reveal.allin-river-final { animation-duration:.92s; }
.card.community.river-card::before {
    content:''; position:absolute; inset:-6px; border-radius:13px; pointer-events:none;
    border:1px solid rgba(247,200,75,.65); opacity:0;
}
.card.community.river-final-reveal::before { animation:riverHalo 1.3s ease both; }
.card.community.allin-river-final::before { animation:allInRiverHalo 1.5s ease both; border-color:rgba(255,112,57,.92); }
.community-cards.river-suspense::after {
    content:''; position:absolute; width:86px; height:116px; right:calc(50% - 225px);
    border-radius:16px; background:radial-gradient(circle,rgba(247,200,75,.34),transparent 68%);
    filter:blur(5px); animation:riverSuspense 2.2s ease both; pointer-events:none;
}
.community-cards.river-allin-suspense::after {
    background:radial-gradient(circle,rgba(255,101,45,.45),rgba(247,200,75,.18) 38%,transparent 70%);
    animation:allInRiverSuspense 4.2s ease both;
}
@keyframes boardReveal {
    0%{opacity:0;transform:translateY(-34px) rotateY(96deg) rotateZ(5deg) scale(.72)}
    55%{opacity:1;transform:translateY(3px) rotateY(-8deg) rotateZ(-1deg) scale(1.06)}
    100%{opacity:1;transform:none}
}
@keyframes riverBackSpin {
    0%{opacity:1;transform:translateY(-24px) rotateY(0deg) scale(.76);filter:brightness(.8)}
    28%{transform:translateY(-16px) rotateY(180deg) scale(.88);filter:brightness(.94)}
    58%{transform:translateY(-8px) rotateY(360deg) scale(.96);filter:brightness(1.08)}
    84%{transform:translateY(-2px) rotateY(540deg) scale(1.06);filter:brightness(1.26)}
    100%{opacity:1;transform:translateY(0) rotateY(720deg) scale(1);filter:brightness(1.12)}
}
@keyframes allInRiverBackSpin {
    0%{opacity:1;transform:translateY(-28px) rotateY(0deg) scale(.7);filter:brightness(.72) saturate(.8)}
    20%{transform:translateY(-24px) rotateY(540deg) scale(.78);filter:brightness(.86)}
    43%{transform:translateY(-18px) rotateY(1080deg) scale(.88);filter:brightness(1)}
    67%{transform:translateY(-10px) rotateY(1620deg) scale(.96);filter:brightness(1.12)}
    88%{transform:translateY(-2px) rotateY(2070deg) scale(1.08);filter:brightness(1.35)}
    100%{opacity:1;transform:translateY(0) rotateY(2160deg) scale(1);filter:brightness(1.16)}
}
@keyframes riverFinalReveal {
    0%{opacity:.2;transform:rotateY(90deg) scale(.9);filter:brightness(1.45)}
    56%{opacity:1;transform:rotateY(-7deg) scale(1.09);filter:brightness(1.3)}
    100%{opacity:1;transform:none;filter:none}
}
@keyframes riverHalo { 0%{opacity:0;transform:scale(.7)} 35%{opacity:1} 100%{opacity:0;transform:scale(1.45)} }
@keyframes allInRiverHalo { 0%,22%{opacity:0;transform:scale(.55)} 45%,72%{opacity:1} 100%{opacity:0;transform:scale(1.75)} }
@keyframes riverSuspense { 0%{opacity:0;transform:scale(.4)} 55%{opacity:1;transform:scale(1.35)} 100%{opacity:0;transform:scale(1.8)} }
@keyframes allInRiverSuspense { 0%{opacity:0;transform:scale(.42)} 18%,66%{opacity:.92;transform:scale(1.18)} 38%,82%{opacity:.38;transform:scale(1.42)} 100%{opacity:0;transform:scale(2)} }

.pot-display { padding:7px 18px; font-size:15px; border-color:rgba(247,200,75,.48); box-shadow:0 5px 18px rgba(0,0,0,.22); }
#pot-amount { color:#fff4bf; font-size:17px; }
.game-message { font-size:12px; font-weight:700; }

.player-seat { width:150px; z-index:10; }
.player-card-shell {
    min-height:68px; padding:7px 9px 7px 48px; position:relative;
    border-radius:12px; background:linear-gradient(145deg,rgba(9,25,37,.94),rgba(3,14,23,.88));
    border:1px solid rgba(255,255,255,.16); box-shadow:0 8px 18px rgba(0,0,0,.36);
    text-align:left;
}
.player-seat.empty .player-card-shell { min-height:48px; opacity:.72; }
.player-avatar {
    position:absolute; left:8px; top:8px; width:34px; height:34px; margin:0;
    font-size:15px; border-color:rgba(255,255,255,.18);
}
.player-primary { min-width:0; padding-right:4px; }
.player-name { max-width:92px; font-size:12px; line-height:15px; }
.player-chips {
    background:none; padding:0; margin:1px 0 0; color:#ffd96a; font-size:11px; line-height:14px;
}
.player-bet,.player-action,.waiting-badge,.ready-badge { display:none !important; }
.seat-status {
    position:absolute; left:50%; top:calc(100% + 4px); transform:translateX(-50%);
    min-height:20px; padding:3px 9px; border-radius:999px;
    background:rgba(3,14,23,.92); border:1px solid rgba(255,255,255,.22);
    box-shadow:0 4px 12px rgba(0,0,0,.36); color:#d9e2e8;
    font-size:10px; font-weight:850; line-height:13px; white-space:nowrap;
    pointer-events:none;
}
.seat-status.ready { color:#76e7a4; border-color:rgba(80,220,136,.45); background:rgba(10,54,35,.94); }
.seat-status.turn { color:#17140b; border-color:#ffe27a; background:linear-gradient(135deg,#ffe36d,#f5b82e); }
.seat-status.bet,.seat-status.action { color:#ffe58f; border-color:rgba(247,200,75,.48); }
.seat-status.waiting { color:#c7d0d6; border-color:rgba(199,208,214,.28); }
.seat-status.folded { color:#ffaaa2; border-color:rgba(255,117,104,.35); background:rgba(65,23,23,.92); }
.seat-status.allin { color:#fff; border-color:rgba(255,132,72,.65); background:rgba(128,49,19,.94); }
.seat-status.winner { color:#17200d; border-color:#fff0a0; background:linear-gradient(135deg,#ffe36d,#69d47f); }
.player-cards { position:absolute; display:flex; right:-9px; top:-13px; margin:0; min-height:0; transform:rotate(3deg); }
.card.tiny { width:27px; height:38px; font-size:12px; border-radius:5px; }
.player-seat.is-me .player-card-shell { border-color:rgba(76,207,127,.65); box-shadow:0 0 0 2px rgba(76,207,127,.15),0 8px 20px rgba(0,0,0,.4); }
.player-seat.current-turn .player-card-shell {
    border-color:var(--gold); box-shadow:0 0 0 2px rgba(247,200,75,.22),0 0 26px rgba(247,200,75,.35);
    animation:seatTurnGlow 1.2s ease-in-out infinite;
}
.player-seat.allin .player-card-shell { border-color:rgba(255,119,60,.58); box-shadow:0 0 0 1px rgba(255,119,60,.13),0 8px 18px rgba(0,0,0,.36); }
.player-seat.allin .player-avatar { border-color:#ff783f; box-shadow:0 0 12px rgba(255,91,38,.55); }
.player-seat.fx-allin-hit .player-card-shell { animation:allInSeatImpact 1.45s cubic-bezier(.2,.8,.2,1) both; }
.player-seat.fx-allin-hit .seat-status { animation:allInStatusImpact 1.45s ease both; }
.player-seat.fx-fold-hit .player-card-shell { animation:foldSeatSettle .78s ease both; }
@keyframes allInSeatImpact {
    0%{transform:scale(.96);box-shadow:0 0 0 0 rgba(255,95,35,0)}
    18%{transform:scale(1.07);box-shadow:0 0 0 5px rgba(255,95,35,.24),0 0 30px rgba(255,95,35,.7)}
    42%{transform:scale(.99);box-shadow:0 0 0 2px rgba(255,190,92,.22),0 0 22px rgba(255,95,35,.45)}
    100%{transform:none;box-shadow:0 0 0 1px rgba(255,119,60,.13),0 8px 18px rgba(0,0,0,.36)}
}
@keyframes allInStatusImpact { 18%{transform:translateX(-50%) scale(1.18);filter:brightness(1.35)} 100%{transform:translateX(-50%) scale(1);filter:none} }
@keyframes foldSeatSettle { 0%{transform:translateY(-2px);opacity:1} 100%{transform:none;opacity:.78} }
.player-seat.current-turn .player-avatar { transform:none; animation:none; }
.player-seat.current-turn::after { top:-26px; font-size:10px; padding:3px 10px; }
@keyframes seatTurnGlow { 50%{box-shadow:0 0 0 3px rgba(247,200,75,.3),0 0 32px rgba(247,200,75,.48)} }
.dealer-btn { top:-7px; right:-7px; width:21px; height:21px; font-size:9px; }
.blind-badge {
    position:absolute; top:28px; width:25px; height:17px; border-radius:6px; display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:8px; font-weight:900; border:1px solid rgba(255,255,255,.45); box-shadow:0 2px 6px rgba(0,0,0,.4);
}
.blind-badge.sb { left:-8px; background:#2383b8; }
.blind-badge.bb { right:-8px; background:#b05c24; }
.waiting-badge,.ready-badge,.win-amount { position:absolute; right:6px; top:7px; font-size:9px; font-weight:900; }
.ready-badge { color:#6ee7a0; }
.waiting-badge { color:#ffc857; }
.win-amount { color:#ffe275; font-size:12px; }

.side-left { width:240px; padding:14px; }
.side-right { width:210px; }
.summary-row { font-size:13px; padding:4px 0; }
.side-cards .card.mine { width:51px; height:70px; font-size:22px; }
.btn-action { min-height:44px; font-size:14px; }
.action-buttons { gap:9px; }

.street-fx {
    position:absolute; left:50%; top:28%; transform:translate(-50%,-50%) scale(.76); z-index:6;
    display:flex; flex-direction:column; align-items:center; gap:3px; opacity:0;
    padding:10px 26px; border-radius:14px; background:rgba(3,16,24,.72);
    border:1px solid rgba(247,200,75,.42); backdrop-filter:blur(8px); color:#fff;
    box-shadow:0 0 34px rgba(247,200,75,.18);
}
.street-fx strong { font-size:26px; letter-spacing:8px; color:#ffe28a; text-shadow:0 0 18px rgba(247,200,75,.58); }
.street-fx span { font-size:11px; letter-spacing:2px; color:#d4dde5; }
.street-fx.show { animation:streetFxShow 1.35s ease both; }
.street-fx.river { top:22%; background:rgba(5,20,28,.82); }
.street-fx.river.show { animation:riverStreetFx 2.2s ease both; }
.street-fx.allin {
    top:22%; background:linear-gradient(135deg,rgba(64,19,8,.9),rgba(18,24,29,.88));
    border-color:rgba(255,126,62,.7); box-shadow:0 0 42px rgba(255,86,27,.3);
}
.street-fx.allin strong { color:#ffbb78; letter-spacing:7px; text-shadow:0 0 22px rgba(255,86,27,.72); }
.street-fx.allin.show { animation:allInStreetFx 4.2s ease both; }
@keyframes streetFxShow { 0%{opacity:0;transform:translate(-50%,-50%) scale(.72)} 18%,72%{opacity:1;transform:translate(-50%,-50%) scale(1)} 100%{opacity:0;transform:translate(-50%,-50%) scale(1.08)} }
@keyframes riverStreetFx { 0%{opacity:0;transform:translate(-50%,-50%) scale(.72)} 16%,70%{opacity:1;transform:translate(-50%,-50%) scale(1)} 100%{opacity:0;transform:translate(-50%,-50%) scale(1.06)} }
@keyframes allInStreetFx { 0%{opacity:0;transform:translate(-50%,-50%) scale(.68)} 12%,24%,42%,60%,76%{opacity:1;transform:translate(-50%,-50%) scale(1)} 18%,34%,52%,68%{opacity:.62;transform:translate(-50%,-50%) scale(.96)} 100%{opacity:0;transform:translate(-50%,-50%) scale(1.08)} }
.result-best-label { margin-top:10px; color:#9fb0bf; font-size:10px; letter-spacing:1px; }
.best-five .card.small { width:38px; height:52px; font-size:16px; }

@media (max-width:1199px) and (min-width:900px) {
    .side-left { width:210px; padding:9px; }
    .side-right { width:190px; }
    .player-seat { width:126px; }
    .player-card-shell { padding-left:42px; min-height:62px; }
    .player-avatar { width:30px; height:30px; }
    .player-name { font-size:10px; max-width:78px; }
    .player-chips { font-size:9px; }
    .card.community { width:62px; height:86px; font-size:26px; }
    .community-cards { min-height:90px; gap:7px; }
}

@media (max-width:899px) {
    .game-main { padding-bottom:214px; }
    .poker-table-container { padding:4px 10px 8px; }
    .poker-table { width:100%; border-radius:46%/43%; }
    .community-area { width:62%; top:48%; }
    .street-label { margin-bottom:5px; padding:3px 9px; font-size:9px; }
    .card.community { width:48px; height:67px; font-size:20px; }
    .community-cards { min-height:70px; gap:5px; }
    .community-cards .card:nth-child(4),.community-cards .card:nth-child(5){margin-left:2px}
    .player-seat { width:88px; }
    .player-card-shell { min-height:46px; padding:5px 5px 5px 34px; border-radius:9px; overflow:visible; }
    .player-avatar { left:5px; top:6px; width:25px; height:25px; font-size:11px; }
    .player-name { font-size:9px; max-width:50px; line-height:11px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .player-chips { font-size:8px; line-height:10px; white-space:nowrap; }
    .player-chips strong { font-size:9px; }
    .player-chips span { display:none; }
    .seat-status { top:calc(100% + 3px); min-height:18px; padding:2px 7px; font-size:9px; line-height:12px; }
    .player-cards.unknown-cards,.player-cards.own-seat-cards { display:none; }
    .player-seat.hole-dealing .player-cards.own-seat-cards { display:flex; right:-4px; top:-12px; }
    .player-seat.hole-dealing .player-cards.own-seat-cards .card.tiny { width:17px; height:24px; font-size:8px; }
    .player-cards.revealed-cards:not(.own-seat-cards) { display:flex; right:-4px; top:-12px; }
    .player-cards.revealed-cards .card.tiny { width:17px; height:24px; font-size:8px; }
    .blind-badge { top:21px; width:20px; height:14px; font-size:7px; }
    .dealer-deck { width:26px; height:37px; }
    .deal-flight-card { width:20px; height:28px; margin:-14px 0 0 -10px; }
    .deal-flight-card::after { inset:3px; font-size:10px; }
    .bottom-cards-row .card.mine { width:42px; height:58px; font-size:18px; }
    .seat-pos-2 { left:90% !important; }
    .seat-pos-6 { left:10% !important; }
    .seat-pos-4 { top:84% !important; }
    .seat-pos-3,.seat-pos-5 { top:76% !important; }
    .seat-pos-0 { top:10% !important; }
    .bottom-bar { padding:7px 10px 9px; }
    .bottom-cards-row { min-height:60px; flex-wrap:nowrap; }
    .my-cards-label { display:none; }
    .my-bet { margin-left:8px; }
    .bottom-actions { row-gap:6px; }
}


/* ========== v30 筹码舞台：下注可感知、街道归集、连续派奖 ========== */
.pot-display{position:relative;min-width:132px;justify-content:center;padding:8px 16px 8px 58px!important;border-radius:18px!important;transition:transform .25s ease,box-shadow .25s ease}
.pot-copy{display:flex;flex-direction:column;align-items:flex-start;line-height:1.05}
.pot-label{font-size:9px;letter-spacing:1.4px;text-transform:uppercase;color:#bda86f!important}
#pot-amount{font-variant-numeric:tabular-nums;font-size:19px!important;line-height:22px}
.pot-chip-art{position:absolute;left:13px;bottom:8px;width:39px;height:30px}
.pot-chip-art i{display:none;position:absolute;width:29px;height:8px;border-radius:50%;left:3px;background:repeating-linear-gradient(90deg,#204f82 0 5px,#eef2dc 5px 8px);border:1px solid rgba(255,255,255,.72);box-shadow:0 2px 0 #102f52,0 4px 7px rgba(0,0,0,.38)}
.pot-chip-art i:nth-child(1){bottom:0}.pot-chip-art i:nth-child(2){bottom:5px}.pot-chip-art i:nth-child(3){bottom:10px}.pot-chip-art i:nth-child(4){bottom:15px;left:7px;background:repeating-linear-gradient(90deg,#9e3f35 0 5px,#f2e7ce 5px 8px)}.pot-chip-art i:nth-child(5){bottom:20px;left:7px;background:repeating-linear-gradient(90deg,#345d3b 0 5px,#f2e7ce 5px 8px)}
.pot-display[data-tier="1"] .pot-chip-art i:nth-child(1),.pot-display[data-tier="2"] .pot-chip-art i:nth-child(-n+3),.pot-display[data-tier="3"] .pot-chip-art i:nth-child(-n+4),.pot-display[data-tier="4"] .pot-chip-art i{display:block}
.pot-display.pot-land{animation:potLand .48s cubic-bezier(.2,.9,.2,1)}.pot-display.paying-out{box-shadow:0 0 0 3px rgba(237,204,113,.18),0 0 34px rgba(237,204,113,.36)!important}
@keyframes potLand{40%{transform:scale(1.13) translateY(-2px)}100%{transform:none}}
.chip-pile{position:absolute;left:50%;top:calc(100% + 27px);transform:translateX(-50%);display:flex;align-items:flex-end;gap:4px;z-index:7;filter:drop-shadow(0 4px 5px rgba(0,0,0,.4));transition:opacity .18s ease,transform .25s ease}
.chip-pile strong{background:rgba(3,13,16,.9);border:1px solid rgba(236,214,157,.28);border-radius:8px;padding:2px 6px;color:#fff2c3;font-size:10px;line-height:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.chip-stack{position:relative;width:26px;height:26px;display:block}.chip-stack i{position:absolute;left:0;bottom:0;width:24px;height:7px;border-radius:50%;background:repeating-linear-gradient(90deg,#2f628f 0 4px,#ece8d8 4px 7px);border:1px solid rgba(255,255,255,.65);box-shadow:0 2px 0 #193954}.chip-stack i:nth-child(2){bottom:4px}.chip-stack i:nth-child(3){bottom:8px;background:repeating-linear-gradient(90deg,#a84b39 0 4px,#efe1c5 4px 7px)}.chip-stack i:nth-child(4){bottom:12px}.chip-stack i:nth-child(5){bottom:16px;background:repeating-linear-gradient(90deg,#356443 0 4px,#efe1c5 4px 7px)}.chip-stack i:nth-child(6){bottom:20px}.chip-stack i:nth-child(7){bottom:24px;background:repeating-linear-gradient(90deg,#6d477b 0 4px,#efe1c5 4px 7px)}
.chip-pile.collecting-origin{opacity:0;transform:translateX(-50%) scale(.72)}
.chip-flight{position:fixed;width:24px;height:16px;z-index:9100;pointer-events:none;transform:translate(-50%,-50%)}.chip-flight i{position:absolute;left:0;width:22px;height:7px;border-radius:50%;background:repeating-linear-gradient(90deg,#2f628f 0 4px,#eee8d8 4px 7px);border:1px solid rgba(255,255,255,.68);box-shadow:0 2px 0 #15384f}.chip-flight i:nth-child(2){top:4px}.chip-flight i:nth-child(3){top:8px;background:repeating-linear-gradient(90deg,#a84b39 0 4px,#efe1c5 4px 7px)}
.chip-flight.fly{animation:chipFlight .82s cubic-bezier(.32,.02,.22,1) forwards}.payout-flight.fly{animation-duration:.9s}
@keyframes chipFlight{0%{opacity:0;transform:translate(-50%,-50%) scale(.7)}12%{opacity:1}70%{opacity:1;transform:translate(calc(-50% + var(--chip-dx)*.86),calc(-50% + var(--chip-dy)*.86)) scale(1.05) rotate(300deg)}100%{opacity:0;transform:translate(calc(-50% + var(--chip-dx)),calc(-50% + var(--chip-dy))) scale(.62) rotate(420deg)}}
.player-seat.payout-winner .player-card-shell{animation:payoutWinner 2.25s ease both}.player-seat.payout-winner .win-amount{animation:winAmountRise 1.8s ease both}
@keyframes payoutWinner{0%{transform:scale(.98)}20%,65%{transform:scale(1.06);box-shadow:0 0 0 3px rgba(248,216,119,.26),0 0 38px rgba(248,216,119,.55)}100%{transform:none}}@keyframes winAmountRise{0%{opacity:0;transform:translateY(7px) scale(.8)}25%,75%{opacity:1;transform:translateY(-3px) scale(1.18)}100%{opacity:1;transform:none}}
.settlement-ribbon{position:absolute;left:50%;top:calc(100% + 9px);transform:translate(-50%,8px);display:flex;gap:6px;justify-content:center;opacity:0;pointer-events:none;transition:.32s ease;white-space:nowrap;z-index:12}.settlement-ribbon.show{opacity:1;transform:translate(-50%,0)}.settlement-ribbon span{display:grid;grid-template-columns:auto auto;gap:0 7px;align-items:center;padding:5px 10px;border-radius:11px;background:rgba(4,19,19,.94);border:1px solid rgba(235,205,124,.42);box-shadow:0 8px 24px rgba(0,0,0,.42)}.settlement-ribbon strong{color:#f5e3ad;font-size:11px}.settlement-ribbon b{color:#8ce0a5;font-size:12px}.settlement-ribbon small{grid-column:1/3;color:#9eaca7;font-size:8px;text-align:left}
.streak-crown{position:absolute;left:50%;top:-31px;transform:translateX(-50%);z-index:18;filter:drop-shadow(0 4px 6px rgba(0,0,0,.48));transform-origin:center bottom}.streak-crown svg{display:block;width:30px;height:auto;fill:#d5a934;stroke:#fff0a8;stroke-width:1.4}.streak-crown span{position:absolute;inset:13px 0 auto;text-align:center;color:#3e2b07;font-size:8px;font-weight:950}.streak-crown.crown-2{transform:translateX(-50%) scale(1.14)}.streak-crown.crown-3{transform:translateX(-50%) scale(1.28)}.streak-crown.crown-4{transform:translateX(-50%) scale(1.42);filter:drop-shadow(0 0 8px rgba(255,210,73,.6)) drop-shadow(0 4px 6px rgba(0,0,0,.48))}
@media(max-width:899px){.chip-pile{top:calc(100% + 24px)}.chip-pile strong{font-size:9px;padding:1px 5px}.settlement-ribbon{top:calc(100% + 7px);max-width:86vw;white-space:normal;flex-wrap:wrap}.settlement-ribbon span{padding:4px 8px}.streak-crown{top:-27px}.streak-crown svg{width:26px}}
@media(max-width:480px){.pot-display{min-width:112px;padding:6px 12px 6px 49px!important}.pot-chip-art{left:10px;transform:scale(.86);transform-origin:left bottom}#pot-amount{font-size:16px!important}.chip-pile{top:calc(100% + 21px);gap:2px}.chip-stack{transform:scale(.82);transform-origin:right bottom}.chip-pile strong{font-size:8px}.settlement-ribbon{width:82vw}.settlement-ribbon span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.chip-flight.fly,.player-seat.payout-winner .player-card-shell,.pot-display.pot-land{animation-duration:.12s!important}}

@media (max-width:520px) {
    .top-bar { padding:5px 6px; gap:4px; }
    .top-title { max-width:92px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .btn-back { padding:4px 7px; }
    .player-seat { width:74px; }
    .player-card-shell { padding-left:27px; min-height:42px; }
    .player-avatar { left:4px; top:6px; width:20px; height:20px; font-size:9px; }
    .player-name { font-size:8px; max-width:42px; }
    .seat-status { max-width:70px; overflow:hidden; text-overflow:ellipsis; }
    .card.community { width:34px; height:48px; font-size:15px; }
    .community-cards { min-height:51px; gap:3px; }
    .community-area { width:50%; }
    .seat-pos-2 { left:87% !important; }
    .seat-pos-6 { left:13% !important; }
    .pot-display { padding:4px 10px; font-size:11px; }
    #pot-amount { font-size:13px; }
    .street-fx strong { font-size:20px; }
    .seat-pos-1,.seat-pos-7 { top:20% !important; }
    .seat-pos-2,.seat-pos-6 { top:47% !important; }
    .seat-pos-3,.seat-pos-5 { top:73% !important; }
    .seat-pos-4 { top:82% !important; }
    .bottom-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
    .bottom-actions > .btn-action { width:100%; min-width:0; padding:8px 3px; font-size:11px; }
    .bottom-actions .btn-allin { order:0; }
    .bottom-actions .raise-control { grid-column:1 / -1; width:auto; }
    .quick-bets-m { grid-column:1 / -1; width:auto; }
}

/* ========== v26 回合语义与即时操作反馈 ========== */
.player-seat.is-me .player-card-shell {
    border-color:rgba(155,196,174,.34);
    box-shadow:inset 3px 0 0 rgba(83,188,130,.72),0 8px 20px rgba(0,0,0,.4);
}
.player-seat.is-me.current-turn .player-card-shell {
    border-color:var(--gold);
    box-shadow:0 0 0 3px rgba(247,200,75,.28),0 0 30px rgba(247,200,75,.46),inset 3px 0 0 rgba(83,188,130,.72);
}
.me-marker {
    position:absolute; right:7px; bottom:4px; color:rgba(150,214,180,.78);
    font-size:8px; font-weight:800; letter-spacing:.4px; line-height:1;
}
.player-seat.current-turn::after {
    display:block; content:'当前行动'; position:absolute; left:50%; top:-26px; transform:translateX(-50%);
    padding:3px 10px; border-radius:999px; background:#f7c84b; color:#17140b;
    font-size:10px; font-weight:900; line-height:1.2; white-space:nowrap; box-shadow:0 4px 12px rgba(0,0,0,.3);
}
.player-seat.is-me.current-turn::after { content:'轮到你'; }
.action-guidance {
    min-height:27px; display:flex; align-items:center; justify-content:center;
    margin:0 0 7px; padding:5px 10px; border-radius:8px;
    color:#b7c3ca; background:rgba(5,18,25,.6); border:1px solid rgba(255,255,255,.1);
    font-size:11px; font-weight:750; letter-spacing:.25px;
}
.action-guidance.my-turn {
    color:#ffe49a; border-color:rgba(247,200,75,.38); background:rgba(67,49,13,.42);
}
.action-guidance-mobile { width:100%; margin-bottom:4px; }
.seat-status.local-pending { color:#fff0a6; border-color:rgba(247,200,75,.62); animation:localPendingPulse .7s ease-in-out infinite alternate; }
@keyframes localPendingPulse { to { filter:brightness(1.25); transform:translateX(-50%) scale(1.04); } }
.action-buttons button:disabled { cursor:not-allowed; }

@media (max-width:899px) {
    .action-guidance:not(.action-guidance-mobile) { display:none; }
    .me-marker { right:4px; bottom:3px; font-size:6px; }
}
@media (min-width:900px) {
    .action-guidance-mobile { display:none; }
}
@media (prefers-reduced-motion:reduce) {
    .card.community.card-reveal,.card.community.river-spinning,.card.community.river-final-reveal,.deal-flight-card.flying,.card.tiny.seat-hole-reveal,.card.mine.summary-arrive,
    .street-fx.show,.player-seat.current-turn .player-card-shell,.player-seat.fx-allin-hit .player-card-shell,
    .player-seat.fx-allin-hit .seat-status,.player-seat.fx-fold-hit .player-card-shell,.player-seat.fx-action-hit .player-card-shell,
    .action-fx * { animation-duration:.01ms !important; animation-delay:0ms !important; }
    .community-cards.river-suspense::after,.community-cards.river-allin-suspense::after { display:none; }
}

/* ========== v25 沉浸式视听与克制交互 ========== */
:root {
    --ink:#07110f;
    --panel-deep:rgba(7,17,21,.9);
    --line:rgba(231,237,229,.14);
    --ivory:#f1eee4;
    --muted:#9ba8a4;
    --brass:#c9a458;
    --brass-soft:#ead79f;
    --emerald:#2a9669;
    --ember:#d9673d;
}
html,body {
    background:
        radial-gradient(circle at 50% -15%,rgba(43,83,70,.32),transparent 44%),
        linear-gradient(145deg,#07120f 0%,#091822 48%,#050b11 100%);
}
.top-bar {
    background:linear-gradient(180deg,rgba(7,17,21,.96),rgba(7,17,21,.82));
    border-bottom-color:var(--line); box-shadow:0 9px 28px rgba(0,0,0,.22);
}
.brand-mark { color:var(--brass-soft); font-size:17px; margin-right:2px; }
.btn-back,.btn-icon {
    min-height:32px; border:1px solid var(--line); color:var(--ivory);
    background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
    box-shadow:inset 0 1px rgba(255,255,255,.08),0 5px 16px rgba(0,0,0,.16);
}
.btn-back { display:inline-flex; align-items:center; gap:5px; }
.btn-back svg,.btn-icon svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.btn-icon { width:34px; padding:6px; display:inline-grid; place-items:center; }
.btn-back:hover,.btn-icon:hover { background:rgba(255,255,255,.11); border-color:rgba(234,215,159,.36); }
.game-status.active { background:rgba(42,150,105,.18); color:#9ce0be; border:1px solid rgba(80,190,137,.32); box-shadow:none; }
.poker-table {
    background:
        radial-gradient(ellipse at 50% 43%,rgba(58,155,108,.16),rgba(0,25,19,.34) 61%,rgba(1,11,9,.57) 100%),
        url('../assets/art/table-felt.jpg?v=25') center/cover no-repeat;
    border-color:#2a2119;
    box-shadow:inset 0 0 0 2px rgba(222,184,112,.28),inset 0 0 50px rgba(0,0,0,.46),0 22px 55px rgba(0,0,0,.5);
}
.felt-ring { border-color:rgba(234,215,159,.11); box-shadow:inset 0 0 30px rgba(0,0,0,.16); }
.table-info-bar { color:#b9c4bf; }
.pot-display,.street-label {
    background:rgba(6,20,18,.64); border-color:rgba(234,215,159,.22);
    backdrop-filter:blur(8px); box-shadow:0 7px 20px rgba(0,0,0,.2);
}
.player-card-shell {
    background:linear-gradient(145deg,rgba(12,27,31,.95),rgba(5,15,19,.91));
    border-color:rgba(232,238,231,.13); box-shadow:0 9px 22px rgba(0,0,0,.37),inset 0 1px rgba(255,255,255,.035);
}
.player-avatar { background:linear-gradient(145deg,#283c3d,#101e22); }
.seat-status { backdrop-filter:blur(7px); }
.modal { background:rgba(2,8,10,.74); backdrop-filter:blur(10px); }
.modal-content {
    border-radius:20px; text-align:left;
    background:linear-gradient(155deg,rgba(20,38,40,.98),rgba(8,20,25,.98));
    border:1px solid rgba(234,215,159,.2);
    box-shadow:0 28px 90px rgba(0,0,0,.7),inset 0 1px rgba(255,255,255,.055);
}
.modal-content h3 { color:var(--ivory); letter-spacing:.5px; text-align:left; }
.modal-title { display:flex; align-items:center; gap:9px; }
.modal-title svg { width:20px; height:20px; fill:none; stroke:#a9b5b1; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.result-content { text-align:center; }
.result-content h3 { text-align:center; }
.settings-content { max-width:430px; }
.settings-section { border:1px solid rgba(255,255,255,.08); background:rgba(0,0,0,.13); border-radius:14px; padding:10px 12px; margin:10px 0; }
.settings-section-title { color:var(--brass-soft); font-size:11px; font-weight:850; letter-spacing:1.5px; margin:2px 2px 6px; text-transform:uppercase; }
.audio-settings-section .setting-row { border-top:1px solid rgba(255,255,255,.06); }
.setting-row > span { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.setting-row small { color:#84928e; font-size:10px; font-weight:500; line-height:1.3; }
.setting-toggle { position:relative; cursor:pointer; gap:12px; }
.setting-toggle input { position:absolute; opacity:0; pointer-events:none; }
.setting-toggle i { width:43px; height:24px; padding:0; flex:0 0 43px; border-radius:999px; background:#283638; border:1px solid rgba(255,255,255,.14); position:relative; transition:.2s ease; }
.setting-toggle i::after { content:''; position:absolute; width:18px; height:18px; top:2px; left:3px; border-radius:50%; background:#d5dcda; box-shadow:0 2px 5px rgba(0,0,0,.35); transition:.2s ease; }
.setting-toggle input:checked + i { background:#267b59; border-color:rgba(112,221,166,.48); }
.setting-toggle input:checked + i::after { transform:translateX(17px); background:#f2fff7; }
.local-setting-tip { margin:6px 2px 0; text-align:left; }
.modal-content .btn-primary,.modal-content .btn-modal-close { min-height:40px; }
.btn-primary,.btn-ready-btn {
    background:linear-gradient(180deg,#3f9f74,#26704f); border:1px solid rgba(191,237,210,.22);
    box-shadow:inset 0 1px rgba(255,255,255,.16),0 8px 22px rgba(10,77,50,.28);
}
.btn-action {
    position:relative; overflow:hidden; min-height:44px; border:1px solid rgba(255,255,255,.1);
    background:linear-gradient(180deg,rgba(255,255,255,.11),rgba(255,255,255,.045));
    box-shadow:inset 0 1px rgba(255,255,255,.1),0 6px 15px rgba(0,0,0,.25);
    letter-spacing:.4px;
}
.btn-action::after { content:''; position:absolute; inset:0; background:linear-gradient(110deg,transparent 25%,rgba(255,255,255,.12) 48%,transparent 70%); transform:translateX(-130%); transition:transform .45s ease; }
.btn-action:hover:not(:disabled)::after { transform:translateX(130%); }
.btn-fold { color:#e6b0aa; border-color:rgba(197,92,79,.35); background:linear-gradient(180deg,rgba(123,44,38,.58),rgba(66,24,23,.62)); }
.btn-check { color:#b9dbea; border-color:rgba(84,145,169,.34); background:linear-gradient(180deg,rgba(49,97,115,.57),rgba(24,55,69,.64)); }
.btn-call { color:#bfe3cf; border-color:rgba(65,148,102,.34); background:linear-gradient(180deg,rgba(41,111,75,.61),rgba(22,67,48,.66)); }
.btn-raise { color:#ead8a7; border-color:rgba(190,149,66,.36); background:linear-gradient(180deg,rgba(126,91,34,.62),rgba(72,50,23,.67)); }
.btn-allin { color:#f1c3ae; border-color:rgba(213,96,54,.4); background:linear-gradient(180deg,rgba(151,57,28,.7),rgba(79,28,19,.72)); }
.raise-control { background:rgba(0,0,0,.16); border:1px solid rgba(255,255,255,.07); }
.raise-control input[type="range"] { accent-color:var(--brass); }
.btn-quick-bet { border-color:rgba(201,164,88,.28); background:rgba(201,164,88,.075); color:#d9c28f; }
.action-fx.check.show,.action-fx.call.show,.action-fx.raise.show,.action-fx.bet.show { opacity:1; }
.action-fx.check strong,.action-fx.call strong,.action-fx.raise strong,.action-fx.bet strong {
    color:#e8efec; background:rgba(7,24,25,.9); border-color:rgba(179,213,200,.36);
    box-shadow:0 6px 18px rgba(0,0,0,.3); letter-spacing:.5px;
    animation:quietActionLabel .68s ease both;
}
.action-fx.call strong,.action-fx.raise strong,.action-fx.bet strong { color:#f1dfad; border-color:rgba(201,164,88,.46); }
.action-pulse { position:absolute; left:-18px; top:-18px; width:36px; height:36px; border-radius:50%; border:1px solid rgba(207,233,222,.45); opacity:0; }
.action-fx.show .action-pulse { animation:actionPulse .7s ease both; }
.player-seat.fx-action-hit .player-card-shell { animation:quietSeatImpact .7s ease both; }
@keyframes quietActionLabel { 0%{opacity:0;transform:translateX(-50%) translateY(6px) scale(.86)} 24%,68%{opacity:1;transform:translateX(-50%) translateY(0) scale(1)} 100%{opacity:0;transform:translateX(-50%) translateY(-5px) scale(.96)} }
@keyframes actionPulse { 0%{opacity:.8;transform:scale(.35)} 100%{opacity:0;transform:scale(1.65)} }
@keyframes quietSeatImpact { 0%{transform:translateY(0)} 28%{transform:translateY(-3px);border-color:rgba(234,215,159,.52)} 100%{transform:none} }
.result-winner { color:var(--brass-soft); }

@media (max-width:520px) {
    .screen.active { animation:none; }
    .modal.active { animation:none; }
    .modal-content { animation:none; }
    .btn-back span { display:none; }
    .btn-back { width:31px; padding:5px; justify-content:center; }
    .btn-icon { width:31px; min-height:30px; }
    .modal-content { padding:18px; border-radius:17px; }
    .settings-content { max-height:88vh; }
    .setting-row { padding:8px 2px; }
}

/* ========== v31 真实牌桌双环：座位沿桌边，下注筹码独立内收 ========== */
.player-seat {
    --bet-x:0px;
    --bet-y:92px;
}
.player-seat .chip-pile {
    left:50%;
    top:50%;
    transform:translate(calc(-50% + var(--bet-x)),calc(-50% + var(--bet-y)));
    z-index:8;
}
.player-seat .chip-pile.collecting-origin {
    opacity:0;
    transform:translate(calc(-50% + var(--bet-x)),calc(-50% + var(--bet-y))) scale(.72);
}
.player-seat[data-visual-seat="0"] { --bet-x:0px; --bet-y:112px; }
.player-seat[data-visual-seat="1"] { --bet-x:-112px; --bet-y:76px; }
.player-seat[data-visual-seat="2"] { --bet-x:-148px; --bet-y:84px; }
.player-seat[data-visual-seat="3"] { --bet-x:-112px; --bet-y:-76px; }
.player-seat[data-visual-seat="4"] { --bet-x:0px; --bet-y:-112px; }
.player-seat[data-visual-seat="5"] { --bet-x:112px; --bet-y:-76px; }
.player-seat[data-visual-seat="6"] { --bet-x:148px; --bet-y:84px; }
.player-seat[data-visual-seat="7"] { --bet-x:112px; --bet-y:76px; }

/* 外围座位环更贴近桌沿，并给状态标签留出安全区 */
.player-seat[data-visual-seat="0"] { top:5% !important; }
.player-seat[data-visual-seat="1"],.player-seat[data-visual-seat="7"] { top:17% !important; }
.player-seat[data-visual-seat="2"],.player-seat[data-visual-seat="6"] { top:50% !important; }
.player-seat[data-visual-seat="3"],.player-seat[data-visual-seat="5"] { top:83% !important; }
.player-seat[data-visual-seat="4"] { top:94% !important; }
.player-seat[data-visual-seat="1"],.player-seat[data-visual-seat="3"] { left:80% !important; }
.player-seat[data-visual-seat="2"] { left:94% !important; }
.player-seat[data-visual-seat="5"],.player-seat[data-visual-seat="7"] { left:20% !important; }
.player-seat[data-visual-seat="6"] { left:6% !important; }

@media (max-width:1199px) and (min-width:900px) {
    .player-seat[data-visual-seat="0"] { --bet-y:98px; }
    .player-seat[data-visual-seat="1"] { --bet-x:-94px; --bet-y:68px; }
    .player-seat[data-visual-seat="2"] { --bet-x:-122px; --bet-y:70px; }
    .player-seat[data-visual-seat="3"] { --bet-x:-94px; --bet-y:-68px; }
    .player-seat[data-visual-seat="4"] { --bet-y:-98px; }
    .player-seat[data-visual-seat="5"] { --bet-x:94px; --bet-y:-68px; }
    .player-seat[data-visual-seat="6"] { --bet-x:122px; --bet-y:70px; }
    .player-seat[data-visual-seat="7"] { --bet-x:94px; --bet-y:68px; }
}

@media (max-width:899px) {
    .player-seat[data-visual-seat="0"] { top:6% !important; --bet-y:78px; }
    .player-seat[data-visual-seat="1"],.player-seat[data-visual-seat="7"] { top:17% !important; }
    .player-seat[data-visual-seat="2"],.player-seat[data-visual-seat="6"] { top:49% !important; }
    .player-seat[data-visual-seat="3"],.player-seat[data-visual-seat="5"] { top:80% !important; }
    .player-seat[data-visual-seat="4"] { top:86% !important; }
    .player-seat[data-visual-seat="1"],.player-seat[data-visual-seat="3"] { left:82% !important; }
    .player-seat[data-visual-seat="2"] { left:93% !important; }
    .player-seat[data-visual-seat="5"],.player-seat[data-visual-seat="7"] { left:18% !important; }
    .player-seat[data-visual-seat="6"] { left:7% !important; }
    .player-seat[data-visual-seat="1"] { --bet-x:-62px; --bet-y:54px; }
    .player-seat[data-visual-seat="2"] { --bet-x:-78px; --bet-y:56px; }
    .player-seat[data-visual-seat="3"] { --bet-x:-62px; --bet-y:-54px; }
    .player-seat[data-visual-seat="4"] { --bet-x:0px; --bet-y:-78px; }
    .player-seat[data-visual-seat="5"] { --bet-x:62px; --bet-y:-54px; }
    .player-seat[data-visual-seat="6"] { --bet-x:78px; --bet-y:56px; }
    .player-seat[data-visual-seat="7"] { --bet-x:62px; --bet-y:54px; }
}

@media (max-width:520px) {
    .poker-table-container { padding:4px 6px 8px; }
    .player-seat { width:68px; }
    .player-card-shell { min-height:40px; padding:5px 4px 5px 26px; }
    .seat-status { top:calc(100% + 2px); max-width:66px; min-height:16px; padding:1px 6px; font-size:8px; }
    .player-seat.current-turn::after { top:-20px; padding:2px 7px; font-size:8px; }
    .player-seat[data-visual-seat="0"] { top:5% !important; --bet-y:69px; }
    .player-seat[data-visual-seat="1"],.player-seat[data-visual-seat="7"] { top:18% !important; }
    .player-seat[data-visual-seat="2"],.player-seat[data-visual-seat="6"] { top:48% !important; }
    .player-seat[data-visual-seat="3"],.player-seat[data-visual-seat="5"] { top:77% !important; }
    .player-seat[data-visual-seat="4"] { top:84% !important; }
    .player-seat[data-visual-seat="1"],.player-seat[data-visual-seat="3"] { left:83% !important; }
    .player-seat[data-visual-seat="2"] { left:92% !important; }
    .player-seat[data-visual-seat="5"],.player-seat[data-visual-seat="7"] { left:17% !important; }
    .player-seat[data-visual-seat="6"] { left:8% !important; }
    .player-seat[data-visual-seat="1"] { --bet-x:-46px; --bet-y:43px; }
    .player-seat[data-visual-seat="2"] { --bet-x:-57px; --bet-y:47px; }
    .player-seat[data-visual-seat="3"] { --bet-x:-46px; --bet-y:-43px; }
    .player-seat[data-visual-seat="4"] { --bet-x:0px; --bet-y:-62px; }
    .player-seat[data-visual-seat="5"] { --bet-x:46px; --bet-y:-43px; }
    .player-seat[data-visual-seat="6"] { --bet-x:57px; --bet-y:47px; }
    .player-seat[data-visual-seat="7"] { --bet-x:46px; --bet-y:43px; }
    .chip-pile { gap:1px; }
    .chip-pile strong { padding:1px 4px; font-size:8px; }
    .chip-stack { transform:scale(.76); transform-origin:right bottom; }
    .community-area { width:54%; top:47%; }
}

/* ========== v32 移动端触控打磨：安全区 / 44px 热区 / 防焦点缩放 / 回合提示去重 / 减弱动效 ========== */
.game-status { white-space:nowrap; }
.action-guidance:empty { display:none; }
/* ::after 已承担"轮到你 / 当前行动"浮动提示，座位内同义状态隐藏，小座位上避免双标拥挤 */
.player-seat.current-turn .seat-status.turn { display:none; }

@media (max-width:899px) {
    /* 刘海屏 / Home 指示条安全区适配（竖屏：顶部与底部） */
    .top-bar { height:auto; min-height:40px; padding-top:calc(6px + env(safe-area-inset-top, 0px)); }
    .bottom-bar { padding-bottom:calc(8px + env(safe-area-inset-bottom, 0px)); }

    /* 小座位上"我的座位"文字与筹码行重叠；绿色描边已足够标识，移动端不显示文字标记 */
    .me-marker { display:none; }

    /* 下注控件全部达到易点尺寸：快捷金额 44px、滑块热区 40px、金额输入 40px */
    .quick-bets .btn-quick-bet {
        min-height:44px; display:flex; align-items:center; justify-content:center; padding:0;
    }
    .bottom-actions .raise-control { min-height:44px; }
    .bottom-actions .raise-control input[type="range"] { flex:1; min-width:48px; height:40px; background:transparent; }
    .bottom-actions .raise-control input[type="range"]::-webkit-slider-runnable-track {
        height:6px; border-radius:3px; background:rgba(255,255,255,.28);
    }
    .bottom-actions .raise-control input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance:none; appearance:none; width:26px; height:26px; margin-top:-10px;
        border-radius:50%; background:#FFA726; border:2px solid rgba(255,255,255,.35);
        box-shadow:0 1px 6px rgba(0,0,0,.5);
    }
    .bottom-actions .raise-control input[type="range"]::-moz-range-track {
        height:6px; border-radius:3px; background:rgba(255,255,255,.28);
    }
    .bottom-actions .raise-control input[type="range"]::-moz-range-thumb {
        width:26px; height:26px; border:none; border-radius:50%; background:#FFA726;
    }
    .bottom-actions .raise-control input[type="number"] { width:58px; min-height:40px; font-size:16px; }

    /* 输入框 16px 字号，防止 iPhone 聚焦时页面自动放大 */
    .chat-input input, .bank-input, .settings-content input[type="number"], .join-input { font-size:16px; }

    /* 弹窗按钮在手机上同样保证 44px 触控高度 */
    .modal-content .btn-primary, .modal-content .btn-modal-close { min-height:44px; }
    .bank-quick button, .bank-btns button { min-height:44px; }

    /* 控件加高后，底部固定栏需要更多避让空间，避免座位环被遮住 */
    .game-main { padding-bottom:252px; }
}

/* 横屏手机的刘海在左右两侧 */
@media (max-width:899px) and (orientation:landscape) {
    .top-bar {
        padding-left:calc(14px + env(safe-area-inset-left, 0px));
        padding-right:calc(14px + env(safe-area-inset-right, 0px));
    }
    .bottom-bar {
        padding-left:calc(10px + env(safe-area-inset-left, 0px));
        padding-right:calc(10px + env(safe-area-inset-right, 0px));
    }
}

@media (max-width:520px) {
    .game-main { padding-bottom:248px; }
    .bottom-actions .raise-control input[type="number"] { width:54px; }
}

/* 开启"减少动态效果"时，停掉所有循环呼吸/闪烁类装饰动画 */
@media (prefers-reduced-motion:reduce) {
    .action-buttons.my-turn,
    .player-seat.current-turn .player-avatar,
    .player-seat.current-turn .player-card-shell,
    .player-seat.winner .player-avatar,
    .waiting-icon,
    .timer-fill.danger,
    .seat-status.local-pending { animation:none !important; }
}

/* ========== v33 批次二：Dock 重排 / 预设按钮 / 全下武装 / 结算卡 / emote / lobby卡 / 辅助开关 ========== */
:root {
    --dock-h: 240px;
    --dock-row-gap: 5px;
}

/* --- Dock 五行布局（移动端底栏）--- */
.bottom-bar {
    display: block;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8,14,28,.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 24px rgba(0,0,0,.55);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
}
.dock-row {
    display: flex; align-items: center;
    gap: var(--dock-row-gap);
    margin-bottom: var(--dock-row-gap);
}
.dock-row:last-child { margin-bottom: 0; }

/* 手牌行 */
.dock-hand-row {
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    position: relative;
}
.dock-hand-row .my-cards {
    display: flex; gap: 3px; align-items: center;
}
.dock-hand-row .hand-hint {
    font-size: 11px;
    color: #ffd700;
    font-weight: 700;
    min-width: 0;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dock-hand-row .my-bet {
    font-size: 10px;
    color: #aab;
}
.dock-hand-row .my-bet span { color: #ffd700; font-weight: 700; }
.dock-hand-row .turn-timer-mini {
    font-size: 10px;
    color: #ffd700;
    font-weight: 700;
}
.dock-hand-row .my-chips-inline {
    font-size: 10px;
    color: #ffd700;
    font-weight: 700;
}
.dock-hand-row .btn-mini-icon {
    width: 28px; height: 28px;
    border: none; border-radius: 6px;
    background: rgba(255,255,255,.08);
    color: #ffd700;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}
.dock-hand-row .btn-mini-icon:active { transform: scale(.92); }

/* 引导行 */
.dock-guidance-row {
    gap: 6px;
    min-height: 28px;
}
.dock-guidance-row .action-guidance {
    flex: 1;
    min-height: 28px;
    margin: 0;
    padding: 4px 10px;
    font-size: 11px;
}
.dock-guidance-row .pot-odds-hint {
    font-size: 10px;
    color: #8bc34a;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 44px;
    text-align: center;
}

/* 操作行：四格等宽 */
.dock-action-row {
    gap: 4px;
}
.dock-action-row .btn-action {
    flex: 1;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 12px;
}

/* 滑块行 */
.dock-slider-row {
    gap: 6px;
    background: rgba(255,255,255,.05);
    border-radius: 8px;
    padding: 4px 8px;
    min-height: 44px;
}
.dock-slider-label {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 40px;
    cursor: pointer;
}
.dock-slider-label input[type="range"] {
    width: 100%;
    height: 40px;
    background: transparent;
    accent-color: #FF9800;
}
.raise-readout {
    font-size: 11px;
    color: #FFB74D;
    font-weight: 700;
    white-space: nowrap;
    min-width: 0;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dock-amount-input {
    width: 52px;
    min-height: 36px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(0,0,0,.3);
    color: #fff;
    font-size: 12px;
    text-align: center;
}
.dock-slider-row .btn-raise {
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
    flex-shrink: 0;
    border-radius: 8px;
}

/* 预设行：四等宽 */
.dock-preset-row {
    gap: 4px;
}
.btn-preset {
    flex: 1;
    min-height: 44px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(255,152,0,.45);
    background: rgba(255,152,0,.1);
    color: #FFB74D;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all .15s;
    letter-spacing: .3px;
}
.btn-preset:hover {
    background: rgba(255,152,0,.25);
    border-color: #FF9800;
    color: #fff;
}
.btn-preset:active { transform: scale(.96); }

/* 全下武装态 */
body.allin-armed .btn-allin {
    background: linear-gradient(135deg, #f44336, #b71c1c) !important;
    animation: allinArmPulse .8s ease-in-out infinite alternate;
}
@keyframes allinArmPulse {
    from { box-shadow: 0 3px 10px rgba(244,67,54,.4); }
    to { box-shadow: 0 3px 20px rgba(244,67,54,.8); }
}
.btn-raise.raise-max {
    background: linear-gradient(135deg, #ef5350, #c62828) !important;
    box-shadow: 0 3px 12px rgba(244,67,54,.5);
}

/* --- 结算卡 --- */
.settlement-card {
    position: absolute;
    top: calc(50% + 70px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 88%;
    max-width: 420px;
    max-height: 42vh;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
    z-index: 20;
}
.settlement-card.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.sc-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sc-winner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(4,19,19,.92);
    border: 1px solid rgba(235,205,124,.35);
    backdrop-filter: blur(8px);
}
.sc-winner.sc-hero {
    border-color: rgba(255,215,0,.6);
    box-shadow: 0 0 16px rgba(255,215,0,.25);
}
.sc-winner-head {
    display: flex;
    align-items: center;
    gap: 6px;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}
.sc-avatar { font-size: 18px; }
.sc-id {
    font-size: 12px;
    font-weight: 700;
    color: #f5e3ad;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sc-hand {
    font-size: 10px;
    color: #9eaca7;
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}
.sc-amount {
    font-size: 15px;
    font-weight: 900;
    color: #8ce0a5;
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.sc-net {
    font-size: 10px;
    font-weight: 700;
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    text-align: right;
}
.sc-net.net-pos { color: #8ce0a5; }
.sc-net.net-neg { color: #ff8a80; }

/* --- emote 气泡 --- */
.player-seat .emote-bubble {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(.6);
    font-size: 22px;
    opacity: 0;
    pointer-events: none;
    z-index: 22;
    transition: all .18s cubic-bezier(.2,.8,.2,1.2);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.player-seat .emote-bubble.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    animation: emoteFloat 1.6s ease forwards;
}
@keyframes emoteFloat {
    0%   { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.7); }
    15%  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.1); }
    25%  { transform: translateX(-50%) translateY(-2px) scale(1); }
    75%  { opacity: 1; transform: translateX(-50%) translateY(-4px) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(.9); }
}

/* --- emote 快捷行 --- */
.emote-quick-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 10px;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.emote-quick-row .emote-btns,
.emote-quick-row .phrase-btns {
    display: flex;
    gap: 4px;
    justify-content: center;
}
.emote-quick-row .emote-btns button {
    width: 32px; height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    font-size: 16px;
    cursor: pointer;
    transition: all .12s;
}
.emote-quick-row .emote-btns button:hover { background: rgba(255,255,255,.15); transform: scale(1.1); }
.emote-quick-row .emote-btns button:active { transform: scale(.92); }
.emote-quick-row .phrase-btns button {
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: #b7c3ca;
    font-size: 11px;
    cursor: pointer;
    transition: all .12s;
}
.emote-quick-row .phrase-btns button:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.25);
}

/* 聊天区 emote 消息样式 */
.chat-msg.emote {
    font-style: normal;
}
.chat-msg.emote .chat-text {
    font-size: 16px;
}

/* --- Lobby 中央卡 --- */
#lobby-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 380px;
    z-index: 15;
    pointer-events: none;
}
.lobby-card {
    background: rgba(7,17,21,.92);
    border: 1px solid rgba(235,205,124,.3);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    animation: lobbyCardIn .4s cubic-bezier(.2,1.2,.4,1);
}
@keyframes lobbyCardIn {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.lobby-title {
    font-size: 14px;
    font-weight: 800;
    color: #f5e3ad;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: .5px;
}
.lobby-countdown {
    text-align: center;
    font-size: 12px;
    color: #8bc34a;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 4px 0;
    background: rgba(139,195,74,.1);
    border-radius: 6px;
}
.lobby-records {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 10px 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.lobby-record {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lobby-record span {
    font-size: 9px;
    color: #7a8a86;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.lobby-record b {
    font-size: 12px;
    color: #ffd700;
    font-weight: 800;
}
.lobby-profit {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.lobby-profit-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 2px 0;
}
.lobby-profit-row span { color: #9eaca7; }
.lobby-profit-row b { color: #8ce0a5; font-weight: 700; }
.lobby-optout-note {
    text-align: center;
    font-size: 11px;
    color: #ff8a80;
    margin-top: 6px;
    padding: 4px;
    background: rgba(255,138,128,.08);
    border-radius: 6px;
}

/* --- 牌力/赔率提示 --- */
.hand-hint:empty { display: none; }
.pot-odds-hint:empty { display: none; }

/* --- 左侧面板：赔率提示 & 手牌提示 --- */
.side-left .pot-odds-hint {
    text-align: center;
    font-size: 11px;
    color: #8bc34a;
    font-weight: 700;
    padding: 2px 0 4px;
}
.side-left .hand-hint {
    font-size: 11px;
    color: #ffd700;
    font-weight: 700;
}
.side-left .raise-readout {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #FFB74D;
    font-weight: 700;
    padding: 2px 0 4px;
}
.side-left .btn-preset {
    min-height: 32px;
    font-size: 11px;
}

/* --- 设置弹窗：新开关样式 --- */
.setting-row.toggle-row {
    cursor: pointer;
}
.setting-row.toggle-row input[type="checkbox"] {
    display: none;
}
.setting-row.toggle-row i {
    width: 40px; height: 22px;
    border-radius: 11px;
    background: rgba(255,255,255,.15);
    position: relative;
    transition: all .2s;
    display: inline-block;
}
.setting-row.toggle-row i::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: all .2s;
}
.setting-row.toggle-row input:checked + i {
    background: #4CAF50;
}
.setting-row.toggle-row input:checked + i::after {
    left: 20px;
}
.setting-row.volume-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}
.setting-row.volume-row > span {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.setting-row.volume-row input[type="range"] {
    width: 100%;
    accent-color: #4CAF50;
}
.setting-row.volume-row em {
    font-style: normal;
    color: #ffd700;
    font-weight: 700;
}
.settings-section-title {
    font-size: 11px;
    color: #7a8a86;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 12px 4px 4px;
    font-weight: 700;
}

/* --- relief 弹窗 --- */
.relief-content .relief-text {
    color: #b7c3ca;
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0;
}
.relief-btns .btn-primary {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}
.relief-btns .btn-modal-close {
    background: linear-gradient(135deg, #FF9800, #E65100);
    color: #fff;
    border: none;
}

/* --- 响应式三断点 --- */

/* ≥ 900px：桌面端，Dock 隐藏 */
@media (min-width: 900px) {
    .bottom-bar { display: none !important; }
    .game-main { padding-bottom: 0 !important; }
    .settlement-card {
        top: calc(50% + 80px);
        max-width: 480px;
    }
    .sc-winner {
        padding: 10px 16px;
    }
    .sc-id { max-width: 140px; }
    .sc-amount { font-size: 18px; }
    .lobby-records { gap: 10px; }
    .lobby-record b { font-size: 14px; }
    .lobby-record span { font-size: 10px; }
}

/* 600-899px：平板 */
@media (min-width: 600px) and (max-width: 899px) {
    :root { --dock-h: 220px; }
    .game-main { padding-bottom: var(--dock-h); }
    .dock-hand-row { gap: 12px; }
    .dock-hand-row .hand-hint { max-width: 120px; font-size: 12px; }
    .raise-readout { max-width: 100px; font-size: 12px; }
    .settlement-card { max-width: 440px; }
    .player-seat { width: 80px; }
    .player-avatar { width: 34px; height: 34px; font-size: 15px; }
    .card.community { width: 44px; height: 60px; font-size: 19px; }
}

/* ≤ 390px：小屏手机（紧凑布局） */
@media (max-width: 390px) {
    :root { --dock-h: 252px; }
    .game-main { padding-bottom: var(--dock-h); }
    .dock-hand-row { gap: 4px; flex-wrap: wrap; justify-content: space-around; }
    .dock-hand-row .my-chips-inline { font-size: 9px; }
    .dock-hand-row .turn-timer-mini { font-size: 9px; }
    .dock-action-row .btn-action {
        font-size: 11px;
        padding: 8px 2px;
    }
    .dock-preset-row .btn-preset {
        font-size: 11px;
        min-height: 44px;
        padding: 0 2px;
    }
    .lobby-card { padding: 10px 12px; }
    .lobby-record b { font-size: 11px; }
    .settlement-card { width: 94%; }
    .sc-winner { padding: 6px 10px; }
    .sc-amount { font-size: 14px; }
    .player-seat { width: 56px; }
}

/* --- 减弱动效 --- */
@media (prefers-reduced-motion: reduce) {
    .player-seat .emote-bubble.show { animation-duration: .12s !important; }
    .lobby-card { animation-duration: .12s !important; }
    body.allin-armed .btn-allin { animation: none !important; }
    .settlement-card { transition-duration: .1s !important; }
    .deal-flight-card.flying { animation-duration: .12s !important; }
}

/* ========== v34 牌面放大 / 焦点集中：公牌与手牌显著放大，压缩无效空白 ========== */
/* 桌面（≥900px）：公牌 72→88，手牌 44→52，中央区域加宽 */
@media (min-width:900px) {
    .community-area { width:74%; top:50%; }
    .community-cards { gap:12px; min-height:122px; margin-bottom:8px; }
    .card.community { width:88px; height:122px; font-size:34px; border-radius:10px; }
    .card.mine { width:52px; height:72px; font-size:22px; }
    .side-cards { min-height:74px; gap:6px; }
    .street-label { margin-bottom:7px; }
    .deal-flight-card { width:34px; height:47px; margin:-23px 0 0 -17px; }
    .dealer-deck { width:40px; height:56px; }
}
@media (max-width:1199px) and (min-width:900px) {
    .card.community { width:74px; height:103px; font-size:29px; }
    .community-cards { min-height:106px; gap:9px; }
    .card.mine { width:48px; height:67px; font-size:20px; }
}
/* 平板/手机：公牌 48→56，dock 手牌 34→50，中央区域占满牌桌宽度 */
@media (max-width:899px) {
    .community-area { width:90%; top:47%; }
    .community-cards { gap:6px; min-height:78px; margin-bottom:6px; }
    .card.community { width:56px; height:78px; font-size:23px; }
    .community-cards .card:nth-child(4), .community-cards .card:nth-child(5) { margin-left:2px; }
    .street-label { margin-bottom:4px; padding:2px 8px; }
    .dock-hand-row .my-cards .card.mine,
    .dock-hand-row .card.mine { width:50px; height:70px; font-size:20px; }
    .dock-hand-row { min-height:62px; }
    .dock-hand-row .my-cards { flex-shrink:0; }
    .dock-hand-row .my-cards .card { flex-shrink:0; }
    .card.tiny { width:20px; height:28px; font-size:10px; }
    .player-seat.hole-dealing .player-cards.own-seat-cards .card.tiny,
    .player-cards.revealed-cards .card.tiny { width:20px; height:28px; font-size:9px; }
}
@media (max-width:480px) {
    .community-area { width:96%; top:47%; }
    .community-cards { gap:4px; min-height:66px; }
    .card.community { width:46px; height:64px; font-size:19px; }
    .dock-hand-row .my-cards .card.mine,
    .dock-hand-row .card.mine { width:44px; height:61px; font-size:18px; }
    .dock-hand-row { min-height:58px; }
    .dock-hand-row .my-cards { gap:4px; }
    .table-info-bar { margin-bottom:4px; }
}
/* 公牌不被 flex 挤压 */
.community-cards .card { flex-shrink:0; }
/* 全桌未还借款提示（大厅卡内） */
.lobby-bank {
    text-align:center; font-size:11px; font-weight:700; color:#ff9e80;
    background:rgba(255,138,128,.08); border:1px solid rgba(255,138,128,.22);
    border-radius:6px; padding:4px 0; margin-bottom:8px;
}
.bank-balance { flex-wrap:wrap; gap:8px 12px; }
.bank-debts { margin:0 0 10px; max-height:120px; overflow-y:auto; }
.bank-debts:empty { display:none; }
.bank-debt-row {
    display:flex; justify-content:space-between; align-items:center;
    padding:5px 10px; margin-bottom:4px; border-radius:7px;
    background:rgba(255,138,128,.08); border:1px solid rgba(255,138,128,.18);
    font-size:12px;
}
.bank-debt-row b { color:#ff8a80; font-weight:800; }
.bank-debt-row.me { background:rgba(255,215,0,.1); border-color:rgba(255,215,0,.3); }
.bank-debt-row.me b { color:#ffd700; }
