/* ===== 金花牛牛 · 棋牌房卡游戏样式 ===== */

:root {
  --bg: #0b1a12;
  --bg-2: #0f2419;
  --felt: #14532d;
  --felt-2: #0d3a1f;
  --felt-edge: #0a2e18;
  --gold: #e8c46a;
  --gold-2: #c9a24a;
  --gold-dim: #8a7136;
  --red: #d9453c;
  --green: #35a86b;
  --text: #eef3ef;
  --text-dim: #9fb3a6;
  --panel: rgba(10, 30, 20, 0.92);
  --panel-line: rgba(232, 196, 106, 0.22);
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

body {
  background:
    radial-gradient(1200px 700px at 50% -10%, #16301f 0%, transparent 60%),
    radial-gradient(900px 600px at 50% 110%, #123c22 0%, transparent 60%),
    linear-gradient(180deg, #0b1a12 0%, #061109 100%);
}

/* ===== 屏幕切换 ===== */
.screen { display: none; height: 100vh; height: 100dvh; flex-direction: column; }
.screen.active { display: flex; }

/* ===== 通用按钮 ===== */
.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s, filter .18s, box-shadow .18s;
  color: #14210f;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, #f0d583, var(--gold));
  color: #3a2c08;
  box-shadow: 0 4px 14px rgba(232,196,106,.32);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-secondary {
  background: linear-gradient(180deg, #2f9e63, #227a4b);
  color: #eaf7ee;
}
.btn-ghost {
  background: rgba(255,255,255,.07);
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.12); }
.btn-danger { background: linear-gradient(180deg, #e05a4f, #b3362c); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ===== 登录页 ===== */
.login-wrap {
  margin: auto;
  width: min(92vw, 400px);
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(12px);
}
.logo-cards { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.lc {
  width: 48px; height: 64px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 26px; background: #fdfaf2;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.lc1 { color: #1a1a1a; transform: rotate(-12deg) translateY(4px); }
.lc2 { color: var(--red); transform: translateY(-4px); }
.lc3 { color: #1a1a1a; transform: rotate(12deg) translateY(4px); }
.login-wrap h1 {
  font-size: 30px; letter-spacing: 4px;
  background: linear-gradient(180deg, #fbe9b4, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.login-wrap .sub { color: var(--text-dim); font-size: 13px; margin-bottom: 26px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
input[type=text] {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px; color: var(--text);
  font-size: 15px; font-family: inherit; outline: none;
}
input[type=text]:focus { border-color: var(--gold-dim); background: rgba(255,255,255,.09); }
input::placeholder { color: #6d8578; }
.rules-hint { margin-top: 20px; font-size: 12px; color: var(--gold-dim); letter-spacing: .5px; }

/* ===== 大厅 ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: rgba(6,17,11,.85);
  border-bottom: 1px solid var(--panel-line);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.brand { font-size: 19px; font-weight: 800; letter-spacing: 2px; color: var(--gold); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.card-chip {
  font-size: 13px; color: var(--gold);
  background: rgba(232,196,106,.1);
  border: 1px solid rgba(232,196,106,.3);
  padding: 5px 12px; border-radius: 20px;
}
.card-chip.small { padding: 3px 9px; font-size: 12px; }

.lobby-main {
  flex: 1; display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: 20px; padding: 20px; overflow-y: auto;
}
.panel {
  background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: var(--radius); padding: 22px;
  backdrop-filter: blur(10px);
}
.panel h2 { font-size: 16px; color: var(--gold); margin-bottom: 18px; font-weight: 700; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h2 { margin: 0; }

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 9px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-item {
  flex: 1; min-width: 62px; padding: 10px 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px; color: var(--text-dim);
  font-size: 13px; cursor: pointer; font-family: inherit;
  transition: all .16s;
}
.seg-item:hover { border-color: rgba(232,196,106,.4); color: var(--text); }
.seg-item.active {
  background: linear-gradient(180deg, rgba(232,196,106,.22), rgba(232,196,106,.1));
  border-color: var(--gold); color: var(--gold); font-weight: 700;
}
.card-notice {
  font-size: 12.5px; color: var(--text-dim); text-align: center;
  padding: 11px; background: rgba(232,196,106,.07);
  border-radius: 9px; margin-bottom: 16px;
}
.card-notice b { color: var(--gold); }

.room-list { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.room-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px; cursor: pointer; transition: all .16s;
}
.room-item:hover { border-color: var(--gold-dim); background: rgba(232,196,106,.07); transform: translateX(3px); }
.room-item .ri-left { display: flex; flex-direction: column; gap: 5px; }
.room-item .ri-title { font-size: 14.5px; font-weight: 600; }
.room-item .ri-meta { font-size: 11.5px; color: var(--text-dim); display: flex; gap: 10px; }
.room-item .ri-right { text-align: right; }
.room-item .ri-count { font-size: 15px; color: var(--gold); font-weight: 700; }
.room-item .ri-count small { font-size: 11px; color: var(--text-dim); font-weight: 400; }
.badge { display: inline-block; font-size: 10.5px; padding: 2px 7px; border-radius: 5px; margin-right: 6px; }
.badge-zjh { background: rgba(217,69,60,.2); color: #ff8b82; }
.badge-nn { background: rgba(53,168,107,.2); color: #6ee0a4; }
.empty { text-align: center; color: var(--text-dim); padding: 40px 0; font-size: 13.5px; }

.join-row { display: flex; gap: 10px; }
.join-row input { flex: 1; }

/* ===== 牌桌 ===== */
.table-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: rgba(6,17,11,.9);
  border-bottom: 1px solid var(--panel-line); flex-shrink: 0;
  backdrop-filter: blur(10px); gap: 12px;
}
.table-info { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; }
.table-info b { color: var(--gold); }
.table-info .sep { color: rgba(255,255,255,.15); }
.table-info .remain b { color: #7ee0a8; }
.table-right { display: flex; align-items: center; gap: 10px; }

.table-body { flex: 1; position: relative; overflow: hidden; }
.table-felt {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 58% at 50% 48%, #1c6b3c 0%, var(--felt) 42%, var(--felt-2) 72%, var(--felt-edge) 100%);
  display: grid; place-items: center;
}
.table-felt::after {
  content: ''; position: absolute; inset: 18px;
  border: 2px solid rgba(232,196,106,.13);
  border-radius: 50% / 34%;
  pointer-events: none;
}

.felt-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; z-index: 2;
}
.pot-box {
  background: rgba(0,0,0,.42); border: 1px solid rgba(232,196,106,.35);
  border-radius: 14px; padding: 12px 30px; min-width: 130px;
  box-shadow: 0 0 26px rgba(232,196,106,.14) inset;
}
.pot-label { font-size: 11.5px; color: var(--gold-dim); letter-spacing: 2px; }
.pot-value { font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1.15; }
.center-status { margin-top: 12px; font-size: 13px; color: #bfe0cc; letter-spacing: .5px; }
.center-timer { margin-top: 6px; font-size: 12px; color: var(--gold-dim); }

/* 开局倒计时（准备后 20 秒） */
.center-timer.active {
  margin-top: 10px;
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 6px 18px; border-radius: 30px;
  background: radial-gradient(circle at 50% 40%, rgba(232,196,106,.20), rgba(232,196,106,.05));
  border: 1px solid rgba(232,196,106,.45);
  box-shadow: 0 0 20px rgba(232,196,106,.22);
  animation: cdPulse 1s ease-in-out infinite;
}
.center-timer .cd-num {
  font-size: 26px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1;
  text-shadow: 0 0 12px rgba(232,196,106,.6);
}
.center-timer .cd-unit { font-size: 12px; color: var(--gold-dim); }
@keyframes cdPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.045); opacity: .88; }
}

/* 座位环 */
.seat-ring { position: absolute; inset: 0; }

.seat {
  position: absolute;
  width: 108px; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: all .3s;
}
.seat-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 700;
  background: linear-gradient(180deg, #2c4d3a, #1a3326);
  border: 2px solid rgba(255,255,255,.16);
  color: #cfe8da;
  position: relative;
  transition: all .25s;
}
.seat.active .seat-avatar {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,196,106,.2), 0 0 22px rgba(232,196,106,.55);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(232,196,106,.2), 0 0 18px rgba(232,196,106,.45); }
  50% { box-shadow: 0 0 0 6px rgba(232,196,106,.1), 0 0 30px rgba(232,196,106,.75); }
}
.seat.folded .seat-avatar { opacity: .32; filter: grayscale(1); }
.seat.folded .seat-name, .seat.folded .seat-score { opacity: .4; }
.seat.winner .seat-avatar {
  border-color: var(--gold); background: linear-gradient(180deg, #c9a24a, #8a7136);
  color: #2a1f04; box-shadow: 0 0 26px rgba(232,196,106,.8);
}
.seat.offline .seat-avatar { opacity: .4; }

.seat-name {
  font-size: 12px; color: var(--text);
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.seat-badges { display: flex; gap: 3px; }
.mini-badge {
  font-size: 9px; padding: 1px 5px; border-radius: 4px;
  background: rgba(232,196,106,.2); color: var(--gold); font-weight: 700;
}
.mini-badge.men { background: rgba(217,69,60,.25); color: #ff9a92; }
.mini-badge.look { background: rgba(53,168,107,.25); color: #7ee0a8; }
.mini-badge.banker { background: rgba(232,196,106,.85); color: #3a2c08; }

.seat-score { font-size: 11.5px; color: #8fd6ab; font-weight: 700; }
.seat-score.neg { color: #ff8b82; }
.seat-bet {
  font-size: 10.5px; color: var(--gold);
  background: rgba(0,0,0,.4); padding: 1px 7px; border-radius: 8px;
}

/* 座位上的牌 */
.seat-cards { display: flex; gap: 2px; margin-top: 1px; }
.sc {
  width: 20px; height: 27px; border-radius: 3px;
  background: #fdfaf2; border: 1px solid #cfc7b4;
  font-size: 11px; display: grid; place-items: center;
  font-weight: 700; color: #1a1a1a;
  box-shadow: 0 2px 5px rgba(0,0,0,.35);
}
.sc.red { color: var(--red); }
.sc.back {
  background: repeating-linear-gradient(45deg, #8b1f1f, #8b1f1f 4px, #a82929 4px, #a82929 8px);
  border-color: #6b1616;
}
.sc-hand { font-size: 10.5px; color: var(--gold); margin-top: 2px; font-weight: 600; }

/* 操作栏 */
.action-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px; background: rgba(6,17,11,.94);
  border-top: 1px solid var(--panel-line); flex-shrink: 0;
  backdrop-filter: blur(10px); min-height: 92px;
}
.my-info { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.my-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
  background: linear-gradient(180deg, #c9a24a, #8a7136); color: #2a1f04;
  border: 2px solid var(--gold);
}
.my-meta { display: flex; flex-direction: column; gap: 2px; }
.my-name { font-size: 14px; font-weight: 600; }
.my-score { font-size: 11.5px; color: var(--text-dim); }
.my-score b { color: var(--green); }

.my-cards { display: flex; gap: 8px; flex: 1; min-height: 62px; align-items: center; }
.big-card {
  width: 46px; height: 64px; border-radius: 6px;
  background: #fdfaf2; border: 1px solid #cfc7b4;
  display: grid; place-items: center;
  font-size: 19px; font-weight: 700; color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  animation: dealIn .3s ease-out backwards;
}
.big-card.red { color: var(--red); }
.big-card.back {
  background: repeating-linear-gradient(45deg, #8b1f1f, #8b1f1f 6px, #a82929 6px, #a82929 12px);
  border-color: #6b1616;
}
@keyframes dealIn { from { opacity: 0; transform: translateY(-16px) scale(.85); } }
.hand-tag {
  margin-left: 8px; font-size: 13px; color: var(--gold); font-weight: 700;
  background: rgba(232,196,106,.12); padding: 5px 12px; border-radius: 8px;
  border: 1px solid rgba(232,196,106,.3);
}

.action-buttons { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.hint-text { font-size: 13px; color: var(--text-dim); }

/* 强制开牌倒计时提示 */
.force-tip {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 700; color: #ffd97a;
  background: linear-gradient(180deg, rgba(217,69,60,.28), rgba(217,69,60,.14));
  border: 1px solid rgba(255,180,80,.5);
  padding: 8px 14px; border-radius: 9px;
  animation: forcePulse 1.6s ease-in-out infinite;
  margin-right: 4px;
}
@keyframes forcePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,180,80,0); }
  50% { box-shadow: 0 0 16px rgba(255,180,80,.55); }
}
.seat-nextbet {
  font-size: 10px; color: #9fd8b5;
  background: rgba(0,0,0,.35); padding: 1px 6px; border-radius: 7px;
}

/* ===== 下注金额选择器（上限 闷20 / 明40，可自选）===== */
.bet-picker {
  display: flex; flex-direction: column; gap: 7px;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(232,196,106,.28);
  border-radius: 12px;
  padding: 8px 12px 7px;
  min-width: 210px;
}
.bet-picker-head {
  display: flex; align-items: baseline; gap: 5px;
  font-size: 12px; color: var(--text-dim);
}
.bet-picker-head b {
  font-size: 20px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.bet-picker-head em {
  margin-left: auto; font-style: normal; font-size: 10.5px;
  color: var(--gold-dim); opacity: .85;
}
.bet-presets { display: flex; gap: 6px; }
.bet-preset {
  flex: 1;
  font-size: 12px; font-weight: 700;
  color: #cfe8db;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; padding: 5px 0;
  cursor: pointer; transition: all .15s;
  font-variant-numeric: tabular-nums;
}
.bet-preset:hover { background: rgba(255,255,255,.12); }
.bet-preset.active {
  color: #0f2419; background: linear-gradient(180deg, #f0d488, #d9ab48);
  border-color: #f0d488; box-shadow: 0 0 12px rgba(232,196,106,.35);
}
.bet-slider { padding: 0 2px; }
.bet-slider input[type=range] {
  width: 100%; height: 4px; -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, rgba(232,196,106,.75), rgba(232,196,106,.22));
  border-radius: 4px; outline: none; cursor: pointer;
}
.bet-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #d9ab48);
  border: 2px solid #0f2419;
  box-shadow: 0 0 10px rgba(232,196,106,.6);
  cursor: pointer;
}
.bet-slider input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #d9ab48);
  border: 2px solid #0f2419; cursor: pointer;
}
/* 观战标签 */
.seat-spectating {
  font-size: 10px; color: #d8c9a0;
  background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 7px;
  border: 1px solid rgba(232,196,106,.3);
}
/* 观战中的座位淡化 */
.seat.spectating { opacity: .62; }
.seat.spectating .seat-avatar { filter: grayscale(.5); }

/* 日志面板 */
.log-panel {
  position: fixed; left: 14px; bottom: 108px;
  width: 220px; max-height: 150px; overflow: hidden;
  font-size: 11.5px; color: rgba(190,220,200,.62);
  pointer-events: none; line-height: 1.65; z-index: 5;
}
.log-panel div { animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-8px); } }

/* ===== 弹窗 ===== */
.modal {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal.active { display: flex; }
.modal-box {
  width: min(94vw, 480px); max-height: 86vh;
  background: linear-gradient(180deg, #10281a, #0a1c11);
  border: 1px solid var(--panel-line); border-radius: 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  animation: popIn .22s ease-out;
}
.modal-box.wide { width: min(94vw, 620px); }
@keyframes popIn { from { opacity: 0; transform: scale(.93) translateY(12px); } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0;
}
.modal-head h3 { font-size: 17px; color: var(--gold); font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-dim); font-size: 19px;
  cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.modal-close:hover { background: rgba(255,255,255,.1); color: var(--text); }
.modal-body { padding: 20px 22px; overflow-y: auto; font-size: 13.5px; line-height: 1.85; color: #cfe0d5; }
.modal-foot { padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; gap: 10px; justify-content: center; flex-shrink: 0; }

.rules-sec { margin-bottom: 18px; }
.rules-sec h4 { color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.rules-sec ul { padding-left: 20px; color: #bdd3c5; }
.rules-sec li { margin-bottom: 4px; }
.rules-sec .hi { color: var(--gold); font-weight: 700; }

/* 结算表 */
.result-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.result-table th, .result-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); }
.result-table th { color: var(--gold-dim); font-size: 12px; font-weight: 600; }
.result-table tr.win { background: rgba(232,196,106,.09); }
.result-table tr.win td { color: var(--gold); font-weight: 600; }
.result-table td.net-pos { color: #7ee0a8; font-weight: 700; }
.result-table td.net-neg { color: #ff8b82; font-weight: 700; }
.result-cards { display: flex; gap: 3px; }
.result-cards .sc { width: 22px; height: 29px; font-size: 12px; }
.result-banner {
  text-align: center; padding: 14px; margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(232,196,106,.18), rgba(232,196,106,.06));
  border: 1px solid rgba(232,196,106,.32); border-radius: 12px;
}
.result-banner .rb-main { font-size: 19px; color: var(--gold); font-weight: 800; letter-spacing: 1px; }
.result-banner .rb-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 5px; }

/* ===== Toast ===== */
.toast-container {
  position: fixed; top: 74px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  padding: 10px 20px; border-radius: 10px; font-size: 13.5px;
  background: rgba(16,40,26,.96); color: var(--text);
  border: 1px solid var(--panel-line); box-shadow: var(--shadow);
  animation: toastIn .25s ease-out; max-width: 86vw; text-align: center;
}
.toast.error { border-color: rgba(217,69,60,.6); color: #ffb0a9; }
.toast.warn { border-color: rgba(232,196,106,.6); color: #ffe1a3; }
.toast.join { border-color: rgba(53,168,107,.6); color: #a8ecc7; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .lobby-main { grid-template-columns: 1fr; padding: 14px; }
  .seat { width: 84px; }
  .seat-avatar { width: 42px; height: 42px; font-size: 14px; }
  .seat-name { font-size: 11px; max-width: 78px; }
  .sc { width: 16px; height: 22px; font-size: 9px; }
  .log-panel { display: none; }
  .table-top { padding: 8px 10px; gap: 6px; }
  .table-info { font-size: 11.5px; gap: 6px; }
  .action-bar { padding: 10px 12px; gap: 10px; min-height: 86px; flex-wrap: wrap; }
  .my-cards { min-height: 52px; }
  .big-card { width: 38px; height: 53px; font-size: 16px; }
  .action-buttons { width: 100%; justify-content: center; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .pot-value { font-size: 24px; }
}
@media (max-width: 420px) {
  .seat { width: 70px; }
  .seat-avatar { width: 36px; height: 36px; font-size: 12px; }
  .seat-name { font-size: 10px; max-width: 66px; }
  .my-name { font-size: 12.5px; }
}

/* ==================== 邀请好友弹窗 ==================== */
.room-id.clickable { cursor: pointer; border-bottom: 1px dashed rgba(232,196,106,.45); padding-bottom: 1px; }
.room-id.clickable:active { opacity: .7; }
.invite-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 4px 2px; }
.invite-roomno { font-size: 15px; color: var(--text-dim); }
.invite-roomno b {
  font-size: 30px; color: var(--gold); letter-spacing: 4px;
  margin-left: 6px; font-weight: 800;
}
.invite-qrcode {
  background: #fff; padding: 10px; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.invite-qrcode canvas { display: block; }
.invite-hint { font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.6; }
.invite-link {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(232,196,106,.25); background: rgba(0,0,0,.25);
  color: var(--text-dim); font-size: 12px; text-align: center;
  outline: none; user-select: all; -webkit-user-select: all;
}
.invite-actions { display: flex; gap: 10px; width: 100%; }
.invite-actions .btn { flex: 1; }
