/* ==========================================================================
   赤金德州 · LEGEND TABLE — table.css
   牌桌：黑皮包边 + 深红丝绒台面 + 香槟金压线 + 暖调聚光
   结构对齐 app.js 真实 DOM：.seat > .seat__cards + .seat__bet + .seat__panel
   ========================================================================== */

/* ------------------------------ 1. 牌桌屏幕与包厢 ------------------------------ */
.screen--game {
  position: absolute;
  background: #07050a;
  overflow: hidden;
}

.room {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 54% 48% at 50% 34%, rgba(120, 44, 34, 0.22) 0%, rgba(20, 8, 10, 0) 66%),
    url("../assets/room-bg.svg") center 46% / cover no-repeat,
    linear-gradient(180deg, #060409 0%, #0c070b 46%, #120a0d 72%, #070508 100%);
}

.room__ceiling {
  position: absolute;
  inset: 0 0 auto;
  height: 38%;
  background:
    linear-gradient(180deg, rgba(4, 3, 6, 0.72) 0%, rgba(8, 5, 8, 0.2) 46%, rgba(8, 5, 8, 0) 100%),
    repeating-linear-gradient(90deg, rgba(232, 196, 125, 0.045) 0 1px, rgba(232, 196, 125, 0) 1px 190px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 54%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 54%, transparent 100%);
}

.room__light {
  position: absolute;
  top: -12%;
  width: 30%;
  height: 108%;
  mix-blend-mode: screen;
  filter: blur(24px);
  opacity: 0.5;
  pointer-events: none;
}

.room__light--a {
  left: 8%;
  background: linear-gradient(184deg, rgba(255, 208, 148, 0.22) 0%, rgba(255, 208, 148, 0.05) 34%, rgba(255, 208, 148, 0) 66%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  animation: room-light 11s var(--ease-in-out) infinite alternate;
}

.room__light--b {
  left: 50%;
  width: 26%;
  transform: translateX(-50%);
  background: linear-gradient(184deg, rgba(255, 224, 176, 0.24) 0%, rgba(255, 224, 176, 0.06) 32%, rgba(255, 224, 176, 0) 64%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  animation: room-light 13s var(--ease-in-out) 0.8s infinite alternate-reverse;
}

.room__light--c {
  right: 8%;
  left: auto;
  background: linear-gradient(184deg, rgba(255, 208, 148, 0.2) 0%, rgba(255, 208, 148, 0.05) 34%, rgba(255, 208, 148, 0) 66%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  animation: room-light 15s var(--ease-in-out) 1.4s infinite alternate;
}

.room__bokeh {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 214, 160, 0.36) 0 2px, rgba(255, 214, 160, 0) 3px),
    radial-gradient(circle at 23% 12%, rgba(255, 198, 130, 0.28) 0 3px, rgba(255, 198, 130, 0) 4px),
    radial-gradient(circle at 77% 16%, rgba(255, 214, 160, 0.3) 0 2px, rgba(255, 214, 160, 0) 3px),
    radial-gradient(circle at 88% 27%, rgba(255, 198, 130, 0.24) 0 3px, rgba(255, 198, 130, 0) 4px),
    radial-gradient(circle at 8% 58%, rgba(255, 214, 160, 0.2) 0 2px, rgba(255, 214, 160, 0) 3px),
    radial-gradient(circle at 93% 62%, rgba(255, 214, 160, 0.22) 0 2px, rgba(255, 214, 160, 0) 3px),
    radial-gradient(circle at 50% 6%, rgba(255, 224, 176, 0.24) 0 2px, rgba(255, 224, 176, 0) 4px);
  filter: blur(0.4px);
  animation: bokeh-breathe 8s var(--ease-in-out) infinite alternate;
}

.room__floor {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background:
    linear-gradient(180deg, rgba(5, 3, 6, 0) 0%, rgba(5, 3, 6, 0.6) 52%, rgba(4, 3, 5, 0.92) 100%),
    repeating-linear-gradient(90deg, rgba(232, 196, 125, 0.05) 0 1px, rgba(232, 196, 125, 0) 1px 168px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 66%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 66%);
}

/* ------------------------------ 2. 牌桌顶栏 ------------------------------ */
.game__header {
  position: relative;
  z-index: 12;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 62px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(232, 196, 125, 0.12);
  background: linear-gradient(180deg, rgba(10, 7, 9, 0.92) 0%, rgba(9, 6, 8, 0.62) 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.game__header-left,
.game__header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.game__header-right {
  gap: 9px;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-mini__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  border: 1px solid rgba(255, 246, 216, 0.55);
  background: linear-gradient(180deg, #f7e7bd 0%, #d0a257 58%, #a97a35 100%);
  color: #3a2405;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.45);
}

.brand-mini__mark .icon {
  width: 18px;
  height: 18px;
}

.brand-mini b {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: var(--ink);
}

.brand-mini small {
  display: block;
  font-family: var(--font-display);
  font-size: 7.5px;
  letter-spacing: 0.32em;
  color: rgba(232, 196, 125, 0.5);
  line-height: 1.4;
}

.header-divider {
  width: 1px;
  height: 24px;
  flex: none;
  background: linear-gradient(180deg, rgba(232, 196, 125, 0), rgba(232, 196, 125, 0.26), rgba(232, 196, 125, 0));
}

.table-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

.table-meta__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 125, 0.24);
  background: rgba(232, 196, 125, 0.07);
  color: var(--gold-1);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.table-meta__live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-1);
  box-shadow: 0 0 7px rgba(232, 196, 125, 0.8);
  animation: dot-live 2.2s var(--ease-in-out) infinite;
}

.table-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.table-meta__item b {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.table-meta__item .icon {
  width: 12px;
  height: 12px;
  color: var(--gold-2);
  opacity: 0.8;
}

.header-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 125, 0.22);
  background: linear-gradient(180deg, rgba(44, 30, 24, 0.66), rgba(12, 8, 9, 0.72));
  color: var(--gold-1);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header-balance .icon {
  width: 14px;
  height: 14px;
}

/* ------------------------------ 3. 牌桌舞台 / 外框 / 台面 ------------------------------ */
.table-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 26px;
  padding-right: 292px;
  overflow: hidden;
}

.table-stage__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 50% 48%, rgba(255, 214, 160, 0.06) 0%, rgba(0, 0, 0, 0) 62%),
    radial-gradient(ellipse 80% 84% at 50% 48%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.5) 100%);
}

/* 桌子整体（含座位与底牌） */
.table-shell {
  position: relative;
  z-index: 3;
  width: min(1260px, calc(100vw - 380px), calc((100vh - 236px) * 1.74));
  aspect-ratio: 1.74 / 1;
  flex: none;
}

/* 黑色皮革包边 */
.table-rim {
  position: absolute;
  inset: 9% 4% 12%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 34%, #2b2022 0%, #191214 42%, #100b0d 76%, #090607 100%);
  border: 1px solid rgba(232, 196, 125, 0.16);
  box-shadow:
    inset 0 0 0 5px rgba(9, 6, 7, 0.9),
    inset 0 0 0 6px rgba(232, 196, 125, 0.18),
    inset 0 0 0 13px rgba(255, 255, 255, 0.015),
    inset 0 30px 70px rgba(0, 0, 0, 0.6),
    0 26px 60px rgba(0, 0, 0, 0.62),
    0 0 120px rgba(110, 18, 24, 0.26);
}

.table-rim::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(232, 196, 125, 0.22);
  pointer-events: none;
}

/* 黑色皮革颗粒 */
.table-rim::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='leather'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23leather)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* 深红丝绒台面 */
.table-felt {
  position: absolute;
  inset: 15px 18px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(ellipse 62% 58% at 48% 36%, #a02a33 0%, #842029 22%, #691720 44%, #4f1018 66%, #340a10 84%, #240609 100%);
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.55),
    inset 0 12px 40px rgba(255, 130, 120, 0.08),
    inset 0 -30px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 0 0 2px rgba(232, 196, 125, 0.2);
}

/* 丝绒织纹 + 顶部柔光 + 暗角 */
.table-felt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(46deg, rgba(255, 255, 255, 0.014) 0 2px, rgba(0, 0, 0, 0.014) 2px 4px),
    radial-gradient(ellipse 70% 42% at 50% 8%, rgba(255, 198, 150, 0.14) 0%, rgba(255, 198, 150, 0) 62%);
}

.table-felt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.5);
}

/* 台心低亮度水印 */
.felt-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44%;
  padding: 6% 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 224, 190, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.34em;
  line-height: 1.5;
  color: rgba(255, 224, 190, 0.045);
  text-indent: 0.34em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.felt-line {
  position: absolute;
  inset: 9% 10%;
  border-radius: 50%;
  border: 1px solid rgba(232, 196, 125, 0.13);
  pointer-events: none;
}

.felt-line::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(232, 196, 125, 0.07);
}

/* 台面中心区 */
.table-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-bottom: 3%;
  pointer-events: none;
}

.street-label {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: rgba(255, 226, 190, 0.52);
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.pot-display {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 3px 14px;
  border-radius: 999px;
}

.pot-display__label {
  font-size: 8.5px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: rgba(255, 226, 190, 0.45);
}

.pot-display__amount {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pot-display__amount strong {
  font-family: var(--font-num);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--gold-0);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 0 22px rgba(232, 196, 125, 0.22);
}

.pot-display__sub {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(255, 226, 190, 0.3);
}

.pot-display .chip-mini {
  width: 14px;
  height: 14px;
}

#pot-display.is-grown {
  animation: pot-pop 0.5s var(--ease-out);
}

/* 公共牌：无占位时仍保持高度，避免台心跳动 */
.community-cards {
  --card-w: clamp(40px, 4.1vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.5vw, 8px);
  min-height: calc(var(--card-w) * 1.4);
  margin-top: 2px;
}

.community-cards .card {
  --card-w: inherit;
}

.community-cards.is-revealing .card,
.table-shell.is-dealing .community-cards .card {
  animation: card-deal 0.46s var(--ease-out) both;
}

.table-shell.is-dealing .community-cards .card:nth-child(2) {
  animation-delay: 0.07s;
}

.table-shell.is-dealing .community-cards .card:nth-child(3) {
  animation-delay: 0.14s;
}

.table-shell.is-dealing .community-cards .card:nth-child(4) {
  animation-delay: 0.21s;
}

.table-shell.is-dealing .community-cards .card:nth-child(5) {
  animation-delay: 0.28s;
}

/* 发牌：底牌与座位内的牌也使用同一节奏 */
.table-shell.is-dealing #hero-cards .card {
  animation: card-deal 0.5s var(--ease-out) both;
}

.table-shell.is-dealing #hero-cards .card:nth-child(2) {
  animation-delay: 0.08s;
}

.seat.is-dealing .seat__cards .card {
  animation: card-deal 0.46s var(--ease-out) both;
}

.seat.is-dealing .seat__cards .card:nth-child(2) {
  animation-delay: 0.08s;
}

.pot-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 17px;
  margin-top: 1px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

.pot-chip,
.pot-chips .chip-mini {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #f3daa4 0deg 12deg, #b98840 12deg 24deg),
    radial-gradient(circle at 36% 30%, #fff3ce, #c99a4e 70%);
  border: 1px solid rgba(40, 24, 6, 0.6);
  box-shadow: inset 0 0 0 2px rgba(255, 248, 222, 0.3), 0 2px 0 #6d4d1f, 0 4px 0 #3f2a0d,
    0 5px 8px rgba(0, 0, 0, 0.5);
  animation: chip-drop 0.34s var(--ease-out) both;
}

.pot-chip:nth-child(2n) {
  background:
    repeating-conic-gradient(from 0deg, #e26057 0deg 12deg, #8e1f27 12deg 24deg),
    radial-gradient(circle at 36% 30%, #ffb6ab, #9a2329 70%);
}

.pot-chip:nth-child(3n) {
  background:
    repeating-conic-gradient(from 0deg, #8f7cf0 0deg 12deg, #3d2a8a 12deg 24deg),
    radial-gradient(circle at 36% 30%, #c7baff, #4b36a0 70%);
}

.pot-chips .chip-mini {
  animation: chip-drop 0.34s var(--ease-out) both;
}

/* JS 生成的筹码色调（pot-chip--gold / --red / --cream / --dark） */
.pot-chips .pot-chip {
  animation-delay: calc(var(--i, 0) * 16ms);
}

.pot-chip--gold {
  background:
    repeating-conic-gradient(from 0deg, #f6e3b0 0deg 12deg, #b98840 12deg 24deg),
    radial-gradient(circle at 36% 30%, #fff3ce, #c99a4e 70%);
}

.pot-chip--red {
  background:
    repeating-conic-gradient(from 0deg, #e26057 0deg 12deg, #8e1f27 12deg 24deg),
    radial-gradient(circle at 36% 30%, #ffb6ab, #9a2329 70%);
}

.pot-chip--cream {
  background:
    repeating-conic-gradient(from 0deg, #fffaf0 0deg 12deg, #cdb391 12deg 24deg),
    radial-gradient(circle at 36% 30%, #ffffff, #e6d7bd 70%);
}

.pot-chip--dark {
  background:
    repeating-conic-gradient(from 0deg, #5a4a5e 0deg 12deg, #221a26 12deg 24deg),
    radial-gradient(circle at 36% 30%, #8c7a92, #241a29 70%);
}

/* 桌徽 */
.table-badge {
  position: absolute;
  top: 1.5%;
  right: 3%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  opacity: 0.56;
  pointer-events: none;
  user-select: none;
}

.table-badge span {
  font-size: 8px;
  letter-spacing: 0.34em;
  color: var(--gold-2);
}

.table-badge b {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(255, 230, 190, 0.72);
}

/* ------------------------------ 4. 我的底牌 ------------------------------ */
.hero-cards {
  position: absolute;
  left: 50%;
  bottom: 17%;
  z-index: 7;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.hero-cards .card {
  --card-w: clamp(56px, 5.6vw, 84px);
}

.hero-cards .card:nth-child(1) {
  transform: rotate(-3.4deg) translateY(2px);
}

.hero-cards .card:nth-child(2) {
  transform: rotate(3.4deg);
}

.hero-cards__fold {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 4px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 94, 0.4);
  background: rgba(9, 6, 8, 0.88);
  color: #ffb6ab;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.hero-cards.is-folded .hero-cards__fold,
.hero-cards.is-folded + .hero-cards__fold {
  display: block;
}

.hero-cards.is-folded .card {
  opacity: 0.42;
  filter: grayscale(0.75) brightness(0.75);
  transform: translateY(6px) scale(0.95);
}

.hero-cards.is-folded {
  filter: none;
}

/* ------------------------------ 5. 座位 ------------------------------ */
.seats {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.seat {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: clamp(132px, 12.4vw, 164px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity var(--dur), filter var(--dur);
}

/* 六个座位位置：围绕椭圆错落分布 */
.seat--hero {
  left: 50%;
  top: 92.5%;
  width: clamp(148px, 13.4vw, 176px);
  flex-direction: column;
}

.seat--bottom-left {
  left: 14.5%;
  top: 79%;
  flex-direction: column;
}

.seat--bottom-right {
  left: 85.5%;
  top: 79%;
  flex-direction: column;
}

.seat--left {
  left: 1%;
  top: 51.5%;
  width: auto;
  transform: translate(0, -50%);
  flex-direction: row-reverse;
  align-items: flex-start;
}

.seat--right {
  left: auto;
  right: 1%;
  top: 51.5%;
  width: auto;
  transform: translate(0, -50%);
  flex-direction: row;
  align-items: flex-start;
}

.seat--top {
  left: 50%;
  top: 12%;
  flex-direction: column-reverse;
}

/* 顶座的底牌单独加一块暗色衬板，保证在黑色皮边上依然清晰可辨 */
.seat--top .seat__cards,
.seat--top-left .seat__cards,
.seat--top-right .seat__cards {
  --card-w: clamp(26px, 2.6vw, 36px);
  position: relative;
  z-index: 2;
  padding: 2px 3px;
  border-radius: 7px;
  background: rgba(10, 6, 8, 0.62);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(232, 196, 125, 0.1);
}

.seat--top-left {
  left: 24%;
  top: 16%;
  flex-direction: column-reverse;
}

.seat--top-right {
  left: 76%;
  top: 16%;
  flex-direction: column-reverse;
}

/* 座位卡牌 */
.seat__cards {
  --card-w: clamp(23px, 2.4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: calc(var(--card-w) * 1.4);
}

.seat__cards:empty {
  display: none;
}

.seat__cards .card {
  --card-w: inherit;
  border-radius: calc(var(--card-w) * 0.12);
}

.seat--left .seat__cards,
.seat--right .seat__cards {
  flex-direction: row;
  gap: 3px;
}

/* 座位下注 */
.seat__bet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px 1px 3px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 125, 0.2);
  background: rgba(8, 5, 7, 0.74);
  color: var(--gold-1);
  font-family: var(--font-num);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.seat__bet:empty {
  display: none;
}

.seat-chip {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: none;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #f6e3b0 0deg 14deg, #b98840 14deg 28deg),
    radial-gradient(circle at 36% 30%, #fff3ce, #c99a4e 72%);
  border: 1px solid rgba(40, 24, 6, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 222, 0.35), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 座位主体：头像 + 信息条 */
.seat__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.seat--left .seat__panel,
.seat--right .seat__panel {
  width: 128px;
  flex: none;
}

.seat__panel .avatar {
  --avatar-size: clamp(46px, 5vw, 60px);
  z-index: 2;
  transition: transform var(--dur) var(--ease-out), filter var(--dur);
}

.seat__panel .avatar--hero {
  --avatar-size: clamp(50px, 5.4vw, 64px);
}

.avatar__img,
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar__active-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  border: 1.5px solid rgba(249, 237, 203, 0.85);
  box-shadow: 0 0 18px rgba(232, 196, 125, 0.55), inset 0 0 12px rgba(232, 196, 125, 0.25);
  transition: opacity var(--dur);
}

.seat__info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  margin-top: -11px;
  padding: 8px 7px 5px;
  border-radius: 11px;
  border: 1px solid rgba(232, 196, 125, 0.15);
  background: linear-gradient(180deg, rgba(32, 21, 25, 0.94) 0%, rgba(11, 8, 10, 0.96) 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 236, 200, 0.07);
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
  min-width: 0;
}

.seat__name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}

.seat__name {
  font-size: clamp(10px, 1.05vw, 12px);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat__style {
  flex: none;
  padding: 0 3px;
  border-radius: 3px;
  border: 1px solid rgba(232, 196, 125, 0.18);
  background: rgba(232, 196, 125, 0.06);
  color: var(--gold-2);
  font-size: 7.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.seat__style--aggressive {
  border-color: rgba(255, 107, 94, 0.26);
  background: rgba(181, 45, 53, 0.16);
  color: #ff9d92;
}

.seat__style--tight {
  border-color: rgba(95, 224, 189, 0.22);
  background: rgba(47, 168, 134, 0.12);
  color: var(--green-bright);
}

.seat__style--tricky {
  border-color: rgba(140, 120, 255, 0.26);
  background: rgba(96, 74, 190, 0.16);
  color: #bdb0ff;
}

.seat__style--you {
  border-color: rgba(249, 237, 203, 0.5);
  background: linear-gradient(180deg, rgba(249, 237, 203, 0.3), rgba(201, 154, 78, 0.2));
  color: var(--gold-0);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.seat__stack {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-num);
  font-size: clamp(9px, 0.95vw, 11px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--gold-1);
  line-height: 1.4;
}

.seat__stack .chip-mini {
  width: 11px;
  height: 11px;
}

.seat__stack-value {
  color: var(--gold-1);
}

/* 庄家按钮 */
.dealer-btn {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid rgba(255, 246, 222, 0.8);
  background: radial-gradient(circle at 36% 28%, #fffdf4, #efe4cc 62%, #cfc0a4 100%);
  color: #201017;
  font-family: var(--font-num);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.seat--hero .dealer-btn,
.seat--bottom-left .dealer-btn,
.seat--bottom-right .dealer-btn {
  right: 4px;
  bottom: 18px;
}

.seat--top .dealer-btn,
.seat--top-left .dealer-btn,
.seat--top-right .dealer-btn {
  right: 4px;
  top: 18px;
}

.seat--left .dealer-btn {
  left: 10px;
  top: -9px;
}

.seat--right .dealer-btn {
  right: 10px;
  top: -9px;
}

/* 位置标记 SB / BB */
.seat__pos {
  position: absolute;
  z-index: 4;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 5, 7, 0.72);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.seat__pos--sb {
  color: rgba(255, 226, 190, 0.7);
}

.seat__pos--bb {
  color: rgba(255, 200, 170, 0.62);
}

.seat--hero .seat__pos,
.seat--bottom-left .seat__pos,
.seat--bottom-right .seat__pos {
  left: 8px;
  bottom: 20px;
}

.seat--top .seat__pos,
.seat--top-left .seat__pos,
.seat--top-right .seat__pos {
  right: 8px;
  top: 20px;
}

.seat--left .seat__pos {
  left: 12px;
  top: 12px;
}

.seat--right .seat__pos {
  right: 12px;
  top: 12px;
}

/* ALL IN / 牌型标签 */
.seat__allin {
  display: inline-block;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%) rotate(-4deg);
  padding: 2px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 176, 160, 0.6);
  background: linear-gradient(180deg, #c8373a, #7a1119);
  color: #ffe3dc;
  font-family: var(--font-num);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(120, 14, 20, 0.6), inset 0 1px 0 rgba(255, 220, 210, 0.3);
  pointer-events: none;
}

.seat__handname {
  display: none;
  position: absolute;
  left: 50%;
  bottom: -2px;
  z-index: 5;
  transform: translate(-50%, 100%);
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 125, 0.4);
  background: rgba(9, 6, 8, 0.9);
  color: var(--gold-1);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* 思考中的小点 */
.thinking-dots {
  display: inline-flex;
  position: absolute;
  left: 50%;
  top: -12px;
  z-index: 6;
  transform: translateX(-50%);
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 125, 0.22);
  background: rgba(8, 5, 7, 0.82);
}

.thinking-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-1);
  animation: thinking-bounce 1.1s var(--ease-in-out) infinite;
}

.thinking-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.thinking-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

/* 行动气泡 */
.action-bubble {
  --bub-bg: rgba(20, 13, 16, 0.94);
  --bub-fg: var(--gold-0);
  --bub-line: rgba(232, 196, 125, 0.5);
  display: block;
  position: absolute;
  left: 50%;
  top: -6px;
  z-index: 8;
  transform: translate(-50%, -100%);
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--bub-line);
  background: var(--bub-bg);
  color: var(--bub-fg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: bubble-in 0.24s var(--ease-out) both;
}

.action-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 7px;
  height: 7px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--bub-bg);
  border-right: 1px solid var(--bub-line);
  border-bottom: 1px solid var(--bub-line);
}

.action-bubble--fold {
  --bub-bg: rgba(52, 16, 19, 0.96);
  --bub-fg: #ffb3a8;
  --bub-line: rgba(255, 107, 94, 0.42);
}

.action-bubble--call,
.action-bubble--check {
  --bub-bg: rgba(30, 23, 12, 0.96);
  --bub-fg: var(--gold-0);
  --bub-line: rgba(232, 196, 125, 0.55);
}

.action-bubble--bet,
.action-bubble--raise {
  --bub-bg: rgba(10, 40, 36, 0.96);
  --bub-fg: #8ff2dc;
  --bub-line: rgba(63, 200, 180, 0.5);
}

.action-bubble--allin {
  --bub-bg: linear-gradient(180deg, #c8373a, #7a1119);
  --bub-fg: #ffe9e3;
  --bub-line: rgba(255, 180, 160, 0.7);
}

.action-bubble--fold,
.action-bubble--call,
.action-bubble--check,
.action-bubble--raise,
.action-bubble--bet,
.action-bubble--allin,
.action-bubble.is-visible {
  display: block;
}

.seat--top .action-bubble,
.seat--top-left .action-bubble,
.seat--top-right .action-bubble {
  top: auto;
  bottom: -30px;
  transform: translate(-50%, 100%);
}

.seat--top .action-bubble::after,
.seat--top-left .action-bubble::after,
.seat--top-right .action-bubble::after {
  top: -4px;
  bottom: auto;
  border: 0;
  border-left: 1px solid var(--bub-line);
  border-top: 1px solid var(--bub-line);
}

.seat--left .action-bubble {
  left: auto;
  right: calc(100% + 4px);
  top: 50%;
  transform: translate(0, -50%);
}

.seat--right .action-bubble {
  left: calc(100% + 4px);
  top: 50%;
  transform: translate(0, -50%);
}

.seat--left .action-bubble::after,
.seat--right .action-bubble::after {
  display: none;
}

/* 座位状态 */
.seat.is-folded {
  opacity: 0.6;
  filter: saturate(0.55);
}

.seat.is-folded .seat__cards {
  opacity: 0.55;
  filter: grayscale(0.6);
}

.seat.is-folded .seat__info {
  border-color: rgba(255, 255, 255, 0.07);
}

.seat.is-allin .seat__allin,
.seat.is-all-in .seat__allin {
  display: inline-block;
}

.seat.is-allin .seat__info,
.seat.is-all-in .seat__info {
  border-color: rgba(255, 107, 94, 0.42);
  background: linear-gradient(180deg, rgba(112, 26, 32, 0.9) 0%, rgba(30, 8, 10, 0.96) 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.46), 0 0 22px rgba(181, 45, 53, 0.28),
    inset 0 1px 0 rgba(255, 200, 190, 0.12);
}

.seat.is-allin .seat__stack,
.seat.is-all-in .seat__stack {
  color: #ffb3a8;
}

.seat.is-active .avatar__active-ring,
.seat.is-acting .avatar__active-ring,
.seat.is-my-turn .avatar__active-ring {
  opacity: 1;
  animation: breathe 2.2s var(--ease-in-out) infinite;
}

.seat.is-my-turn .avatar__active-ring {
  border-width: 2px;
  border-color: var(--gold-0);
}

.seat.is-active .seat__info,
.seat.is-acting .seat__info,
.seat.is-my-turn .seat__info {
  border-color: rgba(232, 196, 125, 0.45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.46), 0 0 24px rgba(232, 196, 125, 0.18),
    inset 0 1px 0 rgba(255, 236, 200, 0.12);
}

.seat.is-my-turn .seat__name {
  color: var(--gold-0);
}

.seat.is-thinking .thinking-dots {
  display: inline-flex;
}

/* 顶座思考点放到头像侧边，避免被 header / 出牌区压住 */
.seat--top .thinking-dots,
.seat--top-left .thinking-dots,
.seat--top-right .thinking-dots {
  left: calc(50% + 36px);
  top: 6px;
  transform: none;
}

.seat.is-thinking .avatar {
  filter: brightness(0.92);
}

.seat.is-raising .action-bubble--raise,
.seat.is-raising .action-bubble--bet {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 22px rgba(63, 200, 180, 0.3);
}

.seat.is-winner .seat__info {
  border-color: rgba(249, 237, 203, 0.72);
  background: linear-gradient(180deg, rgba(76, 54, 22, 0.92) 0%, rgba(20, 13, 9, 0.96) 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.46), 0 0 34px rgba(232, 196, 125, 0.42),
    inset 0 1px 0 rgba(255, 246, 214, 0.2);
}

.seat.is-winner .avatar__active-ring {
  opacity: 1;
  border-color: var(--gold-0);
  animation: winner-ring 1.8s var(--ease-in-out) infinite;
}

.seat.is-winner .seat__handname,
.seat.is-showdown .seat__handname,
.seat.is-revealed .seat__handname,
.seat__handname:not(:empty) {
  display: inline-block;
}

.seat.is-winner .seat__cards .card,
.seat.is-winner .seat__handname {
  animation: none;
}

/* ------------------------------ 6. 牌局动态 ------------------------------ */
.hand-history {
  position: absolute;
  right: 16px;
  top: 14px;
  bottom: 14px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  width: 264px;
  max-width: 30vw;
  border-radius: 16px;
  border: 1px solid rgba(232, 196, 125, 0.16);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(110, 32, 40, 0.28), rgba(110, 32, 40, 0) 62%),
    linear-gradient(180deg, rgba(22, 14, 17, 0.92) 0%, rgba(9, 6, 8, 0.94) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 236, 200, 0.07);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  overflow: hidden;
  transition: transform 0.34s var(--ease-out), opacity 0.3s;
}

.hand-history.is-collapsed {
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
}

.hand-history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(232, 196, 125, 0.12);
  background: rgba(255, 255, 255, 0.015);
  flex: none;
}

.hand-history__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.hand-history__title .icon {
  width: 13px;
  height: 13px;
  color: var(--gold-2);
}

.hand-history__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0;
}

.history-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}

.history-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 6px 12px 6px 12px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

.history-item:last-child {
  border-bottom: 0;
}

.history-item__dot {
  flex: none;
  width: 3px;
  height: 3px;
  margin-top: 6px;
  border-radius: 50%;
  background: rgba(232, 196, 125, 0.35);
}

.history-item__text {
  min-width: 0;
}

.history-item__time,
.history-item time {
  flex: none;
  color: var(--muted-dim);
  font-family: var(--font-num);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}

.history-item strong,
.history-item b {
  color: var(--ink-soft);
  font-weight: 600;
}

.history-item--system {
  color: var(--muted-dim);
  font-style: normal;
}

.history-item--street {
  padding-top: 8px;
  padding-bottom: 5px;
  color: var(--gold-2);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.history-item--street .history-item__dot {
  margin-top: 5px;
  background: var(--gold-2);
  box-shadow: 0 0 8px rgba(232, 196, 125, 0.5);
}

.history-item--action {
  color: var(--ink-soft);
}

.history-item--action b {
  color: var(--gold-1);
}

.history-item--result {
  color: var(--gold-1);
  background: linear-gradient(90deg, rgba(232, 196, 125, 0.08), rgba(232, 196, 125, 0));
}

.history-item--result b {
  color: var(--gold-0);
}

.history-item--result::before {
  background: var(--gold-0);
  box-shadow: 0 0 8px rgba(232, 196, 125, 0.7);
}

.history-item--result .history-item__dot {
  margin-top: 5px;
  background: var(--gold-0);
  box-shadow: 0 0 8px rgba(232, 196, 125, 0.7);
}

.history-item--system .history-item__dot {
  background: rgba(255, 255, 255, 0.18);
}

.history-item--action .history-item__dot {
  background: rgba(232, 196, 125, 0.55);
}

.hand-history__foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid rgba(232, 196, 125, 0.1);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
}

/* 展开按钮：默认收起时显示；小屏常显 */
.history-toggle {
  display: none;
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 11;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(232, 196, 125, 0.32);
  background: linear-gradient(180deg, rgba(42, 29, 33, 0.92), rgba(11, 8, 10, 0.94));
  color: var(--gold-1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 236, 200, 0.1);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur);
}

.history-toggle .icon {
  width: 17px;
  height: 17px;
}

.history-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(232, 196, 125, 0.2);
}

.hand-history.is-collapsed + .history-toggle {
  display: grid;
}

/* ------------------------------ 7. 教练提示 ------------------------------ */
.coach-strip {
  position: absolute;
  left: 22px;
  top: 14px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 300px;
  padding: 6px 13px 6px 7px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 125, 0.22);
  background: rgba(10, 7, 9, 0.7);
  color: var(--ink-soft);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.coach-strip__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, rgba(249, 237, 203, 0.28), rgba(120, 84, 30, 0.2));
  color: var(--gold-1);
}

.coach-strip__icon .icon {
  width: 13px;
  height: 13px;
}

.coach-strip.is-strong {
  border-color: rgba(255, 107, 94, 0.36);
  color: #ffc1b7;
}

.coach-strip.is-strong .coach-strip__icon {
  background: radial-gradient(circle at 36% 28%, rgba(255, 150, 130, 0.3), rgba(120, 22, 28, 0.3));
  color: #ff9d92;
}

.coach-strip.is-premium {
  border-color: rgba(249, 237, 203, 0.55);
  color: var(--gold-0);
  background: linear-gradient(180deg, rgba(58, 42, 20, 0.72), rgba(12, 9, 8, 0.8));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 0 26px rgba(232, 196, 125, 0.2);
}

/* ------------------------------ 8. 结算横幅 ------------------------------ */
.result-banner {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: radial-gradient(ellipse at 50% 44%, rgba(30, 12, 15, 0.5) 0%, rgba(4, 3, 4, 0.82) 72%);
  animation: fade-in 0.32s var(--ease-out) both;
}

.result-banner__rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1500px;
  height: 1500px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(232, 196, 125, 0.07) 0deg 2deg, rgba(232, 196, 125, 0) 2deg 11deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, #000 26%, transparent 64%);
  mask-image: radial-gradient(circle, #000 0%, #000 26%, transparent 64%);
  animation: spin-slow 72s linear infinite;
  opacity: 0.8;
}

.result-banner__content {
  position: relative;
  z-index: 1;
  min-width: min(560px, 86vw);
  max-width: 88vw;
  padding: 26px 48px 24px;
  border-radius: 26px;
  border: 1px solid rgba(232, 196, 125, 0.32);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(122, 32, 40, 0.55) 0%, rgba(122, 32, 40, 0) 62%),
    linear-gradient(170deg, rgba(34, 21, 24, 0.96) 0%, rgba(12, 8, 10, 0.97) 100%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72), 0 0 90px rgba(232, 196, 125, 0.16),
    inset 0 1px 0 rgba(255, 236, 200, 0.14);
  text-align: center;
  animation: banner-in 0.42s var(--ease-out) both;
}

.result-banner__eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: var(--gold-2);
  text-transform: uppercase;
}

.result-banner__title {
  margin: 5px 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #fff6dd 6%, #f2d89a 40%, #c99a4e 76%, #e8c47d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.6));
}

.result-banner__hands {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
  min-height: 8px;
}

.result-hand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.result-hand__who {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.result-hand__rank {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-1);
}

.result-hand.is-winner .result-hand__who {
  color: var(--ink-soft);
}

.result-hand.is-winner .result-hand__rank {
  color: var(--gold-0);
  text-shadow: 0 0 14px rgba(232, 196, 125, 0.4);
}

.result-hand.is-winner .mini-card {
  box-shadow: 0 0 0 1px rgba(249, 237, 203, 0.7), 0 0 14px rgba(232, 196, 125, 0.35),
    0 3px 7px rgba(0, 0, 0, 0.4);
}

.mini-cards--result {
  display: inline-flex;
  gap: 3px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 24px;
  height: 33px;
  border-radius: 3px;
  background: linear-gradient(180deg, #fffdf6, #efe6d4);
  color: var(--card-black);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.05;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 3px 7px rgba(0, 0, 0, 0.4);
}

.mini-card em {
  display: block;
  font-family: var(--font-symbol);
  font-style: normal;
  font-size: 10.5px;
  line-height: 1;
  opacity: 0.92;
}

.mini-card.is-red {
  color: var(--card-red);
}

.mini-card.is-black {
  color: var(--card-black);
}

.result-fold-note {
  margin-top: 4px;
  flex: 1 1 100%;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.result-banner__amount {
  margin-top: 14px;
  font-family: var(--font-num);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--gold-0);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 0 26px rgba(232, 196, 125, 0.3);
}

.result-banner__next {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 30px;
}

.result-banner__next small {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(42, 26, 8, 0.18);
  border: 1px solid rgba(42, 26, 8, 0.28);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.result-banner.is-lose .result-banner__title {
  background: linear-gradient(180deg, #ffdcd6 6%, #e58d82 44%, #a63b3b 80%, #d77a70 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.result-banner.is-lose .result-banner__content {
  border-color: rgba(255, 130, 115, 0.24);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(90, 20, 24, 0.5) 0%, rgba(90, 20, 24, 0) 62%),
    linear-gradient(170deg, rgba(30, 20, 22, 0.96) 0%, rgba(11, 8, 10, 0.97) 100%);
}

.result-banner.is-lose .result-banner__rays {
  opacity: 0.28;
}

.result-banner.is-win .result-banner__content {
  animation: banner-in 0.42s var(--ease-out) both, banner-glow 3.4s var(--ease-in-out) 0.4s infinite;
}

/* ------------------------------ 9. 行动区 ------------------------------ */
.action-dock {
  position: relative;
  z-index: 12;
  flex: none;
  height: clamp(120px, 15.5vh, 148px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(232, 196, 125, 0.16);
  background:
    radial-gradient(ellipse 46% 100% at 50% 0%, rgba(110, 30, 38, 0.28) 0%, rgba(110, 30, 38, 0) 68%),
    linear-gradient(180deg, rgba(16, 11, 13, 0.96) 0%, #08060a 62%, #070509 100%);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 236, 200, 0.05);
}

.action-dock__glow {
  position: absolute;
  left: 50%;
  top: -70px;
  width: 760px;
  height: 170px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255, 216, 160, 0.14) 0%, rgba(255, 216, 160, 0) 70%);
  filter: blur(12px);
}

.action-dock__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1220px, 100%);
  height: 100%;
  padding: 0 28px;
}

.action-dock__edge {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(232, 196, 125, 0) 0%, rgba(232, 196, 125, 0.34) 18%, rgba(249, 237, 203, 0.5) 50%, rgba(232, 196, 125, 0.34) 82%, rgba(232, 196, 125, 0) 100%);
}

/* 行动提示 */
.turn-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  width: 196px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.24);
}

.turn-hint__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-1);
  box-shadow: 0 0 10px rgba(232, 196, 125, 0.6);
  animation: dot-live 2.2s var(--ease-in-out) infinite;
}

.turn-hint strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.35;
  white-space: nowrap;
}

.turn-hint span:not(.turn-hint__dot) {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted-dim);
  line-height: 1.4;
  white-space: nowrap;
}

.action-dock.is-my-turn .turn-hint {
  border-color: rgba(232, 196, 125, 0.32);
  background: linear-gradient(180deg, rgba(58, 42, 20, 0.35), rgba(0, 0, 0, 0.3));
  box-shadow: 0 0 22px rgba(232, 196, 125, 0.12);
}

.action-dock.is-my-turn .turn-hint__dot {
  background: var(--gold-0);
  box-shadow: 0 0 14px rgba(249, 237, 203, 0.9);
}

.action-dock.is-complete .turn-hint {
  opacity: 0.6;
}

/* 圆形金属动作按钮 */
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.2vw, 40px);
  flex: 1;
  min-width: 0;
}

.action-buttons.is-suspended {
  opacity: 0.42;
  filter: grayscale(0.7);
  pointer-events: none;
}

.action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: clamp(76px, 7.3vw, 98px);
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur),
    box-shadow var(--dur), opacity var(--dur);
  user-select: none;
  -webkit-user-select: none;
}

.action-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0.18) 100%);
}

.action-btn__ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.action-btn__label {
  position: relative;
  z-index: 1;
  font-size: clamp(15px, 1.45vw, 19px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.action-btn__sub {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(7px, 0.72vw, 8.5px);
  letter-spacing: 0.16em;
  line-height: 1.3;
  opacity: 0.66;
  text-transform: uppercase;
}

.action-btn--fold {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 50% 36%, #ff8171 0%, #d83e40 30%, #a5282f 62%, #6e1118 82%, #3d070c 100%);
  border-color: rgba(255, 186, 172, 0.5);
  box-shadow: inset 0 2px 3px rgba(255, 220, 210, 0.3), inset 0 -10px 22px rgba(60, 4, 8, 0.6),
    0 10px 24px rgba(0, 0, 0, 0.5), 0 0 28px rgba(200, 52, 58, 0.32);
}

.action-btn--call {
  color: #2b1a07;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 50% 36%, #ffefc2 0%, #f0cf8e 26%, #d8ac62 56%, #a97a35 80%, #6e4a19 100%);
  border-color: rgba(255, 247, 220, 0.75);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.55), inset 0 -10px 22px rgba(88, 55, 14, 0.45),
    0 10px 24px rgba(0, 0, 0, 0.5), 0 0 34px rgba(232, 196, 125, 0.3);
}

.action-btn--call .action-btn__ring {
  border-color: rgba(255, 255, 255, 0.5);
}

.action-btn--call .action-btn__label {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.action-btn--call .action-btn__sub {
  opacity: 0.58;
}

.action-btn--raise {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 50% 36%, #8ff5db 0%, #35b899 28%, #1c8b74 58%, #0d5f4f 82%, #073a31 100%);
  border-color: rgba(160, 245, 224, 0.55);
  box-shadow: inset 0 2px 3px rgba(220, 255, 246, 0.3), inset 0 -10px 22px rgba(3, 48, 41, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.5), 0 0 30px rgba(63, 200, 180, 0.28);
}

.action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.action-btn--fold:hover:not(:disabled) {
  box-shadow: inset 0 2px 3px rgba(255, 220, 210, 0.3), inset 0 -10px 22px rgba(60, 4, 8, 0.6),
    0 14px 30px rgba(0, 0, 0, 0.55), 0 0 44px rgba(200, 52, 58, 0.46);
}

.action-btn--call:hover:not(:disabled) {
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.6), inset 0 -10px 22px rgba(88, 55, 14, 0.45),
    0 14px 30px rgba(0, 0, 0, 0.55), 0 0 52px rgba(232, 196, 125, 0.48);
}

.action-btn--raise:hover:not(:disabled) {
  box-shadow: inset 0 2px 3px rgba(220, 255, 246, 0.3), inset 0 -10px 22px rgba(3, 48, 41, 0.55),
    0 14px 30px rgba(0, 0, 0, 0.55), 0 0 46px rgba(63, 200, 180, 0.42);
}

.action-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.action-btn:disabled {
  opacity: 0.92;
  filter: saturate(0.4) brightness(0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 16px rgba(0, 0, 0, 0.32);
}

/* 失效态也要读得清：标签保持高对比，装饰性副标降低权重 */
.action-btn:disabled .action-btn__label {
  color: rgba(255, 250, 242, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.action-btn--call:disabled .action-btn__label {
  color: rgba(46, 28, 8, 0.88);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.action-btn:disabled .action-btn__sub {
  opacity: 0.6;
}

.action-btn:disabled .action-btn__ring {
  border-color: rgba(255, 255, 255, 0.18);
}

.action-dock.is-my-turn .action-btn:not(:disabled) {
  animation: action-ready 2.8s var(--ease-in-out) infinite;
}

/* 右侧工具 */
.action-dock__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(232, 196, 125, 0.14);
  background: linear-gradient(180deg, rgba(36, 25, 29, 0.6), rgba(11, 8, 10, 0.72));
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, 0.05), 0 6px 16px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: color var(--dur), border-color var(--dur), box-shadow var(--dur),
    transform var(--dur-fast) var(--ease-out);
}

.tool-btn .icon {
  width: 17px;
  height: 17px;
}

.tool-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  color: var(--gold-0);
  border-color: rgba(232, 196, 125, 0.38);
}

.tool-btn.is-on {
  color: var(--gold-1);
  border-color: rgba(232, 196, 125, 0.4);
  background: linear-gradient(180deg, rgba(74, 54, 24, 0.5), rgba(14, 10, 8, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, 0.14), 0 0 20px rgba(232, 196, 125, 0.14);
}

.tool-btn:disabled {
  opacity: 0.68;
  filter: saturate(0.5) brightness(0.82);
  cursor: default;
}

.pot-odds {
  margin-left: 4px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted-dim);
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pot-odds b {
  color: var(--gold-1);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ------------------------------ 10. 加注面板 ------------------------------ */
.raise-panel {
  position: absolute;
  right: 30px;
  bottom: calc(clamp(120px, 15.5vh, 148px) + 14px);
  z-index: 30;
  width: min(330px, calc(100vw - 28px));
  padding: 16px 16px 15px;
  border-radius: 16px;
  border: 1px solid rgba(232, 196, 125, 0.34);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(110, 32, 40, 0.36) 0%, rgba(110, 32, 40, 0) 62%),
    linear-gradient(160deg, rgba(40, 26, 30, 0.97) 0%, rgba(11, 8, 10, 0.98) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(232, 196, 125, 0.08),
    inset 0 1px 0 rgba(255, 236, 200, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: raise-in 0.28s var(--ease-out) both;
}

.raise-panel[hidden] {
  display: none;
}

.raise-panel.is-open {
  display: block;
}

.raise-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.raise-panel__eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--muted);
}

#raise-value,
.raise-panel__head strong {
  display: block;
  margin-top: 1px;
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--gold-0);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(232, 196, 125, 0.22);
}

.raise-panel__slider-wrap {
  padding: 2px 2px 0;
}

.raise-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.raise-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a6428 0%, #e8c47d 48%, rgba(255, 255, 255, 0.13) 48%, rgba(255, 255, 255, 0.13) 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}

.raise-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 247, 220, 0.85);
  background: radial-gradient(circle at 36% 30%, #fff8e3 0%, #e8c47d 46%, #a97a35 100%);
  box-shadow: 0 0 0 3px rgba(232, 196, 125, 0.16), 0 2px 8px rgba(0, 0, 0, 0.55);
}

.raise-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.raise-slider::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a6428, #e8c47d);
}

.raise-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 247, 220, 0.85);
  background: radial-gradient(circle at 36% 30%, #fff8e3, #e8c47d 46%, #a97a35 100%);
  box-shadow: 0 0 0 3px rgba(232, 196, 125, 0.16);
}

.raise-panel__range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
}

.raise-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 11px 0 12px;
}

.preset {
  padding: 7px 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-soft);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}

.preset:hover {
  color: var(--gold-0);
  border-color: rgba(232, 196, 125, 0.4);
  background: rgba(232, 196, 125, 0.08);
}

.preset.is-selected {
  color: #2a1a08;
  border-color: rgba(255, 247, 220, 0.7);
  background: linear-gradient(180deg, #f6e3b0, #d3a75c);
  font-weight: 600;
}

.preset--allin {
  color: #ffb3a8;
  border-color: rgba(255, 107, 94, 0.24);
  background: rgba(181, 45, 53, 0.12);
}

.preset--allin:hover {
  color: #ffd9d3;
  border-color: rgba(255, 107, 94, 0.5);
  background: rgba(181, 45, 53, 0.2);
}

.raise-panel__confirm {
  width: 100%;
}

/* ------------------------------ 11. 牌桌动画 ------------------------------ */
@keyframes room-light {
  from {
    opacity: 0.36;
    transform: translateX(-10px) scaleY(0.98);
  }
  to {
    opacity: 0.58;
    transform: translateX(10px) scaleY(1.03);
  }
}

@keyframes bokeh-breathe {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 0.95;
  }
}

@keyframes chip-drop {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.7);
  }
  70% {
    opacity: 1;
    transform: translateY(2px) scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes thinking-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes winner-ring {
  0%,
  100% {
    box-shadow: 0 0 16px rgba(232, 196, 125, 0.5), inset 0 0 12px rgba(232, 196, 125, 0.25);
  }
  50% {
    box-shadow: 0 0 34px rgba(249, 237, 203, 0.8), inset 0 0 18px rgba(249, 237, 203, 0.4);
  }
}

@keyframes action-ready {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

@keyframes banner-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.965);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes banner-glow {
  0%,
  100% {
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72), 0 0 90px rgba(232, 196, 125, 0.16),
      inset 0 1px 0 rgba(255, 236, 200, 0.14);
  }
  50% {
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72), 0 0 130px rgba(232, 196, 125, 0.3),
      inset 0 1px 0 rgba(255, 236, 200, 0.22);
  }
}

@keyframes raise-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------ 12. 牌桌响应式 ------------------------------ */
@media (max-width: 1279px) {
  .table-stage {
    padding-right: 262px;
    padding-left: 18px;
  }

  .hand-history {
    width: 236px;
    right: 14px;
  }

  .table-meta {
    gap: 12px;
  }

  .turn-hint {
    width: 172px;
  }

  .action-dock__inner {
    padding: 0 20px;
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .game__header {
    padding: 0 14px;
    gap: 10px;
  }

  .table-meta__item:last-child {
    display: none;
  }

  .header-divider {
    display: none;
  }

  .table-stage {
    padding-right: 246px;
    padding-left: 12px;
  }

  .table-shell {
    width: min(1020px, calc(100vw - 268px), calc((100vh - 218px) * 1.74));
  }

  .hand-history {
    right: 12px;
    top: 10px;
    bottom: 10px;
    width: 222px;
    max-width: none;
  }

  .turn-hint {
    width: 150px;
    padding: 7px 9px;
  }

  .action-btn {
    width: clamp(70px, 8vw, 84px);
  }

  .tool-btn {
    width: 46px;
    height: 46px;
  }

  .pot-odds {
    display: none;
  }

  .coach-strip {
    left: 14px;
    top: 10px;
    max-width: 220px;
    font-size: 9.5px;
  }
}

@media (max-width: 900px) {
  .game__header {
    height: 56px;
  }

  .brand-mini small {
    display: none;
  }

  .table-meta {
    display: none;
  }

  .header-balance {
    font-size: 11px;
  }

  .table-stage {
    padding: 0 10px;
  }

  .table-shell {
    width: min(880px, calc(100vw - 24px), calc((100vh - 200px) * 1.7));
    aspect-ratio: 1.7 / 1;
  }

  /* 小屏：牌局动态改为抽屉 */
  .hand-history {
    width: min(280px, 82vw);
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
  }

  .hand-history.is-open,
  .hand-history.is-active {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .history-toggle {
    display: grid;
  }

  .hand-history.is-collapsed + .history-toggle {
    display: grid;
  }

  .coach-strip {
    max-width: 180px;
    font-size: 9px;
  }

  .seat {
    width: clamp(112px, 15vw, 140px);
  }

  .seat__info {
    padding: 7px 5px 4px;
  }

  .action-dock {
    height: 116px;
  }

  .action-dock__inner {
    padding: 0 14px;
    gap: 10px;
  }

  .turn-hint {
    width: 140px;
    padding: 6px 8px;
    gap: 7px;
  }

  .turn-hint strong {
    font-size: 11px;
  }

  .action-btn {
    width: 68px;
  }

  .tool-btn {
    width: 42px;
    height: 42px;
    font-size: 8px;
  }

  .raise-panel {
    right: 12px;
    bottom: 130px;
  }
}

@media (max-width: 600px) {
  .game__header {
    height: 50px;
    padding: 0 10px;
  }

  .brand-mini__mark {
    width: 28px;
    height: 28px;
  }

  .brand-mini b {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .header-balance {
    padding: 5px 9px 5px 8px;
    font-size: 10.5px;
  }

  .game__header-right .icon-btn {
    width: 32px;
    height: 32px;
  }

  .game__header-right .btn {
    display: none;
  }

  .table-stage {
    padding: 0 6px;
  }

  .table-shell {
    width: min(560px, calc(100vw - 14px), calc((100vh - 190px) * 1.35));
    aspect-ratio: 1.35 / 1;
  }

  .table-rim {
    inset: 10% 4% 15%;
  }

  .table-felt {
    inset: 9px 10px;
  }

  .felt-watermark {
    font-size: 12px;
    letter-spacing: 0.22em;
  }

  .table-center {
    gap: 4px;
    padding-bottom: 16%;
  }

  .street-label {
    font-size: 7.5px;
    letter-spacing: 0.24em;
  }

  .pot-display__amount strong {
    font-size: 17px;
  }

  .pot-display__label,
  .pot-display__sub {
    font-size: 7px;
  }

  .community-cards {
    --card-w: clamp(21px, 6.2vw, 27px);
    gap: 3px;
  }

  .pot-chips,
  .pot-chip,
  .pot-chips .chip-mini {
    min-height: 11px;
  }

  .pot-chip,
  .pot-chips .chip-mini {
    width: 11px;
    height: 11px;
    box-shadow: inset 0 0 0 1px rgba(255, 248, 222, 0.3), 0 1px 0 #6d4d1f, 0 2px 3px rgba(0, 0, 0, 0.5);
  }

  .hero-cards {
    bottom: 7%;
    gap: 5px;
  }

  .hero-cards .card {
    --card-w: clamp(34px, 9.6vw, 44px);
  }

  .table-badge {
    display: none;
  }

  .seat {
    width: clamp(92px, 24vw, 116px);
  }

  .seat--top {
    top: 3%;
  }

  /* 窄屏减少信息密度：隐藏侧座底牌与等级/位置小标，避免与公共牌打架 */
  .seat--left .seat__cards,
  .seat--right .seat__cards {
    display: none;
  }

  .seat__pos,
  .avatar__level {
    display: none;
  }

  .seat--top-left {
    left: 24%;
    top: 15%;
  }

  .seat--top-right {
    left: 76%;
    top: 15%;
  }

  .seat--left {
    left: 1%;
    top: 45%;
  }

  .seat--right {
    right: 1%;
    top: 45%;
  }

  .seat--bottom-left {
    left: 20%;
    top: 82%;
  }

  .seat--bottom-right {
    left: 80%;
    top: 82%;
  }

  .seat--hero {
    width: clamp(104px, 27vw, 128px);
    top: 100%;
  }

  .seat--left,
  .seat--right {
    width: auto;
  }

  .seat--left .seat__panel,
  .seat--right .seat__panel {
    width: 92px;
  }

  .seat__panel .avatar {
    --avatar-size: 38px;
  }

  .seat__panel .avatar--hero {
    --avatar-size: 42px;
  }

  .seat__info {
    margin-top: -8px;
    padding: 5px 4px 3px;
    border-radius: 8px;
  }

  .seat__name {
    font-size: 9px;
  }

  .seat__style {
    display: none;
  }

  .seat__stack {
    font-size: 8.5px;
  }

  .seat__cards {
    --card-w: 19px;
  }

  .seat__bet {
    font-size: 8px;
    padding: 0 5px 0 2px;
  }

  .seat-chip {
    width: 9px;
    height: 9px;
  }

  .dealer-btn {
    width: 15px;
    height: 15px;
    font-size: 7.5px;
  }

  .seat__pos {
    font-size: 6.5px;
    padding: 0 2px;
  }

  .seat__allin {
    font-size: 7px;
    padding: 1px 5px;
  }

  .action-bubble {
    font-size: 8.5px;
    padding: 2px 7px;
  }

  .coach-strip {
    display: none;
  }

  .hand-history {
    width: min(260px, 86vw);
  }

  .action-dock {
    height: 104px;
  }

  .action-dock__inner {
    padding: 0 8px;
    gap: 6px;
  }

  .turn-hint {
    display: none;
  }

  .action-dock__tools {
    gap: 5px;
  }

  .tool-btn {
    width: 38px;
    height: 38px;
    font-size: 7.5px;
  }

  .tool-btn .icon {
    width: 14px;
    height: 14px;
  }

  .action-buttons {
    gap: clamp(10px, 4vw, 22px);
  }

  .action-btn {
    width: clamp(58px, 16.5vw, 72px);
  }

  .action-btn__label {
    font-size: 13px;
  }

  .action-btn__sub {
    font-size: 6.5px;
    letter-spacing: 0.1em;
  }

  .raise-panel {
    right: 8px;
    bottom: 116px;
    width: calc(100vw - 16px);
  }

  .result-banner__content {
    min-width: 0;
    width: 90vw;
    padding: 20px 18px 18px;
  }

  .result-banner__hands {
    gap: 12px;
  }

  .result-banner__next {
    padding: 10px 22px;
  }
}

/* 横屏手机 / 极矮窗口：压缩顶栏与行动区 */
@media (max-height: 640px) and (min-width: 601px) {
  .game__header {
    height: 50px;
  }

  .action-dock {
    height: 104px;
  }

  .action-btn {
    width: clamp(64px, 6.6vw, 80px);
  }

  .turn-hint {
    padding: 5px 8px;
  }

  .table-shell {
    width: min(1180px, calc(100vw - 340px), calc((100vh - 196px) * 1.74));
  }

  .raise-panel {
    bottom: 118px;
  }
}
