:root {
  --bg: #06100e;
  --bg-deep: #030907;
  --panel: #0c1916;
  --panel-soft: #11221d;
  --felt: #0c503b;
  --felt-deep: #07382b;
  --felt-light: #16634a;
  --gold: #d8b56a;
  --gold-bright: #f2d893;
  --gold-dim: #8b713e;
  --cream: #f4eddf;
  --muted: #8fa49c;
  --line: rgba(222, 196, 133, 0.16);
  --line-strong: rgba(222, 196, 133, 0.28);
  --danger: #b7524f;
  --green: #49b985;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
  --display: "Bodoni 72", "Didot", "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: "Avenir Next", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 48% -15%, rgba(41, 102, 79, 0.18), transparent 40%),
    linear-gradient(145deg, #050d0b 0%, #091713 46%, #040a08 100%);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.18;
}

.ambient-one {
  top: 14%;
  left: -22vw;
  background: #175b40;
}

.ambient-two {
  right: -18vw;
  bottom: -15vw;
  background: #71572b;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 1660px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 18px 18px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 78px;
  border-bottom: 1px solid rgba(226, 203, 147, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(220, 187, 111, 0.18), transparent 55%),
    #0a1713;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 50px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.brand-mark::before {
  top: -4px;
}

.brand-mark::after {
  bottom: -4px;
}

.brand-suit {
  transform: translateY(-1px);
  font-family: Georgia, serif;
  font-size: 22px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.24em;
}

.topbar-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 38px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 20, 16, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.top-stat {
  display: flex;
  min-width: 112px;
  padding: 0 19px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  line-height: 1.1;
}

.top-stat:last-child {
  border-right: 0;
}

.top-stat span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.top-stat strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.top-stat b {
  color: var(--gold-bright);
  font-weight: 500;
}

.top-stat--pot strong {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 16px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.btn {
  display: inline-flex;
  min-height: 36px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 36, 29, 0.72);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.btn:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(22, 49, 39, 0.92);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.btn-gold {
  color: #17140b;
  border-color: #dfc480;
  background: linear-gradient(135deg, #efda9b, #c49b4d);
  box-shadow: 0 6px 20px rgba(185, 140, 57, 0.12);
  font-weight: 600;
}

.btn-gold:hover:not(:disabled) {
  color: #0d0b06;
  border-color: #f7e6b4;
  background: linear-gradient(135deg, #f8e8b6, #d1aa5e);
}

.btn-quiet {
  color: #bfcbc5;
  border-color: transparent;
  background: transparent;
}

.btn-quiet:hover:not(:disabled) {
  color: var(--cream);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.btn-outline {
  color: var(--gold-bright);
  border-color: rgba(216, 181, 106, 0.38);
  background: rgba(216, 181, 106, 0.045);
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 38px;
  padding: 0;
  font-size: 18px;
}

.plus {
  font-size: 19px;
  font-weight: 300;
  line-height: 0;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 18px;
  min-height: 0;
  padding-top: 16px;
  flex: 1;
}

.table-stage {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 650px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(224, 201, 145, 0.11);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(29, 70, 55, 0.24), transparent 62%),
    linear-gradient(180deg, #07130f 0%, #050d0a 100%);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(255, 255, 255, 0.02);
}

.table-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at center, black, transparent 74%);
}

.table-wrap {
  position: relative;
  min-height: 0;
  flex: 1;
}

.table-rim {
  position: absolute;
  inset: 3.1% 5.2% 5.6%;
  border: clamp(9px, 1.1vw, 16px) solid #281e13;
  border-radius: 50%;
  background:
    linear-gradient(155deg, #80673d 0%, #332516 12%, #1a120c 48%, #604a2b 86%, #1e160e 100%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.62),
    0 4px 0 #050403,
    0 0 0 1px rgba(219, 189, 120, 0.24),
    inset 0 0 0 2px rgba(246, 215, 141, 0.12);
}

.poker-table {
  position: absolute;
  inset: 5.4% 7.2% 8.2%;
  overflow: hidden;
  border: 1px solid rgba(222, 196, 133, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(28, 112, 82, 0.6), transparent 60%),
    radial-gradient(ellipse at 50% 100%, #0a3e2f, transparent 70%),
    linear-gradient(165deg, var(--felt-light), var(--felt) 45%, var(--felt-deep));
  box-shadow:
    inset 0 0 55px rgba(0, 0, 0, 0.62),
    inset 0 0 0 3px rgba(232, 202, 132, 0.14),
    0 2px 0 rgba(246, 222, 165, 0.18);
}

.poker-table::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.27;
  background:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

.poker-table::after {
  position: absolute;
  inset: 3%;
  content: "";
  border: 1px solid rgba(239, 213, 150, 0.09);
  border-radius: 50%;
}

.felt-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 25% 45%, rgba(245, 224, 177, 0.09) 0 1px, transparent 1.4px),
    radial-gradient(circle at 72% 60%, rgba(0, 0, 0, 0.2) 0 1px, transparent 1.6px);
  background-size: 9px 11px, 13px 15px;
}

.table-watermark {
  position: absolute;
  top: 40%;
  left: 50%;
  display: flex;
  color: rgba(240, 220, 173, 0.038);
  font-family: var(--display);
  font-size: clamp(76px, 9vw, 132px);
  font-weight: 500;
  line-height: 0.7;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
  white-space: nowrap;
  user-select: none;
}

.board-cluster {
  position: absolute;
  z-index: 3;
  top: 33%;
  left: 50%;
  display: flex;
  width: min(56%, 560px);
  align-items: center;
  flex-direction: column;
  transform: translateX(-50%);
}

.hand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.hand-number {
  color: rgba(238, 231, 217, 0.58);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.phase-pill {
  min-width: 57px;
  padding: 3px 8px 2px;
  color: var(--gold-bright);
  border: 1px solid rgba(215, 180, 105, 0.24);
  border-radius: 10px;
  background: rgba(4, 21, 15, 0.46);
  font-size: 9px;
  line-height: 1;
  text-align: center;
}

.pot-display {
  display: flex;
  min-height: 43px;
  padding: 4px 15px 4px 8px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(229, 202, 138, 0.16);
  border-radius: 25px;
  background: rgba(2, 18, 13, 0.45);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
}

.pot-chip {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 2px dashed rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #10241f 0 42%, transparent 43%),
    conic-gradient(#b64c44 0 25%, #f0e7d5 0 50%, #b64c44 0 75%, #f0e7d5 0);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.4);
  transform: rotate(-14deg);
}

.pot-copy {
  display: flex;
  flex-direction: column;
}

.pot-copy small {
  color: rgba(234, 226, 210, 0.48);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.pot-copy strong {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.02;
}

.community {
  display: flex;
  min-height: 82px;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 0.6vw, 8px);
}

.playing-card {
  position: relative;
  display: flex;
  width: 58px;
  height: 82px;
  flex: 0 0 auto;
  overflow: hidden;
  flex-direction: column;
  color: #161311;
  border: 1px solid #dad3c5;
  border-radius: 5px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(145deg, #fffefa, #efe9dc);
  box-shadow:
    0 7px 13px rgba(0, 0, 0, 0.3),
    inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.playing-card::before {
  position: absolute;
  inset: 3px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(67, 51, 33, 0.07);
  border-radius: 3px;
}

.card-slot {
  border: 1px solid rgba(232, 213, 171, 0.17);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
    rgba(1, 22, 16, 0.2);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.14);
}

.card-slot::after {
  position: absolute;
  inset: 7px;
  content: "♠";
  color: rgba(230, 210, 160, 0.075);
  border: 1px solid rgba(230, 210, 160, 0.055);
  border-radius: 3px;
  font-family: Georgia, serif;
  font-size: 27px;
  line-height: 66px;
  text-align: center;
}

.playing-card.red {
  color: #ad3434;
}

.playing-card.black {
  color: #151617;
}

.card-corner {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 6px;
  display: flex;
  align-items: center;
  flex-direction: column;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.82;
}

.card-corner b {
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.card-corner i {
  margin-top: 3px;
  font-size: clamp(9px, 0.92vw, 12px);
  font-style: normal;
}

.card-corner--bottom {
  top: auto;
  right: 6px;
  bottom: 5px;
  left: auto;
  transform: rotate(180deg);
}

.card-center {
  position: absolute;
  top: 48%;
  left: 52%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.45vw, 33px);
  line-height: 1;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}

.card-center--face {
  display: grid;
  width: 30px;
  height: 43px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 22px;
  box-shadow: inset 0 0 0 3px rgba(238, 230, 211, 0.9), inset 0 0 0 4px currentColor;
}

.card-pips {
  position: absolute;
  top: 19px;
  right: 13px;
  bottom: 19px;
  left: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: space-between;
  font-family: Georgia, serif;
  font-size: 10px;
  line-height: 1;
}

.card-pips span:nth-child(odd) {
  justify-self: start;
}

.card-pips span:nth-child(even) {
  align-self: end;
  justify-self: end;
}

.card-pips--seven {
  grid-template-rows: repeat(4, 1fr);
  align-content: stretch;
}

.card-pips--seven span:nth-child(7) {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
}

.card-back {
  border-color: #c5b384;
  background:
    radial-gradient(circle at center, transparent 0 18%, rgba(234, 210, 151, 0.3) 19% 21%, transparent 22%),
    repeating-linear-gradient(45deg, rgba(230, 207, 151, 0.2) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(230, 207, 151, 0.18) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, #812c32, #3b1118);
  box-shadow:
    0 7px 13px rgba(0, 0, 0, 0.34),
    inset 0 0 0 3px #eee4ce,
    inset 0 0 0 4px rgba(87, 45, 27, 0.6);
}

.card-back::before {
  inset: 5px;
  border-color: rgba(245, 223, 173, 0.38);
}

.card-back::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  content: "R";
  color: #ebdbad;
  border: 1px solid rgba(242, 219, 159, 0.72);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 11px;
  line-height: 19px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.community .playing-card {
  opacity: 0;
  transform: translateY(-8px) rotate(var(--deal-rotate, 0deg)) scale(0.94);
  animation: dealCard 320ms cubic-bezier(0.16, 0.84, 0.32, 1.05) forwards;
}

@keyframes dealCard {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.street-copy {
  min-height: 15px;
  margin-top: 5px;
  color: rgba(226, 218, 201, 0.4);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.dealer {
  position: absolute;
  z-index: 2;
  top: -1.5%;
  bottom: auto;
  left: 50%;
  width: clamp(142px, 13vw, 184px);
  height: clamp(184px, 17vw, 238px);
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.34));
}

.dealer-halo {
  position: absolute;
  right: 12%;
  bottom: 6%;
  left: 12%;
  height: 35%;
  border-radius: 50%;
  background: rgba(219, 184, 105, 0.1);
  filter: blur(20px);
}

.dealer-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: dealerBreathe 4.8s ease-in-out infinite;
}

.dealer-video {
  position: absolute;
  z-index: 1;
  inset: 6% 4% 10%;
  width: 92%;
  height: 84%;
  object-fit: cover;
  object-position: center 36%;
  border: 1px solid rgba(197, 229, 241, 0.36);
  border-radius: 45% 45% 16% 16%;
  background: #020a10;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(77, 167, 205, 0.13);
  opacity: 0;
  transition: opacity 220ms ease;
}

.dealer--video-ready .dealer-video {
  opacity: 1;
}

.dealer--video-ready .dealer-fallback-art {
  display: none;
}

.dealer-live-badge {
  position: absolute;
  z-index: 4;
  top: 22%;
  left: 50%;
  display: flex;
  padding: 3px 6px;
  align-items: center;
  gap: 4px;
  color: #d9f7ff;
  border: 1px solid rgba(167, 225, 248, 0.35);
  border-radius: 10px;
  background: rgba(4, 20, 33, 0.72);
  font-size: 6px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.dealer--video-ready .dealer-live-badge {
  opacity: 1;
}

.dealer-live-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff786e;
  box-shadow: 0 0 7px rgba(255, 120, 110, 0.8);
}

.dealer--dealing .dealer-video {
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(103, 204, 239, 0.32);
}

.dealer-left-arm,
.dealer-right-arm,
.dealer-card-stack,
.dealer-held-card {
  transform-box: fill-box;
}

.dealer-left-arm {
  transform-origin: 90% 5%;
}

.dealer-right-arm,
.dealer-held-card {
  transform-origin: 10% 8%;
}

.dealer-card-stack {
  transform-origin: 45% 35%;
}

.dealer--dealing .dealer-left-arm {
  animation: dealerDraw 560ms cubic-bezier(0.2, 0.72, 0.3, 1);
}

.dealer--dealing .dealer-right-arm {
  animation: dealerDealArm 620ms cubic-bezier(0.2, 0.72, 0.3, 1);
}

.dealer--dealing .dealer-held-card {
  animation: dealerCardRelease 620ms cubic-bezier(0.16, 0.74, 0.24, 1);
}

.dealer--dealing .dealer-card-stack {
  animation: dealerStackTap 560ms ease-out;
}

.dealer-eyes {
  transform-origin: 125px 147px;
  animation: dealerBlink 5.4s infinite;
}

@keyframes dealerBreathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes dealerBlink {
  0%,
  46%,
  50%,
  100% {
    transform: scaleY(1);
  }
  48% {
    transform: scaleY(0.12);
  }
}

@keyframes dealerDraw {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  34% {
    transform: translate(7px, -4px) rotate(5deg);
  }
  62% {
    transform: translate(-2px, 2px) rotate(-2deg);
  }
}

@keyframes dealerDealArm {
  0%,
  100% {
    transform: rotate(0);
  }
  35% {
    transform: rotate(-9deg);
  }
  68% {
    transform: rotate(8deg);
  }
}

@keyframes dealerCardRelease {
  0% {
    opacity: 0;
    transform: translate(-4px, 0) rotate(0);
  }
  14% {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }
  52% {
    opacity: 1;
    transform: translate(18px, 17px) rotate(7deg);
  }
  78% {
    opacity: 0.22;
    transform: translate(29px, 28px) rotate(13deg);
  }
  100% {
    opacity: 0;
    transform: translate(34px, 34px) rotate(16deg);
  }
}

@keyframes dealerStackTap {
  0%,
  100% {
    transform: translate(1px, 0) rotate(-10deg);
  }
  38% {
    transform: translate(-1px, -2px) rotate(-12deg);
  }
  66% {
    transform: translate(2px, 1px) rotate(-8deg);
  }
}

.dealer-nameplate {
  position: absolute;
  right: 19%;
  bottom: 5%;
  left: 19%;
  display: flex;
  padding: 4px 10px 5px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #21170b;
  border: 1px solid #f2ddb0;
  border-radius: 12px;
  background: linear-gradient(120deg, #d4b56f, #f3dfa7 50%, #b18b46);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  transform: rotate(-1deg);
}

.dealer-nameplate strong {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.dealer-nameplate span {
  padding-left: 6px;
  border-left: 1px solid rgba(38, 28, 11, 0.25);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.seats-layer {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.seat {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 138px;
  color: var(--cream);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition:
    opacity 220ms ease,
    filter 220ms ease;
}

.seat--hero {
  z-index: 8;
  width: 168px;
}

.seat--empty {
  width: 112px;
}

.seat--folded {
  opacity: 0.46;
  filter: saturate(0.55);
}

.seat--winner .player-panel {
  border-color: rgba(244, 215, 139, 0.86);
  background: linear-gradient(135deg, rgba(44, 63, 36, 0.97), rgba(17, 36, 27, 0.97));
  box-shadow:
    0 0 0 2px rgba(229, 192, 105, 0.14),
    0 0 28px rgba(226, 185, 88, 0.24);
}

.seat--current .player-panel {
  border-color: rgba(236, 210, 148, 0.78);
  box-shadow:
    0 0 0 1px rgba(233, 201, 126, 0.15),
    0 0 24px rgba(227, 193, 117, 0.17);
}

.seat--receiving .player-panel {
  border-color: rgba(217, 244, 255, 0.92);
  box-shadow:
    0 0 0 2px rgba(132, 218, 248, 0.2),
    0 0 30px rgba(94, 194, 237, 0.38);
  animation: receivingPulse 680ms ease-in-out infinite alternate;
}

@keyframes receivingPulse {
  from {
    filter: brightness(0.94);
  }
  to {
    filter: brightness(1.08);
  }
}

.player-panel {
  position: relative;
  display: flex;
  min-height: 58px;
  padding: 6px 8px 6px 7px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(219, 195, 139, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(19, 38, 31, 0.97), rgba(8, 20, 16, 0.97));
  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.035);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.seat--hero .player-panel {
  min-height: 66px;
  padding: 7px 9px;
  border-color: rgba(215, 181, 106, 0.48);
  background:
    radial-gradient(circle at 10% 15%, rgba(202, 161, 81, 0.15), transparent 47%),
    linear-gradient(135deg, rgba(28, 49, 38, 0.99), rgba(9, 23, 17, 0.99));
}

.avatar-shell {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 2px;
  border: 1px solid rgba(227, 202, 144, 0.42);
  border-radius: 50%;
  background: #08130f;
}

.seat--hero .avatar-shell {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.seat--current .avatar-shell::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid rgba(237, 207, 137, 0.56);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: turnRing 1.4s linear infinite;
}

@keyframes turnRing {
  to {
    transform: rotate(360deg);
  }
}

.avatar {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

.avatar-fox {
  background: linear-gradient(145deg, #f0a35d, #814629);
}

.avatar-panda {
  background: linear-gradient(145deg, #dce3dc, #6e7b76);
}

.avatar-bear {
  background: linear-gradient(145deg, #ad7755, #503423);
}

.avatar-frog {
  background: linear-gradient(145deg, #8dc76d, #37662b);
}

.avatar-owl {
  background: linear-gradient(145deg, #b89d72, #5c4c35);
}

.avatar-wolf {
  background: linear-gradient(145deg, #81999e, #354b50);
}

.avatar-rabbit {
  background: linear-gradient(145deg, #f3c3b2, #a86a63);
}

.avatar-cat {
  background: linear-gradient(145deg, #dab06f, #78582b);
}

.avatar-tiger {
  background: linear-gradient(145deg, #efad53, #9a4e1e);
}

.seat--hero .avatar {
  font-size: 28px;
}

.player-meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.player-name {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat--hero .player-name {
  color: var(--gold-bright);
  font-size: 12px;
}

.player-stack {
  display: flex;
  margin-top: 3px;
  align-items: center;
  gap: 4px;
  color: rgba(239, 234, 224, 0.7);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.player-stack::before {
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 5px rgba(220, 183, 105, 0.36);
}

.player-status {
  min-height: 12px;
  margin-top: 2px;
  overflow: hidden;
  color: rgba(178, 199, 190, 0.65);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-cards {
  position: absolute;
  z-index: 2;
  top: calc(100% - 3px);
  left: 50%;
  display: flex;
  justify-content: center;
  gap: 3px;
  transform: translateX(-50%);
}

.seat--top .seat-cards {
  top: auto;
  bottom: calc(100% - 3px);
}

.seat--hero .seat-cards {
  top: auto;
  bottom: calc(100% + 5px);
  display: flex;
  z-index: 10;
}

.seat-cards .playing-card {
  width: 34px;
  height: 48px;
  border-radius: 4px;
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.33);
  animation: playerDeal 280ms cubic-bezier(0.2, 0.85, 0.3, 1.1) both;
}

.seat-cards .playing-card:nth-child(2) {
  animation-delay: 70ms;
}

.seat-cards.seat-cards--static .playing-card,
.seat-cards.seat-cards--static .playing-card:nth-child(2) {
  animation: none;
  opacity: 1;
  transform: none;
}

.seat--hero .seat-cards .playing-card {
  width: 40px;
  height: 56px;
}

.seat-cards .card-corner {
  top: 3px;
  left: 4px;
}

.seat-cards .card-corner b {
  font-size: 9px;
}

.seat-cards .card-corner i {
  font-size: 7px;
}

.seat-cards .card-corner--bottom {
  right: 4px;
  bottom: 3px;
}

.seat-cards .card-center {
  font-size: 17px;
}

.seat-cards .card-center--face {
  width: 22px;
  height: 30px;
  border-radius: 3px;
  font-size: 14px;
  box-shadow: inset 0 0 0 2px rgba(238, 230, 211, 0.9), inset 0 0 0 3px currentColor;
}

.seat-cards .card-pips {
  top: 12px;
  right: 8px;
  bottom: 12px;
  left: 8px;
  font-size: 6px;
}

@keyframes playerDeal {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.position-badges {
  position: absolute;
  z-index: 4;
  top: -7px;
  right: -7px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.position-badge {
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  color: #221a0b;
  border: 1px solid #f4e2b3;
  border-radius: 10px;
  background: linear-gradient(145deg, #f1d991, #b88f45);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.position-badge--sb,
.position-badge--bb {
  color: var(--cream);
  border-color: rgba(234, 220, 188, 0.3);
  background: #15231f;
}

.position-badge--utg {
  color: #f2dfbd;
  border-color: rgba(194, 121, 77, 0.48);
  background: #462b20;
}

.action-bubble {
  position: absolute;
  z-index: 6;
  right: 50%;
  bottom: calc(100% + 46px);
  max-width: 168px;
  padding: 5px 9px;
  color: #25312d;
  border-radius: 10px 10px 3px 10px;
  background: #f1ece1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  font-size: 9px;
  line-height: 1.3;
  transform: translateX(50%);
}

.action-bubble:empty {
  display: none;
}

.seat--top .action-bubble {
  top: auto;
  bottom: calc(100% + 56px);
}

.seat--hero .action-bubble {
  top: 50%;
  right: auto;
  bottom: auto;
  left: calc(100% + 8px);
  transform: translateY(-50%);
}

.deal-pulse .player-panel {
  animation: activePulse 700ms ease;
}

@keyframes activePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(238, 207, 131, 0);
  }
  30% {
    box-shadow: 0 0 0 5px rgba(238, 207, 131, 0.22);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(238, 207, 131, 0);
  }
}

.empty-seat {
  display: flex;
  min-height: 48px;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(211, 201, 179, 0.4);
  border: 1px dashed rgba(219, 194, 137, 0.18);
  border-radius: 11px;
  background: rgba(4, 16, 12, 0.28);
  font-size: 9px;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.empty-seat:hover {
  color: var(--gold);
  border-color: rgba(219, 194, 137, 0.42);
  background: rgba(24, 43, 34, 0.54);
}

.empty-seat span:first-child {
  font-size: 16px;
  font-weight: 300;
}

.chip-stack {
  position: absolute;
  z-index: 4;
  top: calc(100% + 52px);
  left: 50%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  transform: translateX(-50%);
}

.chip-stack-value {
  min-width: 22px;
  padding: 3px 5px 2px;
  color: #dff6ff;
  border: 1px solid rgba(170, 222, 247, 0.44);
  border-radius: 8px;
  background: rgba(6, 30, 49, 0.88);
  box-shadow:
    0 3px 7px rgba(0, 7, 17, 0.3),
    inset 0 1px rgba(230, 249, 255, 0.08);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.chip-stack--empty .chip-stack-value {
  color: rgba(211, 235, 247, 0.72);
  border-color: rgba(150, 196, 220, 0.24);
  background: rgba(5, 25, 42, 0.68);
}

.seat--top .chip-stack {
  top: auto;
  bottom: calc(100% + 52px);
}

.seat--hero .chip-stack {
  top: auto;
  bottom: calc(100% + 70px);
}

.table-chip {
  position: relative;
  width: 21px;
  height: 21px;
  border: 2px dashed rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: var(--chip-color, #9c403d);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.25),
    0 5px 7px rgba(0, 0, 0, 0.18);
}

.table-chip::after {
  position: absolute;
  inset: 5px;
  content: "";
  border-radius: 50%;
  background: color-mix(in srgb, var(--chip-color, #9c403d), #fff 20%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.table-chip:nth-child(2) {
  margin-left: -7px;
  transform: translateY(-4px);
}

.table-chip:nth-child(3) {
  margin-left: -7px;
  transform: translateY(-8px);
}

.table-chip--gold {
  --chip-color: #c7a255;
}

.table-chip--white {
  --chip-color: #e0dbca;
}

.table-chip--green {
  --chip-color: #37765e;
}

.table-chip--blue {
  --chip-color: #42627b;
}

.chip-trail {
  position: absolute;
  z-index: 7;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.flying-chip {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: var(--fly-color, #c7a255);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.35);
  animation: flyChip 580ms cubic-bezier(0.26, 0.7, 0.3, 1) forwards;
}

@keyframes flyChip {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--fly-x), var(--fly-y)) scale(1);
  }
}

.action-dock {
  position: relative;
  z-index: 12;
  display: flex;
  min-height: 92px;
  padding: 12px 16px;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(226, 201, 145, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 27, 22, 0.96), rgba(5, 14, 11, 0.99));
  box-shadow: 0 -16px 35px rgba(0, 0, 0, 0.18);
}

.action-dock--idle {
  min-height: 76px;
}

.action-context {
  display: flex;
  min-width: 210px;
  max-width: 265px;
  align-items: center;
  gap: 10px;
}

.turn-light {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #66756e;
  box-shadow: 0 0 0 4px rgba(110, 127, 118, 0.08);
}

.turn-light.active {
  background: var(--gold-bright);
  box-shadow:
    0 0 0 4px rgba(232, 201, 127, 0.1),
    0 0 12px rgba(232, 201, 127, 0.56);
}

.action-context > div:not(.hero-mini-hand) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.hero-mini-hand {
  display: flex;
  min-width: 70px;
  margin-left: auto;
  padding-left: 8px;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  border-left: 1px solid rgba(221, 195, 137, 0.1);
}

.hero-mini-hand:empty {
  min-width: 0;
  padding-left: 0;
  border-left: 0;
}

.hero-mini-hand .playing-card {
  width: 29px;
  height: 41px;
  border-radius: 3px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.34);
}

.hero-mini-hand .card-corner {
  top: 3px;
  left: 4px;
}

.hero-mini-hand .card-corner b {
  font-size: 8px;
}

.hero-mini-hand .card-corner i {
  margin-top: 1px;
  font-size: 6px;
}

.hero-mini-hand .card-corner--bottom {
  right: 4px;
  bottom: 3px;
}

.hero-mini-hand .card-center {
  font-size: 14px;
}

.hero-mini-hand .card-center--face {
  width: 17px;
  height: 24px;
  border-radius: 2px;
  font-size: 10px;
  box-shadow: inset 0 0 0 1px rgba(238, 230, 211, 0.9), inset 0 0 0 2px currentColor;
}

.hero-mini-hand .card-pips {
  display: none;
}

.action-context small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.action-context strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-clock {
  position: relative;
  display: grid;
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  place-items: center;
  overflow: hidden;
  color: var(--gold-bright);
  border-radius: 50%;
  background: conic-gradient(
    var(--gold-bright) 0 var(--turn-progress, 360deg),
    rgba(137, 182, 205, 0.18) var(--turn-progress, 360deg) 360deg
  );
  box-shadow: 0 0 14px rgba(112, 199, 237, 0.17);
}

.action-clock[hidden] {
  display: none;
}

.action-clock::before {
  position: absolute;
  inset: 3px;
  content: "";
  border-radius: 50%;
  background: #0b2136;
}

.action-clock strong,
.action-clock span {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.action-clock strong {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}

.action-clock span {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  color: rgba(203, 232, 244, 0.62);
  font-size: 6px;
  text-align: center;
}

.action-clock.is-urgent {
  color: #ffd5d0;
  background: conic-gradient(
    #ff776d 0 var(--turn-progress, 0deg),
    rgba(205, 87, 82, 0.2) var(--turn-progress, 0deg) 360deg
  );
  animation: clockUrgent 620ms ease-in-out infinite alternate;
}

@keyframes clockUrgent {
  from {
    box-shadow: 0 0 8px rgba(255, 94, 82, 0.15);
  }
  to {
    box-shadow: 0 0 20px rgba(255, 94, 82, 0.48);
  }
}

.seat-turn-clock {
  position: absolute;
  z-index: 5;
  top: -9px;
  left: -8px;
  min-width: 29px;
  padding: 3px 5px;
  color: #052238;
  border: 1px solid #e0f8ff;
  border-radius: 9px;
  background: linear-gradient(135deg, #d9f7ff, #78c2e7);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.seat--urgent .seat-turn-clock {
  color: #fff;
  border-color: #ffc8c2;
  background: #c64c49;
  animation: clockUrgent 620ms ease-in-out infinite alternate;
}

.action-main {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.action-main.action-main--hidden {
  display: none;
}

.action-btn {
  min-width: 74px;
  min-height: 43px;
  padding: 0 15px;
  border-radius: 8px;
  font-weight: 600;
}

.action-btn--fold {
  color: #d8c4c0;
  border-color: rgba(185, 90, 85, 0.28);
  background: rgba(92, 35, 35, 0.3);
}

.action-btn--call {
  color: #e5dfd2;
  border-color: rgba(214, 197, 164, 0.22);
  background: rgba(37, 55, 47, 0.7);
}

.action-btn--raise {
  color: #1a1408;
  border-color: #f0d48f;
  background: linear-gradient(135deg, #f2dfa8, #c59d51);
}

.btn-allin {
  min-height: 43px;
  padding: 0 11px;
  color: var(--gold-bright);
  border-color: rgba(219, 180, 105, 0.29);
  background: rgba(111, 72, 28, 0.2);
  font-size: 11px;
}

.raise-control {
  display: flex;
  width: min(210px, 22vw);
  padding: 7px 10px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(217, 192, 137, 0.15);
  border-radius: 8px;
  background: rgba(2, 12, 9, 0.4);
}

.raise-line {
  display: flex;
  margin-bottom: 4px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.raise-line strong {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
}

.raise-control input[type="range"] {
  width: 100%;
  height: 3px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.raise-control input:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.start-button {
  min-width: 126px;
  min-height: 44px;
}

.start-button[hidden] {
  display: none;
}

.side-panel {
  display: flex;
  min-height: 0;
  overflow: hidden auto;
  flex-direction: column;
  gap: 10px;
  scrollbar-color: rgba(218, 186, 112, 0.22) transparent;
  scrollbar-width: thin;
}

.panel-block {
  flex: 0 0 auto;
  padding: 16px;
  border: 1px solid rgba(221, 195, 137, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(15, 31, 26, 0.91), rgba(6, 18, 14, 0.96));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17);
}

.panel-heading,
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-heading h2,
.section-title-row h3 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.section-title-row h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.section-title-row > span {
  color: rgba(183, 198, 190, 0.45);
  font-size: 8px;
}

.eyebrow {
  color: var(--gold);
  font-size: 7px;
  letter-spacing: 0.22em;
}

.live-badge {
  display: inline-flex;
  padding: 4px 8px;
  align-items: center;
  gap: 5px;
  color: #a8ddbf;
  border: 1px solid rgba(82, 177, 128, 0.2);
  border-radius: 10px;
  background: rgba(41, 116, 77, 0.12);
  font-size: 8px;
}

.live-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #68cf98;
  box-shadow: 0 0 8px rgba(104, 207, 152, 0.72);
}

.room-stats {
  display: grid;
  margin-top: 14px;
  padding-top: 12px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(221, 195, 137, 0.1);
}

.room-stats div {
  display: flex;
  flex-direction: column;
}

.room-stats span {
  margin-bottom: 3px;
  color: rgba(177, 192, 184, 0.52);
  font-size: 8px;
}

.room-stats strong {
  color: rgba(242, 236, 223, 0.88);
  font-size: 10px;
  font-weight: 500;
}

.mini-profile {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mini-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(232, 203, 140, 0.45);
  border-radius: 50%;
  font-size: 22px;
}

.mini-profile > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.mini-profile span,
.mini-stack span,
.bot-seat-row span {
  color: rgba(180, 194, 186, 0.55);
  font-size: 8px;
}

.mini-profile strong {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
}

.mini-stack {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.mini-stack strong {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}

.bot-seat-row {
  display: flex;
  margin: 13px 0 7px;
  padding-top: 11px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(221, 195, 137, 0.09);
}

.bot-seat-row strong {
  color: rgba(243, 232, 210, 0.78);
  font-size: 9px;
  font-weight: 500;
}

.player-mini-block .btn {
  min-height: 34px;
  font-size: 10px;
}

.helper-text {
  margin: 7px 0 0;
  color: rgba(161, 177, 169, 0.46);
  font-size: 8px;
  line-height: 1.5;
}

.chat-block {
  display: flex;
  min-height: 235px;
  flex-direction: column;
}

.quick-phrases {
  display: flex;
  margin: 12px -2px 10px;
  overflow: hidden auto;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 75px;
  scrollbar-width: none;
}

.quick-phrase {
  padding: 5px 8px;
  color: rgba(230, 220, 201, 0.72);
  border: 1px solid rgba(220, 193, 134, 0.13);
  border-radius: 13px;
  background: rgba(232, 205, 146, 0.035);
  cursor: pointer;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.quick-phrase:hover {
  color: var(--gold-bright);
  border-color: rgba(220, 193, 134, 0.32);
  background: rgba(232, 205, 146, 0.075);
}

.chat-feed {
  display: flex;
  min-height: 100px;
  max-height: 145px;
  padding-right: 3px;
  overflow: hidden auto;
  flex-direction: column;
  gap: 8px;
  scrollbar-color: rgba(218, 186, 112, 0.22) transparent;
  scrollbar-width: thin;
}

.chat-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px;
  align-items: baseline;
}

.chat-line span {
  color: rgba(214, 185, 119, 0.72);
  font-size: 8px;
  white-space: nowrap;
}

.chat-line p {
  margin: 0;
  color: rgba(230, 227, 218, 0.66);
  font-size: 9px;
  line-height: 1.45;
}

.chat-line--system p {
  color: rgba(174, 194, 184, 0.5);
}

.chat-form {
  display: flex;
  height: 32px;
  margin-top: 9px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(215, 191, 136, 0.14);
  border-radius: 7px;
  background: rgba(2, 10, 8, 0.36);
}

.chat-form input {
  min-width: 0;
  padding: 0 10px;
  flex: 1;
  color: var(--cream);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 9px;
}

.chat-form input::placeholder {
  color: rgba(171, 190, 181, 0.4);
}

.chat-form button {
  padding: 0 11px;
  color: var(--gold);
  border: 0;
  border-left: 1px solid rgba(215, 191, 136, 0.1);
  background: rgba(215, 182, 107, 0.04);
  cursor: pointer;
  font-size: 9px;
}

.history-block {
  min-height: 112px;
}

.hand-history {
  display: flex;
  margin: 10px 0 0;
  padding: 0;
  flex-direction: column;
  gap: 7px;
  list-style: none;
}

.hand-history li {
  position: relative;
  padding-left: 10px;
  color: rgba(211, 218, 212, 0.56);
  font-size: 8px;
  line-height: 1.45;
}

.hand-history li::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 3px;
  height: 3px;
  content: "";
  border-radius: 50%;
  background: rgba(213, 181, 106, 0.52);
}

.hand-history .history-empty {
  color: rgba(171, 188, 180, 0.32);
}

.hand-history .history-win {
  color: rgba(238, 208, 134, 0.75);
}

.hand-history .history-street {
  color: rgba(109, 198, 157, 0.7);
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: 26px;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  color: #20180a;
  border: 1px solid rgba(255, 242, 209, 0.44);
  border-radius: 20px;
  background: linear-gradient(135deg, #f3e2b2, #cba558);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.rules-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: auto;
  color: var(--cream);
  border: 1px solid rgba(230, 203, 142, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 0, rgba(44, 91, 72, 0.34), transparent 39%),
    #091813;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.rules-dialog::backdrop {
  background: rgba(0, 6, 4, 0.76);
  backdrop-filter: blur(5px);
}

.dialog-head {
  display: flex;
  padding: 22px 24px 17px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(223, 196, 136, 0.12);
}

.dialog-head h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 500;
}

.dialog-close {
  width: 32px;
  height: 32px;
  color: rgba(231, 225, 212, 0.62);
  border: 1px solid rgba(223, 196, 136, 0.12);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.rules-grid {
  display: grid;
  padding: 21px 24px;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}

.rules-grid article {
  position: relative;
  padding-left: 35px;
}

.rule-no {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--gold);
  font-family: var(--display);
  font-size: 15px;
}

.rules-grid h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
}

.rules-grid p {
  margin: 0;
  color: rgba(205, 214, 207, 0.62);
  font-size: 10px;
  line-height: 1.75;
}

.dialog-foot {
  display: flex;
  padding: 16px 24px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(223, 196, 136, 0.1);
}

.dialog-foot span {
  color: rgba(173, 190, 181, 0.48);
  font-size: 9px;
}

.dialog-foot .btn {
  min-width: 96px;
}

@media (min-width: 1201px) {
  .app-shell {
    height: 100vh;
  }

  .game-layout {
    overflow: hidden;
  }

  .table-stage,
  .side-panel {
    height: 100%;
  }
}

@media (max-width: 1450px) {
  .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .game-layout {
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 12px;
  }

  .seat {
    width: 126px;
  }

  .seat--hero {
    width: 158px;
  }

  .player-panel {
    padding-right: 6px;
    padding-left: 6px;
    gap: 6px;
  }

  .avatar-shell {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
  }

  .avatar {
    font-size: 21px;
  }

  .seat--hero .avatar {
    font-size: 25px;
  }

  .action-dock {
    gap: 10px;
  }

  .action-context {
    min-width: 180px;
  }
}

@media (max-width: 1200px) {
  .topbar {
    grid-template-columns: 1fr auto 1fr;
  }

  .top-stat {
    min-width: 92px;
    padding: 0 12px;
  }

  .top-stat:first-child {
    display: none;
  }

  .topbar-stats {
    height: 36px;
  }

  .game-layout {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .table-stage {
    min-height: 690px;
  }

  .side-panel {
    display: grid;
    overflow: visible;
    grid-template-columns: 1fr 1fr;
  }

  .chat-block {
    grid-column: 1 / -1;
  }

  .chat-feed {
    max-height: 115px;
  }

  .history-block {
    display: none;
  }

  .raise-control {
    width: 170px;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 0;
  }

  .topbar-stats {
    display: none;
  }

  .top-actions {
    gap: 4px;
  }

  .top-actions .btn-quiet {
    padding: 0 9px;
  }

  .top-actions .btn-gold {
    padding: 0 11px;
    font-size: 11px;
  }

  .table-stage {
    min-height: 650px;
  }

  .seat {
    width: 106px;
  }

  .seat--hero {
    width: 142px;
  }

  .seat--empty {
    width: 88px;
  }

  .player-panel {
    min-height: 50px;
    padding: 5px;
    gap: 5px;
  }

  .avatar-shell {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .avatar {
    font-size: 18px;
  }

  .seat--hero .avatar {
    font-size: 22px;
  }

  .seat--hero .avatar-shell {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .player-name {
    font-size: 9px;
  }

  .player-stack {
    font-size: 8px;
  }

  .player-status {
    font-size: 7px;
  }

  .board-cluster {
    top: 43%;
    width: 64%;
  }

  .playing-card {
    width: 47px;
    height: 67px;
  }

  .card-center {
    font-size: 24px;
  }

  .card-slot::after {
    line-height: 51px;
  }

  .dealer {
    width: 170px;
    height: 218px;
  }

  .action-dock {
    flex-wrap: wrap;
  }

  .action-context {
    min-width: 150px;
    flex: 1;
  }

  .action-main {
    flex: 1 0 100%;
    order: 3;
  }

  .action-btn {
    min-width: 64px;
    min-height: 39px;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }

  .chat-block {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 0 8px 8px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    font-size: 6px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .top-actions .btn-quiet span + span {
    display: none;
  }

  .top-actions .btn-quiet#rulesButton {
    width: 34px;
    padding: 0;
    font-size: 0;
  }

  .top-actions .btn-quiet#rulesButton span {
    font-size: 14px;
  }

  .top-actions .btn-gold {
    min-height: 35px;
    padding: 0 9px;
    font-size: 0;
  }

  .top-actions .btn-gold .plus {
    font-size: 20px;
  }

  .game-layout {
    padding-top: 8px;
  }

  .table-stage {
    min-height: 590px;
    border-radius: 12px;
  }

  .table-rim {
    inset: 4.5% 1.5% 7%;
  }

  .poker-table {
    inset: 6% 2.2% 10%;
  }

  .board-cluster {
    top: 47%;
    width: 83%;
  }

  .playing-card {
    width: 39px;
    height: 56px;
  }

  .card-corner {
    top: 3px;
    left: 4px;
  }

  .card-corner b {
    font-size: 9px;
  }

  .card-corner i {
    margin-top: 2px;
    font-size: 7px;
  }

  .card-center {
    font-size: 19px;
  }

  .card-pips {
    top: 13px;
    right: 8px;
    bottom: 13px;
    left: 8px;
    font-size: 6px;
  }

  .community {
    gap: 3px;
  }

  .dealer {
    top: -1%;
    bottom: auto;
    width: 124px;
    height: 160px;
  }

  .dealer-nameplate {
    right: 15%;
    left: 15%;
  }

  .seat {
    width: 85px;
  }

  .seat--hero {
    width: 126px;
  }

  .seat--empty {
    width: 62px;
    min-height: 37px;
    padding: 5px;
    font-size: 7px;
  }

  .seat--empty .empty-seat span:last-child {
    display: none;
  }

  .player-panel {
    min-height: 39px;
    padding: 4px;
    border-radius: 9px;
  }

  .seat--hero .player-panel {
    min-height: 48px;
    padding: 5px;
  }

  .avatar-shell {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .avatar {
    font-size: 15px;
  }

  .seat--hero .avatar-shell {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .seat--hero .avatar {
    font-size: 19px;
  }

  .player-name {
    font-size: 8px;
  }

  .player-stack {
    margin-top: 1px;
    font-size: 7px;
  }

  .player-stack::before {
    width: 3px;
    height: 3px;
  }

  .player-status {
    display: none;
  }

  .position-badges {
    top: -5px;
    right: -5px;
    gap: 2px;
  }

  .position-badge {
    width: 16px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 6px;
  }

  .seat-cards .playing-card {
    width: 26px;
    height: 37px;
  }

  .seat--hero .seat-cards .playing-card {
    width: 31px;
    height: 44px;
  }

  .seat-cards .card-center {
    font-size: 13px;
  }

  .seat--hero .seat-cards .card-center {
    font-size: 16px;
  }

  .seat-cards .card-corner b {
    font-size: 7px;
  }

  .seat-cards .card-corner i {
    font-size: 5px;
  }

  .seat-cards .card-center--face {
    width: 17px;
    height: 24px;
    font-size: 11px;
  }

  .seat-cards .card-pips {
    display: none;
  }

  .table-chip {
    width: 16px;
    height: 16px;
  }

  .chip-stack-value {
    min-width: 19px;
    padding: 2px 4px 1px;
    font-size: 8px;
  }

  .seat--hero .chip-stack {
    bottom: calc(100% + 55px);
  }

  .action-dock {
    min-height: 116px;
    padding: 9px;
    gap: 7px;
  }

  .action-dock--idle {
    min-height: 82px;
  }

  .action-context {
    min-width: 155px;
  }

  .action-context strong {
    font-size: 10px;
  }

  .hero-mini-hand {
    min-width: 58px;
    padding-left: 6px;
  }

  .hero-mini-hand .playing-card {
    width: 25px;
    height: 36px;
  }

  .action-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
  }

  .raise-control {
    width: auto;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .action-btn,
  .btn-allin {
    min-width: 0;
    min-height: 32px;
    padding: 0 6px;
    font-size: 9px;
  }

  .start-button {
    min-width: 96px;
    min-height: 38px;
  }

  .panel-block {
    padding: 13px;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .dialog-foot {
    align-items: flex-end;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Blue felt room styling */
:root {
  --bg: #07182d;
  --bg-deep: #030d1c;
  --panel: #0b1c31;
  --panel-soft: #122943;
  --felt: #527f8b;
  --felt-deep: #315b69;
  --felt-light: #6b939d;
  --gold: #77bde7;
  --gold-bright: #d1efff;
  --gold-dim: #477b99;
  --cream: #eef8ff;
  --muted: #8bafc3;
  --line: rgba(142, 199, 230, 0.18);
  --line-strong: rgba(153, 212, 244, 0.34);
}

body {
  background-color: #07182e;
  background-image:
    radial-gradient(circle at 50% 31%, rgba(33, 79, 115, 0.3), transparent 46%),
    radial-gradient(circle at 14% 12%, rgba(37, 94, 132, 0.18), transparent 30%),
    radial-gradient(circle, rgba(105, 159, 192, 0.13) 1.3px, transparent 1.7px);
  background-size: auto, auto, 21px 21px;
}

.ambient-one {
  background: #155079;
}

.ambient-two {
  background: #1d6e8b;
}

.app-shell {
  padding-bottom: 12px;
}

.topbar {
  border-bottom-color: rgba(151, 205, 235, 0.16);
}

.brand-mark {
  color: #d3efff;
  border-color: rgba(173, 224, 250, 0.38);
  background:
    radial-gradient(circle at 50% 34%, rgba(119, 190, 232, 0.24), transparent 58%),
    #0b223a;
}

.brand-mark::before,
.brand-mark::after {
  background: linear-gradient(90deg, transparent, #6099ba, transparent);
}

.brand-copy small,
.top-stat span {
  color: #83a8bc;
}

.topbar-stats {
  border-color: rgba(142, 199, 230, 0.18);
  background: rgba(7, 25, 43, 0.78);
}

.top-stat {
  border-right-color: rgba(142, 199, 230, 0.13);
}

.btn {
  border-color: rgba(142, 199, 230, 0.19);
  background: rgba(11, 36, 57, 0.84);
}

.btn:hover:not(:disabled) {
  border-color: rgba(160, 216, 245, 0.38);
  background: rgba(20, 57, 84, 0.96);
}

.btn-gold {
  color: #082038;
  border-color: #b6e5fa;
  background: linear-gradient(135deg, #d9f4ff, #77b8df);
  box-shadow: 0 6px 20px rgba(60, 138, 185, 0.2);
}

.btn-gold:hover:not(:disabled) {
  border-color: #effbff;
  background: linear-gradient(135deg, #e9faff, #8dc9ea);
}

.table-stage {
  border-color: rgba(133, 188, 219, 0.15);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 42%, rgba(38, 91, 125, 0.29), transparent 57%),
    linear-gradient(180deg, #0c2741 0%, #071a31 58%, #061526 100%);
  box-shadow:
    0 20px 70px rgba(0, 8, 21, 0.52),
    inset 0 1px rgba(210, 241, 255, 0.035);
}

.table-stage::before {
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(107, 165, 199, 0.14) 1.4px, transparent 1.8px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, black, transparent 94%);
}

.table-rim {
  inset: 1.4% 25% 3.6%;
  border: 10px solid #394851;
  border-radius: 43% / 31%;
  background:
    linear-gradient(90deg, #29363e 0%, #7a8990 12%, #46555d 28%, #252f35 62%, #79888e 86%, #263138 100%);
  box-shadow:
    0 20px 42px rgba(0, 6, 16, 0.58),
    0 4px 0 #07101a,
    0 0 0 1px rgba(196, 225, 238, 0.24),
    inset 0 0 0 2px rgba(225, 241, 247, 0.12);
}

.poker-table {
  inset: 3.7% 26.4% 5.8%;
  border-color: rgba(185, 223, 239, 0.32);
  border-radius: 43% / 31%;
  background:
    radial-gradient(ellipse at 50% 36%, rgba(122, 165, 176, 0.17), transparent 56%),
    radial-gradient(ellipse at 50% 100%, rgba(35, 85, 98, 0.42), transparent 72%),
    linear-gradient(165deg, var(--felt-light), var(--felt) 48%, var(--felt-deep));
  box-shadow:
    inset 0 0 56px rgba(6, 27, 39, 0.43),
    inset 0 0 0 3px rgba(221, 241, 248, 0.09),
    0 2px 0 rgba(211, 234, 243, 0.15);
}

.poker-table::after {
  border-color: rgba(218, 240, 248, 0.09);
}

.felt-pattern {
  opacity: 0.18;
  background-image:
    radial-gradient(circle, rgba(226, 245, 251, 0.12) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(0, 27, 43, 0.18) 0 1px, transparent 1.6px);
  background-size: 11px 13px, 17px 19px;
}

.table-watermark {
  top: 52%;
  color: rgba(225, 244, 251, 0.045);
  font-size: clamp(66px, 8vw, 112px);
}

.board-cluster {
  top: 37%;
  width: 88%;
}

.pot-display {
  border-color: rgba(190, 226, 242, 0.22);
  background: rgba(8, 39, 55, 0.42);
}

.phase-pill {
  color: #d6f1ff;
  border-color: rgba(153, 213, 242, 0.32);
  background: rgba(6, 31, 49, 0.54);
}

.pot-copy strong,
.top-stat--pot strong {
  color: #ccefff;
}

.playing-card {
  border-color: #e8f1f4;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.95), transparent 46%),
    linear-gradient(145deg, #fffefa, #edf1ef);
}

.card-back {
  border-color: #d9c592;
  background:
    radial-gradient(circle at center, transparent 0 18%, rgba(241, 218, 160, 0.32) 19% 21%, transparent 22%),
    repeating-linear-gradient(45deg, rgba(230, 207, 151, 0.2) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(230, 207, 151, 0.18) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, #752832, #2c1421);
  box-shadow:
    0 6px 12px rgba(0, 7, 17, 0.34),
    inset 0 0 0 3px #e7e2d2,
    inset 0 0 0 4px rgba(86, 47, 38, 0.64);
}

.card-slot {
  border-color: rgba(213, 235, 244, 0.18);
  background:
    repeating-linear-gradient(135deg, rgba(235, 248, 253, 0.018) 0 1px, transparent 1px 5px),
    rgba(15, 55, 70, 0.15);
}

.dealer {
  width: clamp(132px, 12vw, 168px);
  height: clamp(172px, 15.4vw, 216px);
}

.dealer-nameplate {
  color: #08243a;
  border-color: #e1f5ff;
  background: linear-gradient(120deg, #8dc5e1, #e0f5ff 50%, #6ca7c5);
}

.seat {
  width: 142px;
}

.seat--hero {
  width: 172px;
}

.player-panel,
.seat--hero .player-panel {
  min-height: 57px;
  border-color: rgba(163, 215, 241, 0.42);
  background:
    linear-gradient(180deg, rgba(55, 113, 158, 0.91), rgba(18, 64, 101, 0.97));
  box-shadow:
    0 7px 18px rgba(0, 8, 20, 0.42),
    inset 0 1px rgba(225, 247, 255, 0.16);
  backdrop-filter: blur(5px);
}

.seat--hero .player-panel {
  min-height: 65px;
  border-color: rgba(183, 231, 252, 0.72);
  background:
    radial-gradient(circle at 10% 12%, rgba(197, 237, 255, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(61, 128, 175, 0.97), rgba(15, 62, 99, 0.99));
}

.seat--current .player-panel {
  border-color: rgba(201, 242, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(191, 235, 255, 0.24),
    0 0 23px rgba(89, 184, 231, 0.32);
}

.seat--winner .player-panel {
  border-color: rgba(218, 249, 255, 0.96);
  background: linear-gradient(180deg, rgba(74, 155, 186, 0.98), rgba(20, 85, 103, 0.98));
  box-shadow:
    0 0 0 2px rgba(135, 220, 246, 0.17),
    0 0 28px rgba(75, 190, 224, 0.28);
}

.avatar-shell {
  border: 2px solid #d7f3ff;
  box-shadow:
    0 0 0 2px rgba(24, 83, 122, 0.7),
    0 3px 10px rgba(0, 7, 17, 0.3);
}

.player-name {
  color: #f3fbff;
}

.seat--hero .player-name,
.player-stack {
  color: #d6f3ff;
}

.player-stack::before {
  width: 7px;
  height: 7px;
  background: linear-gradient(145deg, #dcf7ff, #4aa6d5);
  box-shadow: 0 0 6px rgba(102, 196, 236, 0.5);
}

.player-status {
  color: rgba(199, 228, 241, 0.7);
}

.position-badge {
  color: #07243b;
  border-color: #e5f8ff;
  background: linear-gradient(145deg, #d7f5ff, #73b6da);
}

.position-badge--sb,
.position-badge--bb {
  color: #d9f4ff;
  border-color: rgba(171, 220, 242, 0.44);
  background: #123a58;
}

.position-badge--utg {
  color: #fff1de;
  border-color: rgba(234, 174, 106, 0.58);
  background: #82502e;
}

.action-bubble {
  color: #193142;
  background: #eff9fd;
}

.empty-seat {
  color: rgba(200, 228, 241, 0.5);
  border-color: rgba(154, 208, 235, 0.25);
  background: rgba(13, 43, 68, 0.4);
}

.empty-seat:hover {
  color: #d5f2ff;
  border-color: rgba(168, 222, 248, 0.52);
  background: rgba(26, 70, 102, 0.63);
}

.action-dock {
  border-top-color: rgba(147, 204, 233, 0.17);
  background: linear-gradient(180deg, rgba(10, 35, 56, 0.98), rgba(5, 20, 36, 0.99));
}

.action-btn--fold {
  color: #f1d7d5;
  border-color: rgba(198, 104, 103, 0.32);
  background: rgba(100, 44, 51, 0.4);
}

.action-btn--call {
  border-color: rgba(156, 208, 235, 0.25);
  background: rgba(23, 63, 90, 0.78);
}

.action-btn--raise {
  color: #082038;
  border-color: #d7f3ff;
  background: linear-gradient(135deg, #d7f3ff, #76b8dd);
}

.btn-allin {
  color: #ffe8c6;
  border-color: rgba(224, 158, 83, 0.38);
  background: rgba(119, 72, 24, 0.3);
}

.raise-control,
.chat-form {
  border-color: rgba(145, 201, 230, 0.18);
  background: rgba(4, 21, 37, 0.48);
}

.panel-block {
  border-color: rgba(143, 198, 226, 0.16);
  background:
    linear-gradient(155deg, rgba(14, 42, 66, 0.96), rgba(6, 23, 41, 0.97));
}

.live-badge {
  color: #a8e9d6;
  border-color: rgba(96, 200, 167, 0.22);
  background: rgba(42, 133, 104, 0.15);
}

.quick-phrase {
  border-color: rgba(146, 201, 230, 0.18);
  background: rgba(121, 191, 229, 0.06);
}

.quick-phrase:hover {
  color: #d8f5ff;
  border-color: rgba(166, 220, 248, 0.4);
  background: rgba(121, 191, 229, 0.13);
}

.chat-form input::placeholder {
  color: rgba(181, 215, 232, 0.46);
}

.rules-dialog {
  border-color: rgba(157, 210, 238, 0.28);
  background:
    radial-gradient(circle at 10% 0, rgba(27, 78, 113, 0.44), transparent 39%),
    #071b30;
}

@media (max-width: 1200px) {
  .table-rim {
    inset: 1.4% 17% 3.6%;
  }

  .poker-table {
    inset: 3.7% 18.4% 5.8%;
  }
}

@media (max-width: 900px) {
  .table-rim {
    inset: 1.5% 8% 3.8%;
    border-width: 9px;
    border-radius: 42% / 33%;
  }

  .poker-table {
    inset: 4% 9.2% 6%;
    border-radius: 42% / 33%;
  }

  .board-cluster {
    top: 40%;
    width: 91%;
  }

  .dealer {
    width: 154px;
    height: 198px;
  }
}

@media (max-width: 620px) {
  .table-stage {
    border-radius: 14px;
    background:
      radial-gradient(circle at 50% 38%, rgba(39, 92, 124, 0.31), transparent 58%),
      linear-gradient(180deg, #0c2944 0%, #071a31 100%);
  }

  .table-rim {
    inset: 1.5% 3% 3.8%;
    border-width: 8px;
    border-radius: 42% / 33%;
  }

  .poker-table {
    inset: 4.2% 4.2% 6%;
    border-radius: 42% / 33%;
  }

  .board-cluster {
    top: 40%;
    width: 93%;
  }

  .dealer {
    top: -1%;
    width: 124px;
    height: 160px;
  }

  .seat {
    width: 91px;
  }

  .seat--hero {
    width: 132px;
  }

  .player-panel,
  .seat--hero .player-panel {
    min-height: 42px;
    border-radius: 9px;
  }
}

/* Larger, conventional playing-card faces */
.community {
  min-height: 124px;
  gap: 7px;
}

.community .playing-card {
  width: 84px;
  height: 118px;
  border-radius: 7px;
}

.card-corner {
  top: 6px;
  left: 7px;
}

.card-corner b {
  font-size: clamp(14px, 1.2vw, 18px);
}

.card-corner i {
  margin-top: 3px;
  font-size: clamp(11px, 0.96vw, 14px);
}

.card-corner--bottom {
  top: auto;
  right: 7px;
  bottom: 6px;
  left: auto;
}

.card-pips {
  position: absolute;
  inset: 23px 21px;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10px, 0.92vw, 14px);
  line-height: 1;
}

.card-pip {
  position: absolute;
  display: block;
  transform-origin: center;
  text-shadow: 0 1px rgba(255, 255, 255, 0.7);
}

.card-ace {
  position: absolute;
  inset: 17px 16px;
  display: grid;
  place-items: center;
}

.card-ace::before {
  position: absolute;
  width: 62%;
  height: 65%;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.16;
  transform: rotate(45deg);
}

.card-ace > span {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 3.1vw, 46px);
  line-height: 1;
  text-shadow: 0 1px rgba(255, 255, 255, 0.65);
}

.card-ace > i {
  position: absolute;
  inset: 12% 20%;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
}

.card-court {
  position: absolute;
  inset: 12px 16px;
  display: block;
  color: currentColor;
}

.card-court svg {
  display: block;
  width: 100%;
  height: 100%;
}

.card-slot::after {
  font-size: 36px;
  line-height: 104px;
}

.seat-cards {
  gap: 5px;
}

.seat-cards .playing-card {
  width: 44px;
  height: 62px;
  border-radius: 5px;
}

.seat--hero .seat-cards .playing-card {
  width: 88px;
  height: 124px;
  border-radius: 7px;
}

.seat-cards .card-corner {
  top: 4px;
  left: 5px;
}

.seat-cards .card-corner--bottom {
  top: auto;
  right: 5px;
  bottom: 4px;
  left: auto;
}

.seat-cards .card-corner b {
  font-size: 10px;
}

.seat-cards .card-corner i {
  margin-top: 2px;
  font-size: 8px;
}

.seat-cards .card-pips {
  inset: 12px 9px;
  font-size: 6.5px;
}

.seat-cards .card-ace {
  inset: 10px 8px;
}

.seat-cards .card-ace > span {
  font-size: 24px;
}

.seat-cards .card-court {
  inset: 7px 8px;
}

.seat--hero .seat-cards .card-pips {
  inset: 24px 20px;
  font-size: 11px;
}

.seat--hero .seat-cards .card-ace > span {
  font-size: 42px;
}

.seat--hero .seat-cards .card-court {
  inset: 13px 18px;
}

.seat--hero .seat-cards .card-corner {
  top: 7px;
  left: 8px;
}

.seat--hero .seat-cards .card-corner--bottom {
  top: auto;
  right: 8px;
  bottom: 7px;
  left: auto;
}

.seat--hero .seat-cards .card-corner b {
  font-size: 12px;
}

.seat--hero .seat-cards .card-corner i {
  font-size: 10px;
}

.hero-mini-hand .playing-card {
  width: 42px;
  height: 59px;
}

.hero-mini-hand .card-corner b {
  font-size: 10px;
}

.hero-mini-hand .card-corner i {
  font-size: 8px;
}

.hero-mini-hand .card-center {
  font-size: 20px;
}

@media (max-width: 900px) {
  .community {
    min-height: 86px;
  }

  .community .playing-card {
    width: 60px;
    height: 84px;
  }

  .card-slot::after {
    font-size: 27px;
    line-height: 66px;
  }

  .seat-cards .playing-card {
    width: 38px;
    height: 54px;
  }

  .seat--hero .seat-cards .playing-card {
    width: 72px;
    height: 101px;
  }

  .seat-cards .card-pips {
    inset: 10px 7px;
    font-size: 5.5px;
  }

  .seat--hero .seat-cards .card-pips {
    inset: 20px 16px;
    font-size: 9px;
  }

  .seat-cards .card-court {
    inset: 6px 6px;
  }

  .seat--hero .seat-cards .card-court {
    inset: 11px 14px;
  }
}

@media (max-width: 620px) {
  .community {
    min-height: 84px;
    gap: 5px;
  }

  .community .playing-card {
    width: 54px;
    height: 76px;
    border-radius: 5px;
  }

  .card-corner {
    top: 4px;
    left: 5px;
  }

  .card-corner b {
    font-size: 11px;
  }

  .card-corner i {
    margin-top: 2px;
    font-size: 8px;
  }

  .card-corner--bottom {
    right: 5px;
    bottom: 4px;
  }

  .card-pips {
    inset: 15px 13px;
    font-size: 8px;
  }

  .card-ace {
    inset: 12px 11px;
  }

  .card-ace > span {
    font-size: 27px;
  }

  .card-court {
    inset: 8px 9px;
  }

  .card-slot::after {
    font-size: 28px;
    line-height: 64px;
  }

  .seat-cards .playing-card {
    width: 34px;
    height: 49px;
  }

  .seat--hero .seat-cards .playing-card {
    width: 60px;
    height: 84px;
  }

  .seat-cards .card-corner b {
    font-size: 8px;
  }

  .seat-cards .card-corner i {
    font-size: 6px;
  }

  .seat-cards .card-pips {
    inset: 9px 6px;
    font-size: 4.8px;
  }

  .seat--hero .seat-cards .card-pips {
    inset: 17px 14px;
    font-size: 7.5px;
  }

  .seat-cards .card-ace > span {
    font-size: 19px;
  }

  .seat--hero .seat-cards .card-ace > span {
    font-size: 34px;
  }

  .seat-cards .card-court {
    inset: 5px 6px;
  }

  .hero-mini-hand .playing-card {
    width: 35px;
    height: 49px;
  }
}

/* Local standard deck assets */
.playing-card.asset-card {
  overflow: visible;
  border: 1px solid #d3cdbf;
  background:
    radial-gradient(circle at 72% 15%, rgba(255, 255, 255, 0.96), transparent 48%),
    linear-gradient(145deg, #fffefa, #ecebe3);
  box-shadow:
    0 5px 10px rgba(0, 8, 17, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.playing-card.asset-card::before,
.playing-card.card-back.asset-card::after {
  display: none;
}

.asset-card .card-face-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: fill;
  filter: drop-shadow(0 2px 2px rgba(0, 8, 17, 0.2));
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.card-sprite-art {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  border-radius: inherit;
  background-color: transparent;
  background-image: var(--card-sprite-image, url("card-sprite.webp")), url("card-sprite.webp");
  background-repeat: no-repeat;
  background-size: 1300% 500%;
  pointer-events: none;
}

.asset-card .card-fallback {
  z-index: 1;
}

.asset-card .card-sprite-art + .card-fallback {
  display: block;
}

.asset-card.card-asset-loaded .card-face-image {
  opacity: 1;
}

.card-fallback {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: inherit;
  border: 1px solid #d5cfbf;
  border-radius: inherit;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.95), transparent 46%),
    linear-gradient(145deg, #fffefa, #ebe9df);
  box-shadow:
    0 5px 9px rgba(0, 8, 17, 0.34),
    inset 0 0 0 2px rgba(255, 255, 255, 0.62);
}

.card-fallback::after {
  position: absolute;
  inset: 3px;
  content: "";
  border: 1px solid rgba(66, 50, 31, 0.08);
  border-radius: 3px;
  pointer-events: none;
}

.asset-card.card-asset-loaded .card-fallback {
  display: none;
}

.card-fallback--back {
  display: grid;
  place-items: center;
  color: #f1dfae;
  border-color: #d4bf88;
  background:
    radial-gradient(circle at center, transparent 0 18%, rgba(238, 215, 154, 0.3) 19% 21%, transparent 22%),
    repeating-linear-gradient(45deg, rgba(230, 207, 151, 0.2) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(230, 207, 151, 0.18) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, #752832, #2c1421);
  box-shadow:
    0 5px 9px rgba(0, 8, 17, 0.34),
    inset 0 0 0 3px #e7e2d2,
    inset 0 0 0 4px rgba(86, 47, 38, 0.64);
}

.card-fallback--back > i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 10px;
  font-style: normal;
}

/* Cards are dealt from the deck resting at the center pot. */
.deal-source {
  position: absolute;
  z-index: 9;
  width: 42px;
  height: 58px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.74);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.16, 0.8, 0.28, 1);
}

.deal-source--active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.deal-source-card {
  position: absolute;
  inset: 0;
  border: 1px solid #e5d6b5;
  border-radius: 6px;
  background:
    radial-gradient(circle at center, transparent 0 16%, rgba(238, 215, 154, 0.28) 17% 20%, transparent 21%),
    repeating-linear-gradient(45deg, rgba(230, 207, 151, 0.18) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(230, 207, 151, 0.16) 0 1px, transparent 1px 7px),
    linear-gradient(145deg, #6d2631, #24121e);
  box-shadow:
    0 6px 12px rgba(0, 7, 17, 0.38),
    inset 0 0 0 3px rgba(223, 210, 179, 0.9),
    inset 0 0 0 4px rgba(86, 47, 38, 0.62);
}

.deal-source-card::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  content: "R";
  color: #efdcad;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 10px;
  transform: translate(-50%, -50%);
}

.deal-source-card--back {
  transform: translate(-5px, 4px) rotate(-7deg);
  opacity: 0.65;
}

.deal-source-card--middle {
  transform: translate(-2px, 2px) rotate(-3deg);
  opacity: 0.86;
}

.deal-source-card--front {
  transform: rotate(1deg);
}

.deal-source--active .deal-source-card--front {
  animation: dealDeckTap 620ms ease-in-out infinite alternate;
}

.deal-source-glow {
  position: absolute;
  z-index: -1;
  inset: -13px;
  border-radius: 50%;
  background: rgba(121, 203, 239, 0.2);
  filter: blur(13px);
}

@keyframes dealDeckTap {
  from {
    transform: translateY(-1px) rotate(1deg);
  }
  to {
    transform: translateY(2px) rotate(-1deg);
  }
}

.card-flight-layer {
  position: absolute;
  z-index: 30;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.card-flight {
  position: absolute;
  width: 44px;
  height: 62px;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.card-flight .card-flight-card {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 5px;
  box-shadow:
    0 13px 22px rgba(0, 8, 17, 0.34),
    0 2px 4px rgba(0, 8, 17, 0.28);
}

.seat-cards .playing-card.card--awaiting-deal {
  opacity: 0 !important;
}

.seat-cards .playing-card.card--landed {
  animation: landingCard 240ms cubic-bezier(0.18, 0.82, 0.28, 1) both;
}

@keyframes landingCard {
  0% {
    opacity: 0;
    transform: translateY(-3px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 620px) {
  .deal-source {
    width: 31px;
    height: 43px;
  }

  .deal-source-card {
    border-radius: 4px;
  }

  .deal-source-card::after {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }
}

.community .playing-card.board-card--static {
  opacity: 1;
  transform: none;
  animation: none;
}

.community .playing-card.board-card--new {
  opacity: 0;
  transform: translateY(-10px) scale(0.92);
  animation: revealBoardCard 430ms cubic-bezier(0.16, 0.84, 0.32, 1.04) forwards;
}

.quick-phrase--speaking {
  color: #f2fbff;
  border-color: rgba(164, 225, 252, 0.62);
  background: rgba(112, 191, 230, 0.24);
  box-shadow:
    0 0 0 2px rgba(123, 205, 244, 0.1),
    0 0 16px rgba(92, 184, 229, 0.2);
}

.pot-display--payout {
  animation: payoutPotPulse 720ms cubic-bezier(0.18, 0.82, 0.24, 1) both;
}

.payout-chip {
  z-index: 3;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 247, 222, 0.88);
  box-shadow:
    0 4px 8px rgba(0, 7, 17, 0.4),
    0 0 10px rgba(226, 194, 121, 0.12);
  animation: payoutChipFlight 920ms cubic-bezier(0.18, 0.72, 0.2, 1) forwards;
}

.payout-amount {
  position: absolute;
  z-index: 8;
  padding: 5px 9px 4px;
  color: #08243a;
  border: 1px solid rgba(230, 249, 255, 0.92);
  border-radius: 12px;
  background: linear-gradient(135deg, #e6f9ff, #8bc9e9);
  box-shadow:
    0 6px 14px rgba(0, 9, 21, 0.35),
    0 0 18px rgba(123, 208, 244, 0.25);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.86);
  animation: payoutAmountPop 1250ms cubic-bezier(0.16, 0.78, 0.24, 1) forwards;
}

@keyframes payoutPotPulse {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.1);
    box-shadow:
      0 0 0 8px rgba(134, 211, 245, 0.08),
      0 0 32px rgba(103, 195, 235, 0.32);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes payoutChipFlight {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.55);
  }
  12% {
    opacity: 1;
    transform: translate(0, -7px) rotate(18deg) scale(1);
  }
  58% {
    opacity: 1;
    transform:
      translate(calc(var(--fly-x) * 0.58), calc(var(--fly-y) * 0.58 - 48px))
      rotate(190deg)
      scale(1.06);
  }
  100% {
    opacity: 0.58;
    transform: translate(var(--fly-x), var(--fly-y)) rotate(360deg) scale(0.9);
  }
}

@keyframes payoutAmountPop {
  0% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.82);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.08);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -8px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -22px) scale(0.96);
  }
}

@keyframes revealBoardCard {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

/* Reference-inspired casino table and animated dealer */
.table-stage {
  border-color: rgba(201, 165, 109, 0.22);
  background:
    radial-gradient(ellipse at 50% 18%, rgba(238, 194, 119, 0.2), transparent 43%),
    linear-gradient(90deg, rgba(18, 9, 10, 0.98), rgba(53, 25, 20, 0.88) 50%, rgba(18, 9, 10, 0.98)),
    repeating-linear-gradient(100deg, #24120f 0 34px, #321916 34px 36px, #180d0c 36px 72px);
  box-shadow:
    0 22px 70px rgba(0, 5, 9, 0.62),
    inset 0 1px rgba(255, 230, 186, 0.05);
}

.table-stage::before {
  opacity: 0.3;
  background:
    repeating-linear-gradient(14deg, transparent 0 38px, rgba(223, 180, 113, 0.08) 39px 40px, transparent 41px 79px),
    repeating-linear-gradient(92deg, transparent 0 88px, rgba(0, 0, 0, 0.22) 89px 91px);
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.4) 72%, transparent);
}

.table-stage::after {
  position: absolute;
  z-index: 0;
  top: 3%;
  right: 17%;
  bottom: 11%;
  left: 17%;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(210, 167, 100, 0.1);
  border-bottom: 0;
  border-radius: 40% 40% 0 0;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(255, 223, 162, 0.13), transparent 48%),
    linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.14), transparent);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.18);
}

.table-rim {
  z-index: 1;
  inset: 18.5% 1.2% 7%;
  border: clamp(12px, 1.4vw, 20px) solid #131313;
  border-radius: 50% / 48%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(90deg, #191614 0%, #6b4b31 9%, #2b2119 24%, #151312 50%, #2b2119 76%, #6b4b31 91%, #191614 100%);
  box-shadow:
    0 28px 45px rgba(0, 0, 0, 0.68),
    0 5px 0 #070707,
    0 0 0 2px rgba(222, 188, 125, 0.23),
    inset 0 0 0 3px rgba(245, 220, 170, 0.09),
    inset 0 12px 18px rgba(255, 255, 255, 0.025);
}

.poker-table {
  z-index: 1;
  inset: 21% 2.6% 9.5%;
  border: clamp(3px, 0.45vw, 7px) solid #69472c;
  border-radius: 50% / 49%;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(27, 127, 73, 0.2), transparent 52%),
    radial-gradient(ellipse at 50% 48%, #177044 0%, #0f5b39 46%, #083b2a 78%, #05291f 100%);
  box-shadow:
    inset 0 0 50px rgba(0, 20, 12, 0.62),
    inset 0 0 0 5px rgba(232, 203, 139, 0.09),
    0 3px 0 rgba(242, 218, 166, 0.2);
}

.poker-table::after {
  inset: 3.5%;
  border-color: rgba(235, 213, 167, 0.08);
  border-radius: 50% / 49%;
}

.felt-pattern {
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 25% 45%, rgba(221, 247, 218, 0.12) 0 1px, transparent 1.4px),
    radial-gradient(circle at 72% 60%, rgba(0, 16, 10, 0.22) 0 1px, transparent 1.6px);
  background-size: 10px 12px, 15px 17px;
}

.table-watermark {
  top: 51%;
  color: rgba(232, 247, 233, 0.07);
  font-size: clamp(50px, 6vw, 88px);
  letter-spacing: 0.08em;
}

.board-cluster {
  z-index: 6;
  top: 39%;
  width: min(68%, 680px);
}

.hand-meta {
  margin-bottom: 5px;
}

.pot-display {
  border-color: rgba(232, 205, 143, 0.25);
  background: rgba(4, 30, 19, 0.7);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.05);
}

.pot-copy strong {
  color: #ffe2a3;
}

.community .playing-card {
  box-shadow:
    0 10px 16px rgba(0, 0, 0, 0.33),
    0 1px 0 rgba(255, 255, 255, 0.5);
}

.dealer--illustrated {
  z-index: 4;
  top: 1.5%;
  bottom: auto;
  width: clamp(158px, 15vw, 196px);
  height: clamp(210px, 20vw, 262px);
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 16px rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.dealer--illustrated .dealer-halo {
  right: 5%;
  bottom: 6%;
  left: 5%;
  height: 44%;
  background: rgba(230, 185, 106, 0.16);
  filter: blur(22px);
}

.dealer-portrait-wrap {
  position: absolute;
  inset: 0 0 9%;
  display: grid;
  place-items: end center;
}

.dealer-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: 50% 85%;
  animation: dealerIdle 4.6s ease-in-out infinite;
}

.dealer-hand-anchor {
  position: absolute;
  z-index: 3;
  top: 51%;
  left: 82%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dealer-manual-card {
  position: absolute;
  z-index: 2;
  top: 47%;
  left: 76%;
  display: grid;
  width: 31px;
  height: 43px;
  place-items: center;
  color: #f4dfaa;
  border: 2px solid #e6d6b4;
  border-radius: 4px;
  background:
    radial-gradient(circle at center, transparent 0 18%, rgba(238, 215, 154, 0.3) 19% 22%, transparent 23%),
    repeating-linear-gradient(45deg, rgba(230, 207, 151, 0.18) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #7b2934, #28121d);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.4);
  font-family: var(--display);
  font-size: 10px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(10deg);
}

.dealer-manual-card i {
  font-style: normal;
}

.dealer--dealing .dealer-portrait {
  animation: dealerLean 630ms cubic-bezier(0.18, 0.76, 0.22, 1);
}

.dealer--dealing .dealer-manual-card {
  animation: dealerReleaseCard 630ms cubic-bezier(0.16, 0.72, 0.2, 1);
}

.dealer--dealing .dealer-halo {
  animation: dealerHalo 630ms ease-out;
}

.dealer--illustrated .dealer-nameplate {
  right: 23%;
  bottom: 0;
  left: 23%;
  padding: 4px 7px;
  color: #241709;
  border-color: #f5dfae;
  background: linear-gradient(120deg, #bf9756, #f5e2ad 50%, #a6793d);
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.38),
    0 0 14px rgba(222, 181, 101, 0.16);
}

.dealer--illustrated .dealer-nameplate strong {
  font-size: 11px;
}

.dealer--illustrated .dealer-nameplate span {
  font-size: 6px;
}

.dealer--illustrated ~ .deal-source {
  width: 31px;
  height: 43px;
}

.dealer--illustrated ~ .deal-source .deal-source-card {
  border-radius: 4px;
}

@keyframes dealerIdle {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-3px) rotate(0.5deg);
  }
}

@keyframes dealerLean {
  0%,
  100% {
    transform: translateY(0) rotate(0) scale(1);
  }
  36% {
    transform: translateY(4px) rotate(-2deg) scale(0.985);
  }
  68% {
    transform: translateY(-1px) rotate(1deg) scale(1.01);
  }
}

@keyframes dealerReleaseCard {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(10deg) scale(0.75);
  }
  24% {
    opacity: 1;
    transform: translate(-66%, -38%) rotate(-4deg) scale(1);
  }
  72% {
    opacity: 1;
    transform: translate(-120%, -4%) rotate(-18deg) scale(0.94);
  }
  100% {
    opacity: 0;
    transform: translate(-165%, 22%) rotate(-28deg) scale(0.7);
  }
}

@keyframes dealerHalo {
  0% {
    opacity: 0.25;
  }
  42% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.3;
  }
}

.seat {
  width: 132px;
}

.seat--hero {
  width: 158px;
}

.player-panel,
.seat--hero .player-panel {
  border-color: rgba(225, 191, 124, 0.3);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(242, 207, 145, 0.11), transparent 40%),
    linear-gradient(135deg, rgba(26, 24, 21, 0.97), rgba(7, 9, 10, 0.98));
  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 244, 218, 0.05);
}

.seat--hero .player-panel {
  border-color: rgba(248, 210, 128, 0.72);
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 205, 125, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(45, 34, 20, 0.98), rgba(10, 11, 10, 0.99));
}

.seat--current .player-panel {
  border-color: rgba(255, 222, 145, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 231, 175, 0.18),
    0 0 25px rgba(226, 166, 68, 0.3);
}

.seat--winner .player-panel {
  border-color: rgba(255, 229, 156, 0.98);
  background: linear-gradient(145deg, rgba(44, 73, 41, 0.98), rgba(12, 28, 17, 0.99));
  box-shadow:
    0 0 0 2px rgba(246, 213, 136, 0.2),
    0 0 30px rgba(224, 178, 85, 0.34);
}

.avatar-shell {
  border-color: rgba(245, 218, 159, 0.72);
  box-shadow:
    0 0 0 2px rgba(10, 10, 9, 0.9),
    0 0 0 3px rgba(222, 180, 101, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.35);
}

.player-name,
.seat--hero .player-name,
.player-stack {
  color: #fff2d6;
}

.player-stack::before {
  background: linear-gradient(145deg, #ffeec1, #c99849);
  box-shadow: 0 0 6px rgba(238, 196, 111, 0.4);
}

.player-status {
  color: rgba(231, 215, 184, 0.72);
}

.position-badge {
  color: #fff7e8;
  border-color: rgba(236, 211, 163, 0.46);
  background: #15120e;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.38);
}

.position-badge--sb,
.position-badge--bb {
  color: #ffe5b0;
  border-color: rgba(236, 196, 119, 0.42);
  background: #20170f;
}

@media (max-width: 1200px) {
  .table-rim {
    inset: 17% 1% 6%;
  }

  .poker-table {
    inset: 20% 2.5% 8.5%;
  }

  .dealer--illustrated {
    width: 174px;
    height: 232px;
  }

  .board-cluster {
    top: 38%;
    width: 75%;
  }
}

@media (max-width: 900px) {
  .table-rim {
    inset: 17% 2% 6%;
    border-width: 10px;
    border-radius: 50% / 47%;
  }

  .poker-table {
    inset: 20.5% 4.2% 8.5%;
    border-radius: 50% / 48%;
  }

  .dealer--illustrated {
    width: 154px;
    height: 205px;
  }

  .board-cluster {
    top: 39%;
    width: 82%;
  }
}

@media (max-width: 620px) {
  .table-rim {
    inset: 17% 1.5% 5%;
    border-width: 9px;
  }

  .poker-table {
    inset: 20% 3.4% 7.5%;
  }

  .dealer--illustrated {
    top: 2%;
    width: 126px;
    height: 168px;
  }

  .dealer--illustrated .dealer-nameplate {
    right: 18%;
    left: 18%;
  }

  .board-cluster {
    top: 38%;
    width: 88%;
  }
}

/* Explicit dealing arm so every deal has a readable hand movement. */
.dealer--illustrated .dealer-manual-card {
  display: none;
}

.dealer-deal-arm {
  position: absolute;
  z-index: 5;
  top: 46%;
  left: 48%;
  width: 86px;
  height: 34px;
  pointer-events: none;
  opacity: 0;
  transform-origin: 100% 52%;
}

.dealer-deal-sleeve {
  position: absolute;
  top: 5px;
  right: 0;
  width: 62px;
  height: 23px;
  border: 1px solid rgba(218, 224, 232, 0.82);
  border-radius: 60% 40% 42% 55%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(218, 221, 228, 0.96) 72%, rgba(175, 184, 195, 0.94));
  box-shadow:
    0 5px 9px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.9);
  transform: rotate(2deg);
}

.dealer-deal-cuff {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 51px;
  width: 18px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(90deg, #e8e9ed, #fafbfd 45%, #c8ccd4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transform: rotate(4deg);
}

.dealer-deal-hand {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 2px;
  width: 30px;
  height: 19px;
  border: 1px solid rgba(179, 122, 98, 0.7);
  border-radius: 52% 63% 48% 60%;
  background:
    radial-gradient(circle at 65% 45%, rgba(255, 228, 207, 0.64), transparent 26%),
    linear-gradient(145deg, #f5cab1, #d59b82);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 245, 237, 0.65);
}

.dealer-deal-hand::after {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 13px;
  height: 1px;
  content: "";
  background: rgba(154, 92, 72, 0.5);
  box-shadow: 0 4px rgba(154, 92, 72, 0.36);
  transform: rotate(-8deg);
}

.dealer-arm-card {
  position: absolute;
  z-index: 4;
  top: -15px;
  left: -7px;
  display: grid;
  width: 26px;
  height: 36px;
  place-items: center;
  color: #f4dfaa;
  border: 2px solid #e6d6b4;
  border-radius: 4px;
  background:
    radial-gradient(circle at center, transparent 0 18%, rgba(238, 215, 154, 0.3) 19% 22%, transparent 23%),
    repeating-linear-gradient(45deg, rgba(230, 207, 151, 0.18) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #7b2934, #28121d);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.42);
  font-family: var(--display);
  font-size: 8px;
  transform: rotate(-12deg);
}

.dealer-arm-card i {
  font-style: normal;
}

.dealer--dealing .dealer-deal-arm {
  animation: dealerArmSweep 720ms cubic-bezier(0.18, 0.76, 0.2, 1) both;
}

.dealer--dealing .dealer-deal-sleeve {
  animation: dealerSleeveFlex 720ms ease-in-out both;
}

.dealer--dealing .dealer-deal-hand {
  animation: dealerHandFlick 720ms ease-in-out both;
}

.dealer--dealing .dealer-arm-card {
  animation: dealerArmCardRelease 720ms cubic-bezier(0.16, 0.68, 0.18, 1) both;
}

.dealer--dealing .dealer-portrait {
  animation: dealerStrongLean 720ms cubic-bezier(0.18, 0.76, 0.2, 1) both;
}

@keyframes dealerArmSweep {
  0% {
    opacity: 0;
    transform: translate(16px, -4px) rotate(-20deg) scaleX(0.52);
  }
  16% {
    opacity: 1;
    transform: translate(11px, 0) rotate(-15deg) scaleX(0.78);
  }
  42% {
    opacity: 1;
    transform: translate(2px, 12px) rotate(7deg) scaleX(1.08);
  }
  70% {
    opacity: 1;
    transform: translate(-10px, 23px) rotate(21deg) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translate(-22px, 35px) rotate(31deg) scaleX(0.62);
  }
}

@keyframes dealerSleeveFlex {
  0%,
  100% {
    border-radius: 60% 40% 42% 55%;
  }
  46% {
    border-radius: 48% 52% 55% 44%;
  }
}

@keyframes dealerHandFlick {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  45% {
    transform: rotate(-9deg) scale(1.06);
  }
  68% {
    transform: rotate(12deg) scale(0.96);
  }
}

@keyframes dealerArmCardRelease {
  0% {
    opacity: 0;
    transform: translate(8px, -5px) rotate(-4deg) scale(0.7);
  }
  20% {
    opacity: 1;
    transform: translate(0, 0) rotate(-12deg) scale(1);
  }
  61% {
    opacity: 1;
    transform: translate(-19px, 9px) rotate(-34deg) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(-45px, 24px) rotate(-58deg) scale(0.55);
  }
}

@keyframes dealerStrongLean {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg) scale(1);
  }
  38% {
    transform: translateY(9px) rotate(-4.5deg) scale(1.025);
  }
  70% {
    transform: translate(3px, 4px) rotate(2deg) scale(1.01);
  }
}

/* Two resting hands on the table, alternating the deal. */
.dealer-deal-arm {
  top: 56%;
  width: 82px;
  height: 44px;
  opacity: 1;
  transform: none;
}

.dealer-deal-arm--left {
  left: 3%;
  right: auto;
  transform-origin: 16% 16%;
}

.dealer-deal-arm--right {
  right: 3%;
  left: auto;
  transform-origin: 84% 16%;
}

.dealer-deal-sleeve {
  top: 3px;
  width: 49px;
  height: 25px;
  border-color: rgba(226, 231, 237, 0.78);
  border-radius: 48% 52% 44% 56%;
  background: linear-gradient(165deg, #fbfcff, #d9dce3 68%, #adb4c1);
  transform: rotate(-13deg);
}

.dealer-deal-arm--left .dealer-deal-sleeve {
  right: auto;
  left: 2px;
}

.dealer-deal-arm--right .dealer-deal-sleeve {
  right: 2px;
  left: auto;
  transform: rotate(13deg);
}

.dealer-deal-cuff {
  top: 8px;
  right: auto;
  width: 14px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(90deg, #c6cad2, #f7f9fc 54%, #d0d4dc);
  transform: rotate(-9deg);
}

.dealer-deal-arm--left .dealer-deal-cuff {
  left: 43px;
}

.dealer-deal-arm--right .dealer-deal-cuff {
  right: 43px;
  transform: rotate(9deg);
}

.dealer-deal-hand {
  top: 19px;
  left: 36px;
  width: 47px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: url("assets/dealer/dealer-hand.png") center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
}

.dealer-deal-hand::after {
  display: none;
}

.dealer-deal-arm--right .dealer-deal-hand {
  right: 36px;
  left: auto;
  transform: scaleX(-1);
}

.dealer-arm-card {
  display: none;
}

.dealer--dealing .dealer-deal-arm,
.dealer--dealing .dealer-deal-sleeve,
.dealer--dealing .dealer-deal-hand,
.dealer--dealing .dealer-arm-card {
  animation: none;
}

.dealer--dealing.dealer--deal-left .dealer-deal-arm--left {
  animation: tableHandPushLeft 720ms cubic-bezier(0.18, 0.75, 0.2, 1) both;
}

.dealer--dealing.dealer--deal-right .dealer-deal-arm--right {
  animation: tableHandPushRight 720ms cubic-bezier(0.18, 0.75, 0.2, 1) both;
}

.dealer--dealing.dealer--deal-left .dealer-deal-arm--left .dealer-deal-sleeve,
.dealer--dealing.dealer--deal-right .dealer-deal-arm--right .dealer-deal-sleeve {
  animation: tableSleevePress 720ms ease-in-out both;
}

.dealer--dealing.dealer--deal-left .dealer-deal-arm--left .dealer-deal-hand,
.dealer--dealing.dealer--deal-right .dealer-deal-arm--right .dealer-deal-hand {
  animation: tableHandPress 720ms ease-in-out both;
}

@keyframes tableHandPushLeft {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(1px, 1px) rotate(-2deg);
  }
  48% {
    transform: translate(14px, 7px) rotate(5deg);
  }
  70% {
    transform: translate(25px, 10px) rotate(9deg);
  }
}

@keyframes tableHandPushRight {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(-1px, 1px) rotate(2deg);
  }
  48% {
    transform: translate(-14px, 7px) rotate(-5deg);
  }
  70% {
    transform: translate(-25px, 10px) rotate(-9deg);
  }
}

@keyframes tableSleevePress {
  0%,
  100% {
    filter: brightness(1);
  }
  48% {
    filter: brightness(1.08);
  }
}

@keyframes tableHandPress {
  0%,
  100% {
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
  }
  52% {
    filter:
      brightness(1.08)
      drop-shadow(0 5px 5px rgba(0, 0, 0, 0.36));
  }
}

.dealer-deal-arm {
  top: 71%;
  width: 104px;
  height: 48px;
}

.dealer-deal-arm--left {
  left: -2%;
}

.dealer-deal-arm--right {
  right: -2%;
}

.dealer-deal-sleeve {
  top: 1px;
  width: 57px;
  height: 22px;
  border-color: rgba(237, 240, 244, 0.62);
  border-radius: 55% 45% 42% 58%;
  background: linear-gradient(165deg, #f4f6fa, #d1d6de 70%, #aab2bf);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.26);
}

.dealer-deal-arm--left .dealer-deal-sleeve {
  left: 2px;
}

.dealer-deal-arm--right .dealer-deal-sleeve {
  right: 2px;
}

.dealer-deal-cuff {
  top: 7px;
  width: 16px;
  height: 18px;
}

.dealer-deal-arm--left .dealer-deal-cuff {
  left: 51px;
}

.dealer-deal-arm--right .dealer-deal-cuff {
  right: 51px;
}

.dealer-deal-hand {
  top: 15px;
  left: 42px;
  width: 62px;
  height: 23px;
  background-size: contain;
  filter:
    contrast(1.05)
    drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4));
}

.dealer-deal-arm--right .dealer-deal-hand {
  right: 42px;
}

.dealer--video-action {
  top: 1%;
  width: clamp(300px, 28vw, 372px);
  height: clamp(169px, 15.75vw, 209px);
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.55));
}

.dealer-video-stage {
  position: absolute;
  z-index: 2;
  inset: 0 0 8%;
  overflow: hidden;
  border-radius: 46% 46% 34% 34% / 38% 38% 28% 28%;
  background:
    radial-gradient(ellipse at 50% 42%, #27140c, #090907 76%);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(218, 177, 104, 0.13),
    inset 0 0 42px rgba(0, 0, 0, 0.78);
  mask-image: radial-gradient(ellipse 91% 88% at 53% 43%, #000 62%, transparent 99%);
}

.dealer-action-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.55);
  transform-origin: 58% 45%;
  filter:
    saturate(0.83)
    brightness(1.04)
    sepia(0.08);
}

.dealer-video-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.11), transparent 36%, rgba(2, 13, 8, 0.58) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.43) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.dealer--video-action .dealer-hand-anchor {
  z-index: 4;
  top: 63%;
  left: 56%;
  width: 14px;
  height: 14px;
}

.dealer--video-action .dealer-halo {
  right: 4%;
  bottom: 0;
  left: 4%;
  height: 52%;
  background: rgba(228, 178, 93, 0.15);
  filter: blur(24px);
}

.dealer--video-action .dealer-nameplate {
  z-index: 5;
  right: 31%;
  bottom: 0;
  left: 31%;
  padding: 4px 8px;
}

.dealer--video-action.dealer--dealing .dealer-video-stage {
  animation: dealerVideoGlow 720ms ease-out;
}

@keyframes dealerVideoGlow {
  0% {
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(218, 177, 104, 0.13);
  }
  42% {
    box-shadow:
      0 18px 32px rgba(0, 0, 0, 0.54),
      0 0 0 1px rgba(244, 210, 143, 0.36),
      0 0 34px rgba(225, 177, 85, 0.18);
  }
  100% {
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(218, 177, 104, 0.13);
  }
}

@media (max-width: 1200px) {
  .dealer--video-action {
    width: 310px;
    height: 174px;
  }
}

@media (max-width: 900px) {
  .dealer--video-action {
    width: 265px;
    height: 149px;
  }
}

@media (max-width: 620px) {
  .dealer--video-action {
    top: 1.8%;
    width: 218px;
    height: 123px;
  }

  .dealer--video-action .dealer-nameplate {
    right: 28%;
    left: 28%;
  }
}

/* Female dealer reference with both hands resting on the table. */
.dealer--video-action {
  top: 0.4%;
  width: clamp(250px, 24vw, 292px);
  height: clamp(248px, 23.8vw, 290px);
}

.dealer--video-action .dealer-video-stage {
  inset: 0;
  overflow: hidden;
  border-radius: 45% 45% 27% 27% / 34% 34% 22% 22%;
  background: #17100c;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(226, 188, 113, 0.16),
    inset 0 0 32px rgba(0, 0, 0, 0.6);
  mask-image: radial-gradient(ellipse 99% 105% at 50% 34%, #000 82%, transparent 100%);
}

.dealer-reference-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: 50% 86%;
  filter:
    saturate(0.92)
    brightness(1.06)
    contrast(1.02)
    drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.dealer--video-action .dealer-video-shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 35%, rgba(3, 20, 11, 0.12) 100%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.18) 100%);
  mix-blend-mode: multiply;
}

.dealer--video-action .dealer-hand-anchor {
  top: 87%;
  left: 50%;
  width: 14px;
  height: 14px;
}

.dealer--video-action .dealer-nameplate {
  right: 27%;
  bottom: 2%;
  left: 27%;
}

.dealer--dealing .dealer-reference-img {
  animation: referenceDealerDeal 720ms cubic-bezier(0.18, 0.76, 0.2, 1) both;
}

.dealer--dealing.dealer--deal-left .dealer-reference-img {
  animation-name: referenceDealerDealLeft;
}

.dealer--dealing.dealer--deal-right .dealer-reference-img {
  animation-name: referenceDealerDealRight;
}

@keyframes referenceDealerDealLeft {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  32% {
    transform: translate(-7px, 7px) rotate(-1.8deg) scale(0.99);
  }
  64% {
    transform: translate(4px, 2px) rotate(0.8deg) scale(1.01);
  }
}

@keyframes referenceDealerDealRight {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  32% {
    transform: translate(7px, 7px) rotate(1.8deg) scale(0.99);
  }
  64% {
    transform: translate(-4px, 2px) rotate(-0.8deg) scale(1.01);
  }
}

@media (max-width: 1200px) {
  .dealer--video-action {
    width: 255px;
    height: 253px;
  }
}

@media (max-width: 900px) {
  .dealer--video-action {
    width: 226px;
    height: 224px;
  }
}

@media (max-width: 620px) {
  .dealer--video-action {
    top: 0.8%;
    width: 186px;
    height: 184px;
  }

  .dealer--video-action .dealer-nameplate {
    right: 23%;
    left: 23%;
  }
}

/* Separate hand layers move independently while the body stays steady. */
.dealer--dealing .dealer-reference-img {
  animation: none;
}

.reference-animated-hand {
  position: absolute;
  z-index: 2;
  top: 76%;
  width: 34%;
  height: 21%;
  background: url("assets/dealer/dealer-hand-cutout.png") center / contain no-repeat;
  filter:
    saturate(0.94)
    brightness(0.98)
    drop-shadow(0 3px 3px rgba(0, 0, 0, 0.36));
  transform-origin: 72% 50%;
  pointer-events: none;
}

.reference-animated-hand--left {
  left: 29%;
  transform: rotate(-6deg);
}

.reference-animated-hand--right {
  right: 29%;
  transform: scaleX(-1) rotate(-6deg);
}

.dealer--dealing.dealer--deal-left .reference-animated-hand--left {
  animation: referenceHandPushLeft 720ms cubic-bezier(0.18, 0.76, 0.2, 1) both;
}

.dealer--dealing.dealer--deal-right .reference-animated-hand--right {
  animation: referenceHandPushRight 720ms cubic-bezier(0.18, 0.76, 0.2, 1) both;
}

@keyframes referenceHandPushLeft {
  0%,
  100% {
    transform: translate(0, 0) rotate(-6deg) scale(1);
  }
  24% {
    transform: translate(0, 3px) rotate(-3deg) scale(1.01);
  }
  55% {
    transform: translate(12px, 12px) rotate(7deg) scale(1.02);
  }
  72% {
    transform: translate(19px, 15px) rotate(11deg) scale(0.99);
  }
}

@keyframes referenceHandPushRight {
  0%,
  100% {
    transform: translate(0, 0) scaleX(-1) rotate(-6deg) scale(1);
  }
  24% {
    transform: translate(0, 3px) scaleX(-1) rotate(-3deg) scale(1.01);
  }
  55% {
    transform: translate(-12px, 12px) scaleX(-1) rotate(7deg) scale(1.02);
  }
  72% {
    transform: translate(-19px, 15px) scaleX(-1) rotate(11deg) scale(0.99);
  }
}
