/* ==========================================================================
   SEEP (सीप) - Traditional North Indian Card Game Styling
   Theme: Royal Indian Baize & Velvet Green Card Table with Gold Accents
   ========================================================================== */

:root {
  --table-bg: #0d3b24;
  --table-border: #d4af37;
  --table-felt-inner: #134e30;
  --gold-primary: #f59e0b;
  --gold-accent: #fbbf24;
  --gold-light: #fef3c7;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f7e279 50%, #b8860b 100%);
  --crimson-accent: #b91c1c;
  --royal-blue: #1e40af;
  --card-bg: #ffffff;
  --card-border: #cbd5e1;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  --card-radius: 10px;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dark: #1e293b;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --house-uncemented: #d97706;
  --house-cemented: #059669;
  --card-font: 'Cinzel', 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: radial-gradient(circle at 50% 40%, #165b38 0%, #0d3822 55%, #061c11 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  user-select: none;
}

/* ================= HEADER BAR ================= */
.header-bar {
  background: rgba(8, 28, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(212, 175, 55, 0.4);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-titles h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #a7f3d0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Visitor Counter Pill */
.visitor-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.74rem;
  color: #d1fae5;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-left: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.visitor-counter-pill:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(52, 211, 153, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.visitor-dot {
  font-size: 0.55rem;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.visitor-icon {
  font-size: 0.85rem;
}

.visitor-label {
  font-weight: 600;
  color: #a7f3d0;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
}

.visitor-count {
  color: #fde047;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  min-width: 20px;
  text-align: right;
}

/* Match Scoreboard in Header */
.header-scoreboard {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 6px 16px;
  gap: 20px;
}

.team-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.team-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.team-pill.team-you .team-score {
  color: #34d399;
}

.team-pill.team-opp .team-score {
  color: #f87171;
}

.score-divider {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-align: center;
}

.baazi-lead {
  font-size: 0.65rem;
  color: #e2e8f0;
  background: rgba(212, 175, 55, 0.2);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold-gradient);
  color: #1e1b4b;
  border: none;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.6);
}

.btn-icon {
  padding: 7px 10px;
  font-size: 1.1rem;
}

/* ================= STATUS BANNER ================= */
.status-strip {
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  z-index: 40;
}

.status-message {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fef08a;
  font-weight: 500;
}

.status-badge {
  background: var(--gold-accent);
  color: #064e3b;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.status-stats {
  display: flex;
  gap: 16px;
  color: #94a3b8;
  font-size: 0.8rem;
}

.status-stat strong {
  color: #f1f5f9;
}

/* ================= TABLE ARENA ================= */
.game-arena {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* Common Player Zone */
.player-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.player-badge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.player-badge.active-turn {
  border-color: var(--gold-accent);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
  background: rgba(30, 41, 59, 0.95);
  animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: #fbbf24; box-shadow: 0 0 10px rgba(251, 191, 36, 0.4); }
  50% { border-color: #fef08a; box-shadow: 0 0 20px rgba(251, 191, 36, 0.8); }
}

.player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.player-info {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.player-role {
  font-size: 0.65rem;
  color: #a7f3d0;
  text-transform: uppercase;
}

.player-cards-count {
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.player-stats-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-left: 8px;
}

.player-points-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fde047;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(180, 83, 9, 0.35) 100%);
  border: 1px solid rgba(251, 191, 36, 0.5);
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-points-badge:hover {
  background: var(--gold-gradient);
  color: #064e3b;
  transform: scale(1.06);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

.round-score-pill {
  font-size: 0.62rem;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
}

/* North Zone (Partner) */
.zone-north {
  flex-direction: column;
  gap: 8px;
}

/* ================= TURN SHOWCASE & 10-SECOND PAUSE ================= */
.turn-showcase-bar {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(8, 38, 22, 0.98) 100%);
  border: 2px solid var(--gold-accent);
  border-radius: 16px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px auto 10px auto;
  max-width: 950px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(251, 191, 36, 0.3);
  z-index: 45;
  animation: showcase-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes showcase-pop {
  from { transform: translateY(-12px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.showcase-card-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.showcase-card-slot .card {
  width: 58px;
  height: 84px;
  cursor: default;
  transform: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.showcase-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-player-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.95rem;
}

.showcase-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.2);
  color: #fef08a;
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.showcase-badge.badge-capture {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: #10b981;
}

.showcase-badge.badge-seep {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-color: #ef4444;
  animation: pulse-red 1.2s infinite;
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.8); }
}

.showcase-badge.badge-cement {
  background: rgba(212, 175, 55, 0.3);
  color: #fde047;
  border-color: #facc15;
}

.showcase-badge.badge-build {
  background: rgba(245, 158, 11, 0.2);
  color: #fed7aa;
  border-color: #f59e0b;
}

.showcase-badge.badge-raise {
  background: rgba(234, 88, 12, 0.2);
  color: #fdba74;
  border-color: #ea580c;
}

.showcase-badge.badge-loose {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border-color: #64748b;
}

.showcase-message {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.showcase-message strong {
  color: var(--gold-accent);
}

.showcase-timer-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.showcase-timer-bar {
  height: 100%;
  width: 100%;
  background: var(--gold-gradient);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.showcase-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-showcase-continue {
  padding: 8px 16px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.countdown-badge {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.btn-showcase-pause {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 12px;
}

/* Middle Row: West, Center Floor, East */
.arena-middle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin: 10px 0;
  gap: 15px;
}

.zone-west, .zone-east {
  flex-direction: column;
  width: 140px;
  gap: 10px;
}

/* Center Floor / Farsh */
.floor-table {
  flex: 1;
  min-height: 280px;
  background: radial-gradient(circle at center, rgba(19, 78, 48, 0.9) 0%, rgba(13, 56, 34, 0.95) 70%, rgba(8, 38, 22, 0.98) 100%);
  border: 2px solid rgba(212, 175, 55, 0.45);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 8px 30px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Subtle table ornamental watermark */
.floor-table::before {
  content: 'सीप';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
  letter-spacing: 10px;
}

.floor-section-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #86efac;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.floor-houses-area {
  min-height: 110px;
  margin-bottom: 12px;
}

.floor-loose-area {
  min-height: 110px;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 80px;
}

/* ================= CENTER FLOOR THROWN CARD SPOTLIGHT (5 SECONDS) ================= */
.thrown-card-spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  max-width: 92%;
  width: 480px;
  animation: spotlight-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spotlight-pop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.thrown-card-wrapper {
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.98) 0%, rgba(13, 56, 34, 0.98) 85%, rgba(6, 28, 17, 0.99) 100%);
  border: 2.5px solid var(--gold-accent);
  border-radius: 20px;
  padding: 16px 20px;
  width: 100%;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(251, 191, 36, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  position: relative;
}

.thrown-header-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 8px;
}

.thrown-avatar {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.thrown-titles {
  display: flex;
  flex-direction: column;
}

.thrown-player-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.thrown-action-label {
  font-size: 0.72rem;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.thrown-stage {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 0;
}

.thrown-card-anchor {
  perspective: 800px;
  min-width: 72px;
  display: flex;
  justify-content: center;
}

.thrown-card-anchor .card {
  width: 70px;
  height: 100px;
  cursor: default;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 16px rgba(251, 191, 36, 0.6);
  border: 2px solid var(--gold-accent);
}

/* Directional Real-Life Throw Landing Animations */
.card-throw-from-south {
  animation: throw-from-south 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}
.card-throw-from-north {
  animation: throw-from-north 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}
.card-throw-from-west {
  animation: throw-from-west 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}
.card-throw-from-east {
  animation: throw-from-east 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

@keyframes throw-from-south {
  0% { transform: translateY(140px) scale(0.6) rotate(-14deg); opacity: 0; }
  70% { transform: translateY(-8px) scale(1.15) rotate(2deg); opacity: 1; }
  100% { transform: translateY(0) scale(1.08) rotate(-3deg); opacity: 1; }
}

@keyframes throw-from-north {
  0% { transform: translateY(-140px) scale(0.6) rotate(14deg); opacity: 0; }
  70% { transform: translateY(8px) scale(1.15) rotate(-2deg); opacity: 1; }
  100% { transform: translateY(0) scale(1.08) rotate(3deg); opacity: 1; }
}

@keyframes throw-from-west {
  0% { transform: translateX(-160px) scale(0.6) rotate(-16deg); opacity: 0; }
  70% { transform: translateX(8px) scale(1.15) rotate(2deg); opacity: 1; }
  100% { transform: translateX(0) scale(1.08) rotate(-2deg); opacity: 1; }
}

@keyframes throw-from-east {
  0% { transform: translateX(160px) scale(0.6) rotate(16deg); opacity: 0; }
  70% { transform: translateX(-8px) scale(1.15) rotate(-2deg); opacity: 1; }
  100% { transform: translateX(0) scale(1.08) rotate(2deg); opacity: 1; }
}

.thrown-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thrown-badge-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.2);
  color: #fef08a;
  border: 1px solid rgba(251, 191, 36, 0.6);
}

.thrown-desc {
  font-size: 0.92rem;
  color: #f8fafc;
  line-height: 1.45;
}

.thrown-desc strong {
  color: var(--gold-accent);
}

.thrown-timer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.thrown-timer-badge {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.thrown-timer-badge strong {
  color: #fde047;
  font-size: 0.95rem;
}

.thrown-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.thrown-progress-fill {
  height: 100%;
  width: 100%;
  background: var(--gold-gradient);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.btn-thrown-continue {
  padding: 6px 14px;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Floor Target Cards Glowing Highlight during 5-second observation */
.highlight-target-action {
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.9), 0 0 35px rgba(251, 191, 36, 0.5) !important;
  border-color: #fde047 !important;
  transform: translateY(-8px) scale(1.06) !important;
  z-index: 50 !important;
  animation: pulse-target-glow 1.2s infinite alternate !important;
}

@keyframes pulse-target-glow {
  0% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.7); }
  100% { box-shadow: 0 0 28px rgba(251, 191, 36, 1); }
}

/* ================= REALISTIC PLAYING CARDS ================= */
.card {
  width: 68px;
  height: 98px;
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(255, 255, 255, 0.98), rgba(250, 248, 242, 0.94) 75%),
    linear-gradient(135deg, #ffffff 0%, #faf8f5 50%, #f4eee1 100%);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 7px;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
  position: relative;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Authentic linen / paper sheen gloss */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 28%, transparent 55%);
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

/* Hairline inner card border */
.card-inner-border {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  pointer-events: none;
  z-index: 1;
}

.card.suit-hearts .card-inner-border,
.card.suit-diamonds .card-inner-border {
  border-color: rgba(197, 27, 36, 0.18);
}

.card.suit-spades .card-inner-border,
.card.suit-clubs .card-inner-border {
  border-color: rgba(18, 24, 38, 0.16);
}

/* Top-Left & Bottom-Right Corner Indices */
.card-corner-index {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  line-height: 0.88;
  z-index: 3;
  pointer-events: none;
  font-family: var(--card-font);
}

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

.card-corner-index.bottom-right {
  bottom: 4px;
  right: 4px;
  transform: rotate(180deg);
}

.index-rank {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.index-suit {
  font-size: 0.68rem;
  margin-top: 1px;
}

/* Suit Colors with rich authentic ink tones */
.card.suit-hearts, .card.suit-diamonds {
  color: #c51b24; /* Deep casino playing card red */
}

.card.suit-spades, .card.suit-clubs {
  color: #121826; /* Deep black ink */
}

/* Center Artwork Area */
.card-face-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3x5 Pips Grid Layout for Number Cards (2 to 10) */
.card-pips-grid {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
}

.card-pip {
  font-size: 0.88rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.card-pip.pip-inverted {
  transform: rotate(180deg);
}

/* Large Center Ace for ♥, ♦, ♣ */
.ace-large-center {
  font-size: 2.3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Grand Ornate Ace of Spades (Hukum Ka Ekka) */
.ace-spades-ornate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ace-filigree-top {
  font-size: 0.65rem;
  margin-bottom: -3px;
  opacity: 0.9;
}

.ace-spade-large {
  font-size: 2.35rem;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.ace-ribbon-text {
  font-family: var(--card-font);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #b45309;
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  border: 1px solid rgba(180, 83, 9, 0.5);
  padding: 0 4px;
  border-radius: 4px;
  margin-top: -3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Royal Court Cards (J, Q, K) - Authentic Reversible Double-Headed */
.court-card-frame {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 13px;
  right: 13px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(254, 252, 232, 0.4);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.court-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.court-half.court-bottom {
  transform: rotate(180deg);
}

.court-graphic {
  display: flex;
  align-items: center;
  gap: 2px;
}

.court-symbol {
  font-size: 1.15rem;
  line-height: 1;
}

.court-sub-suit {
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0.85;
}

.court-ribbon {
  font-family: var(--card-font);
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.35) 20%, rgba(212, 175, 55, 0.35) 80%, transparent 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.45);
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
  padding: 1px 0;
  color: #78350f;
  line-height: 1;
}

/* Hover & Interactive Elevate */
.card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  border-color: var(--gold-accent);
}

.card.selected {
  transform: translateY(-16px) scale(1.08);
  border: 2px solid var(--gold-accent);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.85), 0 14px 28px rgba(0,0,0,0.55);
  z-index: 25;
}

.card.selectable-target {
  cursor: pointer;
  border: 2px solid #38bdf8;
  animation: pulse-blue 1.4s infinite;
}

@keyframes pulse-blue {
  0%, 100% { box-shadow: 0 0 6px rgba(56, 189, 248, 0.5); }
  50% { box-shadow: 0 0 14px rgba(56, 189, 248, 0.9); }
}

/* Scoring Card Badges in Seep */
.card.point-card {
  border: 1.5px solid rgba(212, 175, 55, 0.8);
}

.card.point-card::after {
  content: attr(data-points);
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  z-index: 6;
  font-family: var(--font-family);
}

.card.suit-spades.point-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 0 10px rgba(212, 175, 55, 0.3);
}

/* 10 of Diamonds (+6 Seep Points) Golden Diamond Gleam */
.card.point-card-10d {
  border: 2px solid #fbbf24;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35), inset 0 0 8px rgba(251, 191, 36, 0.25);
}

/* Facedown Opponent Cards - Authentic Premium Indian & Bicycle Deck Back */
.card-back {
  width: 52px;
  height: 76px;
  background: #ffffff;
  border-radius: 7px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.card-back::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 4px;
  background: 
    radial-gradient(circle at center, #1e3a8a 0%, #172554 100%);
  background-image: 
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.2) 0, rgba(212, 175, 55, 0.2) 2px, transparent 0, transparent 6px),
    repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.2) 0, rgba(212, 175, 55, 0.2) 2px, transparent 0, transparent 6px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  outline: 1px solid rgba(255, 255, 255, 0.2);
  outline-offset: -2px;
}

.card-back::after {
  content: '♠';
  position: relative;
  z-index: 2;
  color: #fde047;
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.facedown-hand {
  display: flex;
  margin-top: 6px;
}

.facedown-hand .card-back {
  margin-left: -32px;
}

.facedown-hand .card-back:first-child {
  margin-left: 0;
}

/* ================= HOUSES (GHAR) ================= */
.house-card {
  position: relative;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px;
}

.house-card.kacha {
  border: 2px solid var(--house-uncemented);
}

.house-card.pakka {
  border: 2px solid var(--house-cemented);
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.4);
}

.house-card:hover {
  transform: translateY(-4px) scale(1.03);
}

.house-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.house-value-badge {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.house-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.house-card.kacha .house-status-badge {
  background: rgba(217, 119, 6, 0.25);
  color: #fcd34d;
  border: 1px solid rgba(217, 119, 6, 0.5);
}

.house-card.pakka .house-status-badge {
  background: rgba(5, 150, 105, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(5, 150, 105, 0.5);
}

.house-owner-tag {
  font-size: 0.62rem;
  color: #cbd5e1;
}

.house-cards-preview {
  display: flex;
  margin-top: 4px;
}

.house-cards-preview .mini-card {
  width: 24px;
  height: 34px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: -12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.house-cards-preview .mini-card:first-child {
  margin-left: 0;
}

.house-cards-preview .mini-card.red {
  color: #dc2626;
}

.house-cards-preview .mini-card.black {
  color: #0f172a;
}

/* ================= SOUTH ZONE (HUMAN PLAYER) ================= */
.zone-south {
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* ================= REALISTIC HAND HOLDING CARDS SIMULATION ================= */
.player-hand-container {
  position: relative;
  min-height: 155px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 8px 0 24px 0;
  perspective: 1200px;
  overflow: visible;
  user-select: none;
}

/* 1. Backdrop: Arm, Sleeve, Cuff, and Palm Cradle */
.hand-holding-backdrop {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 95px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: opacity 0.3s ease;
}

.hand-wrist-sleeve {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.palm-support {
  width: 110px;
  height: 48px;
  background: radial-gradient(ellipse at 50% 85%, #df9b72 0%, #cf885e 55%, #a8623b 100%);
  border-radius: 55px 55px 18px 18px;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(168, 98, 59, 0.3);
  border-bottom: none;
}

.shirt-cuff {
  width: 82px;
  height: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: none;
}

.gold-cufflink {
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #fef08a 25%, #d4af37 70%, #854d0e 100%);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  border: 0.5px solid #ca8a04;
}

.sleeve-fabric {
  width: 92px;
  height: 28px;
  background: linear-gradient(180deg, #092c1a 0%, #04170e 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

/* 2. Foreground: Thumb securely gripping front of card fan */
.hand-holding-foreground {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-35%);
  width: 100px;
  height: 48px;
  pointer-events: none;
  z-index: 30; /* In front of resting cards, behind lifted/hovered cards */
  transition: opacity 0.3s ease;
}

.hand-thumb-grip {
  position: relative;
  width: 100%;
  height: 100%;
}

.thumb-digit {
  width: 68px;
  height: 26px;
  background: linear-gradient(135deg, #f7caa9 0%, #df9b72 50%, #b86f44 100%);
  border-radius: 13px 20px 13px 15px;
  transform: rotate(-10deg);
  border: 1px solid rgba(168, 98, 59, 0.4);
  box-shadow: 
    inset 0 2px 3px rgba(255, 255, 255, 0.5),
    0 6px 14px rgba(0, 0, 0, 0.55);
  position: relative;
}

.thumb-crease {
  position: absolute;
  left: 23px;
  top: 5px;
  width: 2px;
  height: 15px;
  background: rgba(140, 75, 38, 0.35);
  border-radius: 2px;
  box-shadow: 2px 0 0 rgba(255, 255, 255, 0.2);
}

.thumb-nail {
  position: absolute;
  right: 6px;
  top: 4px;
  width: 15px;
  height: 17px;
  background: radial-gradient(ellipse at 35% 35%, #ffffff 0%, #fed7aa 45%, #f4a27e 90%);
  border-radius: 7px 11px 9px 7px;
  border: 1px solid rgba(184, 111, 68, 0.45);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.thumb-drop-shadow {
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 62px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.45) 0%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

/* Fanned Cards Arrangement */
.player-hand {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
  position: relative;
  z-index: 10;
}

.player-hand .card {
  width: 74px;
  height: 108px;
  margin-left: -24px;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1), margin 0.2s ease, box-shadow 0.2s ease;
}

.player-hand .card:first-child {
  margin-left: 0;
}

.player-hand.hand-fanned .card {
  transform-origin: 50% 120%;
  margin-left: -28px;
}

.player-hand.hand-fanned .card:first-child {
  margin-left: 0;
}

/* Hovering lifts card out of hand grip */
.player-hand .card:hover,
.player-hand.hand-fanned .card:hover {
  transform: translateY(-40px) rotate(0deg) scale(1.12) !important;
  z-index: 50 !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7), 0 0 16px rgba(251, 191, 36, 0.6);
  border-color: var(--gold-accent);
}

/* Selected Card elevates high, with radiant golden glow */
.player-hand .card.selected,
.player-hand.hand-fanned .card.selected {
  transform: translateY(-54px) rotate(0deg) scale(1.15) !important;
  z-index: 60 !important;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.8), 0 0 24px rgba(251, 191, 36, 0.95);
  border: 2px solid var(--gold-accent);
}

/* ================= ACTION BAR & MOVE PROMPT ================= */
.action-bar-container {
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  min-height: 52px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.action-prompt-text {
  font-size: 0.9rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-prompt-text strong {
  color: var(--gold-accent);
}

.action-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action-capture {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  border: none;
}

.btn-action-build {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #1e1b4b;
  border: none;
}

.btn-action-cement {
  background: var(--gold-gradient);
  color: #064e3b;
  border: none;
  font-weight: 800;
}

.btn-action-raise {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  border: none;
}

.btn-action-loose {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* ================= BANNER / POPUP NOTIFICATIONS ================= */
.toast-banner {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid var(--gold-accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(251, 191, 36, 0.4);
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.toast-banner.toast-seep {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  border-color: #fef08a;
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ================= MODALS ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #0f172a;
  border: 2px solid var(--table-border);
  border-radius: 18px;
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.3);
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 20px 24px;
  line-height: 1.6;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
}

/* Bidding Cards Preview in Modal */
.bid-cards-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.bid-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.bid-option-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 12px 8px;
  border-radius: 10px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.bid-option-btn:hover:not(:disabled) {
  background: var(--gold-gradient);
  color: #064e3b;
  transform: translateY(-2px);
}

.bid-option-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
}

.bid-option-btn small {
  font-size: 0.65rem;
  font-weight: 500;
}

/* Tabs inside Rules Modal */
.rules-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
  overflow-x: auto;
}

.rules-tab-btn {
  background: none;
  border: none;
  padding: 8px 14px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.rules-tab-btn.active {
  color: var(--gold-accent);
  border-bottom-color: var(--gold-accent);
}

.rules-tab-pane {
  display: none;
}

.rules-tab-pane.active {
  display: block;
}

/* Scoring Table in Rules */
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.85rem;
}

.score-table th, .score-table td {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.score-table th {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-accent);
}

.score-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

/* Score Breakdown in Round Over */
.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.breakdown-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
}

.breakdown-card.winner {
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
}

.breakdown-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--gold-accent);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.breakdown-row.total-row {
  border-bottom: none;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  padding-top: 8px;
}

/* ================= MOVE HISTORY DRAWER ================= */
.history-drawer {
  position: fixed;
  right: -320px;
  top: 60px;
  bottom: 0;
  width: 320px;
  background: rgba(15, 23, 42, 0.96);
  border-left: 2px solid rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(10px);
  z-index: 90;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.5);
  transition: right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.history-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1rem;
  color: var(--gold-accent);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  border-left: 3px solid var(--gold-accent);
}

.history-item.seep-event {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  font-weight: 700;
}

.history-time {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-bottom: 2px;
}

/* ================= CONFETTI CANVAS ================= */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
}

/* ================= MODE TOGGLE & SELECTION ================= */
.btn-mode-toggle {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 78, 59, 0.45) 100%);
  border: 1.5px solid #10b981;
  color: #a7f3d0;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
}

.btn-mode-toggle:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45) 0%, rgba(6, 78, 59, 0.65) 100%);
  border-color: #34d399;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.mode-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

@media (max-width: 600px) {
  .mode-selection-grid {
    grid-template-columns: 1fr;
  }
}

.mode-card-choice {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.mode-card-choice:hover {
  border-color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.mode-card-choice.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.mode-choice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mode-choice-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.mode-choice-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.mode-choice-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 12px;
}

.mode-choice-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.mode-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #93c5fd;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ================= REMOTE MULTIPLAYER STYLES ================= */
.btn-multiplayer {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  color: #fff;
  border: 1px solid #38bdf8;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

.btn-multiplayer:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.6);
}

.multiplayer-status-bar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 2px solid #0284c7;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  z-index: 42;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mp-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mp-live-dot {
  animation: blink-dot 1.5s infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.mp-seat-badge {
  background: rgba(2, 132, 199, 0.3);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.mp-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quick Reaction Banter Popup */
.reactions-popup {
  position: fixed;
  top: 90px;
  right: 20px;
  background: #0f172a;
  border: 2px solid var(--gold-accent);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 150;
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 250px;
  animation: modal-pop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reactions-popup.show {
  display: flex;
}

.reactions-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-transform: uppercase;
}

.reactions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.reaction-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reaction-btn:hover {
  background: var(--gold-gradient);
  color: #064e3b;
  transform: translateY(-1px);
}

/* Floating Reaction Bubble */
.reaction-bubble-float {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #064e3b;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  z-index: 80;
  pointer-events: none;
  animation: bubble-float-up 3.5s forwards ease-out;
}

@keyframes bubble-float-up {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.8); }
  15% { opacity: 1; transform: translateX(-50%) translateY(-5px) scale(1); }
  80% { opacity: 1; transform: translateX(-50%) translateY(-15px) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-35px) scale(0.9); }
}

/* Lobby Seats */
.lobby-seat-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lobby-seat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seat-avatar {
  font-size: 1.3rem;
}

.lobby-seat-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.seat-badge.human {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid #10b981;
}

.seat-badge.bot {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid #64748b;
}

.btn-seat-toggle {
  padding: 4px 8px;
  font-size: 0.72rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .header-scoreboard {
    padding: 4px 10px;
    gap: 10px;
  }
  .brand-titles h1 {
    font-size: 1.1rem;
  }
  .visitor-counter-pill {
    padding: 2px 7px;
    font-size: 0.68rem;
    margin-left: 2px;
  }
  .visitor-counter-pill .visitor-label {
    display: none;
  }
  .card {
    width: 58px;
    height: 84px;
  }
  .player-hand .card {
    width: 62px;
    height: 90px;
    margin-left: -28px;
  }
  .player-hand-container {
    min-height: 130px;
    padding-bottom: 16px;
  }
  .hand-holding-backdrop {
    height: 75px;
    width: 110px;
  }
  .palm-support {
    width: 85px;
    height: 38px;
  }
  .shirt-cuff {
    width: 65px;
  }
  .sleeve-fabric {
    width: 72px;
    height: 22px;
  }
  .hand-holding-foreground {
    width: 80px;
    height: 38px;
    bottom: 8px;
  }
  .thumb-digit {
    width: 54px;
    height: 22px;
  }
  .thumb-nail {
    width: 12px;
    height: 14px;
  }
  .arena-middle {
    flex-direction: column;
    gap: 8px;
  }
  .zone-west, .zone-east {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }
}
