:root {
  --bg: #0b090a;
  --bg-2: #100d0f;
  --panel: #171315;
  --panel-2: #1d171a;
  --line: rgba(203, 166, 105, .13);
  --gold: #d9b476;
  --gold-2: #a98245;
  --cream: #f0e5d0;
  --muted: #8f8074;
  --red: #d21d2c;
  --red-2: #9e1421;
  --green: #37b88d;
  --shadow: 0 16px 40px rgba(0, 0, 0, .45);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--cream); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }

#app {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  padding-top: var(--safe-top);
  overflow: hidden;
  background:
    radial-gradient(620px 420px at 50% -18%, rgba(146, 22, 34, .22), transparent 66%),
    linear-gradient(180deg, #110d0f 0%, #0b090a 30%, #0b090a 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, .65);
}

.boot {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: radial-gradient(480px 300px at 50% 22%, rgba(170, 20, 34, .36), transparent 70%), #0b0809;
}
.boot-logo { width: 108px; filter: drop-shadow(0 0 24px rgba(217, 180, 118, .12)); }
.boot-bar { width: 140px; height: 2px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.boot-bar span { display: block; width: 38%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: boot 1.1s infinite; }
.boot-text { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-align: center; max-width: 80%; line-height: 1.8; }
@keyframes boot { from { transform: translateX(-120%); } to { transform: translateX(380%); } }

/* ---------- headers ---------- */
.page-header {
  display: flex; align-items: center;
  padding: 24px 18px 10px;
  min-height: 72px;
}
.page-title {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: .02em;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.page-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.lobby-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 8px;
  min-height: 58px;
}
.private-room {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(210, 29, 44, .65);
  background: linear-gradient(135deg, rgba(210,29,44,.30), rgba(120,10,20,.16));
  color: var(--cream); font-size: 12px;
  white-space: nowrap;
}
.lobby-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.balance-box {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 5px 4px 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255,255,255,.05);
}
.balance-box .usdt {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #5be0c2, #1f9f87);
  color: #07372d; font-weight: 700; font-size: 16px;
  box-shadow: 0 0 12px rgba(55, 184, 141, .25);
}
.balance-box b { font-size: 13px; font-weight: 500; color: var(--cream); font-variant-numeric: tabular-nums; }
.add-btn {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ea3548, #b31220);
  color: #fff; font-size: 17px; line-height: 1; font-weight: 300;
  box-shadow: 0 0 10px rgba(210,29,44,.25);
}
.top-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.top-icon img { width: 24px; height: 24px; object-fit: contain; opacity: .95; }
.kefu-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 8px;
  border-radius: 5px;
  color: #b7a896; font-size: 10px;
  background: #1b1618;
  border: 1px solid rgba(255,255,255,.06);
}
.kefu-btn span { color: #a28c72; font-size: 14px; line-height: 1; }

/* ---------- page / nav ---------- */
.page { padding: 0 16px calc(88px + var(--safe-bottom)); }
.empty { padding: 34px 10px; text-align: center; color: var(--muted); font-size: 12px; }

.bottom-nav {
  position: fixed; left: 50%; bottom: 0; z-index: 20;
  width: 100%; max-width: 520px;
  transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: end;
  height: calc(66px + var(--safe-bottom));
  padding: 0 8px var(--safe-bottom);
  background: linear-gradient(180deg, rgba(11,9,10,.18), rgba(11,9,10,.96) 26%, #0b090a);
  border-top: 1px solid rgba(217, 180, 118, .08);
  backdrop-filter: blur(16px);
}
.bottom-nav::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 2px;
  background: radial-gradient(ellipse at 50%, rgba(210,29,44,.95), transparent 68%);
  pointer-events: none;
}
.nav-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 2px;
  height: 58px;
  padding-bottom: 5px;
  color: #6f6258;
  font-size: 9px;
}
.nav-item img { width: 24px; height: 24px; object-fit: contain; filter: grayscale(1) brightness(.62); opacity: .72; }
.nav-item.active { color: var(--gold); }
.nav-item.active img { filter: none; opacity: 1; }
.nav-label { line-height: 1.2; }
.nav-center { height: 66px; justify-content: flex-end; }
.nav-center .center-logo {
  width: 46px; height: 46px; object-fit: contain;
  margin-top: -17px;
  filter: drop-shadow(0 0 14px rgba(210, 29, 44, .45));
  z-index: 2;
}
.nav-center .nav-label { color: #a99473; font-size: 10px; margin-top: -2px; }
.nav-center.active .nav-label { color: var(--gold); }
.center-glow {
  position: absolute; left: 50%; bottom: 18px; width: 48px; height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(210, 29, 44, .42), transparent 70%);
  filter: blur(5px);
}

/* ---------- lobby ---------- */
.lobby-page { padding-top: 0; }
.hall-banner {
  display: block; width: 100%; padding: 0; margin: 2px 0 8px;
  border-radius: 5px; overflow: hidden;
  border: 1px solid rgba(217,180,118,.14);
  background: #1b0d12;
}
.hall-banner img { width: 100%; aspect-ratio: 2.55 / 1; object-fit: cover; }

.game-tabs {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid rgba(255,255,255,.055);
  margin: 0 -16px; padding: 0 16px;
}
.game-tabs::-webkit-scrollbar { display: none; }
.game-tab {
  flex: 0 0 auto;
  padding: 11px 12px 10px;
  color: #b5a79a; font-size: 13px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.game-tab.active {
  color: #fff;
  border-bottom-color: var(--red);
  background: linear-gradient(180deg, transparent, rgba(210,29,44,.12));
}
.game-tab.active::before { content: ""; }

.filter-row {
  display: flex; align-items: center;
  gap: 2px;
  padding: 8px 0 9px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.filter-tab {
  flex: 1;
  padding: 5px 0;
  color: #8f8074; font-size: 12px;
  border-bottom: 1px solid transparent;
}
.filter-tab.active {
  color: var(--cream);
  border-bottom-color: var(--gold);
}
.filter-icon { width: 34px; color: #b5a79a; font-size: 15px; }

.rooms { display: grid; gap: 9px; padding-top: 10px; }
.room {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: center; gap: 10px;
  padding: 12px 11px;
  border-radius: 12px;
  border: 1px solid rgba(217,180,118,.10);
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), #130f11;
  overflow: hidden;
}
.room::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(var(--gold), transparent);
  opacity: .55;
}
.room-icon { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; border: 1px solid rgba(217,180,118,.16); }
.room-info { min-width: 0; }
.room-title { display: flex; align-items: center; gap: 6px; }
.room-title b { font-size: 14px; font-weight: 500; }
.room-tag {
  padding: 1px 4px; border-radius: 3px;
  color: var(--gold); background: rgba(217,180,118,.09);
  border: 1px solid rgba(217,180,118,.16); font-size: 8px;
}
.room-status { margin-left: auto; color: #7e7064; font-size: 8px; }
.room-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.room-meta strong { color: #cbbba8; font-weight: 500; }
.room-enter {
  padding: 7px 10px; border-radius: 7px;
  color: #211508; font-size: 10px; font-weight: 700;
  background: linear-gradient(135deg, #e5c382, #b5853d);
}

/* ---------- discover ---------- */
.discover-page { padding-top: 2px; }
.discover-banner {
  display: block; width: 100%; padding: 0; margin: 4px 0 12px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(217,180,118,.22);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  background: #1a1013;
}
.discover-banner img { width: 100%; aspect-ratio: 1044 / 340; object-fit: cover; }

/* ---------- club ---------- */
.club-page { padding-top: 0; }
.club-icon-btn {
  width: 30px; height: 30px; border-radius: 7px;
  color: var(--red); font-size: 15px;
  background: rgba(210,29,44,.08);
  border: 1px solid rgba(210,29,44,.18);
}
.club-add-btn {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 18px; line-height: 1;
  background: linear-gradient(135deg, #e23a4c, #a9111e);
}
.club-add-btn.outline {
  color: var(--red);
  background: transparent;
  border: 1px solid rgba(210,29,44,.55);
}
.club-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-top: 2px;
}
.club-tab {
  padding: 12px 0;
  color: #b5a79a; font-size: 14px;
  border-bottom: 2px solid transparent;
}
.club-tab.active { color: var(--cream); border-bottom-color: var(--red); }
.club-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 110px 24px 20px; text-align: center;
}
.club-empty-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(210,29,44,.65); font-size: 34px;
  background: radial-gradient(circle, rgba(210,29,44,.16), transparent 68%);
  border: 1px solid rgba(210,29,44,.20);
  margin-bottom: 15px;
}
.club-empty b { color: var(--cream); font-size: 14px; font-weight: 500; }
.club-empty p { margin: 8px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.club-empty button {
  padding: 9px 18px; border-radius: 999px;
  color: var(--gold); font-size: 11px;
  border: 1px solid rgba(217,180,118,.35);
  background: rgba(217,180,118,.06);
}

/* ---------- data ---------- */
.data-page { padding-top: 0; }
.data-game-tabs {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.data-game {
  flex: 1; padding: 10px 0 9px;
  color: #b5a79a; font-size: 14px;
  border-bottom: 2px solid transparent;
}
.data-game.active { color: var(--cream); border-bottom-color: var(--red); }
.period-tabs { display: flex; gap: 8px; padding: 14px 0 12px; }
.period {
  flex: 1; padding: 8px 0;
  border-radius: 4px;
  color: #c8b8a6; font-size: 11px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
}
.period.active {
  color: #fff;
  border-color: rgba(210,29,44,.8);
  background: linear-gradient(135deg, #d21d2c, #9d1220);
}
.chart-card {
  border-top: 1px solid rgba(217,180,118,.18);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 16px 0 14px;
  background: rgba(255,255,255,.012);
}
.chart-card h2, .data-grid-card h2 {
  margin: 0 0 14px; text-align: center;
  color: var(--cream); font-size: 14px; font-weight: 500;
}
.donut-wrap { display: flex; flex-direction: column; align-items: center; }
.donut {
  position: relative;
  width: 148px; height: 148px; border-radius: 50%;
  background: conic-gradient(var(--red) 0 38%, #d8c873 38% 52%, #21191b 52% 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 10px #0d0a0c, 0 0 30px rgba(0,0,0,.35);
}
.donut::before {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1b1417, #0e0b0d 70%);
}
.donut span { position: relative; z-index: 1; color: var(--red); font-size: 23px; font-weight: 600; line-height: 1; }
.donut span small { font-size: 12px; }
.donut em {
  position: relative; z-index: 1;
  margin-top: 4px; color: var(--gold); font-style: normal; font-size: 10px;
}
.donut-legend { display: flex; gap: 18px; margin-top: 12px; color: #b7a896; font-size: 10px; }
.donut-legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.red { background: var(--red); }
.dot.gold { background: #d8c873; }
.data-total { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 14px; }
.data-total small { color: var(--muted); font-size: 9px; }
.data-total b { color: var(--cream); font-size: 14px; font-weight: 500; }
.negative { color: #cf554e !important; }
.data-grid-card {
  padding: 18px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 0; }
.data-grid div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.data-grid b { color: var(--cream); font-size: 17px; font-weight: 500; }
.data-grid small { color: var(--muted); font-size: 9px; }
.data-grid b.red { color: var(--red); }

/* ---------- mine ---------- */
.mine-header { padding-top: 24px; }
.mine-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mine-page { padding-top: 0; }
.profile-hero { display: flex; flex-direction: column; align-items: center; padding: 4px 0 4px; }
.avatar-wrap { position: relative; width: 116px; height: 116px; }
.avatar {
  width: 116px; height: 116px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(217,180,118,.72);
  background: #351018;
  box-shadow: 0 0 0 5px rgba(210,29,44,.18), 0 8px 24px rgba(0,0,0,.35);
}
.avatar-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(217,180,118,.16);
  pointer-events: none;
}
.gender {
  position: absolute; right: -4px; bottom: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 14px;
  background: linear-gradient(135deg, #4c8fd9, #28579a);
  border: 2px solid #0b090a;
}
.profile-hero h2 {
  margin: 15px 0 5px;
  color: var(--cream); font-size: 21px; font-weight: 600;
  letter-spacing: .03em;
}
.profile-id { color: #b8a690; font-size: 12px; letter-spacing: .04em; }
.profile-sub { margin-top: 6px; color: var(--muted); font-size: 10px; min-height: 14px; }
.mine-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.mine-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.055);
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    #141012;
  color: var(--gold);
  font-size: 12px;
}
.mine-item img { width: 34px; height: 34px; object-fit: contain; filter: saturate(.85) drop-shadow(0 4px 8px rgba(0,0,0,.28)); }
.mine-item span { color: #d8c7b2; font-size: 12px; }

/* ---------- table ---------- */
.table-screen {
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: column;
  width: 100%; max-width: 520px; margin: 0 auto;
  padding-top: var(--safe-top);
  background: radial-gradient(700px 480px at 50% 30%, rgba(145, 18, 31, .88), transparent 66%), #090506;
  animation: fade .2s ease-out;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.table-top { display: flex; align-items: center; gap: 10px; padding: 13px 15px; }
.back-btn { width: 32px; height: 32px; border-radius: 10px; color: var(--gold); background: rgba(255,255,255,.05); font-size: 20px; line-height: 1; }
.table-top b { font-size: 14px; }
.table-top small { margin-left: auto; color: var(--muted); font-size: 10px; }
.table-stage { position: relative; flex: 1; min-height: 0; padding: 12px 16px; display: flex; align-items: center; justify-content: center; }
.poker-table {
  position: relative;
  width: min(88vw, 420px);
  aspect-ratio: 1 / 1.12;
  border-radius: 50% / 44%;
  border: 12px solid #29161a;
  box-shadow: 0 0 0 2px rgba(217,180,118,.18), 0 0 0 15px rgba(0,0,0,.22), inset 0 0 60px rgba(0,0,0,.45);
  background: radial-gradient(circle at 50% 45%, #9b1727, #6b0e1c 55%, #390812 100%);
}
.table-center { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); text-align: center; width: 70%; }
.table-center small { color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .16em; }
.pot { margin-top: 5px; color: #f0d39a; font-size: 18px; font-weight: 600; }
.pot span { font-size: 9px; font-weight: 400; color: rgba(255,255,255,.55); letter-spacing: .1em; }
.community { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.card {
  position: relative; width: 30px; height: 43px; border-radius: 4px;
  background: #f8f3e8; color: #1a1214;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-weight: 700; line-height: .9;
  box-shadow: 0 3px 6px rgba(0,0,0,.25);
}
.card.red { color: #b3162c; }
.card b { font-size: 10px; }
.card i { font-style: normal; font-size: 14px; }
.card.empty { background: rgba(255,255,255,.10); border: 1px dashed rgba(255,255,255,.18); box-shadow: none; }
.seat {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid #3a2b2b; background: #1c2228;
  display: grid; place-items: center;
  box-shadow: 0 5px 14px rgba(0,0,0,.3);
}
.seat img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.seat.s1 { left: 33%; top: -18px; }
.seat.s2 { right: -10px; top: 20%; }
.seat.s3 { right: -10px; bottom: 20%; }
.seat.s4 { left: 50%; bottom: -22px; transform: translateX(-50%); border-color: rgba(217,180,118,.65); }
.seat.s5 { left: -10px; bottom: 20%; }
.seat.s6 { left: -10px; top: 20%; }
.seat .tag {
  position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
  padding: 1px 4px; border-radius: 3px;
  background: rgba(0,0,0,.6); color: #d8c8b8; font-size: 7px; white-space: nowrap;
}
.table-footer { padding: 12px 16px calc(18px + var(--safe-bottom)); }
.table-note {
  padding: 13px; border-radius: 14px;
  border: 1px solid rgba(217,180,118,.20);
  background: rgba(0,0,0,.28); text-align: center;
}
.table-note b { display: block; color: var(--gold); font-size: 13px; }
.table-note p { margin: 5px 0 11px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.table-note button {
  width: 100%; padding: 11px; border-radius: 10px;
  color: #231508; background: linear-gradient(135deg, #e5c382, #b5853d);
  font-size: 12px; font-weight: 700;
}

/* ---------- toast / desktop ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-bottom)); z-index: 60;
  transform: translate(-50%, 12px);
  max-width: 80%; padding: 10px 14px; border-radius: 999px;
  background: rgba(20,12,15,.96);
  border: 1px solid rgba(217,180,118,.24);
  color: var(--gold); font-size: 11px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 521px) {
  body { background: #050304; }
  #app, .bottom-nav, .table-screen {
    border-left: 1px solid rgba(217,180,118,.08);
    border-right: 1px solid rgba(217,180,118,.08);
  }
}

/* ---------- in-game table (client portrait) ---------- */
.table-screen {
  position: fixed; inset: 0; z-index: 40;
  width: 100%; max-width: 520px; margin: 0 auto;
  overflow: hidden;
  background: #090506;
  padding-top: var(--safe-top);
}
.table-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .88;
}
.table-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 20, 35, .20), transparent 52%),
    linear-gradient(180deg, rgba(5,3,4,.28), rgba(5,3,4,.10) 45%, rgba(5,3,4,.58));
}
.table-toolbar {
  position: absolute; left: 0; right: 0; top: calc(14px + var(--safe-top));
  z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.table-circle {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(30, 20, 22, .58);
  border: 1px solid rgba(225, 202, 165, .24);
  backdrop-filter: blur(8px);
}
.table-circle img { width: 20px; height: 20px; object-fit: contain; opacity: .92; }
.table-area {
  position: relative; z-index: 2;
  height: 100%;
  padding: 72px 16px 86px;
  display: flex; align-items: center; justify-content: center;
}
.table-oval {
  position: relative;
  width: min(82vw, 400px);
  height: min(70vh, 640px);
  border-radius: 50%;
  border: 9px solid #3b2e2b;
  background:
    radial-gradient(ellipse at 50% 48%, #a91425 0%, #860f1d 42%, #520812 78%, #30040a 100%);
  box-shadow:
    inset 0 0 0 2px #c1a57f,
    inset 0 0 0 5px #5c4334,
    inset 0 0 50px rgba(255, 44, 48, .38),
    0 0 0 1px #8d6a42,
    0 0 28px rgba(210, 29, 44, .42),
    0 16px 40px rgba(0,0,0,.55);
}
.table-oval::before {
  content: ""; position: absolute; inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 190, 140, .16);
  pointer-events: none;
}
.table-info {
  position: absolute; left: 50%; top: 31%;
  width: 72%;
  transform: translateX(-50%);
  text-align: center;
  color: #b9a58f;
  text-shadow: 0 1px 5px rgba(0,0,0,.55);
}
.table-pot { color: #b7a58f; font-size: 15px; letter-spacing: .04em; }
.table-count { margin-top: 15px; color: #a6947d; font-size: 13px; }
.table-room { margin-top: 3px; color: #a6947d; font-size: 12px; letter-spacing: .02em; }
.table-name { margin-top: 6px; color: #b09c84; font-size: 12px; }
.table-blind { margin-top: 2px; color: #a08d76; font-size: 11px; }
.table-insurance { margin-top: 2px; color: #9c8973; font-size: 11px; }
.table-watermark {
  position: absolute; left: 50%; top: 64%;
  transform: translateX(-50%);
  opacity: .14;
  width: 92px;
  pointer-events: none;
}
.table-watermark img { width: 100%; }
.empty-seat {
  position: absolute;
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #35282b, #1a1114 70%);
  border: 2px dashed rgba(203, 166, 105, .52);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.empty-seat.e1 { left: 23%; top: -26px; }
.empty-seat.e2 { right: 23%; top: -26px; }
.empty-seat.e3 { left: -25px; top: 22%; }
.empty-seat.e4 { right: -25px; top: 22%; }
.empty-seat.e5 { left: -25px; bottom: 22%; }
.empty-seat.e6 { right: -25px; bottom: 22%; }
.empty-seat.e7 { left: 23%; bottom: -26px; }
.empty-seat.e8 { right: 23%; bottom: -26px; }
.player-seat {
  position: absolute; left: 50%; bottom: -44px;
  width: 76px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.player-name {
  color: #d6c1a3; font-size: 10px;
  margin-bottom: 2px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.75);
}
.player-avatar {
  width: 62px; height: 62px; border-radius: 50%;
  padding: 2px;
  background: linear-gradient(145deg, #d9b476, #6f4f2e);
  box-shadow: 0 0 18px rgba(210, 29, 44, .35);
}
.player-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #321018; }
.player-chips {
  margin-top: -4px;
  color: #f0e5d0; font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.table-actions {
  position: absolute; left: 0; right: 0; bottom: calc(12px + var(--safe-bottom));
  z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
}
.table-action-group { display: flex; align-items: center; gap: 12px; }
.table-action {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(28, 19, 21, .64);
  border: 1px solid rgba(225, 202, 165, .26);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.table-action img { width: 24px; height: 24px; object-fit: contain; opacity: .92; }

/* club create emphasis */
.club-empty-actions { display: flex; gap: 9px; margin-top: 4px; }
.club-empty-actions button {
  min-width: 104px;
  padding: 9px 14px; border-radius: 999px;
  color: var(--gold); font-size: 11px;
  border: 1px solid rgba(217,180,118,.30);
  background: rgba(217,180,118,.05);
}
.club-empty-actions button.primary {
  color: #221508;
  background: linear-gradient(135deg, #e5c382, #b5853d);
  border-color: transparent;
  font-weight: 700;
}
/* button polish */
.add-btn {
  width: 27px; height: 27px;
  background: linear-gradient(145deg, #f04a58, #a60d1b);
  border: 1px solid rgba(255, 211, 160, .38);
  box-shadow: 0 0 0 2px rgba(210,29,44,.10), 0 3px 10px rgba(0,0,0,.30);
  font-size: 18px;
}
.add-btn:active, .club-add-btn:active, .room-enter:active, .period:active, .game-tab:active {
  transform: scale(.96);
}
.club-add-btn { overflow: hidden; }
.club-add-btn img { width: 26px; height: 26px; object-fit: contain; }
.club-add-btn.outline img { filter: grayscale(.25) brightness(1.05); }
.club-icon-btn:active { transform: scale(.94); }
.club-empty-actions { flex-wrap: wrap; justify-content: center; }
.table-action:active, .table-circle:active { transform: scale(.94); }
