/* ========================================================
   Desi Cards Royale - Main Game UI & Theme Stylesheet
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;700;800&family=Rozha+One&family=Space+Grotesk:wght@400;600;700;800&display=swap');

:root, [data-theme="emerald"] {
  --bg-core: #064e3b;
  --bg-gradient: radial-gradient(circle at 50% 45%, #065f46 0%, #022c22 100%);
  --felt-color: #047857;
  --felt-border: #f59e0b;
  --gold-primary: #ffd700;
  --gold-glow: 0 0 14px rgba(255, 215, 0, 0.45);
  --text-main: #f8fafc;
  --accent-cyan: #00f0ff;
  --accent-pink: #ec4899;
}

[data-theme="ruby"] {
  --bg-core: #881337;
  --bg-gradient: radial-gradient(circle at 50% 45%, #9f1239 0%, #4c0519 100%);
  --felt-color: #be123c;
  --felt-border: #ffd700;
  --gold-primary: #fef08a;
  --gold-glow: 0 0 14px rgba(254, 240, 138, 0.45);
  --text-main: #fff1f2;
}

[data-theme="midnight"] {
  --bg-core: #0f172a;
  --bg-gradient: radial-gradient(circle at 50% 45%, #1e1b4b 0%, #030712 100%);
  --felt-color: #1e293b;
  --felt-border: #38bdf8;
  --gold-primary: #38bdf8;
  --gold-glow: 0 0 14px rgba(56, 189, 248, 0.45);
  --text-main: #f8fafc;
}

[data-theme="india-gate"] {
  --bg-core: #2d1039;
  --bg-gradient: radial-gradient(circle at 50% 30%, #701a75 0%, #3b0764 45%, #0f172a 100%);
  --felt-color: #581c87;
  --felt-border: #f59e0b;
  --gold-primary: #fbbf24;
  --gold-glow: 0 0 16px rgba(251, 191, 36, 0.55);
  --text-main: #fdf4ff;
  --accent-cyan: #38bdf8;
  --accent-pink: #f472b6;
}

[data-theme="taj-mahal"] {
  --bg-core: #1e1b4b;
  --bg-gradient: radial-gradient(circle at 50% 30%, #312e81 0%, #172554 50%, #030712 100%);
  --felt-color: #1e1b4b;
  --felt-border: #ffd700;
  --gold-primary: #ffd700;
  --gold-glow: 0 0 16px rgba(255, 215, 0, 0.5);
  --text-main: #f8fafc;
  --accent-cyan: #67e8f9;
  --accent-pink: #f43f5e;
}

[data-theme="palace-haveli"] {
  --bg-core: #451a03;
  --bg-gradient: radial-gradient(circle at 50% 35%, #9a3412 0%, #7c2d12 40%, #1c1917 100%);
  --felt-color: #7c2d12;
  --felt-border: #ffd700;
  --gold-primary: #fef08a;
  --gold-glow: 0 0 16px rgba(254, 240, 138, 0.5);
  --text-main: #fffbeb;
  --accent-cyan: #fbbf24;
  --accent-pink: #f97316;
}

/* Authentic Photo Table Wallpapers */
[data-theme="india-gate"] body,
html[data-theme="india-gate"] body {
  background-image: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.78)), url('../assets/bg-india-gate.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="palace-haveli"] body,
html[data-theme="palace-haveli"] body {
  background-image: linear-gradient(rgba(20, 10, 5, 0.65), rgba(20, 10, 5, 0.78)), url('../assets/bg-india-heritage.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="emerald"] body,
html[data-theme="emerald"] body {
  background-image: radial-gradient(circle at 50% 50%, rgba(6, 95, 70, 0.35) 0%, rgba(2, 44, 34, 0.8) 100%), url('../assets/bg-classic-emerald.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="ruby"] body,
html[data-theme="ruby"] body {
  background-image: radial-gradient(circle at 50% 50%, rgba(159, 18, 57, 0.35) 0%, rgba(76, 5, 25, 0.8) 100%), url('../assets/bg-royal-velvet.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="diwali-lantern"] body,
html[data-theme="diwali-lantern"] body {
  background-image: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.75)), url('../assets/bg-night-lantern.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="tropical-beach"] body,
html[data-theme="tropical-beach"] body {
  background-image: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.7)), url('../assets/bg-tropical-beach.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="autumn-forest"] body,
html[data-theme="autumn-forest"] body {
  background-image: linear-gradient(rgba(20, 10, 5, 0.55), rgba(20, 10, 5, 0.75)), url('../assets/bg-autumn-forest.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="alpine-lake"] body,
html[data-theme="alpine-lake"] body {
  background-image: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.75)), url('../assets/bg-alpine-lake.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="lake-palace"] body,
html[data-theme="lake-palace"] body {
  background-image: linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.7)), url('../assets/bg-lake-palace-dusk.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="himalayan-sunset"] body,
html[data-theme="himalayan-sunset"] body {
  background-image: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.65)), url('../assets/bg-himalayan-sunset.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="misty-alpine-lake"] body,
html[data-theme="misty-alpine-lake"] body {
  background-image: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.65)), url('../assets/bg-misty-alpine-lake.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="peaceful-zen-monastery"] body,
html[data-theme="peaceful-zen-monastery"] body {
  background-image: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.65)), url('../assets/bg-peaceful-zen-monastery.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

[data-theme="sacred-temple-peace"] body,
html[data-theme="sacred-temple-peace"] body {
  background-image: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.65)), url('../assets/bg-sacred-temple-peace.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}



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

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  touch-action: pan-y pinch-zoom;
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg-core);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
  position: relative;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

/* Header & HUD Bar */
.arcade-header {
  height: 60px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(255, 215, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 6px var(--gold-primary));
}

.brand-text h1 {
  font-family: 'Rozha One', serif;
  font-size: 1.35rem;
  color: var(--gold-primary);
  line-height: 1;
}

.brand-text p {
  font-size: 0.65rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.solitaire-cross-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border: 1px solid #60a5fa;
  color: #bfdbfe;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.4);
  transition: all 0.2s ease;
}

.solitaire-cross-btn:hover {
  transform: translateY(-1px) scale(1.03);
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
}

.toffee-counter {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 800;
  color: #ffd700;
  font-size: 0.85rem;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--gold-primary);
}

/* Mode Switcher Tabs */
.modes-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

@media (min-width: 960px) {
  .modes-bar {
    justify-content: center;
  }
}

.mode-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mode-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mode-tab-btn.active {
  background: var(--gold-primary);
  color: #0f172a;
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* Master Baithak Arena */
#arena-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Bluff & General Arena Layout */
.bluff-arena-layout, .satte-arena-layout, .mendi-arena-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* Felt Surface */
.felt-surface {
  flex: 1;
  background: var(--felt-color);
  border: 3px solid var(--felt-border);
  border-radius: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55), 0 12px 32px rgba(0, 0, 0, 0.4);
  margin-bottom: 10px;
  min-height: 380px;
}

/* Player & Bot Seats */
.seat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.seat.active-turn .bot-card-box {
  border-color: #ffd700;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.8);
  animation: turnPulse 1.5s infinite alternate;
}

@keyframes turnPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.seat-top {
  top: 10px;
}
.seat-left {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.seat-right {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.bot-card-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 8px 12px;
  backdrop-filter: blur(8px);
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
}

.bot-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-avatar {
  font-size: 1.6rem;
}

.bot-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bot-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #f8fafc;
}

.bot-hand-count {
  font-size: 0.72rem;
  color: #94a3b8;
}

.bot-role-tag {
  font-size: 0.65rem;
  color: #38bdf8;
  font-weight: 700;
}

.bot-penalty-tag {
  font-size: 0.68rem;
  color: #f59e0b;
  margin-top: 4px;
  font-weight: 700;
}

/* Bot Speech Bubble */
.bot-speech-bubble {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: #fef08a;
  color: #0f172a;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 50;
  animation: popSpeech 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.bot-speech-bubble::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent #fef08a transparent;
}

@keyframes popSpeech {
  0% { transform: translateX(-50%) scale(0.6); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Center Discard Pile (Bluff) */
.center-pile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.pile-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pile-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.pile-stack {
  width: var(--card-width);
  height: var(--card-height);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-pile-placeholder {
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--card-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.pile-declaration-box {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  padding: 6px 14px;
  border-radius: 14px;
  text-align: center;
  min-width: 180px;
}

.decl-label {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.decl-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--gold-primary);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.decl-rank-emblem {
  background: #f59e0b;
  color: #000;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 1.1rem;
}

.last-claim-pill {
  font-size: 0.72rem;
  color: #a7f3d0;
  margin-top: 4px;
}

/* Bottom Player Station */
.seat-bottom {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  border-radius: 20px;
  padding: 10px 14px;
  backdrop-filter: blur(12px);
}

.player-hud-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.player-info-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffd700;
}

.hand-sort-buttons {
  display: flex;
  gap: 6px;
}

.sort-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.sort-btn:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: #ffd700;
}

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

.action-btn {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-play-cards {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}
.btn-play-cards:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.btn-challenge {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  animation: challengePulse 2s infinite ease-in-out;
}
@keyframes challengePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.9); }
}

.btn-pass {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.action-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  animation: none;
}

/* Human Hand Rack */
.human-hand-rack {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 6px 6px;
  scrollbar-width: thin;
}

/* Satte Pe Satta Board & 4 Lanes */
.satte-board-center {
  width: 90%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.board-header-row {
  text-align: center;
}

.board-title {
  font-family: 'Rozha One', serif;
  font-size: 1.1rem;
  color: var(--gold-primary);
}

.lanes-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.suit-lane {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.lane-label {
  font-size: 0.8rem;
  font-weight: 800;
  width: 110px;
  flex-shrink: 0;
}

.lane-empty-placeholder {
  font-size: 0.72rem;
  color: #64748b;
  font-style: italic;
}

.lane-cards-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  flex: 1;
  justify-content: flex-end;
}

.mini-lane-card {
  width: 32px;
  height: 44px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.center-seven-card {
  border: 2px solid #f59e0b;
  background: #fef08a;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

/* Mendikot HUD & Trick Arena */
.mendi-board-center {
  width: 90%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mendi-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  padding: 8px 14px;
  border-radius: 14px;
}

.team-score-card {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  font-weight: 800;
}
.team-label { color: #ffd700; }
.mendi-count { color: #38bdf8; margin-top: 2px; }
.trick-count { color: #94a3b8; }

.trump-indicator-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #ffd700;
  padding: 4px 12px;
  border-radius: 20px;
  text-align: center;
}
.hukum-label { font-size: 0.65rem; color: #94a3b8; display: block; }
.hukum-val { font-size: 0.95rem; font-weight: 900; }

.trick-arena-ring {
  width: 220px;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-trick-tag {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.trick-played-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.3s ease;
}

.trick-played-card.pos-bottom { bottom: 0; }
.trick-played-card.pos-top { top: 0; }
.trick-played-card.pos-left { left: 0; }
.trick-played-card.pos-right { right: 0; }

.player-trick-owner {
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Modals & Overlays */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-backdrop.show { display: flex; }

.modal-window {
  background: #0f172a;
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  padding: 24px;
  max-width: 540px;
  width: 90%;
  color: #f8fafc;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.3rem;
  cursor: pointer;
}

/* Challenge Reveal Modal */
.challenge-reveal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.25s ease;
}

.reveal-modal {
  background: #0f172a;
  border-radius: 24px;
  padding: 24px;
  max-width: 500px;
  width: 92%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 3px solid;
}

.reveal-bluff-caught {
  border-color: #ef4444;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.6);
}

.reveal-honest {
  border-color: #10b981;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.6);
}

.alarm-siren-icon {
  font-size: 2.5rem;
  animation: sirenShake 0.5s infinite;
}
@keyframes sirenShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

.revealed-cards-tray {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
}

.match-pill {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 8px;
  margin-top: 6px;
}
.card-match .match-pill { background: #10b981; color: #fff; }
.card-mismatch .match-pill { background: #ef4444; color: #fff; }

.verdict-banner {
  font-size: 1.25rem;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 12px;
  margin: 12px 0 6px;
}
.banner-caught { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.banner-honest { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.btn-reveal-continue {
  background: var(--gold-primary);
  color: #0f172a;
  border: none;
  padding: 10px 24px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
}

/* Rank Choice Modal */
.rank-picker-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
}
.picker-card {
  background: #0f172a;
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  padding: 20px;
  max-width: 440px;
  width: 90%;
  text-align: center;
}
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.rank-choice-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 10px 4px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s;
}
.rank-choice-btn:hover {
  background: var(--gold-primary);
  color: #0f172a;
  border-color: #ffd700;
}
.r-char { font-size: 1.2rem; font-weight: 900; }
.r-desi { font-size: 0.65rem; }

/* Toast Notifications */
.msg-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid var(--gold-primary);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 3000;
  text-align: center;
  max-width: 90vw;
}
.msg-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-info { border-color: #38bdf8; color: #38bdf8; }
.toast-success { border-color: #10b981; color: #a7f3d0; }
.toast-warning { border-color: #f59e0b; color: #fef08a; }
.toast-error { border-color: #ef4444; color: #fca5a5; }

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5000;
}

/* ========================================================
   Teen Patti Arena & Action Styles
   ======================================================== */
.teen-patti-pot-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pot-glow-ring {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.9) 70%);
  border: 2px solid #ffd700;
  border-radius: 50px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), inset 0 0 15px rgba(255, 215, 0, 0.2);
}

.pot-icon {
  font-size: 2.2rem;
  animation: potSpin 4s infinite linear;
}
@keyframes potSpin {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.pot-text-group {
  display: flex;
  flex-direction: column;
}

.pot-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pot-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffd700;
  font-family: 'Space Grotesk', monospace;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.current-chaal-tag {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #a7f3d0;
}

.badge-seen {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 800;
}

.badge-blind {
  background: rgba(147, 51, 234, 0.2);
  color: #c084fc;
  border: 1px solid #9333ea;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 800;
}

.hand-rank-pill {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Teen Patti Action Buttons */
.btn-see-cards {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
}
.btn-see-cards:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(14, 165, 233, 0.5); }

.btn-chaal {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 900;
}
.btn-chaal:hover:not(.disabled) { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.6); }

.btn-chaal-double {
  background: linear-gradient(135deg, #ec4899, #be185d);
  color: #fff;
}
.btn-chaal-double:hover:not(.disabled) { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(236, 72, 153, 0.6); }

.btn-pack {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #ef4444;
  color: #fca5a5;
}
.btn-pack:hover:not(.disabled) { background: #ef4444; color: #fff; }

.btn-show-cards {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  animation: showPulse 1.8s infinite;
}
@keyframes showPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
  50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.9); }
}

.btn-side-show {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid #ffd700;
  color: #ffd700;
}

.tp-bot-box.packed-dim {
  opacity: 0.4;
  filter: grayscale(0.8);
}

.tp-bot-cards-row {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 4px;
}

.tp-card-back {
  margin-left: 0 !important;
}

/* Showdown Modal */
.tp-showdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.tp-showdown-player-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}

.tp-card-winner {
  border-color: #ffd700;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.7);
  background: rgba(245, 158, 11, 0.12);
}

.tp-p-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.tp-rank-tag {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
}

.tp-p-cards {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0;
}

.tp-p-desc {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* ========================================================
   Bhabhi / Thulla Arena Styles
   ======================================================== */
.bhabhi-center-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.trick-status-badge {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #ffd700;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffd700;
}

.thulla-pill {
  background: #ef4444;
  color: #fff;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 8px;
  animation: thullaBlink 0.6s infinite alternate;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}
@keyframes thullaBlink {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.thulla-card-shake {
  animation: thullaCardShake 0.4s ease-in-out;
}
@keyframes thullaCardShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px) rotate(-5deg); }
  75% { transform: translateX(6px) rotate(5deg); }
}

.escape-badge {
  background: #10b981;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.bot-card-box.escaped-safe {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

/* ========================================================
   Dehla Pakad Specific Arena Styles
   ======================================================== */
.dehla-version-bar-prominent {
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid var(--gold-primary);
  border-radius: 16px;
  padding: 8px 14px;
  margin-bottom: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.2);
  width: 100%;
}

.ver-bar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.ver-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.12);
  border: 1.5px solid rgba(255, 215, 0, 0.5);
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.ver-active-pill:hover {
  background: rgba(255, 215, 0, 0.22);
  border-color: #ffd700;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.ver-crown-icon {
  font-size: 1.15rem;
}

.ver-main-heading {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.4px;
}

.ver-dropdown-arrow {
  font-size: 0.72rem;
  font-weight: 900;
  background: #f59e0b;
  color: #000;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ver-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
  transition: all 0.3s ease;
}

@media (max-width: 650px) {
  .dehla-version-bar-prominent {
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 12px;
  }
  .ver-active-pill {
    padding: 4px 10px;
    gap: 6px;
    max-width: calc(100% - 95px);
  }
  .ver-main-heading {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ver-dropdown-arrow {
    font-size: 0.65rem;
    padding: 1px 6px;
  }
  .btn-change-game-inline {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  .ver-cards-grid {
    display: none; /* Collapsed by default on mobile */
    grid-template-columns: 1fr;
    animation: fadeIn 0.25s ease-out;
  }
  .ver-cards-grid.show-dropdown {
    display: grid !important;
  }
}

.ver-card-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.22s ease;
  position: relative;
}

.ver-card-option:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
  transform: translateY(-2px);
}

.ver-card-option.active-ver-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
  border: 2px solid #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
}

.ver-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.ver-badge-star {
  background: #f59e0b;
  color: #000;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 900;
  margin-bottom: 3px;
}

.ver-card-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: #f8fafc;
  margin-bottom: 2px;
}

.active-ver-card .ver-card-name {
  color: #ffd700;
}

.ver-card-desc {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.25;
}

.heap-status-banner {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, rgba(15, 23, 42, 0.9) 80%);
  border: 1.5px solid #ef4444;
  border-radius: 14px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
  font-size: 0.78rem;
  font-weight: 800;
}

.heap-info-left strong {
  color: #ffd700;
  font-size: 0.9rem;
  margin-left: 4px;
}

.streak-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fef08a;
}

.streak-fire {
  font-size: 1.1rem;
  animation: fireBounce 0.8s infinite alternate;
}
@keyframes fireBounce {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.25) translateY(-2px); }
}

.streak-tip {
  font-size: 0.68rem;
  color: #94a3b8;
}

.no-streak {
  color: #94a3b8;
  font-style: italic;
}

.mini-dehla-pill {
  background: #f59e0b;
  color: #000;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 900;
}

.dehla-alert-tag {
  background: #f59e0b;
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
  animation: pulse 1s infinite alternate;
}

.bot-card-box.streak-glow {
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7);
}

.streak-tag {
  font-size: 0.65rem;
  color: #f59e0b;
  font-weight: 800;
}

.trump-by {
  font-size: 0.62rem;
  color: #94a3b8;
  margin-left: 4px;
}

/* ========================================================
   Gulam Pees & Deck Cut Specific Styles
   ======================================================== */
.role-badge-dealer {
  background: linear-gradient(135deg, #ffd700, #b45309);
  color: #000;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  margin-top: 2px;
}

.role-badge-cutter {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  margin-top: 2px;
}

.gulam-pees-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  border: 2px solid #ffd700;
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.35);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  z-index: 50;
  animation: popSpeech 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.gulam-pees-title {
  font-family: 'Rozha One', serif;
  font-size: 1.4rem;
  color: #ffd700;
  margin: 4px 0;
}

.gulam-pees-sub {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.gulam-card-display {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
}

.deck-cut-prompt-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.9));
  border: 2px solid #38bdf8;
  border-radius: 18px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
  max-width: 440px;
  margin: 0 auto;
  z-index: 50;
}

.btn-cut-deck-interactive {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  border: 2px solid #f0f9ff;
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 10px 22px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.5);
  transition: all 0.2s ease;
  animation: pulse 1.5s infinite alternate;
  margin-top: 10px;
}
.btn-cut-deck-interactive:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, #7dd3fc, #0369a1);
}

.deal-phase-indicator {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 4px;
}

/* ========================================================
   ROYAL TRUMP PEDESTAL (THE TABLE CENTERPIECE)
   ======================================================== */
.royal-trump-pedestal {
  width: 100%;
  border-radius: 14px;
  padding: 10px 14px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.royal-trump-pedestal.pedestal-locked {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(245, 158, 11, 0.08);
}

.royal-trump-pedestal.pedestal-locked:hover {
  border-color: #ffd700;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.3);
}

.pedestal-inner-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pedestal-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.pedestal-status-badge.active-badge {
  border-color: #ffd700;
  background: rgba(245, 158, 11, 0.2);
}

.lock-pulse {
  font-size: 1.1rem;
  animation: lockShake 2.5s infinite ease-in-out;
}
@keyframes lockShake {
  0%, 80%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-8deg); }
  90% { transform: rotate(8deg); }
  95% { transform: rotate(-5deg); }
}

.fire-pulse {
  font-size: 1.15rem;
  animation: flameGlow 0.9s infinite alternate ease-in-out;
}
@keyframes flameGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px #ffd700); }
  100% { transform: scale(1.25); filter: drop-shadow(0 0 8px #ef4444); }
}

.status-title {
  font-size: 0.85rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 0.5px;
}

.status-sub {
  font-size: 0.65rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

.pedestal-desc-text {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.3;
  flex-grow: 1;
}

.pedestal-desc-text strong {
  color: #f59e0b;
}

.btn-pedestal-guide {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.btn-pedestal-guide:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-1px);
}

/* Unlocked Trump Pedestal */
.royal-trump-pedestal.pedestal-unlocked {
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.95) 75%);
  border: 2px solid #ffd700;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.15);
  animation: pedestalAura 3s infinite alternate ease-in-out;
}
@keyframes pedestalAura {
  0% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.35); }
  100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.65), inset 0 0 20px rgba(255, 215, 0, 0.25); }
}

.pedestal-inner-unlocked {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pedestal-suit-showcase {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suit-giant-symbol {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
}

.suit-meta-block {
  display: flex;
  flex-direction: column;
}

.suit-giant-name {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: 'Rozha One', serif;
  letter-spacing: 0.5px;
}

.pedestal-opener-info {
  font-size: 0.72rem;
  color: #94a3b8;
}

.pedestal-opener-info strong {
  color: #ffd700;
}

.pedestal-power-tip {
  font-size: 0.7rem;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.2;
}

/* ========================================================
   HUMAN TRUMP CUT ALERT (GOLDEN OPPORTUNITY STRIP)
   ======================================================== */
.human-trump-cut-alert {
  width: 95%;
  max-width: 640px;
  border-radius: 12px;
  padding: 8px 14px;
  margin: 6px auto;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  animation: alertPulse 1.2s infinite alternate ease-in-out;
}

.human-trump-cut-alert.trump-open-mode {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(220, 38, 38, 0.25));
  border: 2px solid #ffd700;
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.7);
}

.human-trump-cut-alert.trump-cut-mode {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 95, 70, 0.3));
  border: 1.5px solid #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}

.human-trump-cut-alert.trump-discard-mode {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes alertPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.015); }
}

.alert-icon-wrap {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.alert-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-head {
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 0.3px;
}

.alert-desc {
  font-size: 0.72rem;
  color: #f8fafc;
  line-height: 1.3;
}

.alert-desc strong {
  color: #ffd700;
}

/* Trump Candidate Card Glow and Badge */
.card-item.trump-candidate-pulse {
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.9);
  border-radius: var(--card-radius);
  animation: trumpCardPulse 1.1s infinite alternate;
}
@keyframes trumpCardPulse {
  0% { transform: translateY(-4px) scale(1.02); }
  100% { transform: translateY(-8px) scale(1.06); box-shadow: 0 0 24px rgba(255, 215, 0, 1); }
}

.card-corner-badge.trump-candidate-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #000;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 10;
  white-space: nowrap;
}

/* ========================================================
   CINEMATIC TRUMP REVEAL MODAL
   ======================================================== */
.trump-cinematic-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.trump-cinematic-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.trump-cinematic-card-box {
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 90%);
  border: 2px solid #ffd700;
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: cinematicPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes cinematicPop {
  0% { transform: scale(0.7) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.cinematic-crown-icon {
  font-size: 2.4rem;
  animation: crownBounce 0.8s infinite alternate ease-in-out;
}
@keyframes crownBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.cinematic-headline {
  font-family: 'Rozha One', serif;
  font-size: 2rem;
  color: #ffd700;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
}

.cinematic-subhead {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: #94a3b8;
  font-weight: 800;
}

.cinematic-opener-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cinematic-card-spotlight {
  padding: 14px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  transform: scale(1.15);
  margin: 6px 0;
}

.cinematic-trump-declaration {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 900;
}

.cinematic-trump-declaration .decl-symbol {
  font-size: 2rem;
  line-height: 1;
}

.cinematic-trump-declaration .decl-badge {
  font-size: 0.65rem;
  background: #f59e0b;
  color: #000;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 900;
}

.cinematic-rule-quote {
  font-size: 0.8rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.35;
}

.cinematic-rule-quote strong {
  color: #ffd700;
}

.btn-cinematic-continue {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  border: none;
  color: #000;
  font-size: 0.95rem;
  font-weight: 900;
  padding: 10px 24px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
  transition: all 0.18s ease;
  margin-top: 6px;
}

.btn-cinematic-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.7);
}

/* ========================================================
   ILLUSTRATED TRUMP GUIDE MODAL
   ======================================================== */
.trump-guide-sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #f8fafc;
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1.5px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
}

.guide-icon {
  font-size: 2rem;
}

.guide-title {
  font-family: 'Rozha One', serif;
  font-size: 1.35rem;
  color: #ffd700;
  margin: 0;
}

.guide-sub {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: #94a3b8;
  margin: 2px 0 0;
}

.guide-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guide-step-card.highlight-step {
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid #ffd700;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.step-num {
  background: #f59e0b;
  color: #000;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.step-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.step-content strong {
  font-size: 0.88rem;
  color: #ffd700;
  display: block;
  margin-bottom: 3px;
}

.step-content p {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin: 0;
}

.guide-footer-note {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #d1fae5;
  line-height: 1.3;
}

/* ========================================================
   80S/90S INDIAN BAITHAK MULTIPLAYER STYLING
   ======================================================== */

/* Header Multiplayer Button */
.multiplayer-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1.5px solid #ffd700;
  color: #000;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
  transition: all 0.2s ease;
}

.multiplayer-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.btn-mp-icon {
  font-size: 1.1rem;
}

#baithak-modal {
  z-index: 99999 !important;
}
#baithak-modal.show {
  display: flex !important;
}

/* Baithak Modal Window */
.baithak-modal-window {
  max-width: 640px !important;
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid #ffd700 !important;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 90%) !important;
}

/* Retro Header & Postage Stamp */
.retro-baithak-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px dashed rgba(255, 215, 0, 0.3);
  padding-bottom: 14px;
  margin-bottom: 12px;
}

.vintage-post-stamp {
  width: 58px;
  height: 64px;
  background: #fef08a;
  border: 2px dashed #b45309;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #78350f;
  font-weight: 900;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transform: rotate(-3deg);
}

.vintage-post-stamp span {
  font-size: 0.95rem;
}

.vintage-post-stamp small {
  font-size: 0.5rem;
  letter-spacing: 0.5px;
}

.baithak-title {
  font-family: 'Rozha One', serif;
  font-size: 1.6rem;
  color: #ffd700;
  margin: 0;
}

.baithak-sub {
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: #94a3b8;
  margin: 2px 0 0;
  font-weight: 800;
}

.baithak-intro-tag {
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #ffd700;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  line-height: 1.4;
  margin-bottom: 18px;
}

/* Action Tiles (Host or Join) */
.baithak-action-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .baithak-action-tiles {
    grid-template-columns: 1fr;
  }
}

.baithak-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: all 0.22s ease;
}

.baithak-tile:hover {
  background: rgba(255, 215, 0, 0.12);
  border-color: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.tile-icon {
  font-size: 2.2rem;
}

.baithak-tile h3 {
  font-size: 1.05rem;
  color: #ffd700;
  margin: 0 0 4px;
}

.baithak-tile p {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

.btn-tile-act {
  margin-top: auto;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.baithak-tile:hover .btn-tile-act {
  background: #ffd700;
  color: #000;
}

/* Forms & Avatar Selection */
.btn-back-hub {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 10px;
}

.host-sheet-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.host-sheet-title h3 {
  font-size: 1.25rem;
  color: #ffd700;
  margin: 0;
}

.host-sheet-title p {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 2px 0 0;
}

.baithak-form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.baithak-form-group label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffd700;
}

.desi-input, .desi-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  color: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.desi-input:focus, .desi-select:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.avatar-select-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.avatar-pick {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.avatar-pick:hover, .avatar-pick.active {
  background: rgba(245, 158, 11, 0.3);
  border-color: #ffd700;
  color: #ffd700;
  font-weight: 800;
}

.btn-primary-baithak {
  width: 100%;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  border: none;
  color: #000;
  font-size: 1rem;
  font-weight: 900;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
  margin-top: 10px;
  transition: all 0.2s ease;
}

.btn-primary-baithak:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.8);
}

/* Active Lobby Sheet & Vintage Invitation Card */
.vintage-invite-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 2px solid #ffd700;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.1);
  margin-bottom: 16px;
}

.invite-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.stamp-seal {
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffd700;
  background: rgba(245, 158, 11, 0.2);
  padding: 3px 10px;
  border-radius: 6px;
}

.invite-status-badge {
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 800;
  animation: pulse 1.5s infinite alternate;
}

.invite-body-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 520px) {
  .invite-body-row {
    flex-direction: column;
  }
}

.qr-pedestal-box {
  background: #ffffff;
  padding: 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.qr-canvas-holder {
  width: 220px;
  height: 220px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.qr-caption {
  margin-top: 8px;
  text-align: center;
  color: #0f172a;
}

.qr-caption strong {
  display: block;
  font-size: 0.72rem;
  color: #dc2626;
}

.qr-caption span {
  font-size: 0.65rem;
  color: #475569;
}

.invite-meta-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.room-code-badge {
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid #ffd700;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
}

.rc-label {
  font-size: 0.68rem;
  color: #94a3b8;
}

.rc-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 1px;
}

.btn-copy-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #fef08a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-copy-link:hover {
  background: #ffd700;
  color: #000;
}

.invite-wifi-tip {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.35;
}

/* 4 Seats Grid in Lobby */
.seats-heading {
  font-size: 0.85rem;
  color: #ffd700;
  margin: 0 0 10px;
}

.seats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 560px) {
  .seats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.baithak-seat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.baithak-seat-card.my-seat-card {
  border-color: #ffd700;
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.seat-number-pill {
  font-size: 0.62rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.seat-avatar-giant {
  font-size: 2.2rem;
  line-height: 1;
  margin: 4px 0;
}

.seat-player-name strong {
  font-size: 0.8rem;
  color: #f8fafc;
  display: block;
}

.you-badge {
  font-size: 0.65rem;
  color: #ffd700;
}

.seat-type-tag {
  font-size: 0.65rem;
  color: #10b981;
  margin-top: 4px;
}

.btn-toggle-seat-bot {
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-start-deal {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 2px solid #34d399;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  animation: pulse 1.2s infinite alternate;
}

.waiting-host-notice {
  text-align: center;
  color: #ffd700;
  font-size: 0.85rem;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

/* Live In-Game Multiplayer Banner */
.multiplayer-live-bar {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border: 1.5px solid #ffd700;
  border-radius: 12px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  max-width: 900px;
  margin: 0 auto 6px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.mlb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #ffd700;
}

.live-pulse-dot {
  color: #ef4444;
  font-size: 1.1rem;
  animation: pulse 1s infinite alternate;
}

.mlb-mode-badge {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-invite-qr-mini {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-invite-qr-mini:hover {
  background: #ffd700;
  color: #000;
}

.turn-status-badge {
  font-size: 0.75rem;
  color: #94a3b8;
  padding: 2px 8px;
  border-radius: 6px;
}

.turn-status-badge.my-turn-glow {
  color: #000;
  background: #ffd700;
  font-weight: 900;
  animation: pulse 1s infinite alternate;
}

/* ========================================================
   LAKDI / CALL BREAK (लकड़ी) SIGNATURE STYLES
   ======================================================== */
.lakdi-top-hud {
  width: 95%;
  max-width: 900px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid #ffd700;
  border-radius: 14px;
  padding: 8px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.hud-round-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #ffd700;
  font-weight: 900;
}

.round-icon {
  font-size: 1.2rem;
  color: #38bdf8;
}

.hud-trump-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #38bdf8;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 800;
}

.hukum-symbol {
  font-size: 1.1rem;
  color: #38bdf8;
}

.btn-scorecard-pill {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-scorecard-pill:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-1px);
}

/* Lakdi Seat Stats & Badges */
.lakdi-seat-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.stat-bid-pill, .stat-won-pill {
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  color: #cbd5e1;
}

.stat-bid-pill strong { color: #ffd700; }
.stat-won-pill strong { color: #38bdf8; }

.badge-safe-mini {
  background: #10b981;
  color: #000;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
  display: inline-block;
}

.bot-card-box.bot-safe-glow {
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}

/* Bidding Sheet for Human */
.lakdi-bidding-sheet {
  width: 95%;
  max-width: 640px;
  margin: 6px auto;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border: 2px solid #ffd700;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.lbs-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lbs-icon {
  font-size: 1.8rem;
  color: #ffd700;
  line-height: 1;
}

.lbs-header strong {
  display: block;
  font-size: 0.9rem;
  color: #ffd700;
}

.lbs-header small {
  font-size: 0.72rem;
  color: #94a3b8;
}

.lbs-buttons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.btn-bid-number {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  padding: 10px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-bid-number:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
}

.btn-bid-number.recommended-bid {
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Human Bid Tracker Badge in HUD */
.lakdi-bid-tracker-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #ffd700;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
}

.lbt-bid strong { color: #ffd700; }
.lbt-won strong { color: #38bdf8; }

.badge-safe {
  background: #10b981;
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
}

.lakdi-trump-tag {
  background: #0f172a;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

/* 5-Round Scorecard Sheet */
.lakdi-scorecard-sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #f8fafc;
}

.scorecard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1.5px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
}

.sc-trophy {
  font-size: 2.2rem;
}

.scorecard-header h3 {
  font-family: 'Rozha One', serif;
  font-size: 1.35rem;
  color: #ffd700;
  margin: 0;
}

.scorecard-header p {
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: #94a3b8;
  margin: 2px 0 0;
}

.sc-table-wrapper {
  overflow-x: auto;
}

.lakdi-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.85rem;
}

.lakdi-table th {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  padding: 8px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-weight: 900;
}

.lakdi-table td {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

.score-pos {
  color: #10b981;
}

.score-pos strong {
  display: block;
  font-size: 0.95rem;
}

.score-pos small {
  font-size: 0.62rem;
  color: #94a3b8;
}

.score-neg {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15) !important;
}

.score-neg strong {
  display: block;
  font-size: 0.95rem;
}

.score-neg small {
  font-size: 0.62rem;
  color: #fca5a5;
}

.total-row td {
  background: rgba(245, 158, 11, 0.2);
  font-weight: 900;
  font-size: 1rem;
  border-top: 2px solid #ffd700;
}

.tot-pos { color: #ffd700; }
.tot-neg { color: #ef4444; }

.sc-leader-card {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  border-radius: 10px;
  padding: 8px 14px;
  text-align: center;
  font-size: 0.88rem;
  color: #d1fae5;
}

.sc-leader-card strong {
  color: #ffd700;
}

.sc-action-row {
  display: flex;
  justify-content: center;
}

.btn-next-round {
  width: 100%;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  border: none;
  color: #000;
  font-size: 1rem;
  font-weight: 900;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
  transition: all 0.2s ease;
}

.btn-next-round:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.8);
}

/* ========================================================
   LAKDI RULES SELECTOR (DOUBLE PE LAKDI & MIN COMPULSORY)
   ======================================================== */
.lakdi-rules-selector-bar {
  width: 95%;
  max-width: 900px;
  margin: 0 auto 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
}

@media (max-width: 650px) {
  .lakdi-rules-selector-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.rule-selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rs-label {
  font-size: 0.72rem;
  font-weight: 900;
  color: #ffd700;
  white-space: nowrap;
}

.rs-options {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rs-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.rs-btn:hover {
  border-color: #ffd700;
  color: #ffd700;
}

.rs-btn.active-rs {
  background: #f59e0b;
  border-color: #ffd700;
  color: #000;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.lakdi-rule-callout-strip {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.74rem;
  color: #fca5a5;
  line-height: 1.35;
}

.lakdi-rule-callout-strip strong {
  color: #ffd700;
}

/* Double pe Lakdi and Warning Badges */
.badge-danger {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  animation: pulse 0.8s infinite alternate;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.badge-danger-mini {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
  display: inline-block;
  animation: pulse 0.8s infinite alternate;
}

.badge-warning {
  background: #f59e0b;
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
}

.badge-target {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 6px;
}

/* ========================================================
   LAKDI MULTI-PLAYER (4, 5, 6, 7, 8 PLAYERS) LAYOUT
   ======================================================== */
.lakdi-opponents-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  width: 98%;
  max-width: 980px;
  margin: 0 auto 10px;
  z-index: 10;
}

.lakdi-seat-card {
  flex: 1 1 calc(25% - 10px);
  min-width: 130px;
  max-width: 190px;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lakdi-seat-card.glowing-turn {
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.65);
  background: rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
}

.lakdi-seat-card .bot-avatar {
  font-size: 1.4rem;
}

.lakdi-seat-card .bot-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.lakdi-seat-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 0.68rem;
}

.stat-bid-pill, .stat-won-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  color: #cbd5e1;
}

.stat-bid-pill strong, .stat-won-pill strong {
  color: #ffd700;
}

.bot-fanned-cards {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
}

.bot-mini-card {
  width: 12px;
  height: 18px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 2px;
}

.mini-card-count {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-left: 4px;
}

/* ========================================================
   LAKDI RULES & PLAYERS SETUP (INLINE TABLE & MODAL)
   ======================================================== */
.lakdi-setup-modal-window,
.lakdi-table-setup-card {
  max-width: 620px;
  width: 94%;
  background: #0f172a;
  border: 2px solid #ffd700;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.4);
  padding: 22px;
  color: #f8fafc;
  max-height: 90vh;
  overflow-y: auto;
}

.lakdi-setup-header {
  text-align: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.lakdi-setup-header .lsh-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 4px;
}

.lakdi-setup-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffd700;
  margin: 0;
  font-family: 'Rozha One', serif;
}

.lakdi-setup-header p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 4px 0 0;
}

.setup-section {
  margin-bottom: 16px;
}

.setup-sec-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffd700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.setup-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.setup-choice-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.setup-choice-btn small {
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 500;
}

.setup-choice-btn:hover {
  border-color: #ffd700;
  color: #ffd700;
}

.setup-choice-btn.active-choice {
  background: #f59e0b;
  border-color: #ffd700;
  color: #000;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.7);
}

.setup-choice-btn.active-choice small {
  color: #1e293b;
  font-weight: 700;
}

.setup-calc-card {
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px dashed rgba(255, 215, 0, 0.5);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #fef08a;
  line-height: 1.45;
}

.setup-calc-card .calc-highlight {
  color: #ffd700;
  font-weight: 900;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

.setup-calc-card .calc-dukki-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-weight: 900;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 6px;
  margin: 4px 0;
}

.setup-calc-card .calc-bot-note {
  font-size: 0.72rem;
  color: #cbd5e1;
  display: block;
  margin-top: 5px;
}

.setup-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-start-lakdi-game {
  flex: 1;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #000;
  font-size: 1rem;
  font-weight: 900;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.6);
  transition: all 0.2s ease;
}

.btn-start-lakdi-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.85);
}

.btn-cancel-setup {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
}

/* ========================================================
   SEEP / SHEEP (सीप) & 20-20 GAME STYLES
   ======================================================== */
.seep-floor-wrapper {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  padding: 14px;
  width: 100%;
  box-sizing: border-box;
}

.seep-floor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #ffd700;
  font-weight: 800;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.houses-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #f59e0b;
}

.seep-houses-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.seep-house-box {
  background: #1e293b;
  border: 2px solid #38bdf8;
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 120px;
}

.seep-house-box.house-cemented {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.house-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #ffd700;
  margin-bottom: 6px;
}

.house-cards-stack {
  display: flex;
  gap: 4px;
}

.seep-loose-floor-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 90px;
  align-items: center;
  justify-content: center;
}

.floor-card-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scoring-card-glow {
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
}

.card-point-pill {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
}

.empty-floor-badge {
  color: #ffd700;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 14px;
}

.seep-btn-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.selected-card-tag {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-action-seep {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #000;
  border: none;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-action-seep:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
}

.btn-seep-drop {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.partner-glow-box {
  border-color: #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
}

/* 20-20 Hidden Trump Box */
.hidden-trump-box {
  margin: 0 auto 10px;
  text-align: center;
}

.face-down-trump-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #1e293b;
  border: 2px dashed #ffd700;
  border-radius: 10px;
  padding: 6px 14px;
  color: #ffd700;
  cursor: pointer;
}

.revealed-trump-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.2);
  border: 2px solid #ffd700;
  border-radius: 10px;
  padding: 4px 14px;
}

/* ========================================================
   Theme Bazaar (शाही बाज़ार) & Monetization Styles
   ======================================================== */

.theme-bazaar-window {
  max-width: 660px !important;
  width: 95% !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 20px 24px !important;
  overflow: hidden;
}

.bazaar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(255, 215, 0, 0.25);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.bazaar-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bazaar-title h2 {
  font-family: 'Rozha One', serif;
  font-size: 1.6rem;
  color: #ffd700;
  margin: 0;
}

.bazaar-coin-balance {
  background: rgba(245, 158, 11, 0.2);
  border: 1.5px solid #ffd700;
  border-radius: 20px;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

/* Category Tabs (Background, Card Back, Card Face) */
.bazaar-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bazaar-tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bazaar-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.bazaar-tab-btn:hover:not(.active) {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

/* Scrollable Items Grid */
.bazaar-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
  max-height: 48vh;
}

.bazaar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.bazaar-card-item {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.22s ease;
  position: relative;
}

.bazaar-card-item:hover {
  transform: translateY(-4px);
  border-color: #ffd700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.bazaar-card-item.is-active-item {
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
  background: rgba(6, 78, 59, 0.35);
}

.bazaar-preview-box {
  width: 100%;
  height: 96px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bazaar-3card-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 100%;
  padding: 4px;
}

.bazaar-preview-card {
  position: relative;
  width: 44px;
  height: 72px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: #1e293b;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;
}

.bazaar-preview-card:hover {
  transform: translateY(-4px) scale(1.12);
  z-index: 5;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.85);
  border-color: #ffd700;
}

.bazaar-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bazaar-preview-card.card-classic-svg img {
  object-fit: contain;
  background: #ffffff;
}

.bazaar-card-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 8px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  background: rgba(15, 23, 42, 0.85);
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1.1;
  pointer-events: none;
}

.bazaar-item-info {
  width: 100%;
  margin-bottom: 10px;
}

.bazaar-item-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #f8fafc;
  margin-bottom: 2px;
}

.bazaar-item-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.2;
}

.bazaar-action-btn {
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.bazaar-action-btn.btn-equipped {
  background: #10b981;
  color: #fff;
  cursor: default;
}

.bazaar-action-btn.btn-use {
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.bazaar-action-btn.btn-use:hover {
  background: #3b82f6;
  border-color: #3b82f6;
}

.bazaar-action-btn.btn-buy {
  background: linear-gradient(135deg, #ffd700, #d97706);
  color: #000;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}
.bazaar-action-btn.btn-buy:hover {
  transform: scale(1.03);
}

/* Monetization Actions Footer */
.bazaar-monetization-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bazaar-monetization-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-watch-reward-ad {
  flex: 1;
  min-width: 180px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.btn-watch-reward-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.btn-vip-pass {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-vip-pass:hover {
  transform: translateY(-2px);
}

/* AdMob Realistic Banner Placeholder */
.admob-banner-strip {
  width: 100%;
  height: 48px;
  background: #111827;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
}

.admob-badge {
  background: #f59e0b;
  color: #000;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
}

.admob-text {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Simulated Rewarded Video Ad Modal */
.ad-video-modal-window {
  max-width: 440px !important;
  text-align: center;
  padding: 24px !important;
  background: #0f172a !important;
  border: 2px solid #6366f1 !important;
}

.ad-video-player-sim {
  width: 100%;
  height: 200px;
  background: radial-gradient(circle at 50% 50%, #312e81, #0f172a);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.ad-countdown-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffd700;
  animation: pulseCountdown 1s infinite alternate;
}
@keyframes pulseCountdown {
  0% { transform: scale(0.95); box-shadow: 0 0 10px rgba(99, 102, 241, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 20px rgba(99, 102, 241, 0.8); }
}

/* ========================================================
   Weekend Tournament (वीकेंड अखाड़ा) Championship Styles
   ======================================================== */
.btn-tournament-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1.5px solid #fef08a;
  color: #000;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
  transition: all 0.2s ease;
  animation: tournamentGlow 2s infinite alternate;
}
@keyframes tournamentGlow {
  0% { box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); transform: translateY(0); }
  100% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.85); transform: translateY(-1px); }
}
.btn-tournament-pill:hover {
  transform: scale(1.04);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.btn-mobile-connect-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #059669, #0d9488);
  border: 1.5px solid #6ee7b7;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.45);
  transition: all 0.2s ease;
}

.btn-mobile-connect-pill:hover {
  transform: scale(1.04);
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.6);
}

@media (max-width: 600px) {
  .btn-mobile-connect-pill .btn-mobile-text {
    display: none;
  }
  .btn-mobile-connect-pill {
    padding: 5px 8px;
  }
}

.tournament-window {
  max-width: 580px !important;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #1e1b4b, #0f172a) !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.35) !important;
  padding: 20px !important;
}

.tournament-banner-hero {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(180, 83, 9, 0.35));
  border: 1.5px solid #ffd700;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tournament-hero-text h3 {
  font-family: 'Rozha One', serif;
  color: #ffd700;
  font-size: 1.35rem;
  margin: 0;
}
.tournament-hero-text p {
  font-size: 0.75rem;
  color: #fef08a;
  margin: 2px 0 0;
}
.tournament-prize-badge {
  text-align: right;
  background: rgba(15, 23, 42, 0.7);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.4);
}
.tournament-prize-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffd700;
}

.tournament-bracket-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.bracket-stage-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bracket-stage-card.stage-active {
  border-color: #ffd700;
  background: rgba(245, 158, 11, 0.12);
}
.stage-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: #f8fafc;
}
.stage-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}
.stage-status.status-locked {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}
.stage-status.status-ready {
  background: #10b981;
  color: #fff;
}
.stage-status.status-done {
  background: #3b82f6;
  color: #fff;
}

.tournament-leaderboard-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}
.tournament-lb-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.tournament-lb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tournament-lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}
.tournament-lb-row.player-highlight {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #ffd700;
  font-weight: 800;
}

/* Smart Interstitial Ad Modal */
.interstitial-ad-window {
  max-width: 480px !important;
  background: #020617 !important;
  border: 2px solid #38bdf8 !important;
  border-radius: 16px !important;
  padding: 20px !important;
  text-align: center;
}
.interstitial-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.interstitial-badge {
  background: #1e293b;
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #38bdf8;
}
.interstitial-skip-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.interstitial-skip-btn:hover {
  background: #3b82f6;
}
.interstitial-creative {
  width: 100%;
  height: 220px;
  background: radial-gradient(circle at 50% 50%, #1e3a8a, #030712);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  position: relative;
  overflow: hidden;
}

/* ========================================================
   Header Coin Shop & Mobile Preview Buttons
   ======================================================== */
.toffee-plus-badge {
  background: #10b981;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  box-shadow: 0 0 6px #10b981;
}

.coin-shop-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border: 1.5px solid #ffd700;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  animation: shopGlow 2.5s infinite alternate;
}
@keyframes shopGlow {
  0% { box-shadow: 0 0 4px rgba(245, 158, 11, 0.4); }
  100% { box-shadow: 0 0 14px rgba(255, 215, 0, 0.75); }
}
.coin-shop-btn:hover {
  transform: translateY(-1px) scale(1.03);
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.theme-shop-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border: 1.5px solid #f472b6;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 11px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.4);
  transition: all 0.2s ease;
  animation: themeGlow 2.8s infinite alternate;
}
@keyframes themeGlow {
  0% { box-shadow: 0 0 4px rgba(236, 72, 153, 0.4); }
  100% { box-shadow: 0 0 14px rgba(244, 114, 182, 0.75); }
}
.theme-shop-btn:hover {
  transform: translateY(-1px) scale(1.03);
  background: linear-gradient(135deg, #f43f5e, #a855f7);
}

.mobile-preview-btn {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}
.mobile-preview-btn.active-preview {
  background: #38bdf8 !important;
  color: #0f172a !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7) !important;
}

/* ========================================================
   Coin Shop Modal & IAP Monetization Hub Styles
   ======================================================== */
.coin-shop-window {
  max-width: 680px !important;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #1e1b4b, #090d16) !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.35) !important;
  padding: 20px !important;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  padding-bottom: 12px;
}
.shop-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-title h2 {
  font-family: 'Rozha One', serif;
  font-size: 1.4rem;
  color: #ffd700;
  margin: 0;
  line-height: 1.2;
}
.shop-balance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1.5px solid #ffd700;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 800;
  color: #ffd700;
  font-size: 1rem;
}

/* Free Rewards Row */
.shop-free-rewards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 580px) {
  .shop-free-rewards-row {
    grid-template-columns: 1fr;
  }
}
.free-reward-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 215, 0, 0.5);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.free-icon {
  font-size: 1.8rem;
}
.free-info {
  flex: 1;
}
.free-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
}
.free-desc {
  font-size: 0.68rem;
  color: #94a3b8;
}
.btn-claim-free {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-claim-free:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #34d399, #10b981);
}
.btn-claim-free.claimed {
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
}
.btn-watch-ad {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.btn-watch-ad:hover {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

/* Shop Packages Grid */
.shop-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .shop-packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 440px) {
  .shop-packages-grid {
    grid-template-columns: 1fr;
  }
}

.shop-pack-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.22s ease;
}
.shop-pack-card:hover {
  transform: translateY(-3px);
  border-color: #ffd700;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}
.shop-pack-card.pack-featured {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.85));
  border: 2px solid #ffd700;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}

.pack-badge {
  position: absolute;
  top: -10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.pack-badge-bronze { background: #b45309; color: #fff; }
.pack-badge-silver { background: #475569; color: #fff; }
.pack-badge-gold { background: linear-gradient(135deg, #ffd700, #b45309); color: #000; font-weight: 900; }
.pack-badge-vip { background: linear-gradient(135deg, #a855f7, #6b21a8); color: #fff; }
.pack-badge-legendary { background: linear-gradient(135deg, #ef4444, #991b1b); color: #fff; }
.pack-badge-green { background: #10b981; color: #fff; }

.pack-icon {
  font-size: 2.2rem;
  margin: 8px 0 4px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.pack-amount {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffd700;
  margin-bottom: 2px;
}
.pack-bonus {
  font-size: 0.7rem;
  color: #38bdf8;
  font-weight: 700;
  min-height: 18px;
  margin-bottom: 12px;
}
.pack-buy-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 8px 0;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pack-buy-btn:hover {
  background: #f59e0b;
  color: #000;
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}
.btn-featured-buy {
  background: linear-gradient(135deg, #ffd700, #d97706) !important;
  color: #000 !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5) !important;
}
.btn-featured-buy:hover {
  background: linear-gradient(135deg, #fef08a, #f59e0b) !important;
  transform: scale(1.02);
}

.shop-footer-note {
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 10px;
}

/* Payment Confirmation Modal Sheet */
.payment-confirm-window {
  max-width: 420px !important;
  background: #090d16 !important;
  border: 1.5px solid #10b981 !important;
  border-radius: 16px !important;
  padding: 20px !important;
}
.payment-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.payment-details {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}
.payment-details h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #f8fafc;
}
.payment-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}
.payment-methods-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.pay-method-radio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  cursor: pointer;
}
.pay-method-radio.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  font-weight: 700;
}
.payment-actions {
  display: flex;
  gap: 10px;
}
.btn-cancel-pay {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 10px 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.btn-confirm-pay {
  flex: 2;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  padding: 10px 0;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.btn-confirm-pay:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
}

/* ========================================================
   Mobile Device Simulation Mode (When Testing on Desktop)
   ======================================================== */
body.mobile-simulator-active {
  background: #020617 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  padding: 20px 0 !important;
}
body.mobile-simulator-active > header,
body.mobile-simulator-active > nav,
body.mobile-simulator-active > main {
  width: 390px !important;
  max-width: 390px !important;
}
body.mobile-simulator-active > header {
  border-radius: 36px 36px 0 0 !important;
  border: 10px solid #1e293b !important;
  border-bottom: 1px solid rgba(255, 215, 0, 0.25) !important;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.8) !important;
}
body.mobile-simulator-active > nav {
  border-left: 10px solid #1e293b !important;
  border-right: 10px solid #1e293b !important;
}
body.mobile-simulator-active > main {
  height: 620px !important;
  border-radius: 0 0 36px 36px !important;
  border: 10px solid #1e293b !important;
  border-top: none !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9) !important;
}

/* ========================================================
   Enhanced Mobile Responsiveness (Phones & Small Screens)
   ======================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
  }
  .arcade-header {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 0 8px;
    height: 50px;
    overflow: hidden;
  }
  .brand-text h1 {
    font-size: 1.05rem;
  }
  .brand-text p {
    display: none !important;
  }

  /* Hide cross-links on small mobile to avoid overflow, but keep Store and Theme accessible! */
  .solitaire-cross-btn,
  .btn-tournament-pill,
  .btn-mobile-connect-pill,
  .mobile-preview-btn {
    display: none !important;
  }

  .coin-shop-btn,
  .theme-shop-btn {
    display: flex !important;
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
    border-radius: 12px !important;
  }
  @media (max-width: 540px) {
    .coin-shop-btn .btn-shop-text,
    .theme-shop-btn .btn-theme-text {
      display: none !important;
    }
  }

  .multiplayer-btn {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
    border-radius: 12px !important;
  }

  .header-actions {
    gap: 4px;
    flex-shrink: 0;
  }
  .btn-lobby-pill {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .toffee-counter {
    padding: 3px 7px;
    font-size: 0.74rem;
  }
  .icon-btn {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .modes-bar {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 6px;
    padding: 6px 10px;
    scroll-padding: 0 10px;
    scrollbar-width: none;
  }
  .modes-bar::-webkit-scrollbar {
    display: none;
  }
  .mode-tab-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 500px) {
  .header-actions {
    gap: 3px;
  }
  .icon-btn {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }
  .toffee-counter {
    padding: 2px 6px;
    font-size: 0.72rem;
  }
  .felt-surface {
    min-height: 290px;
    border-radius: 16px;
    padding: 6px;
  }
  .modal-window {
    width: 95vw !important;
    max-height: 88vh !important;
    padding: 14px !important;
  }
}



/* ========================================================
   DESI CARDS ROYALE - GRAND GAME LOBBY & VERSION SELECTION
   ======================================================== */

/* Header Lobby Button */
.btn-lobby-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(202, 138, 4, 0.35));
  border: 1.5px solid #ffd700;
  color: #ffd700;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.25);
}

.btn-lobby-pill:hover,
.btn-lobby-pill.active {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #0f172a;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  transform: translateY(-1px);
}

/* Inline Change Game Button on Dehla Bar */
.btn-change-game-inline {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-change-game-inline:hover {
  background: #ffd700;
  color: #0f172a;
  border-color: #ffd700;
}

.ver-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================================
   GAME LOBBY VIEW (शाही खेल चयन लॉबी)
   ======================================================== */
.game-lobby-view {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.35s ease-out;
}

/* Hero Welcome Banner */
.lobby-hero-banner {
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.22) 0%, transparent 60%),
              linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92));
  border: 2px solid rgba(255, 215, 0, 0.45);
  border-radius: 24px;
  padding: 26px 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(255, 215, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.lobby-hero-banner::after {
  content: "🃏";
  position: absolute;
  right: 24px;
  bottom: -20px;
  font-size: 8rem;
  opacity: 0.08;
  pointer-events: none;
}

.lobby-hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.hero-heading {
  font-family: 'Rozha One', serif;
  font-size: 2.2rem;
  color: #fff;
  margin: 0 0 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, #fff 40%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 18px;
}

.hero-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-action {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-hero-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.btn-gold-action {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.btn-gold-action:hover {
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

.btn-tourney-action {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.btn-tourney-action:hover {
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
}

.btn-theme-action {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
}

.btn-theme-action:hover {
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.55);
}

/* Lobby Store & Customization Showcase Bar */
.lobby-store-showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.85), rgba(15, 23, 42, 0.9));
  border: 1.5px solid rgba(236, 72, 153, 0.45);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 22px;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
}

.store-showcase-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.store-showcase-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(236, 72, 153, 0.5));
}

.store-showcase-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-store-pill-theme {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border: 1px solid #f472b6;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
  transition: all 0.2s ease;
}

.btn-store-pill-theme:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.55);
}

.btn-store-pill-coin {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid #ffd700;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-store-pill-coin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55);
}

/* Lobby Section Title */
.lobby-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

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

.sec-icon {
  font-size: 2rem;
}

.sec-title {
  font-family: 'Rozha One', serif;
  font-size: 1.45rem;
  color: #ffd700;
  margin: 0;
}

.sec-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 2px 0 0;
}

/* 8-Games Grid in Lobby */
.lobby-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.lobby-game-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.lobby-game-card:hover {
  border-color: #ffd700;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.25);
  background: rgba(30, 41, 59, 0.95);
}

.game-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.game-card-icon {
  font-size: 2.4rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card-header-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.game-card-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-card-title {
  font-family: 'Rozha One', serif;
  font-size: 1.25rem;
  color: #ffd700;
  margin: 0;
  line-height: 1.25;
}

.game-card-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.game-card-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.game-meta-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.game-tag-pill {
  font-size: 0.68rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}

.game-version-pill {
  font-size: 0.68rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
}

.btn-lobby-play {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  border: none;
  color: #0f172a;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-lobby-play:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* ========================================================
   GAME VERSION MODAL (संस्करण चयन मोडल)
   ======================================================== */
.game-version-window {
  max-width: 680px !important;
  width: 92vw !important;
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  border: 2px solid #ffd700 !important;
  border-radius: 24px !important;
  padding: 22px 26px !important;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.35) !important;
}

.version-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.ver-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.version-cards-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
}

.version-select-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.version-select-card:hover {
  border-color: #ffd700;
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

.ver-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ver-badge-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 2px 10px;
  border-radius: 999px;
}

.ver-number {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
}

.ver-card-title {
  font-family: 'Rozha One', serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 2px 0 0;
}

.ver-card-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
}

.ver-card-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 4px 0 8px;
}

.btn-start-version {
  align-self: flex-start;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-start-version:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.version-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
  margin-top: 14px;
  text-align: center;
}

/* ========================================================
   GULAM PEES ON-TABLE SEATS & CENTRAL 3D STAGE
   ======================================================== */

/* Gulam Pees Tray on Bot Seats */
.gulam-seat-tray {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 4px 8px;
  transition: all 0.3s ease;
}

/* Gulam Pees Tray on Human Bottom */
.gulam-human-tray {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  border-radius: 12px;
  padding: 6px 14px;
  transition: all 0.3s ease;
}

.gulam-tray-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd700;
}

.gulam-tray-card-box {
  display: flex;
  justify-content: center;
  min-height: 86px;
  align-items: center;
}

.gulam-card-placeholder {
  width: 58px;
  height: 86px;
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0.4;
}

/* Pulse on the seat receiving card */
.tray-dealing-pulse {
  border-color: #ffd700 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7) !important;
  animation: dealingPulse 0.6s infinite alternate ease-in-out;
}

@keyframes dealingPulse {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
  100% { transform: scale(1.08); box-shadow: 0 0 24px rgba(255, 215, 0, 0.85); }
}

/* Winner Glow on Gulam Jack Seat */
.tray-winner-glow {
  border-color: #ffd700 !important;
  background: rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 0 35px #ffd700, inset 0 0 20px rgba(255, 215, 0, 0.5) !important;
  animation: winnerGlow 1s infinite alternate;
}

@keyframes winnerGlow {
  0% { transform: scale(1.05); filter: drop-shadow(0 0 10px #ffd700); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 25px #ffd700) brightness(1.2); }
}

/* Central Grand Gulam Pees Stage */
.gulam-grand-stage {
  background: rgba(15, 23, 42, 0.94);
  border: 2px solid #ffd700;
  border-radius: 22px;
  padding: 16px 22px;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 40;
  animation: popSpeech 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.gulam-stage-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid #ffd700;
  padding: 4px 14px;
  border-radius: 999px;
}

.crown-glow {
  font-size: 1.2rem;
  animation: spinSlow 8s infinite linear;
}

.gulam-stage-title {
  font-family: 'Rozha One', serif;
  font-size: 1.15rem;
  color: #ffd700;
}

.gulam-stage-active-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gulam-instruction-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
}

/* 3D Stack of Cards Animation in Central Deck */
.deck-3d-visual {
  position: relative;
  width: 60px;
  height: 84px;
  margin: 4px auto;
}

.deck-stack-card {
  position: absolute;
  width: 58px;
  height: 82px;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border: 1.5px solid #ffd700;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.deck-stack-card.s1 { top: 0; left: 0; }
.deck-stack-card.s2 { top: -3px; left: -2px; }
.deck-stack-card.s3 { top: -6px; left: -4px; }

.deck-flying-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  animation: cardDealFly 0.65s infinite ease-out;
}

@keyframes cardDealFly {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.3; }
  50% { transform: translate(-50%, -80%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
}

.dealing-target-badge {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-skip-gulam {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-skip-gulam:hover {
  background: #ffd700;
  color: #0f172a;
  border-color: #ffd700;
}

/* Winner Celebration Proclamation */
.gulam-winner-celebration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.celeb-crown {
  font-size: 2.2rem;
  animation: winnerGlow 1s infinite alternate;
}

.celeb-headline {
  font-family: 'Rozha One', serif;
  font-size: 1.5rem;
  color: #ffd700;
  margin: 0;
}

.celeb-text {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.jack-badge {
  display: inline-block;
  background: #ffd700;
  color: #0f172a;
  font-weight: 900;
  padding: 1px 8px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.btn-proceed-cut {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 22px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.btn-proceed-cut:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6);
}

/* ========================================================
   KHULA HUKUM (OPEN TRUMP) SELECTION MODAL
   ======================================================== */
.khula-hukum-modal-box {
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid #ffd700;
  border-radius: 20px;
  padding: 20px 24px;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
  z-index: 50;
  animation: popSpeech 0.3s ease-out;
}

.khula-hukum-title {
  font-family: 'Rozha One', serif;
  font-size: 1.4rem;
  color: #ffd700;
  margin: 4px 0;
}

.khula-hukum-sub {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0 0 14px;
  line-height: 1.45;
}

.khula-suit-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-khula-suit {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.btn-khula-suit:hover {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
  transform: translateY(-2px);
}

.suit-sym {
  font-size: 1.6rem;
}

.ver-badge-gold {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}


/* ========================================================
   PRE-GAME COUNTDOWN MODAL (5, 4, 3, 2, 1 -> GULAM PEES 3, 2, 1)
   ======================================================== */
.pregame-countdown-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  animation: fadeIn 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pregame-countdown-backdrop.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.pregame-countdown-window {
  background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #0f172a 75%);
  border: 2.5px solid #ffd700;
  border-radius: 28px;
  padding: 34px 40px;
  max-width: 520px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.4), inset 0 0 30px rgba(255, 215, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.pregame-countdown-window::before {
  content: "🎴";
  position: absolute;
  font-size: 16rem;
  opacity: 0.04;
  top: -20px;
  right: -30px;
  pointer-events: none;
}

.countdown-ver-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.25);
}

.countdown-main-heading {
  font-family: 'Rozha One', serif;
  font-size: 1.8rem;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

.countdown-sub-heading {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
  max-width: 400px;
}

.countdown-circle-visual {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(15, 23, 42, 0.8) 70%);
  border: 3px solid #ffd700;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
  position: relative;
}

.countdown-giant-number {
  font-family: 'Rozha One', 'Cinzel', serif;
  font-size: 4.8rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 20px #ffd700, 0 4px 10px rgba(0, 0, 0, 0.9);
  line-height: 1;
  animation: countdownPop 0.85s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes countdownPop {
  0% { transform: scale(0.3); opacity: 0; filter: blur(4px); }
  40% { transform: scale(1.2); opacity: 1; filter: blur(0); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.countdown-phase-tag {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #38bdf8;
}

.btn-skip-countdown {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-skip-countdown:hover {
  background: #ffd700;
  color: #0f172a;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* ========================================================
   TAASH KI GADDI ON THE SIDE (PHYSICAL 3D CARD DECK)
   ======================================================== */
.taash-gaddi-side-widget {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 35;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  user-select: none;
}

.taash-gaddi-side-widget:hover {
  transform: translateY(-2px);
  border-color: #ffd700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.4);
}

/* 3D Isometric Card Deck Stack */
.gaddi-deck-isometric {
  position: relative;
  width: 50px;
  height: 72px;
  perspective: 600px;
  flex-shrink: 0;
}

.gaddi-layer {
  position: absolute;
  width: 48px;
  height: 68px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 6px;
  box-shadow: -1px 1px 0 #b45309, -2px 2px 0 #78350f, 0 4px 8px rgba(0,0,0,0.4);
}
.gaddi-layer.l1 { bottom: 0; left: 0; }
.gaddi-layer.l2 { bottom: 2px; left: -1px; }
.gaddi-layer.l3 { bottom: 4px; left: -2px; }
.gaddi-layer.l4 { bottom: 6px; left: -3px; }
.gaddi-layer.l5 { bottom: 8px; left: -4px; }

.gaddi-top-card {
  position: absolute;
  bottom: 10px;
  left: -5px;
  width: 48px;
  height: 68px;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border: 1.5px solid #ffd700;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gaddi-cardback-inner {
  width: 86%;
  height: 88%;
  border: 1px solid rgba(255, 215, 0, 0.6);
  border-radius: 4px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gaddi-cardback-inner::after {
  content: "🎴";
  font-size: 1.3rem;
  filter: drop-shadow(0 0 4px #ffd700);
}

.gaddi-meta-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gaddi-header {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gaddi-icon {
  font-size: 0.95rem;
}

.gaddi-title {
  font-family: 'Rozha One', serif;
  font-size: 0.88rem;
  color: #ffd700;
  white-space: nowrap;
}

.gaddi-count-pill {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 7px;
  border-radius: 6px;
  width: fit-content;
}

.gaddi-status-tag {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* Dealing Card Animation (from Deck) */
.gaddi-dealing-active .gaddi-top-card {
  animation: gaddiDealPulse 0.4s ease-out;
}

@keyframes gaddiDealPulse {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.08); filter: drop-shadow(0 0 10px #ffd700); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  .taash-gaddi-side-widget {
    top: 6px;
    left: 8px;
    padding: 6px 10px;
    gap: 8px;
  }
  .gaddi-deck-isometric {
    width: 38px;
    height: 54px;
  }
  .gaddi-layer, .gaddi-top-card {
    width: 36px;
    height: 52px;
  }
  .gaddi-title {
    font-size: 0.78rem;
  }
  .countdown-circle-visual {
    width: 110px;
    height: 110px;
  }
  .countdown-giant-number {
    font-size: 3.8rem;
  }
  .pregame-countdown-window {
    padding: 24px 20px;
  }
}

/* ========================================================
   ACTIVE TRUMP HIGHLIGHT & CARD BADGES
   ======================================================== */
.active-trump-highlight {
  border: 2.5px solid #fbbf24 !important;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.95), inset 0 0 10px rgba(251, 191, 36, 0.4) !important;
  transform: translateY(-8px) scale(1.03) !important;
  z-index: 15 !important;
  transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
}

.card-corner-badge.active-trump-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: 1.5px solid #ffd700;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.85);
  font-weight: 900;
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 6px;
  top: 3px;
  right: 3px;
  position: absolute;
  letter-spacing: 0.3px;
  animation: pulse 1.4s infinite alternate;
  z-index: 20;
}

.trick-trump-cut-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #fef08a;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.7);
  white-space: nowrap;
  z-index: 25;
  animation: popIn 0.3s ease-out;
}

/* ========================================================
   CARDBACK ON TABLE & GADDI WIDGET
   ======================================================== */
.gaddi-top-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.6);
  background: #0f172a;
}
.gaddi-top-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bot-mini-card {
  width: 14px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: #0f172a;
}
.bot-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================================
   PHYSICAL CENTER HEAP CLUSTER (CARDS ON TABLE)
   ======================================================== */
.center-table-heap-cluster {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  animation: fadeIn 0.35s ease-out;
}

.heap-cards-spread {
  position: relative;
  width: 140px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heap-spread-card {
  position: absolute;
  width: 52px;
  height: 76px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.5);
  background: #fff;
  overflow: hidden;
  transition: all 0.35s ease;
}

.heap-spread-card.heap-has-dehla {
  border: 2px solid #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.95);
  z-index: 10;
}

.heap-spread-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.heap-floating-badge {
  margin-top: 6px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1.5px solid #f59e0b;
  border-radius: 20px;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #f8fafc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 10px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}

.heap-floating-badge strong {
  color: #fbbf24;
}

.heap-badge-sub {
  font-size: 0.68rem;
  color: #94a3b8;
}

/* ========================================================
   ULTRA-PREMIUM DEHLA PAKAD MOBILE & DESKTOP ARENA LAYOUT
   ======================================================== */

/* ========================================================
   ULTRA-PREMIUM DEHLA PAKAD MOBILE & DESKTOP ARENA LAYOUT
   ======================================================== */

.dehla-arena-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  gap: 6px;
  flex: 1;
}

/* Master Baithak Felt for Dehla Pakad */
.felt-surface.dehla-felt {
  position: relative;
  background: radial-gradient(ellipse at 50% 50%, #064e3b 0%, #022c22 75%, #011a12 100%);
  border: 3px solid #b45309;
  outline: 2px solid #ffd700;
  outline-offset: -5px;
  border-radius: 28px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), 0 12px 35px rgba(0, 0, 0, 0.6);
  min-height: 440px;
  height: 470px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Symmetrical Top Row */
.felt-surface.dehla-felt .taash-gaddi-side-widget {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 35;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(255, 215, 0, 0.6);
  border-radius: 20px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #ffd700;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: default;
  user-select: none;
}

.felt-surface.dehla-felt .seat-top {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
}

.felt-surface.dehla-felt .seat-top .bot-card-box {
  width: auto;
  min-width: 85px;
  max-width: 140px;
  padding: 3px 8px;
  border-radius: 12px;
}
.felt-surface.dehla-felt .seat-top .bot-top-row {
  flex-direction: row;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.felt-surface.dehla-felt .seat-top .bot-avatar {
  font-size: 1.1rem;
}
.felt-surface.dehla-felt .seat-top .bot-name {
  font-size: 0.68rem;
  max-width: 75px;
}

.felt-surface.dehla-felt .royal-trump-pedestal {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 35;
  width: auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Trump Pill Widget */
.pedestal-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(255, 215, 0, 0.6);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  color: #ffd700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  max-width: 100px;
  white-space: nowrap;
}
.pedestal-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
}
.pedestal-pill.unlocked {
  border-color: #ffd700;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
}
.ped-info {
  font-size: 0.65rem;
  opacity: 0.8;
}

/* Unified Score & Heap Ribbon */
.dehla-unified-hud-bar {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  width: 94%;
  max-width: 420px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 14px;
  padding: 2px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hud-team {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hud-team1 .hud-label { color: #ffd700; }
.hud-team2 .hud-label { color: #f87171; }
.hud-mendi { color: #38bdf8; font-weight: 900; }
.hud-tricks { color: #94a3b8; font-size: 0.65rem; }

.hud-heap-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.68rem;
  color: #fef08a;
}
.hud-heap-pill strong { color: #ffd700; }
.hud-heap-pill.active-heap { animation: pulse 1.2s infinite alternate; }

/* Side Seats */
.felt-surface.dehla-felt .seat-left {
  position: absolute;
  left: 8px;
  top: 57%;
  transform: translateY(-50%);
  z-index: 30;
}

.felt-surface.dehla-felt .seat-right {
  position: absolute;
  right: 8px;
  top: 57%;
  transform: translateY(-50%);
  z-index: 30;
}

.felt-surface.dehla-felt .bot-card-box {
  width: 72px;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.felt-surface.dehla-felt .bot-top-row {
  flex-direction: column;
  gap: 1px;
  align-items: center;
}
.felt-surface.dehla-felt .bot-avatar {
  font-size: 1.15rem;
}
.felt-surface.dehla-felt .bot-name {
  font-size: 0.65rem;
  max-width: 66px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.felt-surface.dehla-felt .bot-role-tag {
  display: none;
}
.felt-surface.dehla-felt .bot-hand-count {
  font-size: 0.6rem;
  padding: 1px 4px;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 4px;
  color: #38bdf8;
  font-weight: 800;
}
.felt-surface.dehla-felt .role-badge-dealer,
.felt-surface.dehla-felt .role-badge-cutter {
  font-size: 0.52rem;
  padding: 1px 4px;
}
.felt-surface.dehla-felt .bot-fanned-cards {
  display: none !important;
}

/* Central Trick Arena Ring (Dead Center!) */
.trick-arena-ring {
  width: 200px;
  height: 170px;
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.empty-trick-tag {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
}

.trick-played-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.trick-played-card .card-item {
  width: 50px !important;
  height: 74px !important;
}
.trick-played-card.pos-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.trick-played-card.pos-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.trick-played-card.pos-left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.trick-played-card.pos-right {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.player-trick-owner {
  font-size: 0.55rem;
  font-weight: 800;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.75);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  white-space: nowrap;
}

/* Center Table Accumulated Heap */
.center-table-heap-cluster {
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  pointer-events: none;
  animation: fadeIn 0.3s ease-out;
}

/* Gulam Pees Table Badge (Compact, non-blocking) */
.gulam-table-badge {
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #ffd700;
  border-radius: 16px;
  padding: 8px 14px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  max-width: 250px;
  width: 88%;
  animation: popIn 0.3s ease;
}
.gt-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}
.gt-crown { font-size: 1.1rem; }
.gt-title {
  font-family: 'Rozha One', serif;
  font-size: 0.88rem;
  color: #ffd700;
}
.gt-target {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 800;
  margin-bottom: 6px;
}
.btn-skip-gulam-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #cbd5e1;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-skip-gulam-pill:hover {
  background: #ffd700;
  color: #000;
}
.gt-winner-headline {
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffd700;
  margin-bottom: 2px;
}
.gt-winner-desc {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.btn-proceed-cut-pill {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  border: none;
  color: #000;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 14px;
  cursor: pointer;
  animation: pulse 1.2s infinite alternate;
}

/* Deck Cut Prompt Box */
.deck-cut-prompt-box {
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #38bdf8;
  border-radius: 16px;
  padding: 10px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  max-width: 240px;
  width: 85%;
}
.dcp-title {
  font-family: 'Rozha One', serif;
  font-size: 0.95rem;
  color: #38bdf8;
}
.dcp-sub {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin: 4px 0 8px;
}
.dcp-waiting {
  font-size: 0.75rem;
  color: #ffd700;
  font-weight: 800;
}
.btn-cut-deck-interactive {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  animation: pulse 1.2s infinite alternate;
}

/* Trump Crown Pip on Card */
.trump-crown-pip {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 11px;
  line-height: 1;
  filter: drop-shadow(0 0 3px #ffd700);
  z-index: 10;
}

/* Bottom Player Seat & Fan */
.seat-bottom {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 18px;
  padding: 8px 10px;
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.player-hud-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 4px;
}
.player-info-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hand-sort-buttons {
  display: flex;
  gap: 4px;
}
.sort-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.human-hand-rack {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding: 10px 6px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.human-hand-rack::-webkit-scrollbar {
  display: none;
}
.human-hand-rack .card-item {
  width: 64px !important;
  height: 96px !important;
  margin-left: var(--hand-card-margin, -24px);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.25s ease;
}
.human-hand-rack .card-item:first-child {
  margin-left: 0 !important;
}
.human-hand-rack .card-item:hover,
.human-hand-rack .card-item:focus,
.human-hand-rack .card-item:active {
  transform: translateY(-22px) scale(1.14) !important;
  z-index: 60 !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.65), 0 0 18px rgba(255, 215, 0, 0.9);
}

/* Mobile Screen Responsive Overrides */
@media (max-width: 650px) {
  .dehla-arena-layout {
    width: 100%;
    max-width: 100vw;
    gap: 4px;
    padding: 0 4px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .felt-surface.dehla-felt {
    width: 100%;
    max-width: 100%;
    height: 420px;
    min-height: 400px;
    border-radius: 20px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .seat-bottom {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .human-hand-rack {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .human-hand-rack .card-item {
    width: 64px !important;
    height: 96px !important;
    margin-left: var(--hand-card-margin, -28px);
  }
}

/* ========================================================
   HOST JOIN REQUEST APPROVAL MODAL (80s/90s Adda Pattern)
   ======================================================== */
#join-request-approval-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.join-request-dialog {
  background: linear-gradient(145deg, #181329 0%, #0d0a17 100%);
  border: 2px solid #ffd700;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.45), 0 20px 50px rgba(0, 0, 0, 0.9);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.join-request-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.bell-ring-icon {
  font-size: 1.25rem;
  display: inline-block;
  animation: bellToll 1s infinite ease-in-out;
}

@keyframes bellToll {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(18deg); }
  40%, 80% { transform: rotate(-18deg); }
}

.join-request-heading {
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 16px 0;
  font-weight: 800;
}

.join-request-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.join-applicant-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: left;
}

.applicant-photo-box {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.applicant-emoji {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.15);
  border: 2px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.device-type-tag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 0.75rem;
  background: #000;
  border-radius: 50%;
  padding: 1px;
}

.applicant-meta {
  flex: 1;
  min-width: 0;
}

.applicant-name {
  display: block;
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applicant-sub {
  font-size: 0.78rem;
  color: rgba(251, 247, 238, 0.75);
}

.applicant-btn-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.applicant-approve-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid #34d399;
  border-radius: 12px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.applicant-approve-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

.applicant-decline-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.applicant-decline-btn:hover {
  background: rgba(239, 68, 68, 0.3);
}

.admit-all-giant-btn {
  width: 100%;
  background: linear-gradient(135deg, #ffd700 0%, #b38f00 100%);
  color: #09080e;
  border: none;
  border-radius: 14px;
  padding: 11px;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  margin-bottom: 10px;
}

.join-dismiss-link {
  background: none;
  border: none;
  color: rgba(251, 247, 238, 0.6);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 6px;
}

.join-dismiss-link:hover {
  color: #fff;
}

/* ========================================================
   WAITING FOR ADMISSION / MOBILE SCREEN STYLES
   ======================================================== */
.mobile-admission-sheet {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 2px solid #ffd700;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.2);
  padding: 24px 20px;
  max-width: 420px;
  width: 92%;
  margin: 30px auto;
  text-align: center;
  box-sizing: border-box;
}

.pad-status-indicator {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 14px;
}

.pad-status-indicator.pulse-gold {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid #ffd700;
  color: #ffd700;
  animation: pulseGold 2s infinite ease-in-out;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.7); }
}

.mobile-profile-avatar-giant {
  width: 72px;
  height: 72px;
  line-height: 72px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.15);
  border: 2px solid #ffd700;
  font-size: 2.5rem;
  margin: 0 auto 10px;
}

.spinner-ring-royal {
  font-size: 2.8rem;
  margin: 12px 0;
  animation: floatBounce 2s infinite ease-in-out;
}

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



/* ========================================================
   DESI MASTER DEMO & MULTI-LANGUAGE COACH STYLES (v18.0)
   ======================================================== */

.desi-demo-backdrop {
  z-index: 2500 !important;
  background: rgba(3, 7, 18, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.25s ease-out;
}

.desi-demo-window {
  max-width: 920px !important;
  width: 96% !important;
  max-height: 94vh !important;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 60%, #090d16 100%) !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.25) !important;
  border-radius: 24px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  color: #f8fafc;
}

/* Modal Header */
.desi-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  gap: 12px;
  flex-wrap: wrap;
}

.desi-demo-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desi-demo-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
}

.desi-demo-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
}

.desi-demo-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

.desi-demo-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Royal Game Picker inside Demo */
.desi-demo-game-picker {
  background: rgba(30, 41, 59, 0.9);
  color: #f1f5f9;
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.desi-demo-game-picker:hover, .desi-demo-game-picker:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Native Language Picker */
.desi-demo-lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 4px 10px;
}

.desi-lang-select {
  background: transparent;
  color: #f1f5f9;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.desi-lang-select option {
  background: #0f172a;
  color: #f8fafc;
}

.desi-demo-close-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.desi-demo-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Navigation Tabs */
.desi-demo-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
  gap: 8px;
  overflow-x: auto;
}

.desi-demo-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #94a3b8;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.desi-demo-tab-btn:hover {
  color: #f8fafc;
}

.desi-demo-tab-btn.active {
  color: #ffd700;
  border-bottom-color: #ffd700;
  background: rgba(255, 215, 0, 0.06);
}

/* Modal Body */
.desi-demo-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

/* TAB 1: Live Interactive Demo Arena */
.desi-live-demo-arena {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-playback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 14px;
  padding: 8px 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-step-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.demo-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

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

.demo-step-round-badge {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.demo-playback-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-ctrl-btn {
  background: rgba(51, 65, 85, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-ctrl-btn:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  transform: scale(1.08);
}

.demo-ctrl-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.demo-ctrl-btn.demo-btn-primary {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #ffd700;
  color: #ffffff;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
}

/* Speed Pills */
.demo-speed-pills {
  display: flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.8);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-speed-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}

.demo-speed-pill.active {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Table Simulator Arena */
.demo-sim-table {
  position: relative;
  height: 280px;
  background: radial-gradient(circle at center, #15803d 0%, #166534 60%, #14532d 100%);
  border: 4px solid #78350f;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Player Nodes in Sim Table */
.sim-player {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

.sim-player-top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.sim-player-left {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.sim-player-right {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.sim-player-bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.sim-avatar {
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid #ffd700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.sim-avatar.user-avatar {
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.85);
}

.sim-player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sim-player-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f1f5f9;
  background: rgba(0, 0, 0, 0.55);
  padding: 1px 6px;
  border-radius: 6px;
}

.sim-mini-hand {
  font-size: 0.8rem;
  letter-spacing: -2px;
}

/* Floating Thought Bubbles */
.sim-thought-bubble {
  position: absolute;
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  animation: popIn 0.25s ease-out;
  z-index: 25;
}

.bubble-top { top: 48px; }
.bubble-left { left: 48px; }
.bubble-right { right: 48px; }
.bubble-bottom { bottom: 48px; }

@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

/* Center Table Arena (Played Cards) */
.sim-center-arena {
  width: 220px;
  height: 140px;
  border: 1px dashed rgba(255, 215, 0, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}

.sim-felt-cloth {
  text-align: center;
  width: 100%;
}

.sim-table-title {
  font-size: 0.72rem;
  color: rgba(255, 215, 0, 0.6);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sim-played-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
}

.sim-card-chip {
  background: #ffffff;
  color: #0f172a;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #cbd5e1;
  animation: cardDrop 0.2s ease-out;
}

@keyframes cardDrop {
  from { transform: translateY(-10px) scale(0.8); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.sim-card-chip.you {
  border-color: #f59e0b;
  background: #fffbeb;
}

.sim-card-player-tag {
  font-size: 0.62rem;
  color: #64748b;
  text-transform: uppercase;
}

.sim-card-text {
  font-size: 0.82rem;
  color: #0f172a;
}

.sim-empty-trick-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Coach Commentary Box */
.demo-coach-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 16px;
  padding: 12px 16px;
}

.demo-coach-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border: 2px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.demo-coach-bubble {
  flex: 1;
}

.demo-coach-speaker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.demo-coach-speaker strong {
  color: #ffd700;
  font-size: 0.92rem;
}

.demo-coach-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
}

.demo-coach-text strong {
  display: block;
  font-size: 0.95rem;
  color: #f8fafc;
  margin-bottom: 4px;
}

.demo-coach-text p {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* TAB 2: Rules Guide View */
.desi-rules-guide-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rules-overview-card {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 14px;
  padding: 14px 18px;
}

.rules-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.rules-overview-text {
  margin: 0;
  font-size: 1rem;
  color: #f1f5f9;
  line-height: 1.5;
  font-weight: 600;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
}

.rule-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.2s;
}

.rule-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(30, 41, 59, 0.8);
}

.rule-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.7);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.rule-card-content {
  flex: 1;
}

.rule-card-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffd700;
}

.rule-card-desc {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.rules-live-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 14px;
  padding: 12px 18px;
  gap: 14px;
  flex-wrap: wrap;
}

.rules-live-callout strong {
  display: block;
  color: #93c5fd;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.rules-live-callout p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.85rem;
}

.btn-switch-to-live {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid #60a5fa;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-switch-to-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* TAB 3: Pro Tips View */
.desi-tips-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tips-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 14px;
  padding: 14px 18px;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.2s;
}

.tip-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: #ffd700;
}

.tip-card-number {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 2px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.tip-card-text {
  font-size: 0.92rem;
  color: #f1f5f9;
  line-height: 1.5;
}

.tips-action-box {
  margin-top: 8px;
  text-align: center;
}

/* Modal Footer */
.desi-demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
  flex-wrap: wrap;
}

.btn-play-real-match {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid #34d399;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: all 0.2s;
}

.btn-play-real-match:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Game Card Demo Button in Lobby */
.btn-lobby-demo {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid #3b82f6 !important;
  color: #60a5fa !important;
  border-radius: 10px !important;
  padding: 6px 12px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.btn-lobby-demo:hover {
  background: #3b82f6 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

.btn-demo-action {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.3)) !important;
  border-color: #60a5fa !important;
  color: #93c5fd !important;
}

.btn-demo-action:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* Header HUD Demo & Language Buttons */
.btn-hud-demo {
  background: rgba(59, 130, 246, 0.2) !important;
  border: 1px solid #60a5fa !important;
  color: #93c5fd !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.btn-hud-demo:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5) !important;
}

.btn-hud-lang {
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  color: #ffd700 !important;
  padding: 6px 10px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .desi-demo-window {
    width: 98% !important;
    max-height: 96vh !important;
    border-radius: 16px !important;
  }

  .desi-demo-header {
    padding: 12px 14px;
  }

  .desi-demo-title {
    font-size: 1.15rem;
  }

  .demo-sim-table {
    height: 250px;
  }

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

  .demo-playback-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .demo-playback-controls {
    justify-content: center;
  }

  .demo-speed-pills {
    justify-content: center;
  }
}
