:root {
  --felt-green: #0a4d2e;
  --felt-dark: #062b1a;
  --felt-border: #137747;
  --gold-accent: #f59e0b;
  --gold-hover: #d97706;
  --gold-gradient: linear-gradient(135deg, #e5a93c 0%, #c48a28 100%);
  --dark-surface: #0e1522;
  --dark-card: #121a29;
  --dark-border: rgba(255, 255, 255, 0.12);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: radial-gradient(circle at center, #1b382b 0%, #0d1a14 100%);
  color: #f1f5f9;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}

.font-serif-luxury {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Table felt styling */
.poker-table {
  background: radial-gradient(ellipse at center, #0e5c36 0%, #083720 70%, #041f12 100%);
  border: 14px solid #3b2314;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8), 0 15px 35px rgba(0, 0, 0, 0.6);
  border-radius: 40px;
  min-height: 720px;
  position: relative;
  padding: 20px;
}

/* Playing Card Design */
.playing-card {
  width: 78px;
  height: 114px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  font-weight: 700;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;
  margin: 0 -14px;
}

.playing-card:hover {
  transform: translateY(-16px) scale(1.08) !important;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.45);
  z-index: 100 !important;
}

.playing-card.playable {
  border: 2px solid #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.8);
  animation: pulsePlayable 1.5s infinite alternate;
}

.playing-card.disabled-card {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(40%);
}

.playing-card.disabled-card:hover {
  transform: none !important;
}

@keyframes pulsePlayable {
  0% {
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  }

  100% {
    box-shadow: 0 0 18px rgba(34, 197, 94, 1);
  }
}

/* Card Back */
.card-back {
  background: repeating-linear-gradient(45deg,
      #991b1b,
      #991b1b 10px,
      #7f1d1d 10px,
      #7f1d1d 20px);
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: default;
}

.card-back-pattern {
  width: 70%;
  height: 80%;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Card Suits Color */
.suit-hearts,
.suit-diamonds {
  color: #dc2626;
}

.suit-spades,
.suit-clubs {
  color: #1e293b;
}

.card-top {
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  z-index: 2;
}

.card-center-suit {
  font-size: 26px;
  text-align: center;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.card-bottom {
  font-size: 13px;
  line-height: 1;
  text-align: right;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  z-index: 2;
}

/* ==========================================================
       ROYAL HONOR CARDS (A, J, Q, K) - LUXURY PLAYING CARD DESIGN
       ========================================================== */
.playing-card.card-honor {
  background: linear-gradient(165deg, #ffffff 0%, #fffdf8 45%, #fcf5e5 100%);
  border: 1.5px solid #d4af37;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.playing-card.card-honor:hover {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45), 0 0 12px rgba(212, 175, 55, 0.4) !important;
  border-color: #f59e0b;
}

/* Rank specific border nuances */
.playing-card.card-honor-a {
  border-color: #eab308;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35), 0 0 8px rgba(234, 179, 8, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.playing-card.card-honor-k {
  border-color: #f59e0b;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35), 0 0 6px rgba(245, 158, 11, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.playing-card.card-honor-q {
  border-color: #ec4899;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35), 0 0 6px rgba(236, 72, 153, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.playing-card.card-honor-j {
  border-color: #0284c7;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35), 0 0 6px rgba(2, 132, 199, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Inner Ornate Frame */
.card-inner-frame {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 5px;
  pointer-events: none;
  z-index: 1;
}

.corner-flourish {
  position: absolute;
  width: 4px;
  height: 4px;
  border-color: rgba(180, 130, 40, 0.7);
  border-style: solid;
  pointer-events: none;
}

.corner-flourish.top-left {
  top: 2px;
  left: 2px;
  border-width: 1px 0 0 1px;
}

.corner-flourish.top-right {
  top: 2px;
  right: 2px;
  border-width: 1px 1px 0 0;
}

.corner-flourish.bottom-left {
  bottom: 2px;
  left: 2px;
  border-width: 0 0 1px 1px;
}

.corner-flourish.bottom-right {
  bottom: 2px;
  right: 2px;
  border-width: 0 1px 1px 0;
}

/* Typography for Rank in Honor Cards */
.card-honor .card-rank-text {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1;
  letter-spacing: -0.5px;
}

.honor-corner-pip {
  font-size: 8.5px;
  line-height: 1;
  margin-left: 1px;
  display: inline-block;
}

.suit-hearts .honor-corner-pip,
.suit-diamonds .honor-corner-pip {
  color: #b91c1c;
}

.suit-spades .honor-corner-pip,
.suit-clubs .honor-corner-pip {
  color: #0f172a;
}

/* Center Area in Honor Cards */
.honor-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  height: 56px;
  gap: 1px;
  margin: auto 0;
}

/* Court Icon & SVG */
.honor-crown-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 15px;
  line-height: 1;
}

.honor-court-svg {
  width: 19px;
  height: 13px;
  display: block;
}

.honor-court-svg.svg-king {
  color: #d97706;
}

.honor-court-svg.svg-queen {
  color: #db2777;
}

.honor-court-svg.svg-jack {
  color: #0284c7;
}

.honor-court-symbol {
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
}

/* Ace Center Styling */
.honor-center-a {
  gap: 2px;
}

.honor-ace-halo {
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0.02) 70%, transparent 100%);
  border: 1px dashed rgba(217, 119, 6, 0.45);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.honor-ace-symbol {
  font-size: 35px;
  line-height: 1;
  font-weight: 800;
  transform: scale(1.05);
}

/* Honor Ribbon / Badges */
.honor-ribbon {
  font-family: 'Cinzel', serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.honor-ribbon-a {
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #d97706;
}

.honor-ribbon-k {
  color: #7c2d12;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  border: 1px solid #f97316;
}

.honor-ribbon-q {
  color: #831843;
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  border: 1px solid #ec4899;
}

.honor-ribbon-j {
  color: #0c4a6e;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border: 1px solid #0284c7;
}

/* Center Table Elements */
.center-arena {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 16px 24px;
  min-height: 220px;
}

.deck-pile {
  position: relative;
  width: 82px;
  height: 118px;
  cursor: pointer;
  perspective: 600px;
}

.deck-pile.can-drink {
  animation: pulseDrink 1.3s infinite ease-in-out;
}

@keyframes pulseDrink {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px #eab308);
  }

  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 16px #fbbf24);
  }
}

.deck-stack-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Player Pods */
.player-pod {
  background: rgba(15, 23, 42, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  min-width: 160px;
  position: relative;
}

.player-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
}

.player-pod.active-turn {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  transform: scale(1.04);
  background: rgba(30, 41, 59, 0.95);
}

.player-pod.finished-pod {
  border-color: #22c55e;
  background: rgba(22, 101, 52, 0.85);
  opacity: 0.9;
}

.player-pod.loser-pod {
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.85);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}

/* Logs & Game Status */
.log-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  height: 170px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px;
}

.log-box::-webkit-scrollbar {
  width: 6px;
}

.log-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.current-suit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Played round card slot */
.played-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 6px;
  position: relative;
}

.played-slot.is-base-slot .playing-card {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7);
}

.played-slot.is-winner-slot .playing-card {
  border: 3px solid #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.9);
  animation: pulsePlayable 1.2s infinite alternate;
}

.played-slot .slot-name {
  font-size: 11.5px;
  margin-top: 5px;
  color: #cbd5e1;
  max-width: 90px;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* overflow: hidden; */
  font-weight: 600;
}

/* Rank badges */
.rank-badge-1 {
  background-color: #eab308;
  color: #000;
  font-weight: bold;
}

.rank-badge-2 {
  background-color: #94a3b8;
  color: #000;
  font-weight: bold;
}

.rank-badge-3 {
  background-color: #b45309;
  color: #fff;
  font-weight: bold;
}

.rank-badge-last {
  background-color: #ef4444;
  color: #fff;
  font-weight: bold;
}

.rank-badge-default {
  background-color: #3b82f6;
  color: #fff;
  font-weight: bold;
}

.pulse-glow {
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.4);
  }

  to {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.9);
  }
}

/* =======================================================
       LUXURY DESIGN SYSTEM FOR BUTTONS & MODALS (Screenshot match)
       ======================================================= */

/* Card Suits Ornament Banner */
.card-suits-banner {
  font-size: 1.15rem;
  color: #d4af37;
  letter-spacing: 12px;
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Modal Backdrop Blur */
.modal-backdrop.show {
  background-color: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Poker Modal Content */
.modal-content.poker-modal-content {
  background: radial-gradient(130% 100% at 50% 0%, #151d2c 0%, #0d131f 65%, #080c14 100%);
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  color: #f1f5f9;
  overflow: hidden;
}

.poker-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 24px 18px;
  position: relative;
}

.poker-modal-title {
  font-family: 'Cinzel', serif;
  color: #e5a93c;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-close-poker {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  z-index: 10;
}

.btn-close-poker:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: rotate(90deg);
}

/* Sleek Underline Tabs (Screenshot 1 Match) */
.poker-tabs-nav {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px 12px 0 0;
}

.poker-tab-item {
  flex: 1;
  text-align: center;
}

.poker-tab-btn {
  width: 100%;
  padding: 12px 16px;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  color: #94a3b8 !important;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.3px;
  border-radius: 0 !important;
}

.poker-tab-btn:hover {
  color: #f1f5f9 !important;
}

.poker-tab-btn.active {
  color: #f59e0b !important;
  border-bottom-color: #f59e0b !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.09) 0%, rgba(245, 158, 11, 0) 100%) !important;
}

/* Circular Avatar Selector (Screenshot 1 Match) */
.avatar-picker-circular {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 6px 0;
}

.avatar-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: #182232;
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
}

.avatar-circle-btn:hover {
  transform: scale(1.15);
  background: #202d42;
  border-color: rgba(255, 255, 255, 0.35);
}

.avatar-circle-btn.selected {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.25);
  transform: scale(1.18);
}

/* Form Controls */
.poker-input-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.poker-form-control,
.poker-form-select {
  background-color: #0b111a !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

.poker-form-control::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
  font-weight: 400;
}

.poker-form-control:focus,
.poker-form-select:focus {
  background-color: #0d1522 !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
  outline: none !important;
}

.poker-input-room-code {
  font-family: 'JetBrains Mono', monospace !important;
  letter-spacing: 8px !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  color: #fbbf24 !important;
  text-transform: uppercase !important;
}

/* Button System */
.btn-gold-cta {
  background: linear-gradient(135deg, #e5a93c 0%, #c48a28 100%);
  color: #0f172a !important;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1rem;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px -3px rgba(229, 169, 60, 0.45);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold-cta:hover {
  background: linear-gradient(135deg, #f5b74c 0%, #d4952e 100%);
  color: #090d15 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -2px rgba(229, 169, 60, 0.65);
}

.btn-gold-cta:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(229, 169, 60, 0.3);
}

.btn-gold-cta:disabled {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
  filter: grayscale(40%);
}

.btn-poker-dark {
  background: #141c2b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1 !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 16px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}

.btn-poker-dark:hover {
  background: #1c273c;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-poker-gold-outline {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #f59e0b !important;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 16px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}

.btn-poker-gold-outline:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* In-Game Action Buttons */
.btn-action-drink {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a !important;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-action-drink:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
}

.btn-action-penalty {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff !important;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-action-penalty:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.6);
}

.btn-action-skip {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1 !important;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 18px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-action-skip:hover {
  background: rgba(51, 65, 85, 0.95);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Floating Toast Notification (Screenshot 2 Match) */
.poker-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(16, 22, 34, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f1f5f9;
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 16px rgba(245, 158, 11, 0.25);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

.poker-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Room Badge (Screenshot 2 Match) */
.room-pill-badge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

/* Waiting Room View in Arena (Screenshot 2 Match) */
.waiting-room-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(14, 20, 32, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.waiting-link-box {
  background: #090d14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px 8px 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.waiting-link-text {
  font-family: 'JetBrains Mono', monospace;
  color: #fbbf24;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-slot-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-slot-empty {
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.room-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Kartu di Tangan: Ditutup jika kursor di luar #humanHandCards agar tidak diintip */
#humanHandCards {
  position: relative;
  transition: background 0.25s ease;
  border-radius: 12px;
}

/* Tampilan saat kursor di luar: kartu tertutup (motif belakang kartu) */
#humanHandCards .playing-card .card-face-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  pointer-events: none;
}

#humanHandCards .playing-card .card-back-cover {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg,
      #991b1b,
      #991b1b 10px,
      #7f1d1d 10px,
      #7f1d1d 20px);
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  border: 2px solid #ffffff;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* Saat tidak di-hover, kartu honor di tangan tetap netral agar tidak bocor */
#humanHandCards:not(:hover) .playing-card.card-honor {
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
  background: #ffffff !important;
}

/* Tampilan kartu terbuka saat kursor di dalam #humanHandCards */
#humanHandCards:hover .playing-card .card-back-cover {
  display: none !important;
  opacity: 0;
}

/* Indikator petunjuk intip */
.hand-peek-hint {
  display: inline-block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  transition: opacity 0.2s ease;
}

#humanHandCards:hover+.hand-peek-hint,
.hand-peek-container:hover .hand-peek-hint {
  opacity: 0.8;
  color: #f59e0b;
}