:root{--ink:#16202b;--muted:#7d8791;--line:#e6e9e7;--paper:#f6f7f5;--green:#0f5b49;--green2:#164f42;--red:#c74647;--gold:#d6a85a;--navy:#10252b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Manrope,system-ui,sans-serif;font-size:14px}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.brand{display:flex;align-items:center;gap:11px;letter-spacing:.12em}.brand-mark{width:31px;height:31px;display:grid;place-items:center;border:1.5px solid var(--green);color:var(--green);font-family:Georgia;font-size:21px}.brand strong{font-size:12px;display:block}.brand small{display:block;color:#9aa29f;font-size:9px;letter-spacing:.08em;margin-top:3px}.topbar-center{display:flex;align-items:center;gap:9px;color:#79837e;font-size:10px;letter-spacing:.12em}.live-dot,.status-dot{display:inline-block;width:7px;height:7px;background:#42a877;border-radius:50%;box-shadow:0 0 0 4px #e2f2e9}.table-id{color:#b1b8b5;margin-left:10px;letter-spacing:.06em}.top-actions{display:flex;align-items:center;gap:18px}.icon-btn,.more-btn{border:0;background:transparent;color:#77817d;font-size:18px;cursor:pointer}.profile-btn{border:0;background:transparent;display:flex;align-items:center;gap:9px;color:var(--ink);cursor:pointer}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#dfece7;color:var(--green);font-size:12px;font-weight:700}.profile-copy{text-align:left}.profile-copy b{display:block;font-size:12px}.profile-copy small{display:block;color:#9ca5a1;font-size:10px;margin-top:2px}.chevron{color:#8b9692;margin-left:4px}.layout{max-width:1440px;width:100%;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:30px;padding:34px 38px 24px;flex:1}.stage-head{display:flex;align-items:flex-end;justify-content:space-between;margin:0 2px 20px}.eyebrow{color:#9da6a3;font-size:10px;letter-spacing:.13em;font-weight:700}.stage-head h1{font-size:27px;letter-spacing:-.03em;margin:8px 0 0;font-weight:700}.round-status{display:flex;align-items:center;gap:10px;color:#78827e;font-size:12px}.round-status .countdown{color:var(--green);font-family:'DM Mono',monospace;font-size:15px;font-weight:500;margin-left:7px}.table-wrap{background:#e9ece9;padding:12px;box-shadow:0 5px 20px #182e2510}.felt{min-height:462px;border-radius:7px;background:radial-gradient(circle at 50% 45%,#1b6957,#0d5144 72%);color:#fff;position:relative;padding:24px 28px 18px;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff16,inset 0 -25px 70px #092c26}.felt:before{content:"";position:absolute;inset:12px;border:1px solid #ffffff25;border-radius:5px;pointer-events:none}.table-brand{position:absolute;top:31px;left:50%;transform:translateX(-50%);letter-spacing:.31em;font-family:Georgia,serif;font-size:15px;color:#d4e8db}.table-brand span{color:#a3cfb2}.watermark{position:absolute;opacity:.07;font-size:270px;line-height:1;left:44%;top:98px;font-family:Georgia}.seat-row{display:flex;justify-content:space-between;position:relative;z-index:1}.seat{display:flex;align-items:center;gap:9px;min-width:155px}.seat-avatar{width:32px;height:32px;border:1px solid #dbeee36a;border-radius:50%;display:grid;place-items:center;color:#e9f4ed;font-weight:700}.seat small{display:block;color:#b3cfc1;font-size:10px;margin-top:2px}.ready-pill{margin-left:7px;border:1px solid #9dd5b03c;color:#a9ddba;border-radius:2px;font-size:8px;padding:4px 6px;letter-spacing:.08em}.ready-pill.mine{color:#e6d09d;border-color:#e6d09d54}.you{text-align:right;justify-content:flex-end}.you .seat-avatar{order:3}.you-avatar{background:#d6b475;color:#29463b;border:0}.game-area{position:relative;z-index:1;display:flex;justify-content:center;align-items:center;gap:38px;margin-top:87px}.hand-block{text-align:center;min-width:170px}.hand-label{font-size:11px;letter-spacing:.15em;color:#c5dfd0;margin-bottom:17px}.hand-label span{font-family:'DM Mono';font-size:17px;color:#fff;margin-left:10px}.cards{height:122px;display:flex;justify-content:center;position:relative}.card{width:75px;height:106px;background:#fff;border-radius:5px;border:1px solid #d4dad6;box-shadow:3px 5px 8px #052f2659;margin-left:-13px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;font-family:Georgia,serif}.card:first-child{margin-left:0}.card .suit{font-size:28px;line-height:1}.card .rank{font-size:20px;font-weight:bold;line-height:1}.card.red{color:#c4474a}.card.black{color:#1b2b33}.card.back{background:repeating-linear-gradient(45deg,#185b4d,#185b4d 4px,#1a6656 4px,#1a6656 8px);border-color:#9ac5b4}.vs-badge{width:35px;height:35px;border:1px solid #d4e4d780;border-radius:50%;display:grid;place-items:center;color:#dcece1;font-size:10px;letter-spacing:.06em;margin-top:32px}.table-footer{position:absolute;bottom:19px;left:28px;right:28px;display:flex;justify-content:space-between;align-items:center;color:#afd0be;font-size:10px;z-index:1}.table-footer .round-chip{color:#d4e4d9}.mini-dot{display:inline-block;width:6px;height:6px;background:#72c795;border-radius:50%;margin-right:6px}.bet-panel{margin-top:23px;background:#fff;border:1px solid var(--line);padding:22px 23px 18px}.bet-head{display:flex;align-items:flex-start;justify-content:space-between}.bet-head h2{font-size:17px;margin:7px 0 0}.balance{text-align:right}.balance span{display:block;color:#9ca5a2;font-size:10px}.balance strong{display:block;font-family:'DM Mono';font-size:19px;margin-top:4px}.balance b{font-weight:500}.bet-zones{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:22px}.bet-zone{height:64px;border:1px solid #e5e8e5;background:#fbfcfb;display:flex;align-items:center;gap:11px;text-align:left;padding:9px 12px;cursor:pointer;transition:.18s;position:relative}.bet-zone:hover,.bet-zone.selected{border-color:var(--green);background:#f1f8f4}.zone-label{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#e8efec;color:var(--green);font-family:Georgia;font-size:18px}.tie-zone .zone-label{color:#a47322;background:#f6eddc}.player-zone .zone-label{color:#b04449;background:#fae7e7}.bet-zone strong{font-size:12px;display:block}.bet-zone small{font-size:10px;color:#9aa39f;display:block;margin-top:4px}.zone-amount{margin-left:auto;color:var(--green);font-family:'DM Mono';font-size:11px}.chip-row{display:flex;align-items:center;gap:10px;margin-top:19px}.chip-label{color:#8a9590;font-size:11px;margin-right:3px}.chips{display:flex;gap:8px}.chip{width:39px;height:39px;border-radius:50%;border:1px solid #d5ded9;background:#fff;color:#246150;font-family:'DM Mono';font-size:10px;cursor:pointer}.chip.active{background:var(--green);color:#fff;border-color:var(--green);box-shadow:0 3px 7px #0f5b4930}.chip.blue{color:#2e6583}.chip.purple{color:#795681}.chip.gold{color:#a87e26}.chip.black{color:#3c4747}.clear-btn{margin-left:auto;background:transparent;border:0;color:#9ca6a2;font-size:11px;cursor:pointer}.deal-btn{height:40px;background:var(--green);border:0;color:#fff;padding:0 17px;font-weight:700;font-size:11px;letter-spacing:.02em;cursor:pointer;box-shadow:0 4px 10px #0f5b4929}.deal-btn span{font-size:17px;margin-left:10px;vertical-align:-1px}.bet-note{color:#a3aba8;font-size:10px;margin-top:16px}.bet-note span{color:#b28a38;font-size:16px;vertical-align:-1px;margin-right:5px}.sidebar{display:flex;flex-direction:column;gap:14px}.side-card{background:#fff;border:1px solid var(--line);padding:20px}.side-title{display:flex;align-items:flex-start;justify-content:space-between}.side-title h3{font-size:15px;margin:6px 0 0}.trend-grid{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:25px;gap:5px;margin-top:20px;border-top:1px solid #edf0ed;padding-top:15px}.trend-cell{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-family:'DM Mono';border:1px solid}.trend-cell.player{background:#f9e5e5;color:#bb484c;border-color:#e9b5b6}.trend-cell.banker{background:#e3f1ec;color:#1c755d;border-color:#a6d0c0}.trend-cell.tie{background:#f7eddc;color:#aa7a24;border-color:#e4c786}.trend-legend{border-top:1px solid #edf0ed;margin-top:18px;padding-top:13px;display:flex;justify-content:space-between;color:#8e9893;font-size:10px}.trend-legend b{color:var(--ink);font-family:'DM Mono';font-weight:500;margin-left:2px}.legend-dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:4px}.player-dot{background:#bd5759}.banker-dot{background:#2a8066}.tie-dot{background:#be8b31}.live-label{color:#398767;font-family:'DM Mono';font-size:9px;padding-top:3px}.stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #edf0ed;margin-top:17px}.stats>div{padding:14px 0 4px}.stats>div:nth-child(odd){border-right:1px solid #edf0ed;padding-right:15px}.stats>div:nth-child(even){padding-left:15px}.stats>div:nth-child(-n+2){border-bottom:1px solid #edf0ed}.stats small{display:block;color:#9aa39f;font-size:10px}.stats strong{display:block;font-family:'DM Mono';font-size:16px;margin-top:6px}.stats .profit{color:#2e8963}.history-list{border-top:1px solid #edf0ed;margin-top:17px}.history-item{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid #f0f2f0}.history-item:last-child{border-bottom:0;padding-bottom:0}.history-round{color:#9ca7a2;font:10px 'DM Mono'}.history-result{display:flex;align-items:center;gap:6px;font-size:11px}.result-dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-family:Georgia;font-size:12px}.result-dot.player{background:#fae7e7;color:#bd4f52}.result-dot.banker{background:#e3f1ec;color:#247a60}.result-dot.tie{background:#f8eedf;color:#ad7d29}.history-payout{font:10px 'DM Mono';color:#318364}.history-payout.loss{color:#bc5856}.help-line{display:flex;align-items:center;gap:8px;color:#a4aca9;font-size:10px;padding:5px 3px}.help-line span:first-child{color:#8e9b96;font-size:15px}.help-line kbd{margin-left:auto;border:1px solid #dfe4e0;background:#fff;padding:3px 5px;color:#66736d;font:10px 'DM Mono'}.help-line kbd~small{margin-left:-4px}.page-foot{max-width:1440px;width:100%;margin:0 auto;padding:0 38px 25px;display:flex;justify-content:space-between;color:#adb5b2;font-size:9px;letter-spacing:.05em}.toast{position:fixed;left:50%;bottom:32px;transform:translate(-50%,20px);background:#162b28;color:#fff;padding:12px 18px;font-size:12px;opacity:0;pointer-events:none;transition:.25s;z-index:10}.toast.show{opacity:1;transform:translate(-50%,0)}

/* ===== 通用 ===== */
.hidden{display:none !important}

/* ===== 登录 / 注册 ===== */
.auth-view,.room-view{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;background:radial-gradient(circle at 50% 30%,#1b6957,#0d5144 70%);padding:24px;overflow-y:auto;-webkit-overflow-scrolling:touch}
/* 子项 margin:auto：内容不足时自动居中，超出时从顶部排开且可完整滚动（修复大厅顶部划不到的问题） */
.auth-view>*,.room-view>*{margin:auto}
.auth-view>.auth-card,.room-view>.room-card{margin-top:auto;margin-bottom:auto}
.auth-card{width:100%;max-width:380px;background:#fff;border-radius:10px;padding:32px 30px 26px;box-shadow:0 20px 60px #06231d66}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}.auth-brand .brand-mark{width:38px;height:38px;font-size:24px}.auth-brand strong{font-size:15px;display:block;letter-spacing:.1em}.auth-brand small{display:block;color:#9aa29f;font-size:10px;letter-spacing:.06em;margin-top:3px}
.auth-tabs{display:flex;gap:6px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.auth-tab{flex:1;border:0;background:transparent;padding:11px 0;font-size:13px;color:#8e9893;cursor:pointer;border-bottom:2px solid transparent;font-weight:600}
.auth-tab.active{color:var(--green);border-bottom-color:var(--green)}
.auth-form{display:flex;flex-direction:column;gap:14px}
.auth-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#6b7570}
.auth-form input{height:42px;border:1px solid var(--line);border-radius:6px;padding:0 13px;font-size:13px;outline:none;transition:.15s}
.auth-form input:focus{border-color:var(--green);box-shadow:0 0 0 3px #0f5b491a}
.auth-submit{height:44px;background:var(--green);color:#fff;border:0;border-radius:6px;font-size:14px;font-weight:700;letter-spacing:.1em;cursor:pointer;margin-top:4px;transition:.15s}
.auth-submit:hover{background:var(--green2)}
.auth-err{color:var(--red);font-size:12px;margin:0;min-height:16px}
.forgot-link{background:none;border:0;color:#8fb8a6;font-size:12px;cursor:pointer;padding:0;margin-top:2px;align-self:flex-end;text-decoration:underline}
.forgot-link:hover{color:#cfe9dd}
.forgot-q{color:#d6a85a;font-size:13px;font-weight:700;margin:0 0 2px}
.vip-editor{margin:10px 0 4px;padding:10px 12px;border:1px solid rgba(245,185,66,.45);border-radius:12px;background:linear-gradient(135deg,rgba(245,185,66,.14),rgba(245,185,66,.05))}
.vip-title{font-size:12px;color:#f5c76a;font-weight:700;margin-bottom:8px}
.vip-row{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.vip-row:last-child{margin-bottom:0}
.vip-row span{font-size:12px;color:#cbb98c;width:42px}
.vip-row select{padding:6px 8px;border-radius:8px;border:1px solid rgba(245,185,66,.4);background:#0c2620;color:#f3e9cf;font-size:13px}
.auth-tip{text-align:center;color:#a3aba8;font-size:11px;margin:14px 0 0}

/* ===== 创建房间 ===== */
.room-card{width:100%;max-width:760px;background:#fff;border-radius:10px;padding:30px;box-shadow:0 20px 60px #06231d66}
.room-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.room-head h2{font-size:22px;margin:0}
.logout-btn{background:transparent;border:1px solid var(--line);color:#6b7570;padding:7px 14px;border-radius:6px;font-size:12px;cursor:pointer}
.logout-btn:hover{border-color:var(--red);color:var(--red)}
.room-sub{color:#7d8791;font-size:13px;margin:0 0 22px}
.room-sub b{color:var(--green)}
.room-modes{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.mode-card{border:1px solid var(--line);border-radius:10px;padding:20px;display:flex;flex-direction:column;gap:12px;transition:.18s;background:#fbfcfb}
.mode-card:hover{border-color:var(--green);box-shadow:0 6px 18px #0f5b4912}
.mode-icon{font-size:32px}
.mode-info h3{font-size:16px;margin:0 0 6px}
.mode-info p{font-size:12px;color:#8e9893;margin:0;line-height:1.6}
.mode-btn{height:40px;background:var(--green);color:#fff;border:0;border-radius:6px;font-size:13px;font-weight:700;cursor:pointer;margin-top:auto}
.mode-btn:hover{background:var(--green2)}
.room-tip{margin-top:20px;color:#a3aba8;font-size:11px;text-align:center}
.join-input{display:flex;gap:8px;margin-top:auto}
.join-input input{flex:1;height:40px;border:1px solid var(--line);border-radius:6px;padding:0 12px;font-size:14px;outline:none;text-align:center;letter-spacing:.2em;font-family:'DM Mono'}
.join-input input:focus{border-color:var(--green)}
.transfer-input input#transferAmount{flex:.7;letter-spacing:normal;text-align:left}
@media(max-width:640px){.transfer-input{flex-wrap:wrap}.transfer-input input{flex:1 1 100%!important}.transfer-input button{flex:1 1 100%}}
.join-card .mode-btn{margin-top:0}

/* ===== 兑换码 & 余额 ===== */
.redeem-card{margin-top:16px;border:1px dashed #d9c48a;border-radius:10px;padding:18px 20px;display:flex;flex-direction:column;gap:12px;background:#fdf9ef}
.redeem-card .mode-info h3{color:#8a6d1d}
.redeem-card .mode-info p{color:#a08c4f}
.gold-btn{background:var(--gold) !important;color:#3d2c05 !important}
.gold-btn:hover{background:#c49a48 !important}
.balance-chip{background:#e8efec;color:var(--green);font-size:11px;padding:3px 10px;border-radius:12px;font-weight:600}

/* ===== 顶栏模式标签 & 离开 ===== */
.room-mode-tag{background:#e8efec;color:var(--green);font-size:10px;padding:4px 10px;border-radius:12px;letter-spacing:.05em;font-weight:700}
.leave-btn{font-size:16px !important}
.leave-btn:hover{color:var(--red)}

/* ===== 多座位（1vMany） ===== */
.seat-row{flex-wrap:wrap;gap:10px}
.seat-row.multi .seat.opponent{min-width:120px}
@media(max-width:620px){.seat-row.multi .seat.opponent{min-width:0;flex:1 1 40%}}

/* ===== 对战区（垂直：对手 → 底池 → 我） ===== */
.duel-area{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:60px}
.duel-hand{text-align:center;min-width:200px}
.duel-hand .hand-label{font-size:11px;letter-spacing:.15em;color:#c5dfd0;margin-bottom:12px}
.duel-hand .hand-label span{font-family:'DM Mono';font-size:13px;color:#d6a85a;margin-left:10px}
.opp-hand .hand-label span{color:#e9b5b6}
.opp-area{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;width:100%}
.opp-area .opp-hand{flex:1 1 140px;max-width:180px;min-width:120px;background:#ffffff0a;border-radius:10px;padding:10px 8px 8px;border:1px solid #ffffff12;transition:.2s}
.opp-area .opp-hand.active{border-color:#d6a85a;box-shadow:0 0 0 2px #d6a85a40}
.opp-area .opp-hand.folded{opacity:.45}
.opp-area .opp-hand.settled{border-color:#7bc47f}
.opp-area .opp-hand .fold-tag{color:#ff7070;font-weight:600;margin-left:6px}
.opp-area .opp-hand .settled-tag{color:#7bc47f;font-weight:600;margin-left:6px}
.opp-area .opp-hand .opp-bet{font-size:11px;color:#d6a85a}
.opp-area .opp-hand .role-tag{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.08em;padding:2px 7px;border-radius:6px;margin-right:2px;vertical-align:1px}
.opp-area .opp-hand .role-tag.host{background:#d6a85a;color:#231a08}
.opp-area .opp-hand .role-tag.player{background:#3d7ea6;color:#eaf6ff}
.opp-area .cards{justify-content:center}
.opp-area .cards .card{width:38px;height:54px;font-size:11px}
.my-hand .hand-label span{color:#fff;font-size:17px}
.pot-box{background:#ffffff12;border:1px solid #ffffff25;border-radius:10px;padding:12px 28px;text-align:center;backdrop-filter:blur(4px)}
.pot-label{font-size:10px;letter-spacing:.15em;color:#afd0be}
.pot-amount{font-family:'DM Mono';font-size:24px;color:#fff;margin:4px 0;font-weight:500}
.pot-hint{font-size:10px;color:#9cc4b2;letter-spacing:.05em}

/* ===== 操作面板 ===== */
.action-panel{margin-top:23px;background:#fff;border:1px solid var(--line);padding:22px 23px 18px}
.action-head{display:flex;align-items:flex-start;justify-content:space-between}
.action-head h2{font-size:17px;margin:7px 0 0}
.action-msg{color:#7d8791;font-size:13px;margin:14px 0 6px;min-height:18px}
.action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.act-btn{height:42px;padding:0 20px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:.15s;letter-spacing:.03em}
.act-btn:hover{border-color:var(--green);color:var(--green)}
.act-btn.primary{background:var(--green);color:#fff;border-color:var(--green)}
.act-btn.primary:hover{background:var(--green2)}
.act-btn.gold{background:#d6a85a;color:#fff;border-color:#d6a85a}
.act-btn.gold:hover{background:#c09445}
.act-btn.danger{background:#fff;color:var(--red);border-color:#ecc9ca}
.act-btn.danger:hover{background:var(--red);color:#fff}
.act-btn:disabled{opacity:.5;cursor:not-allowed}

@media(max-width:980px){.topbar{padding:0 20px}.topbar-center{display:none}.layout{grid-template-columns:1fr;padding:25px 20px}.sidebar{display:grid;grid-template-columns:1fr 1fr}.history-card,.help-line{grid-column:1/-1}.page-foot{padding:0 20px 20px}.felt{min-height:430px}}

/* ===== 手机端优化 ===== */
@media(max-width:620px){
  body{font-size:15px;-webkit-tap-highlight-color:transparent}
  /* 顶栏 */
  .topbar{height:60px;padding:0 14px}
  .brand strong{font-size:11px}.brand small{display:none}
  .brand-mark{width:27px;height:27px;font-size:18px}
  .top-actions{gap:12px}
  /* 登录/大厅 */
  .auth-view,.room-view{padding:14px;padding-top:max(24px,env(safe-area-inset-top))}
  .auth-card{padding:24px 20px 20px;border-radius:12px}
  .auth-submit{height:48px;font-size:15px}
  .auth-form input{height:46px;font-size:15px}
  .room-card{padding:20px 16px;border-radius:12px}
  .room-head h2{font-size:19px}
  .room-sub{font-size:12px;line-height:1.7}
  .room-modes{grid-template-columns:1fr;gap:12px}
  .mode-card{padding:16px;gap:10px}
  .mode-icon{font-size:26px}
  .mode-btn{height:46px;font-size:14px}
  .join-input input{height:46px;font-size:15px;letter-spacing:.15em}
  .redeem-card{padding:14px 16px}
  /* 游戏布局 */
  .layout{padding:14px 10px 16px;gap:14px}
  .stage-head{align-items:center;margin-bottom:12px}
  .stage-head h1{font-size:19px}
  .round-status{font-size:0;gap:6px}
  .round-status .countdown{font-size:13px}
  #statusText{font-size:11px}
  /* 牌桌 */
  .table-wrap{padding:6px;border-radius:8px}
  .felt{min-height:0;padding:14px 10px 46px;border-radius:8px}
  .table-brand{font-size:10px;top:14px;letter-spacing:.22em}
  .watermark{font-size:150px;top:110px}
  .seat{min-width:0;font-size:11px;gap:7px}
  .seat-avatar{width:28px;height:28px;font-size:12px}
  .seat small{font-size:9px}
  .ready-pill{display:none}
  .duel-area{gap:8px;margin-top:22px}
  .duel-hand{min-width:0}
  .duel-hand .hand-label{font-size:10px;margin-bottom:8px}
  .my-hand .hand-label span{font-size:15px}
  .cards{height:auto}
  .card{width:52px;height:76px;margin-left:-10px;border-radius:6px}
  .card .suit{font-size:19px}.card .rank{font-size:15px}
  .pot-box{padding:8px 22px;border-radius:9px}
  .pot-amount{font-size:19px;margin:2px 0}
  .pot-label,.pot-hint{font-size:9px}
  .table-footer{left:12px;right:12px;bottom:12px;font-size:9px}
  .table-footer span:nth-child(2){display:none}
  /* 操作面板：大按钮易点 */
  .action-panel{margin-top:12px;padding:16px 14px;border-radius:10px}
  .action-head h2{font-size:16px}
  .balance strong{font-size:17px}
  .action-msg{font-size:12px;margin:10px 0 4px}
  .action-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .act-btn{height:48px;font-size:14px;border-radius:9px;padding:0 10px}
  .chip-row{flex-wrap:wrap;gap:8px;margin-top:14px}
  .chip-label{width:100%;font-size:11px}
  .chips{gap:10px;flex-wrap:wrap}
  .chip{width:46px;height:46px;font-size:11px}
  .custom-chip{margin-left:0;width:100%}
  .custom-chip input{flex:1;height:42px}
  .bet-note{font-size:10px}
  /* 侧栏 */
  .sidebar{display:flex;flex-direction:column;gap:12px}
  .side-card{padding:16px 14px;border-radius:10px}
  .trend-grid{grid-template-columns:repeat(12,1fr);grid-auto-rows:22px}
  .page-foot{padding:0 14px calc(14px + env(safe-area-inset-bottom));flex-wrap:wrap;gap:6px}
  .page-foot span:nth-child(2){display:none}
  .toast{bottom:24px;width:86%;text-align:center;font-size:13px}
}

/* 自定义加注输入框 */
.ante-input{margin-top:8px}
.ante-input label{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:#111}
.ante-input input{width:90px;padding:6px 10px;border-radius:7px;border:1px solid rgba(0,0,0,.25);background:#fff;color:#111;font-size:14px;outline:none}
.ante-input input::placeholder{color:#999}
.ante-input input:focus{border-color:#d4af37}
.custom-chip{display:flex;gap:6px;align-items:center;margin-left:4px}
.custom-chip input{width:80px;height:36px;border-radius:9px;border:1px solid rgba(255,255,255,.2);background:rgba(0,0,0,.35);color:#fff;padding:0 10px;font-size:14px;outline:none}
.custom-chip input:focus{border-color:var(--gold,#d4af37)}
.chip-confirm{height:36px;padding:0 12px;border-radius:9px;border:none;background:linear-gradient(135deg,#d4af37,#b8941f);color:#1a1a1a;font-weight:700;font-size:13px;cursor:pointer}
.chip-confirm:active{transform:scale(.96)}
