﻿/* Extracted from styles poker module · topvan /poker/ */
html:has(body.poker-page) {
  height: 100%;
  height: 100dvh;
}
body.poker-page {
  --poker-felt: #0f5c3a;
  height: 100%;
  height: 100dvh;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 80% at 50% 20%, #1a7a4c 0%, #0a3d28 55%, #062418 100%);
  color: #f4f7f2;
  /* 牌桌页不要站点底栏，把底部留给行动条 */
  padding-bottom: 0 !important;
}
body.poker-page .site-bottom-nav,
body.poker-page #siteBottomNav {
  display: none !important;
}
body.poker-page.has-bottom-nav {
  padding-bottom: 0 !important;
}
.btn.quiet {
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(244, 247, 242, 0.75);
  box-shadow: none;
  font-size: 12px;
}
.btn.quiet:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7f2;
}
body.poker-page .site-bar {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.94);
}
/* 覆盖 portal.css 的 main 限宽，牌桌吃满视口 */
body.poker-page main.poker-shell,
body.poker-page .poker-shell {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  gap: 2px;
  padding: 2px 10px 2px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.poker-shell #poker-app,
#poker-app {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.poker-wrap {
  width: 100%;
}
.poker-lobby {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: 12px 14px;
  min-height: 0;
  width: 100%;
}

.poker-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  gap: 2px;
}

.poker-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
}

.poker-top {
  flex: none;
  height: 28px;
  flex-wrap: nowrap;
  overflow: hidden;
  justify-content: flex-start;
  gap: 10px;
}

.poker-room-no {
  flex: none;
  min-width: 2.6em;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1;
}

.poker-room-no.is-empty {
  visibility: hidden;
}

.poker-top-status {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 650;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.poker-watchers {
  color: #f8fafc;
  font-weight: 650;
}

.poker-top-join,
.poker-top-leave {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.poker-top-leave {
  margin-left: 4px;
}


.poker-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 247, 242, 0.85);
  font-size: 13px;
}

.poker-join input,
.poker-join select,
.poker-raise input {
  width: 96px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.poker-seats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}

.poker-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  flex: 0 0 auto;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 58px;
  max-width: none;
  overflow: visible;
  transform: none;
  padding: 4px 0 env(safe-area-inset-bottom, 0px);
  background: linear-gradient(180deg, transparent 0%, rgba(6, 36, 24, 0.55) 40%, rgba(6, 36, 24, 0.85) 100%);
}

.poker-actions-side {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.poker-actions-side.is-left {
  justify-content: flex-end;
}

.poker-actions-side.is-mid {
  justify-content: center;
  padding: 0;
  z-index: 2;
}

.poker-actions-side.is-right {
  justify-content: flex-start;
}

.poker-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.poker-act-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  line-height: 0;
}
.poker-act-ico .poker-ico,
.poker-banner-ico .poker-ico {
  width: 100%;
  height: 100%;
  display: block;
}
.poker-act-txt {
  line-height: 1;
  white-space: nowrap;
}
.poker-banner-ico {
  display: inline-grid;
  place-items: center;
  width: 1.75em;
  height: 1.75em;
  margin-right: 0.4em;
  vertical-align: -0.35em;
  flex: none;
}
.poker-banner b {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
}
.poker-banner-ico .poker-ico {
  width: 1.75em !important;
  height: 1.75em !important;
}
.poker-lobby .poker-act-btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 650;
}
.poker-lobby .poker-act-ico {
  width: 16px;
  height: 16px;
}

.poker-actions .btn {
  width: 112px;
  height: 40px;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}
.poker-actions .poker-act-ico {
  width: 18px;
  height: 18px;
}

.poker-actions-side.is-mid .btn {
  width: 168px;
  height: 52px;
  font-size: 18px;
  font-weight: 750;
  border-radius: 12px;
}
.poker-actions-side.is-mid .poker-act-ico {
  width: 22px;
  height: 22px;
}

.poker-actions .btn:hover,
.poker-actions .btn.primary:hover,
.poker-actions .btn.is-fold:hover,
.poker-actions .btn.is-allin:hover,
.poker-actions .btn.is-call-warn:hover,
.poker-actions .btn.is-call-hot:hover {
  transform: none;
}

.poker-actions .btn.is-fold {
  border-color: #ffe4e6;
  background: linear-gradient(180deg, #fff7f7, #ffe4e6);
  color: #be123c;
  box-shadow: inset 0 1px 0 #fff;
}

.poker-actions .btn.is-fold:hover {
  background: linear-gradient(180deg, #fff1f2, #fecdd3);
  border-color: #fecdd3;
  color: #be123c;
}

.poker-actions .btn.is-allin {
  border-color: #ffedd5;
  background: linear-gradient(180deg, #fffaf5, #ffedd5);
  color: #c2410c;
  box-shadow: inset 0 1px 0 #fff;
}

.poker-actions .btn.is-allin:hover {
  background: linear-gradient(180deg, #fff7ed, #fed7aa);
  border-color: #fed7aa;
  color: #c2410c;
}

.poker-actions .btn.is-call-warn {
  border-color: #facc15;
  background: linear-gradient(180deg, #fef9c3, #facc15);
  color: #854d0e;
  box-shadow: inset 0 1px 0 #fff;
}

.poker-actions .btn.is-call-warn:hover {
  background: linear-gradient(180deg, #fef08a, #eab308);
  border-color: #eab308;
  color: #854d0e;
}

.poker-actions .btn.is-call-hot {
  border-color: #ef4444;
  background: linear-gradient(180deg, #fecaca, #ef4444);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.poker-actions .btn.is-call-hot:hover {
  background: linear-gradient(180deg, #fca5a5, #dc2626);
  border-color: #dc2626;
  color: #fff;
}

.poker-actions .btn:disabled,
.poker-actions .btn:disabled.primary,
.poker-actions .btn.is-fold:disabled,
.poker-actions .btn.is-allin:disabled,
.poker-actions .btn.is-call-warn:disabled,
.poker-actions .btn.is-call-hot:disabled {
  opacity: 1;
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.poker-felt {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  /* 更扁更满的椭圆桌，少留边 */
  border-radius: 48% / 46%;
  overflow: visible;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 255, 255, 0.16), transparent 55%),
    #0f6b45;
  box-shadow: inset 0 0 0 3px rgba(15, 80, 48, 0.55);
}

.poker-seat {
  position: absolute;
  z-index: 1;
  padding: 3px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
}

.poker-seat-zone {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.poker-seat-id {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: none;
}

.poker-seat-play {
  display: grid;
  justify-items: center;
  gap: 2px;
  flex: none;
}

/* 左右家：身份纵向叠放 + 手牌朝桌心，避免横向挤出/被挡 */
.poker-seat.is-axis-h {
  width: auto;
  max-width: 148px;
  z-index: 4;
}

.poker-seat.is-axis-h .poker-seat-zone {
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.poker-seat.is-side-right.is-axis-h .poker-seat-zone {
  flex-direction: row-reverse;
}

.poker-seat.is-axis-h .poker-seat-id {
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.poker-seat.is-axis-h .poker-seat-meta {
  text-align: center;
  justify-items: center;
}

.poker-seat.is-axis-h .poker-seat-who {
  max-width: 88px;
  font-size: 11px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.poker-seat.is-axis-h .poker-role-marks {
  left: auto;
  right: -4px;
  top: -4px;
}

.poker-seat.is-side-left.is-axis-h .poker-role-marks {
  right: auto;
  left: -4px;
}

/* 上下家：纵向分区，身份靠桌外，手牌朝桌心 */
.poker-seat.is-axis-v {
  width: 132px;
}

.poker-seat.is-axis-v .poker-seat-zone {
  flex-direction: column;
  align-items: center;
}

.poker-seat.is-side-bottom.is-axis-v .poker-seat-zone {
  flex-direction: column-reverse;
}

.poker-seat.is-axis-v .poker-seat-id {
  flex-direction: row;
  justify-content: center;
}

.poker-seat.is-you.is-axis-v {
  width: 156px;
}

.poker-avatar-wrap {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  overflow: visible;
}

.poker-seat.is-you .poker-avatar-wrap {
  width: 56px;
  height: 56px;
}

.poker-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0f172a;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--av-ring, #fff) 75%, transparent),
    0 0 0 4px color-mix(in srgb, var(--av-ring, #94a3b8) 28%, transparent),
    0 4px 10px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.poker-avatar.is-squircle {
  border-radius: 30%;
}

.poker-avatar.is-hex {
  border-radius: 32%;
}

.poker-avatar.is-diamond {
  border-radius: 22%;
  transform: rotate(-8deg);
}

.poker-avatar.is-photo img,
.poker-avatar.is-gen svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.poker-avatar.is-hex img,
.poker-avatar.is-hex svg {
  clip-path: polygon(50% 2%, 94% 26%, 94% 74%, 50% 98%, 6% 74%, 6% 26%);
  border-radius: 0;
}

.poker-avatar.is-gen {
  background: transparent;
  padding: 0;
}

.poker-avatar-mark {
  position: absolute;
  right: -5px;
  bottom: -4px;
  z-index: 2;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.poker-avatar.is-diamond .poker-avatar-mark {
  transform: rotate(8deg);
}

.poker-seat.is-allin-fire {
  z-index: 6;
  overflow: visible;
}

.poker-seat.is-allin-fire .poker-avatar-wrap {
  z-index: 2;
}

.poker-seat.is-allin-fire .poker-avatar {
  box-shadow:
    0 0 0 2px rgba(255, 237, 213, 0.55),
    0 0 12px 3px rgba(249, 115, 22, 0.65),
    0 0 22px 6px rgba(220, 38, 38, 0.4);
}

/* OpenGameArt CC0 Fire FX by Mikodrak */
.poker-fire {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 128px;
  height: 168px;
  margin-left: -64px;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(249, 115, 22, 0.7));
}

.poker-fire-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
}

.poker-seat:not(.is-you) .poker-fire {
  width: 108px;
  height: 142px;
  margin-left: -54px;
  bottom: -10px;
}

.poker-seat.is-you .poker-fire {
  width: 148px;
  height: 196px;
  margin-left: -74px;
  bottom: -16px;
}

.poker-role-marks {
  position: absolute;
  left: -5px;
  top: -5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
  pointer-events: none;
}

.poker-avatar-wrap .poker-plaque {
  position: absolute;
  right: -6px;
  bottom: -6px;
  z-index: 2;
  max-width: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poker-seat-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.poker-seat-who {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e7fff3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
}

.poker-seat-stack {
  color: #fde68a;
  font-size: 10px;
  line-height: 1.1;
}

.poker-turn-tag {
  color: #7dd3fc;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
}

.poker-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 14px;
  height: 14px;
  padding: 0 2px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  writing-mode: horizontal-tb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.poker-badge.is-dealer {
  background: linear-gradient(180deg, #ecfdf5, #34d399);
  border: 1px solid #059669;
  color: #065f46;
}

.poker-badge.is-sb {
  background: linear-gradient(180deg, #fefce8, #facc15);
  border: 1px solid #ca8a04;
  color: #854d0e;
}

.poker-badge.is-bb {
  background: linear-gradient(180deg, #eff6ff, #60a5fa);
  border: 1px solid #2563eb;
  color: #1e40af;
}

.poker-cards.is-mine {
  pointer-events: none;
}

.poker-seat.is-peekable {
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  padding: 4px;
}

.poker-seat:not(.is-you) {
  width: 112px;
}

.poker-seat:not(.is-you) .poker-avatar-wrap,
.poker-seat:not(.is-you) .poker-avatar {
  width: 42px;
  height: 42px;
}

.poker-seat:not(.is-you) .poker-avatar-mark {
  width: 14px;
  height: 14px;
  font-size: 9px;
  right: -4px;
  bottom: -3px;
}

.poker-seat:not(.is-you) .poker-seat-who {
  max-width: 72px;
  font-size: 11px;
}

.poker-seat:not(.is-you) .poker-cards {
  gap: 4px;
}

.poker-seat:not(.is-you) .poker-card {
  width: 36px;
  height: 50px;
}

.poker-seat:not(.is-you) .poker-card b {
  font-size: 13px;
}

.poker-seat:not(.is-you) .poker-card i {
  font-size: 12px;
}

.poker-seat:not(.is-you) .poker-seat-stack,
.poker-seat:not(.is-you) .poker-made {
  font-size: 11px;
}

.poker-seat.is-turn {
  z-index: 5;
  background: rgba(125, 211, 252, 0.22);
  animation: poker-turn 0.7s ease-in-out infinite;
}

@keyframes poker-turn {
  0%, 100% { box-shadow: 0 0 0 2px #7dd3fc, 0 0 8px rgba(14, 165, 233, 0.45); }
  50% { box-shadow: 0 0 0 4px #e0f2fe, 0 0 22px rgba(56, 189, 248, 0.95); }
}

.poker-seat.is-settle {
  z-index: 9;
  overflow: visible;
}

.poker-seat.is-winner {
  z-index: 11;
  border-radius: 12px;
  box-shadow: 0 0 0 3px #f5c542, 0 0 18px rgba(245, 197, 66, 0.9);
  background: rgba(245, 197, 66, 0.16);
}

.poker-seat.is-share {
  z-index: 10;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.35);
  background: rgba(245, 197, 66, 0.05);
}

/* 结算浮层：朝桌心弹出，不被邻座/边缘裁切挡住 */
.poker-settle {
  position: absolute;
  z-index: 12;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 52px;
  max-width: 120px;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  white-space: nowrap;
}

.poker-seat.is-side-top .poker-settle {
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
}

.poker-seat.is-side-bottom .poker-settle {
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
}

.poker-seat.is-side-left .poker-settle {
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
}

.poker-seat.is-side-right .poker-settle {
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
}

.poker-settle .poker-made,
.poker-settle .poker-net {
  position: static;
  z-index: auto;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.poker-settle .poker-net {
  justify-self: center;
  margin-top: 0;
  padding: 0 5px;
  font-size: 11px;
}

.poker-made.is-share,
.poker-seat.is-share .poker-made {
  color: #d6d3d1;
  font-size: 12px;
  font-weight: 650;
  text-shadow: none;
}

.poker-made {
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
}

.poker-made.is-lose {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 650;
  text-shadow: none;
}

.poker-net {
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.poker-net.is-win {
  color: #fde68a;
  text-shadow: 0 0 8px rgba(245, 197, 66, 0.55);
}

.poker-net.is-loss {
  color: #fda4af;
}

.poker-net.is-even {
  color: #cbd5e1;
}

.poker-seat:not(.is-you) .poker-net {
  font-size: 9px;
}
.poker-made.is-r1 { color: #e2e8f0; font-size: 10px; }
.poker-made.is-r2 { color: #f8fafc; font-size: 10px; }
.poker-made.is-r3 { color: #fef3c7; font-size: 11px; }
.poker-made.is-r4 { color: #fde68a; font-size: 11px; text-shadow: 0 0 6px rgba(253, 230, 138, 0.45); }
.poker-made.is-r5 { color: #fcd34d; font-size: 12px; text-shadow: 0 0 8px rgba(252, 211, 77, 0.6); }
.poker-made.is-r6 { color: #fb923c; font-size: 12px; text-shadow: 0 0 8px rgba(251, 146, 60, 0.7); }
.poker-made.is-r7 { color: #fb7185; font-size: 13px; text-shadow: 0 0 10px rgba(251, 113, 133, 0.8); }
.poker-made.is-r8 { color: #fff; font-size: 13px; text-shadow: 0 0 12px #fde68a, 0 0 4px #fff; }

.poker-seat.is-winner .poker-made {
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 0 10px #f5c542;
}

.poker-plaque {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 1px 3px;
  border-radius: 3px;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.poker-plaque.is-win {
  border: 1px solid #fde68a;
  background: linear-gradient(180deg, #fbbf24, #b45309);
  box-shadow: 0 1px 3px rgba(146, 64, 14, 0.4);
  color: #fffbeb;
  text-shadow: 0 1px 0 #92400e;
}

.poker-seat-name em {
  margin-left: 1px;
}

.poker-banner {
  position: absolute;
  left: 50%;
  top: 74%;
  z-index: 6;
  transform: translate(-50%, -50%);
  pointer-events: none;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  animation: poker-banner 0.28s ease-out;
}

.poker-banner span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  opacity: 0.9;
}

@keyframes poker-banner {
  from { transform: translate(-50%, -40%) scale(0.7); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.poker-seat-stack b,
.poker-pot b {
  color: #fde68a;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.poker-seat-name,
.poker-seat .poker-cards,
.poker-made,
.poker-seat-stack {
  position: relative;
  z-index: 5;
}

.poker-chip {
  position: absolute;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
}

.poker-chip.is-hero {
  z-index: 2;
}

.poker-chip.is-rival {
  z-index: 3;
}

.poker-seat.is-you {
  z-index: 5;
}

.poker-seat.is-you .poker-seat-play {
  position: relative;
  z-index: 6;
}

.poker-chip-stack {
  position: relative;
  width: 34px;
  height: 20px;
}

.poker-chip-disk {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 32px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, calc(var(--i, 0) * -3px));
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    inset 0 0 0 3px rgba(0, 0, 0, 0.25);
}

.poker-chip-disk.is-white { background: radial-gradient(circle at 38% 32%, #fff, #e7e5e4 55%, #a8a29e); }
.poker-chip-disk.is-red { background: radial-gradient(circle at 38% 32%, #fecdd3, #e11d48 48%, #881337); }
.poker-chip-disk.is-blue { background: radial-gradient(circle at 38% 32%, #e0f2fe, #0284c7 48%, #0c4a6e); }
.poker-chip-disk.is-green { background: radial-gradient(circle at 38% 32%, #dcfce7, #16a34a 48%, #14532d); }
.poker-chip-disk.is-black { background: radial-gradient(circle at 38% 32%, #94a3b8, #1e293b 50%, #020617); }
.poker-chip-disk.is-purple { background: radial-gradient(circle at 38% 32%, #ede9fe, #7c3aed 48%, #4c1d95); }

.poker-chip b {
  min-width: 34px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(253, 230, 138, 0.4);
  background: rgba(15, 23, 42, 0.72);
  color: #fde68a;
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  text-align: center;
  text-shadow: 0 0 6px rgba(245, 197, 66, 0.35);
}

.poker-chip.is-toss {
  animation: poker-toss 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.poker-chip.is-toss .poker-chip-disk {
  animation: poker-chip-drop 0.42s cubic-bezier(0.18, 0.9, 0.32, 1.25) both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}

.poker-chip.is-toss b {
  animation: poker-chip-amount 0.55s ease-out;
}

@keyframes poker-toss {
  0% { transform: translate(-50%, calc(-50% - 16px)) scale(0.6) rotate(-6deg); opacity: 0; filter: drop-shadow(0 0 0 transparent) brightness(1.4); }
  62% { transform: translate(-50%, calc(-50% + 2px)) scale(1.08) rotate(1deg); opacity: 1; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.35)) brightness(1.1); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3)); }
}

@keyframes poker-chip-drop {
  0% { transform: translate(-50%, calc(var(--i, 0) * -2px - 12px)) scale(0.75); opacity: 0; }
  70% { transform: translate(-50%, calc(var(--i, 0) * -2px + 1px)) scale(1.04); opacity: 1; }
  100% { transform: translate(-50%, calc(var(--i, 0) * -2px)) scale(1); opacity: 1; }
}

@keyframes poker-chip-amount {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.poker-street {
  color: #fde68a;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.poker-pot {
  color: #e7fff3;
  font-size: 14px;
}

.poker-board {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.poker-next {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 8;
  min-width: 128px;
  height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.04em;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  animation: poker-next-pop 0.28s ease-out both;
}

.poker-next:hover,
.poker-next.primary:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

@keyframes poker-next-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.poker-board {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.poker-note,
.poker-code,
.poker-board-empty {
  color: #e7fff3;
  font-size: 11px;
}

.poker-seat-name em {
  color: #b7f0d4;
  font-style: normal;
  font-size: 10px;
}

.poker-seat.is-folded .poker-seat-id,
.poker-seat.is-folded .poker-chip,
.poker-seat.is-folded .poker-made {
  opacity: 0.22;
}

.poker-seat.is-folded .poker-cards {
  opacity: 0.1;
  filter: brightness(0.55) saturate(0.35);
}

.poker-cards {
  display: flex;
  gap: 8px;
}

.poker-cards.is-board {
  perspective: 520px;
  gap: 10px;
}

.poker-card {
  display: grid;
  place-items: center;
  width: 52px;
  height: 72px;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transform-origin: center;
  backface-visibility: hidden;
}

.poker-cards.is-board .poker-card {
  width: 58px;
  height: 80px;
}

.poker-seat.is-you .poker-card {
  width: 58px;
  height: 80px;
}

.poker-card.is-flip {
  animation: poker-card-flip 0.48s ease-out;
}

@keyframes poker-card-flip {
  0% { transform: rotateY(90deg) scale(0.92); opacity: 0.25; }
  55% { transform: rotateY(-12deg) scale(1.02); opacity: 1; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.poker-card b,
.poker-card i {
  font-style: normal;
  line-height: 1;
}

.poker-card b {
  font-size: 20px;
}

.poker-cards.is-board .poker-card b,
.poker-seat.is-you .poker-card b {
  font-size: 22px;
}

.poker-suit {
  display: grid;
  place-items: center;
  font-style: normal;
  line-height: 0;
}

.poker-suit.is-svg {
  width: 20px;
  height: 20px;
}

.poker-suit-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.poker-cards.is-board .poker-suit.is-svg,
.poker-seat.is-you .poker-suit.is-svg {
  width: 22px;
  height: 22px;
}
.poker-cards.is-board .poker-suit-icon,
.poker-seat.is-you .poker-suit-icon {
  width: 20px;
  height: 20px;
}

.poker-card.is-red {
  color: #dc2626;
}

.poker-card.is-black {
  color: #0f172a;
}

.poker-seat:not(.is-you) .poker-suit.is-svg {
  width: 13px;
  height: 13px;
}

.poker-seat:not(.is-you) .poker-suit-icon {
  width: 12px;
  height: 12px;
}

.poker-card.is-back {
  background:
    repeating-linear-gradient(45deg, #1d4ed8, #1d4ed8 4px, #1e3a8a 4px, #1e3a8a 8px);
}

.poker-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  height: 32px;
}

.poker-buy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  color: #e7fff3;
  font-size: 12px;
  white-space: nowrap;
}

.poker-buy select {
  width: 108px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.35);
  color: #f8fafc;
}

.poker-buy .btn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.poker-note {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.poker-raise {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.poker-code {
