/* ============ 好友德州扑克 样式 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --felt1: #12925c;
  --felt2: #0a5c3a;
  --gold: #e8b84b;
  --text: #eef3ea;
  --panel: rgba(10, 20, 34, .8);
  --line: rgba(255, 255, 255, .12);
}
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 50% -10%, #1a3d5c, #0b1524 60%, #070f1a);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 加入界面 ---------- */
.screen { min-height: 100vh; }
#join-screen { display: flex; align-items: center; justify-content: center; padding: 20px; }
.join-card {
  width: min(92vw, 400px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.join-card h1 { font-size: 28px; margin-bottom: 10px; letter-spacing: 2px; }
.join-card h1 .red { color: #e05a5a; }
.join-card h1 .black { color: #d8dee8; }
.join-card .sub { color: #9db3c8; font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.auth-tabs { display: flex; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.auth-tabs .tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #9db3c8;
  font-size: 15px;
  font-weight: 700;
}
.auth-tabs .tab.active { background: var(--gold); color: #1c1404; }
#name-input, #pass-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 17px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  outline: none;
  text-align: center;
  margin-bottom: 10px;
}
#name-input:focus, #pass-input:focus { border-color: var(--gold); }
.watch-row { display: block; margin: 12px 0 4px; color: #9db3c8; font-size: 13px; cursor: pointer; }
#join-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #1c1404;
  background: linear-gradient(180deg, #f4cf6e, #d9a636);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 0 #8a6a1d;
}
#join-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a6a1d; }
#join-btn:disabled { opacity: .5; }
.join-card .hint { margin-top: 14px; color: #64788c; font-size: 12px; }

/* ---------- 顶部信息 ---------- */
#topbar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 10px 8px 4px; }
#topbar > span {
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
}
#host-panel { margin: 8px auto 0; width: min(96vw, 880px); display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; align-items: center; }
#host-panel .settings { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: #9db3c8; }
#host-panel select {
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
}
#host-panel button {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  color: #1c1404;
  background: linear-gradient(180deg, #f4cf6e, #d9a636);
  box-shadow: 0 3px 0 #8a6a1d;
}
#host-panel button:disabled { opacity: .45; }
#host-panel .host-note { font-size: 13px; color: #9db3c8; padding: 6px; }

/* ---------- 牌桌 ---------- */
#table-wrap { position: relative; width: min(96vw, 900px); margin: 4px auto 0; aspect-ratio: 16 / 9.6; }
#table {
  position: absolute;
  inset: 2.5% 1.5%;
  border-radius: 48% / 46%;
  background: radial-gradient(ellipse at 50% 42%, var(--felt1), var(--felt2) 80%);
  box-shadow:
    0 0 0 10px #6b4423,
    0 0 0 14px #4a2f16,
    0 0 0 17px rgba(232, 184, 75, .35),
    0 22px 70px rgba(0, 0, 0, .55);
}
#table::after {
  content: '';
  position: absolute;
  inset: 4.5%;
  border: 2px solid rgba(255, 255, 255, .09);
  border-radius: inherit;
  pointer-events: none;
}
#pot-label {
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffd97a;
  font-size: clamp(12px, 1.6vw, 16px);
  z-index: 3;
}
#pot-label span { display: block; font-size: .7em; opacity: .75; letter-spacing: 3px; }
#board {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: clamp(3px, .7vw, 7px);
  z-index: 2;
}

/* ---------- 座位 ---------- */
#seats { position: absolute; inset: 0; z-index: 4; }
.seat {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 21%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.seat-info {
  background: rgba(8, 20, 35, .88);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 8px;
  min-width: 82%;
  text-align: center;
  font-size: clamp(9px, 1.25vw, 13px);
  position: relative;
}
.seat.actor .seat-info { border-color: var(--gold); box-shadow: 0 0 16px rgba(232, 184, 75, .55); }
.seat.me .seat-info { border-color: #4fa3ff; box-shadow: 0 0 14px rgba(79, 163, 255, .5); }
.seat.folded { opacity: .4; }
.seat-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-chips { color: #ffd97a; font-weight: 700; }
.seat-bet { color: #8fd0ff; font-size: .9em; }
.seat-status { color: #e08a8a; font-size: .85em; }
.badge {
  display: inline-block;
  font-size: .72em;
  padding: 0 4px;
  border-radius: 6px;
  margin-left: 2px;
  vertical-align: middle;
}
.badge.dealer { background: #f5f5f5; color: #222; font-weight: 700; }
.badge.sb { background: #3a6ea5; color: #fff; }
.badge.bb { background: #a5583a; color: #fff; }
.badge.host { background: #7a5ad6; color: #fff; }
.badge.voice { background: #e0522f; color: #fff; }
.mini-btn.on { background: #e0522f; border-color: #e0522f; color: #fff; box-shadow: 0 0 10px rgba(224, 82, 47, .5); }
.kick-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  display: none;
}
.seat:hover .kick-btn { display: block; }
.seat-cards { display: flex; gap: 2px; min-height: clamp(20px, 3vw, 34px); }

/* 倒计时圈 */
.ring {
  position: absolute;
  top: -16px;
  right: -10px;
  width: clamp(30px, 4.4vw, 44px);
  height: clamp(30px, 4.4vw, 44px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}
.ring-num {
  width: 74%;
  height: 74%;
  border-radius: 50%;
  background: rgba(8, 20, 35, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(10px, 1.4vw, 15px);
  color: #ffd97a;
}

/* ---------- 扑克牌 ---------- */
.card {
  position: relative;
  width: clamp(26px, 4.6vw, 46px);
  aspect-ratio: 5 / 7;
  border-radius: 5px;
  background: linear-gradient(160deg, #ffffff, #e8edf2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.card .tl, .card .br {
  position: absolute;
  font-size: clamp(7px, 1.15vw, 12px);
  line-height: 1.08;
  text-align: center;
}
.card .tl { top: 3px; left: 4px; }
.card .br { bottom: 3px; right: 4px; transform: rotate(180deg); }
.card .c { font-size: clamp(14px, 2.5vw, 26px); font-weight: 900; }
/* 传统红黑配色不变；牌面中央压大号花色水印，四花色形状一眼可辨 */
.card.red { color: #c62828; }
.card.black { color: #1b2430; }
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  opacity: .14;
  pointer-events: none;
}
.card.s-spade::after { content: '♠'; }
.card.s-heart::after { content: '♥'; }
.card.s-diamond::after { content: '♦'; }
.card.s-club::after { content: '♣'; }
.card.back::after, .card.empty::after { content: none; }
.card.best { outline: 2px solid #ffd700; box-shadow: 0 0 12px rgba(255, 215, 0, .85); z-index: 1; }
.card.empty { border: 2px dashed rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); box-shadow: none; }
.card.back {
  background: repeating-linear-gradient(45deg, #2b4f8e 0 4px, #23427a 4px 8px);
  border: 2px solid #fff;
}

/* 发牌动画：手牌飞入 + 翻面 */
@keyframes deal-card {
  0% { transform: translateY(-46px) rotateY(180deg) scale(.35); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateY(0) rotateY(0) scale(1); opacity: 1; }
}
.card.new-card { animation: deal-card .55s cubic-bezier(.22, .95, .4, 1.15) both; }
/* 公共牌揭晓动画：从牌堆扇形展开 + 翻面 */
@keyframes board-card {
  0% { transform: translate(var(--bx, 0), -64px) rotateY(180deg) scale(.3); opacity: 0; }
  70% { transform: translate(0, 0) rotateY(0) scale(1.06); opacity: 1; }
  100% { transform: translate(0, 0) rotateY(0) scale(1); opacity: 1; }
}
.card.new-board { animation: board-card .55s cubic-bezier(.2, .9, .3, 1.25) both; }

/* 牌堆视觉 */
#deck-visual {
  position: absolute;
  left: 68%;
  top: 26%;
  width: clamp(28px, 3.6vw, 42px);
  aspect-ratio: 5 / 7;
  z-index: 2;
  opacity: .9;
}
#deck-visual .card { position: absolute; inset: 0; width: 100%; height: 100%; }
#deck-visual .card:nth-child(1) { transform: translate(-3px, -3px) rotate(-7deg); }
#deck-visual .card:nth-child(2) { transform: translate(0, 0); }
#deck-visual .card:nth-child(3) { transform: translate(3px, 3px) rotate(7deg); }



/* ---------- 我的区域 ---------- */
#my-area {
  margin: 12px auto 0;
  width: min(96vw, 900px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
}
.my-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.my-cards { display: flex; gap: 6px; }
.my-cards .card { width: clamp(48px, 7.5vw, 72px); border-radius: 8px; }
.my-cards .card .tl, .my-cards .card .br { font-size: clamp(11px, 1.8vw, 17px); }
.my-cards .card .c { font-size: clamp(20px, 3.4vw, 32px); }
.my-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 130px; }
.my-meta .my-chips { color: #ffd97a; font-weight: 700; font-size: 16px; }
.my-meta .my-bet { color: #8fd0ff; }
.my-hand { display: flex; align-items: center; gap: 6px; color: #9db3c8; font-size: 13px; flex-wrap: wrap; }
.my-hand b { color: #ffd97a; }
.my-hand .sd-cards { display: inline-flex; gap: 2px; vertical-align: middle; }
.my-equity { color: #9db3c8; font-size: 13px; }
.my-equity b { color: #7ee08a; font-size: 15px; }
.turn-timer { color: var(--gold); font-weight: 700; min-height: 18px; }
.waiting-note { color: #9db3c8; font-size: 14px; padding: 8px 0; }
.action-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.act {
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
  min-width: 92px;
}
.act:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.act.fold { background: #8a2c2c; }
.act.call { background: #1f7a4d; }
.act.raise { background: #1f5fa8; }
.act.allin { background: #c77b16; }

/* ---------- 底部按钮 ---------- */
#bottom-btns { display: flex; gap: 8px; justify-content: center; margin: 12px auto 24px; flex-wrap: wrap; }
.mini-btn {
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
}
.mini-btn:hover { background: rgba(255, 255, 255, .14); }

#next-hand-note {
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

/* ---------- 结果横幅 ---------- */
#result-banner {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  width: min(92vw, 460px);
  max-height: 82vh;
  overflow: auto;
  background: rgba(10, 20, 34, .96);
  border: 1px solid rgba(232, 184, 75, .5);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
}
#banner-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #9db3c8;
  font-size: 18px;
}
#banner-close:hover { color: #fff; }
.banner-title { text-align: center; font-size: 20px; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.rank-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); margin-bottom: 6px; font-size: 14px; }
.rank-row span { flex: 1; font-weight: 700; }
.rank-row b { color: #ffd97a; }
.rank-row i { color: #8fd0ff; font-style: normal; font-size: 12px; }
.sd-title { margin: 12px 0 6px; color: #9db3c8; font-size: 13px; }
.sd-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); margin-bottom: 6px; font-size: 13px; flex-wrap: wrap; }
.sd-row span { min-width: 60px; font-weight: 700; }
.sd-row i { color: #8fd0ff; font-style: normal; }
.sd-row b { color: #ffd97a; }
.sd-cards { display: flex; gap: 2px; }
.sd-cards .card { width: 22px; }
.sd-cards .card .tl, .sd-cards .card .br { font-size: 6px; }
.sd-cards .card .c { font-size: 10px; }

/* 结束比牌面板 */
.cmp-row {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.cmp-row.win {
  border-color: var(--gold);
  background: rgba(232, 184, 75, .12);
  box-shadow: 0 0 14px rgba(232, 184, 75, .25);
}
.cmp-head { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.cmp-head span { font-weight: 700; }
.cmp-head i { color: #8fd0ff; font-style: normal; font-size: 12px; }
.cmp-head b { color: #ffd97a; margin-left: auto; }
.cmp-cards { display: flex; gap: 3px; flex-wrap: wrap; }
.cmp-cards .card { width: 34px; border-radius: 5px; }
.cmp-cards .card .tl, .cmp-cards .card .br { font-size: 8px; }
.cmp-cards .card .c { font-size: 13px; }
.pot-row { color: #9db3c8; font-size: 12px; padding: 3px 4px; }
.up { color: #7ee08a !important; }
.down { color: #e08a8a !important; }

/* 对局历史面板 */
#history-overlay {
  position: fixed;
  inset: 0;
  z-index: 57;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#history-panel {
  width: min(94vw, 560px);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  background: #101d30;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #7a5ad6;
}
#history-toolbar { margin-bottom: 8px; }
#history-select {
  width: 100%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
}
#history-list { flex: 1; overflow-y: auto; }
.hist-row {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.hist-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9db3c8; margin-bottom: 5px; }
.hist-top b { color: #c9b6ff; font-size: 13px; }
.hist-top em { font-style: normal; color: #e0a05a; font-size: 11px; border: 1px solid #e0a05a; border-radius: 6px; padding: 0 4px; }
.hist-cards { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 5px; }
.hist-cards .card { width: 24px; border-radius: 4px; }
.hist-cards .card .tl, .hist-cards .card .br { font-size: 6px; }
.hist-cards .card .c { font-size: 10px; }
.hist-bot { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.hist-bot .fold-tag { font-style: normal; color: #8a93a8; font-size: 12px; }
.hist-bot .hist-hand { font-style: normal; color: #8fd0ff; font-size: 12px; }
.hist-bot b { font-weight: 700; }
.hist-bot span { margin-left: auto; color: #9db3c8; font-size: 12px; }
.hist-empty { color: #6a7a90; font-size: 13px; text-align: center; padding: 24px 0; }
#history-close {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
#history-close:hover { border-color: #7a5ad6; }

/* 筹码统计面板 */
#stats-overlay {
  position: fixed;
  inset: 0;
  z-index: 56;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#stats-panel {
  width: min(94vw, 480px);
  background: #101d30;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--gold);
}
.stats-title { color: var(--gold); font-weight: 700; font-size: 15px; margin-bottom: 10px; text-align: center; }
#stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
#stats-table th { color: #9db3c8; font-weight: 700; text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); }
#stats-table th:first-child, #stats-table td:first-child { text-align: left; }
#stats-table td { padding: 7px 8px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--text); }
#stats-close {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
#stats-close:hover { border-color: var(--gold); }

/* ---------- 加注面板 ---------- */
#raise-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
#raise-panel {
  width: min(96vw, 480px);
  background: #101d30;
  border-radius: 20px 20px 0 0;
  padding: 22px 20px 26px;
  border-top: 2px solid var(--gold);
}
.raise-title { color: #9db3c8; font-size: 13px; }
.raise-val { font-size: 34px; font-weight: 800; color: var(--gold); margin: 4px 0 12px; }
#raise-slider { width: 100%; accent-color: #d9a636; height: 30px; }
.raise-range { display: flex; justify-content: space-between; color: #9db3c8; font-size: 12px; }
.raise-quick { display: flex; gap: 8px; margin: 14px 0; }
.raise-quick button {
  flex: 1;
  padding: 9px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  font-size: 13px;
}
.raise-quick button:hover { border-color: var(--gold); }
.raise-confirm { display: flex; gap: 10px; }
.raise-confirm button { flex: 1; padding: 13px; border-radius: 12px; border: none; font-size: 15px; font-weight: 700; }
#raise-cancel { background: rgba(255, 255, 255, .1); color: var(--text); }
#raise-ok { background: linear-gradient(180deg, #f4cf6e, #d9a636); color: #1c1404; }

/* ---------- 记录 / 聊天 ---------- */
#feed-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 320px);
  z-index: 45;
  background: rgba(8, 15, 26, .97);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.feed-head { padding: 14px 16px; font-weight: 700; border-bottom: 1px solid var(--line); color: var(--gold); }
#feed { flex: 1; overflow-y: auto; padding: 10px 14px; font-size: 13px; }
.log { margin-bottom: 6px; line-height: 1.5; }
.log.sys { color: #9db3c8; }
.log.chat { color: #dfe8f2; }
.log.chat b { color: #8fd0ff; }
#chat-row { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
#chat-input {
  flex: 1;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
}
#chat-send {
  border: none;
  border-radius: 999px;
  background: #1f5fa8;
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
}

/* ---------- 响应式 ---------- */
/* PC 大屏：更大的牌桌与牌面、悬停反馈、常驻记录面板 */
@media (min-width: 1100px) {
  #table-wrap { width: min(90vw, 1080px); }
  .card { width: clamp(32px, 4vw, 54px); }
  .card .tl, .card .br { font-size: clamp(8px, 1.1vw, 14px); }
  .card .c { font-size: clamp(14px, 2vw, 26px); }
  .seat { width: 17%; }
  .seat-info { font-size: clamp(11px, 1.05vw, 14px); }
  .my-cards .card { width: clamp(56px, 6.4vw, 84px); }
  .my-cards .card .tl, .my-cards .card .br { font-size: clamp(12px, 1.5vw, 20px); }
  .my-cards .card .c { font-size: clamp(24px, 3vw, 40px); }
  .act { padding: 14px 26px; font-size: 16px; min-width: 110px; }
  .act:hover { filter: brightness(1.15); transform: translateY(-1px); }
  #feed-panel { width: 320px; }
  #pot-label { font-size: 18px; }
  #deck-visual { width: 46px; }
}
@media (min-width: 640px) and (max-width: 1099px) {
  #table-wrap { width: min(94vw, 860px); }
}
@media (max-width: 640px) {
  #table { box-shadow: 0 0 0 6px #6b4423, 0 0 0 9px #4a2f16, 0 0 0 11px rgba(232, 184, 75, .3), 0 14px 44px rgba(0, 0, 0, .5); }
  .seat { width: 24%; }
  .action-bar { margin-left: 0; width: 100%; justify-content: center; }
  .my-row { justify-content: center; }
  #my-area { padding: 10px; }
}
