/**
 * Classic Solitaire Lounge - Main Stylesheet
 * Ultra-premium, modern, responsive card game aesthetic for iOS & Android
 */

:root {
  --felt-green: #155724;
  --felt-dark: #0f3d19;
  --gold-primary: #f5c518;
  --gold-glow: rgba(245, 197, 24, 0.45);
  --card-width: 68px;
  --card-height: 96px;
  --card-radius: 8px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root {
    --card-width: 90px;
    --card-height: 126px;
    --card-radius: 10px;
  }
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-main);
  background-color: #0d2818;
  color: #ffffff;
}

/* Background Canvas Overlay */
#weather-canvas, #fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

#fireworks-canvas {
  z-index: 200;
}

/* App Container */
.solitaire-app-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  background: radial-gradient(circle at center, #1e6b37 0%, #0d3810 70%, #08240a 100%);
  transition: background 0.4s ease;
}

/* --- TOP SPONSORED BANNER (DISMISSIBLE / IAP REMOVABLE) --- */
.sponsored-top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #18181b, #27272a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  font-size: 11px;
  color: #a1a1aa;
  z-index: 50;
  min-height: 34px;
}

.banner-sponsor-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-pill {
  background: #3f3f46;
  color: #fbbf24;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
}

.banner-action-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* --- APP HEADER & LUXURY HUD --- */
.lounge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(10, 25, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  z-index: 40;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Cross-Link Pill to Desi Games */
.cross-link-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  color: #fef08a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 16px;
  border: 1px solid rgba(254, 240, 138, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background 0.2s;
}

.cross-link-btn:hover {
  transform: scale(1.04);
}

.new-games-btn {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #fff !important;
  border: 1px solid rgba(196, 181, 253, 0.5) !important;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.new-games-btn:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9) !important;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.6);
}

.new-games-sparkle {
  font-size: 13px;
  animation: bounce 1.8s infinite;
}

.new-badge-pill {
  background: #ef4444;
  color: #fff;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Coin Balance Widget & Dedicated Store Below Coins */
.hud-coin-store-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.coin-counter-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(245, 197, 24, 0.5);
  padding: 3px 9px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fcd34d;
}

.hud-store-sub-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  border: none;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 8px;
  cursor: pointer;
  line-height: 1.1;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hud-store-sub-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: scale(1.03);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.exit-btn {
  background: rgba(220, 38, 38, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
}

.exit-btn:hover {
  background: rgba(220, 38, 38, 0.6) !important;
  border-color: #ef4444 !important;
}

/* HUD Info Bar (Score, Moves, Timer) */
.hud-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 30;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-label {
  color: #9ca3af;
  font-size: 11px;
}

.stat-value {
  color: #f3f4f6;
  font-family: monospace;
  font-size: 13px;
  font-weight: bold;
}

.stat-badge {
  background: rgba(245, 197, 24, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 197, 24, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
}

/* Fast Nav Tabs for Game Switcher */
.games-tab-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  scrollbar-width: none;
}
.games-tab-bar::-webkit-scrollbar { display: none; }

.game-nav-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.game-nav-tab.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  border-color: #fef08a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.game-nav-tab.pinned-default {
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.game-nav-tab.pinned-default::after {
  content: ' 📌';
  font-size: 10px;
}

/* --- GAME TABLEPLAY AREA --- */
.game-table-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  container-name: tableArea;
}

/* --- PLAYING CARD COMPONENT --- */
.solitaire-card {
  width: var(--card-width);
  height: var(--card-height);
  border-radius: var(--card-radius);
  background: #ffffff;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  touch-action: none;
  overflow: hidden;
}

.solitaire-card.face-down {
  background: #1e3a8a;
  border: 2px solid #ffffff;
  overflow: hidden;
}

.card-back-pattern {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 6px, transparent 6px, transparent 12px),
              repeating-linear-gradient(-45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 6px, transparent 6px, transparent 12px);
}

.solitaire-card.face-up {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #d1d5db;
}

.solitaire-card.red { color: #dc2626; }
.solitaire-card.black { color: #111827; }

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px 4px;
}

.card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.card-rank {
  font-size: 14px;
  font-weight: 800;
}

.card-suit {
  font-size: 12px;
}

.card-corner.bottom-right {
  align-self: flex-end;
  transform: rotate(180deg);
}

.card-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ace-pip {
  font-size: 28px;
}

.court-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.court-icon {
  font-size: 22px;
}

.court-suit {
  font-size: 11px;
}

.pip-grid {
  font-size: 18px;
}

/* Card Slot & Placeholders */
.card-slot {
  width: var(--card-width);
  height: var(--card-height);
  border-radius: var(--card-radius);
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.18);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 20px;
  font-weight: bold;
}

.f-suit-watermark {
  font-size: 26px;
  opacity: 0.3;
}

.stock-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 8px;
}

/* Empty stock reload icon */
.empty-stock-reload {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #10b981;
  cursor: pointer;
  user-select: none;
}

.empty-stock-reload .recycle-icon {
  font-size: 22px;
  animation: pulse 2s infinite;
}

.empty-stock-reload .recycle-label {
  font-size: 9px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.5px;
}

/* --- KLONDIKE LAYOUT --- */
.klondike-board {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  --k-col-width: min(calc((100vw - 36px) / 7), 68px);
  --k-col-width: min(calc((100cqw - 30px) / 7), 68px);
  --k-card-height: calc(var(--k-col-width) * 1.42);
}

.board-top-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  min-height: var(--k-card-height);
  position: relative;
  z-index: 5;
}

.stock-waste-group {
  display: flex;
  gap: 6px;
  min-height: var(--k-card-height);
  flex-shrink: 0;
}

.klondike-board .foundations-group {
  display: flex;
  gap: 6px;
  min-height: var(--k-card-height);
  flex-shrink: 0;
}

.klondike-board .card-slot {
  width: var(--k-col-width);
  min-width: 44px;
  max-width: 68px;
  height: var(--k-card-height);
  min-height: 62px;
  max-height: 97px;
  aspect-ratio: 5 / 7.1;
  border-radius: clamp(4px, 1.2vw, 8px);
  flex: 0 0 var(--k-col-width);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.klondike-board .card-slot .solitaire-card,
.klondike-board .waste-slot .solitaire-card,
.klondike-board .stock-slot .solitaire-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 7.1;
  border-radius: inherit;
  box-sizing: border-box;
}

.klondike-board .stock-slot {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.klondike-board .stock-slot .solitaire-card {
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.5),
    2px 2px 0 rgba(0, 0, 0, 0.4),
    3px 3px 0 rgba(255, 255, 255, 0.2),
    4px 4px 0 rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease;
}

.klondike-board .stock-slot:active .solitaire-card {
  transform: scale(0.96);
}

.waste-slot {
  position: relative;
}

.waste-slot .solitaire-card {
  position: absolute;
  top: 0;
  left: 0;
}

.tableau-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex: 1;
  position: relative;
  min-height: 0;
}

.tableau-col {
  width: var(--k-col-width);
  min-width: 44px;
  max-width: 68px;
  flex: 0 0 var(--k-col-width);
  position: relative;
  height: 100%;
  min-height: 0;
  flex-shrink: 0;
}

.tableau-col .solitaire-card {
  width: 100%;
  height: var(--k-card-height);
  max-height: 97px;
  aspect-ratio: 5 / 7.1;
  border-radius: clamp(4px, 1.2vw, 8px);
  position: absolute;
  left: 0;
}

/* --- DRAG & DROP ELEVATION --- */
.card-being-dragged {
  opacity: 0.25 !important;
}

.dragging-card-stack {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
  transform: scale(1.04);
  transition: transform 0.05s;
}

.dragging-card-stack .solitaire-card {
  position: absolute;
  left: 0;
}

/* Hint Highlighting */
.hint-highlight {
  box-shadow: 0 0 0 3px #10b981, 0 0 20px #10b981 !important;
  animation: pulse 1s infinite alternate !important;
}

/* Card Selection & Multi-Choice Drop Targets */
.card-selected {
  outline: 3px solid #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.85), 0 12px 24px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-6px) scale(1.03) !important;
  z-index: 50 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.spider-col.spider-valid-drop-target,
.tableau-col.tableau-valid-drop-target {
  box-shadow: inset 0 0 0 2px #38bdf8, 0 0 16px rgba(56, 189, 248, 0.6) !important;
  border-radius: 8px !important;
  animation: spiderTargetPulse 1.2s infinite alternate !important;
  cursor: pointer !important;
}

@keyframes spiderTargetPulse {
  0% { box-shadow: inset 0 0 0 2px #38bdf8, 0 0 12px rgba(56, 189, 248, 0.4); }
  100% { box-shadow: inset 0 0 0 3px #06b6d4, 0 0 22px rgba(6, 182, 212, 0.85); }
}

/* --- BOTTOM CONTROLS & BOOSTER BAR --- */
.lounge-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(10, 25, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  z-index: 40;
}

.boosters-group, .actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booster-btn, .action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
}

.booster-btn:active, .action-btn:active {
  transform: scale(0.92);
}

.booster-icon, .action-icon {
  font-size: 18px;
}

.booster-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 10px;
  border: 1px solid #fff;
}

.auto-collect-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid #6ee7b7;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  animation: pulse 1.5s infinite;
}

/* Mascot Coach Quick Pill */
.coach-quick-btn {
  background: rgba(245, 197, 24, 0.2);
  border: 1px solid rgba(245, 197, 24, 0.5);
  color: #fef08a;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* Left-Handed Mode */
body.left-handed .board-top-row {
  flex-direction: row-reverse;
}

/* --- SPIDER SOLITAIRE BOARD --- */
.spider-board {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.spider-board {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  --sp-col-width: min(calc((100vw - 30px) / 10), 52px);
  --sp-col-width: min(calc((100cqw - 24px) / 10), 52px);
  --sp-card-height: calc(var(--sp-col-width) * 1.42);
}

.spider-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  min-height: var(--sp-card-height);
}

.spider-stock-container {
  display: flex;
  align-items: center;
  min-height: var(--sp-card-height);
}

.spider-stock-container .solitaire-card,
.spider-stock-container .card-slot {
  width: var(--sp-col-width);
  max-width: 52px;
  height: var(--sp-card-height);
  max-height: 74px;
  aspect-ratio: 5 / 7.1;
  border-radius: clamp(3px, 1vw, 6px);
  flex-shrink: 0;
  position: relative;
}

.spider-foundations {
  display: flex;
  gap: 2px;
  min-height: var(--sp-card-height);
}

.spider-foundations .spider-f-slot {
  width: var(--sp-col-width);
  max-width: 52px;
  height: var(--sp-card-height);
  max-height: 74px;
  aspect-ratio: 5 / 7.1;
  border-radius: clamp(3px, 1vw, 6px);
  padding: 0;
  border-width: 1px;
  flex-shrink: 0;
  position: relative;
}

.spider-foundations .spider-f-slot .solitaire-card,
.spider-stock-container .card-slot .solitaire-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.spider-foundations .spider-f-slot .slot-placeholder {
  font-size: clamp(10px, 2.2vw, 15px);
}

.spider-tableau-row {
  display: flex;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.spider-col {
  width: var(--sp-col-width);
  max-width: 52px;
  position: relative;
  height: 100%;
  min-height: 0;
  flex-shrink: 0;
}

.spider-col .solitaire-card {
  width: 100% !important;
  height: var(--sp-card-height) !important;
  max-height: 74px !important;
  aspect-ratio: 5 / 7.1 !important;
  border-radius: clamp(3px, 1vw, 6px);
  position: absolute;
  left: 0;
}

/* Spider Card Typography & Elements Scaling */
.spider-board .card-inner {
  padding: 1px 2px;
}

.spider-board .card-rank {
  font-size: clamp(9px, 2.4vw, 12px);
}

.spider-board .card-suit {
  font-size: clamp(7px, 2vw, 10px);
}

.spider-board .theme-suit-badge {
  width: 13px;
  height: 13px;
  top: 2px;
  right: 2px;
  font-size: 8px;
}

.spider-board .themed-watermark {
  display: none;
}

.spider-board .pip-grid {
  font-size: 9px;
}

.spider-board .ace-pip {
  font-size: 16px;
}

/* --- FREECELL BOARD --- */
.freecell-board {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  --fc-col-width: min(calc((100vw - 32px) / 8), 60px);
  --fc-col-width: min(calc((100cqw - 28px) / 8), 60px);
  --fc-card-height: calc(var(--fc-col-width) * 1.42);
}

.freecell-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  min-height: var(--fc-card-height);
}

.freecells-group, .freecell-board .foundations-group {
  display: flex;
  gap: 3px;
  min-height: var(--fc-card-height);
}

.freecell-board .card-slot {
  width: var(--fc-col-width);
  max-width: 60px;
  height: var(--fc-card-height);
  max-height: 85px;
  aspect-ratio: 5 / 7.1;
  border-radius: clamp(3px, 1vw, 7px);
  flex-shrink: 0;
  position: relative;
}

.freecell-board .card-slot .solitaire-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.freecell-board .slot-placeholder {
  font-size: clamp(9px, 2.2vw, 14px);
}

.freecell-tableau-row {
  display: flex;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.freecell-col {
  width: var(--fc-col-width);
  max-width: 60px;
  position: relative;
  height: 100%;
  min-height: 0;
  flex-shrink: 0;
}

.freecell-col .solitaire-card {
  width: 100% !important;
  height: var(--fc-card-height) !important;
  max-height: 85px !important;
  aspect-ratio: 5 / 7.1 !important;
  border-radius: clamp(3px, 1vw, 7px);
  position: absolute;
  left: 0;
}

/* FreeCell Typography Scaling */
.freecell-board .card-inner {
  padding: 2px 3px;
}

.freecell-board .card-rank {
  font-size: clamp(10px, 2.6vw, 13px);
}

.freecell-board .card-suit {
  font-size: clamp(8px, 2.2vw, 11px);
}

.freecell-board .theme-suit-badge {
  width: 14px;
  height: 14px;
  top: 2px;
  right: 2px;
  font-size: 9px;
}

.freecell-board .pip-grid {
  font-size: 11px;
}

.freecell-board .ace-pip {
  font-size: 18px;
}

/* --- LANDSCAPE ORIENTATION (Auto-Optimize for Mobile Wide Screens) --- */
@media (orientation: landscape) and (max-height: 550px) {
  .lounge-header {
    padding: 3px 12px;
  }
  .lounge-logo {
    font-size: 14px;
  }
  .games-tab-bar {
    padding: 2px 8px;
    gap: 4px;
  }
  .game-nav-tab {
    padding: 2px 8px;
    font-size: 10px;
  }
  .game-table-container {
    padding: 4px 10px;
  }
  .lounge-bottom-bar {
    padding: 4px 12px;
  }
  .booster-btn, .action-btn {
    width: 36px;
    height: 36px;
  }
  .booster-icon, .action-icon {
    font-size: 15px;
  }
  .klondike-board {
    --k-col-w: min(88px, calc((100% - 48px) / 7));
    gap: 8px;
  }
  .spider-board {
    --sp-col-w: min(72px, calc((100% - 45px) / 10));
    gap: 6px;
  }
  .freecell-board {
    --fc-col-w: min(84px, calc((100% - 42px) / 8));
    gap: 6px;
  }
}

/* --- BLACKJACK & TRICK GAME TABLES --- */
.blackjack-table, .trick-game-table {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 16px;
  padding: 16px;
  border: 2px solid rgba(245, 197, 24, 0.35);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Layout adjustments when demo coach overlay is active (prevents occlusion of player cards and controls) */
body.demo-mode-active .blackjack-table {
  justify-content: flex-start !important;
  gap: 8px !important;
  padding-bottom: 240px !important;
  overflow-y: auto !important;
}

body.demo-mode-active .blackjack-table .casino-header {
  margin-bottom: 2px !important;
}

body.demo-mode-active .blackjack-table .casino-felt-felt {
  margin: 4px 0 !important;
}

body.demo-mode-active .blackjack-table .bj-banner {
  font-size: 13px !important;
}

body.demo-mode-active .blackjack-table .bj-message {
  font-size: 14px !important;
  margin-top: 2px !important;
}

body.demo-mode-active .blackjack-table .casino-footer {
  position: relative !important;
  z-index: 10 !important;
  margin-top: 4px !important;
}

body.demo-mode-active .blackjack-table .bj-controls {
  margin-top: 8px !important;
}

body.demo-mode-active .trick-game-table {
  justify-content: flex-start !important;
  gap: 8px !important;
  padding-bottom: 240px !important;
  overflow-y: auto !important;
}

body.demo-mode-active .trick-game-table .trick-table-surface {
  flex: none !important;
  min-height: 140px !important;
}

body.demo-mode-active .trick-game-table .player-seat-bottom {
  position: relative !important;
  z-index: 10 !important;
  margin-top: 4px !important;
}


.dealer-cards, .player-cards {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.bj-banner {
  text-align: center;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 14px;
}

.bj-message {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  margin-top: 8px;
}

.bj-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

.bj-btn {
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.hit-btn { background: #16a34a; color: #fff; }
.stand-btn { background: #dc2626; color: #fff; }
.deal-btn { background: #eab308; color: #111; }

.trick-table-surface {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trick-center-pot {
  display: flex;
  gap: 12px;
  position: relative;
}

.bot-seat {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.bot-north { top: 10px; }
.bot-west { left: 10px; }
.bot-east { right: 10px; }

.player-hand-fanned {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 0;
  justify-content: center;
}

/* --- MODALS & DIALOGS --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-backdrop.victory-modal-backdrop {
  z-index: 2500 !important;
}

.modal-dialog {
  background: #18181b;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.2s ease-out;
}

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

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #fbbf24;
}

.modal-close-btn, .modal-close-circle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}

/* Tasks / Activity Progress */
.activity-progress-card {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 12px;
}

.activity-bar-track {
  width: 100%;
  height: 12px;
  background: #27272a;
  border-radius: 6px;
  position: relative;
}

.activity-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 6px;
}

.milestone-chest {
  position: absolute;
  top: -14px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
}

.chest-25 { left: 25%; }
.chest-50 { left: 50%; }
.chest-100 { left: 100%; }

.milestone-chest small {
  font-size: 10px;
  color: #a1a1aa;
}

.milestone-chest.unlocked span {
  animation: bounce 1.2s infinite;
}

.task-tabs-row {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.task-tab-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-weight: 700;
  cursor: pointer;
}

.task-tab-btn.active {
  color: #fbbf24;
  border-bottom: 2px solid #fbbf24;
}

.task-list-view {
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.task-reward-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
  font-weight: 800;
}

/* Daily 7-day reward */
.daily-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}

.daily-reward-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  position: relative;
}

.daily-reward-card.current {
  border-color: #fbbf24;
  background: rgba(245, 197, 24, 0.1);
}

.day7-special-card {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(220, 38, 38, 0.2));
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.day7-badge {
  color: #fbbf24;
  font-weight: 800;
  font-size: 12px;
}

.claim-btn {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

/* Solitaire Journey */
.journey-scroll-view {
  overflow-y: auto;
  padding: 16px;
  max-height: 60vh;
}

.journey-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.journey-node.current-active {
  border: 1px solid #fbbf24;
  background: rgba(245, 197, 24, 0.12);
}

.node-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fbbf24;
}

.node-details {
  flex: 1;
}

.node-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.node-mode-pill {
  font-size: 10px;
  background: rgba(245, 197, 24, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 197, 24, 0.4);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
}

.node-stars {
  color: #fbbf24;
  font-size: 13px;
}

.node-play-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

/* Style / Cosmetics Modal */
.style-tabs {
  display: flex;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.2);
}

.style-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.style-tab.active {
  color: #fbbf24;
  border-bottom: 2px solid #fbbf24;
}

.style-content-body {
  padding: 16px;
  overflow-y: auto;
  max-height: 60vh;
}

.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cosmetic-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
}

.cosmetic-card.equipped {
  border: 2px solid #10b981;
}

.style-action-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.equip-btn { background: #3b82f6; color: #fff; }
.buy-btn { background: #eab308; color: #111; }
.status-pill.equipped { color: #10b981; font-weight: bold; font-size: 12px; }

/* In-App Purchase Modal */
.iap-graphic-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.2) 0%, transparent 70%);
}

.iap-no-ads-badge, .iap-coins-badge {
  font-size: 20px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 12px;
  background: #27272a;
}

.iap-headline {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
  margin-top: 8px;
}

.iap-subheadline {
  text-align: center;
  font-size: 13px;
  color: #d1d5db;
  padding: 8px 24px;
}

.iap-purchase-btn {
  margin: 16px 24px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.iap-footer-links {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 16px;
}
.iap-footer-links a { color: #9ca3af; }

/* Mascot Coach Tutorial */
.mascot-coach-bubble {
  display: flex;
  gap: 16px;
  padding: 20px;
}

.mascot-avatar {
  font-size: 48px;
}

.mascot-speech h3 {
  font-size: 16px;
  color: #fbbf24;
  margin-bottom: 6px;
}

.mascot-speech p {
  font-size: 13px;
  line-height: 1.5;
  color: #e5e7eb;
}

.tutorial-pagination-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.tut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f3f46;
}

.tut-dot.active {
  background: #fbbf24;
  width: 20px;
  border-radius: 4px;
}

.tutorial-btn-row {
  display: flex;
  justify-content: space-between;
  padding: 0 20px 20px;
}

.tut-nav-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
.tut-nav-btn.primary { background: #16a34a; color: #fff; }

/* Victory Modal */
.victory-trophy-banner {
  font-size: 64px;
  text-align: center;
  margin-top: 16px;
  animation: bounce 1.2s infinite;
}

.victory-title {
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  color: #fbbf24;
  letter-spacing: 2px;
}

.victory-mode {
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
  margin-bottom: 16px;
}

.victory-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 20px 16px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-box.gold-border {
  border: 1px solid #fbbf24;
}

.stat-box .s-val.gold {
  color: #fbbf24;
}

.victory-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

.victory-btn {
  flex: 1;
  padding: 12px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
.victory-btn.primary { background: #16a34a; color: #fff; }
.victory-btn.secondary { background: #3f3f46; color: #fff; }

/* Settings Switches */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #3f3f46;
  border-radius: 24px;
  transition: .3s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .3s;
}
input:checked + .slider { background-color: #16a34a; }
input:checked + .slider:before { transform: translateX(20px); }

.settings-select {
  background: #27272a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 8px;
}

.settings-nav-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Privacy Modal */
.privacy-scroll-content {
  overflow-y: auto;
  max-height: 60vh;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #d1d5db;
}

.privacy-toggle-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}

.privacy-action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.priv-btn {
  background: #27272a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.priv-agree-btn {
  width: calc(100% - 36px);
  margin: 12px 18px;
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* --- BANK & COIN STORE MODAL STYLES --- */
.coin-shop-dialog {
  max-width: 480px !important;
}

.shop-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-tab-btn {
  flex: 1;
  padding: 10px 6px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.shop-tab-btn.active {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-bottom: 2px solid #fbbf24;
}

.shop-content-area {
  padding: 16px;
  overflow-y: auto;
  max-height: 60vh;
}

.iap-bundles-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iap-bundle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  position: relative;
  transition: transform 0.15s;
}

.iap-bundle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.4);
}

.iap-bundle-card.popular {
  border: 1.5px solid #f59e0b;
  background: linear-gradient(135deg, #27272a 0%, #362817 100%);
}

.iap-bundle-card.best-value {
  border: 1.5px solid #10b981;
  background: linear-gradient(135deg, #27272a 0%, #152e25 100%);
}

.popular-ribbon {
  position: absolute;
  top: -9px;
  left: 16px;
  background: #f59e0b;
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.popular-ribbon.best {
  background: #10b981;
  color: #fff;
}

.iap-card-icon {
  font-size: 28px;
  margin-right: 12px;
}

.iap-bundle-title {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.iap-bundle-amount {
  font-size: 12px;
  color: #fbbf24;
  margin-top: 2px;
}

.iap-buy-money-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.iap-buy-money-btn.primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.iap-buy-money-btn.best-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.iap-buy-money-btn:active {
  transform: scale(0.95);
}

/* --- EXACT MATCHING VIP DIALOG (Matching Reference Screenshot) --- */
.exact-ref-dialog {
  background: radial-gradient(circle at 50% 0%, #2a2415 0%, #18181b 75%) !important;
  border: 1px solid rgba(245, 197, 24, 0.3) !important;
  padding: 24px 20px 20px !important;
  border-radius: 20px !important;
  position: relative;
}

.exact-ref-dialog .iap-graphic-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 16px;
  background: transparent !important;
}

.exact-ref-dialog .iap-no-ads-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.exact-ref-dialog .iap-coins-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.exact-ref-dialog .iap-plus-sign {
  font-size: 20px;
  font-weight: 900;
  color: #9ca3af;
}

.exact-ref-dialog .iap-headline {
  font-size: 24px;
  font-weight: 900;
  color: #fbbf24;
  text-align: center;
  margin: 6px 0 10px;
  letter-spacing: 0.5px;
}

.exact-ref-dialog .iap-subheadline {
  font-size: 14px;
  line-height: 1.5;
  color: #d1d5db;
  text-align: center;
  padding: 0 12px;
  margin-bottom: 20px;
}

.exact-ref-dialog .iap-purchase-btn {
  width: 100%;
  background: #16a34a !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  padding: 15px !important;
  border-radius: 28px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.4) !important;
  cursor: pointer;
  margin: 0 0 16px !important;
  transition: transform 0.15s, background 0.15s;
}

.exact-ref-dialog .iap-purchase-btn:active {
  transform: scale(0.97);
  background: #15803d !important;
}

.exact-ref-dialog .iap-footer-links {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 0;
}

.exact-ref-dialog .iap-footer-links a {
  color: #9ca3af;
  text-decoration: underline;
}

.exact-ref-dialog .modal-close-circle {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9ca3af;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- CUSTOM PHOTO UPLOADER CARD STYLES --- */
.custom-photo-uploader-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border: 1.5px dashed #818cf8;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.custom-photo-uploader-card.equipped {
  border: 2px solid #10b981;
}

.uploader-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.uploader-header strong {
  font-size: 14px;
  color: #e0e7ff;
}

.uploader-header p {
  font-size: 11px;
  color: #c7d2fe;
  margin-top: 2px;
}

.uploader-icon {
  font-size: 26px;
}

.uploader-privacy-note {
  font-size: 10.5px;
  color: #a5b4fc;
  margin: 8px 0 12px;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 10px;
  border-radius: 6px;
}

.uploader-actions {
  display: flex;
  gap: 8px;
}

.upload-trigger-btn {
  background: #4f46e5 !important;
  color: #fff !important;
}

.remove-custom-btn {
  background: #dc2626 !important;
  color: #fff !important;
}

/* --- 14 CARD FACES LIST & 4-CARD LIVE PREVIEW --- */
.card-face-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-face-row-item {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s;
}

.card-face-row-item.equipped {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.card-face-info {
  flex: 1;
}

.card-face-info strong {
  display: block;
  font-size: 13px;
  color: #fff;
}

.card-face-info small {
  font-size: 11px;
  color: #9ca3af;
}

/* 4-Card Mini Preview: [ A ♥ ] [ J ♠ ] [ Q ♦ ] [ K ♣ ] */
.card-face-mini-preview {
  display: flex;
  gap: 4px;
}

.mini-preview-card {
  width: 28px;
  height: 38px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mini-preview-card.red { color: #dc2626; }
.mini-preview-card.black { color: #111827; }

.face-jumbo .mini-preview-card .m-rank { font-size: 13px; }
.face-cyberpunk .mini-preview-card { background: #09090b; border-color: #3f3f46; }
.face-cyberpunk .mini-preview-card.red { color: #f43f5e; text-shadow: 0 0 4px #f43f5e; }
.face-baroque .mini-preview-card { background: #fffdf5; border-color: #d4af37; }
.face-viking .mini-preview-card { background: #f8fafc; border-color: #64748b; }
.face-fourcolor .mini-preview-card:nth-child(4) { color: #16a34a; }

/* Piggy Bank */
.piggy-bank-container {
  text-align: center;
  padding: 16px 8px;
}

.piggy-icon {
  font-size: 54px;
  margin-bottom: 8px;
}

.piggy-meter {
  width: 80%;
  height: 14px;
  background: #3f3f46;
  border-radius: 7px;
  margin: 14px auto 8px;
  overflow: hidden;
}

.piggy-fill {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #f59e0b);
  border-radius: 7px;
}

/* Free Rewards List */
.free-rewards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.free-reward-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #27272a;
  border-radius: 12px;
  padding: 12px 16px;
}

.free-reward-row .reward-info p {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.free-claim-btn {
  background: #10b981;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 18px;
  cursor: pointer;
}

/* Foundation Gold 'A' Watermark (Matching Reference Screenshots) */
.foundation-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 900;
  color: rgba(245, 197, 24, 0.45) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Stock Card Count Indicator (e.g. '24') */
.stock-slot .stock-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Winning Deal Badge */
.winning-deal-badge {
  position: absolute;
  bottom: 8px;
  left: 14px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10;
}

.f-suit-mini {
  font-size: 11px;
  margin-left: 2px;
  opacity: 0.6;
}

/* --- FULL-BLEED ULTRA-PREMIUM CARD ART (NO PASTED BOXES) --- */
.solitaire-card.card-full-art {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.32) !important;
}

.solitaire-card.card-full-art .card-full-art-img,
.solitaire-card.card-full-art .card-svg-face {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: fill !important;
  border-radius: 6px !important;
  pointer-events: none;
  user-select: none;
}

/* Subtle luxury suit badge for full-art court cards */
.theme-suit-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.full-art-baroque .theme-suit-badge {
  background: radial-gradient(circle at 30% 30%, #fff9c4 0%, #d4af37 60%, #996515 100%);
  border: 1px solid #fef08a;
  color: #111827;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5), inset 0 0 2px rgba(255,255,255,0.8);
}
.full-art-baroque .theme-suit-badge.red {
  color: #991b1b;
}

.full-art-cyberpunk .theme-suit-badge {
  background: #09090b;
  border: 1px solid #06b6d4;
  color: #06b6d4;
  box-shadow: 0 0 8px #06b6d4, inset 0 0 4px rgba(6, 182, 212, 0.5);
}
.full-art-cyberpunk .theme-suit-badge.red {
  border-color: #f43f5e;
  color: #f43f5e;
  box-shadow: 0 0 8px #f43f5e, inset 0 0 4px rgba(244, 63, 94, 0.5);
}

.full-art-viking .theme-suit-badge {
  background: radial-gradient(circle at 30% 30%, #475569 0%, #1e293b 80%, #0f172a 100%);
  border: 1px solid #94a3b8;
  color: #f1f5f9;
  box-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.full-art-viking .theme-suit-badge.red {
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* THEMED NUMBER CARDS (Seamless Visual Harmony with Court Cards) */
.themed-num-card {
  border-radius: 6px !important;
  overflow: hidden !important;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.28) !important;
}

.themed-num-card.num-baroque {
  background: #fffdf5 !important;
  border: 1.5px solid #d4af37 !important;
  box-shadow: inset 0 0 0 1px #fef9c3, 0 2px 5px rgba(0, 0, 0, 0.25) !important;
}
.themed-num-card.num-baroque .card-rank {
  font-family: 'Cinzel', serif !important;
  font-weight: 900 !important;
}
.themed-num-card.num-baroque.red { color: #991b1b !important; }
.themed-num-card.num-baroque.black { color: #1e293b !important; }
.themed-num-card.num-baroque .themed-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.themed-num-card.num-cyberpunk {
  background: #09090b !important;
  border: 1.5px solid #27272a !important;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}
.themed-num-card.num-cyberpunk.red {
  color: #f43f5e !important;
  border-color: #f43f5e !important;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.35) !important;
}
.themed-num-card.num-cyberpunk.black {
  color: #06b6d4 !important;
  border-color: #06b6d4 !important;
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.35) !important;
}
.themed-num-card.num-cyberpunk .card-rank {
  font-family: -apple-system, monospace, sans-serif !important;
  font-weight: 900 !important;
  text-shadow: 0 0 6px currentColor;
}
.themed-num-card.num-cyberpunk .themed-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.themed-num-card.num-viking {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
  border: 1.5px solid #64748b !important;
  box-shadow: inset 0 0 0 1px #334155, 0 2px 5px rgba(0, 0, 0, 0.4) !important;
}
.themed-num-card.num-viking .card-rank {
  font-family: 'Cinzel', serif !important;
  font-weight: 900 !important;
}
.themed-num-card.num-viking.red { color: #ef4444 !important; }
.themed-num-card.num-viking.black { color: #cbd5e1 !important; }
.themed-num-card.num-viking .themed-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* REAL AUTHENTIC PLAYING CARD MULTI-PIP LAYOUT */
.pip-grid {
  display: grid !important;
  width: 36px;
  height: 52px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 11px;
  line-height: 1;
}

.pip-grid .pip {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pip-grid.count-2 { grid-template-rows: 1fr 1fr; }
.pip-grid.count-3 { grid-template-rows: 1fr 1fr 1fr; }
.pip-grid.count-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pip-grid.count-5 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pip-grid.count-5 .pip-5 { grid-column: 1 / -1; grid-row: 1 / -1; align-self: center; justify-self: center; }
.pip-grid.count-6 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.pip-grid.count-7 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.pip-grid.count-7 .pip-7 { grid-column: 1 / -1; grid-row: 1 / 3; align-self: center; justify-self: center; }
.pip-grid.count-8 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr 1fr; }
.pip-grid.count-9 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr 1fr; }
.pip-grid.count-9 .pip-9 { grid-column: 1 / -1; grid-row: 2 / 4; align-self: center; justify-self: center; }
.pip-grid.count-10 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr 1fr; }

/* Style Modal Mini Previews with Actual Pictures */
.card-face-mini-preview {
  display: flex;
  gap: 6px;
}

.mini-preview-card {
  width: 34px !important;
  height: 48px !important;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.mini-preview-card .m-corner {
  position: absolute;
  top: 1px;
  left: 2px;
  display: flex;
  flex-direction: column;
  line-height: 0.85;
  font-size: 8px;
  font-weight: 900;
  z-index: 5;
}

.mini-preview-card .mini-art-frame {
  position: absolute;
  top: 5px;
  left: 1px;
  right: 1px;
  bottom: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-preview-card .mini-art-frame svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Authentic Vector SVG Playing Cards */
.card-svg-face {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: inherit;
}

.mini-preview-card .mini-card-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  border-radius: inherit;
}

/* Style Customization Top Showcase Bar (Matches reference screenshot) */
.style-showcase-bar {
  background: radial-gradient(circle at center, #15803d 0%, #14532d 100%);
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid rgba(245, 197, 24, 0.4);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.style-showcase-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.showcase-cards-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-card-item {
  width: 44px;
  height: 62px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.showcase-card-item:hover {
  transform: translateY(-2px) scale(1.04);
}

.showcase-card-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.showcase-card-back {
  width: 44px;
  height: 62px;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1.5px solid #facc15;
  background-size: cover;
  background-position: center;
}

/* --- AI LIVE DEMO & INTERACTIVE COACH OVERLAY --- */
.demo-coach-overlay {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, calc(100% - 20px));
  background: rgba(10, 25, 15, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid #f5c518;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), 0 0 24px rgba(245, 197, 24, 0.35);
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  gap: 10px;
  z-index: 1200;
  animation: demoSlideUp 0.3s ease-out;
}

@keyframes demoSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.demo-coach-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 197, 24, 0.2);
  border: 1px solid rgba(245, 197, 24, 0.5);
  color: #fef08a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.demo-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse 1s infinite alternate;
}

.demo-step-counter {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

.demo-coach-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.demo-coach-avatar {
  font-size: 32px;
  line-height: 1;
  background: rgba(245, 197, 24, 0.15);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(245, 197, 24, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.demo-coach-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-move-title {
  color: #fef08a;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
}

.demo-move-desc {
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.35;
}

.demo-move-hindi {
  color: #a7f3d0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  background: rgba(16, 185, 129, 0.12);
  border-left: 3px solid #10b981;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

.demo-controls-tray {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

.demo-ctrl-btn {
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.demo-ctrl-btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-ctrl-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.demo-ctrl-btn.secondary.active {
  background: #eab308;
  color: #111827;
  border-color: #facc15;
}

.demo-ctrl-btn.primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  border: 1px solid #fef08a;
}

.demo-ctrl-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Card Spotlights during Live Demo */
.demo-source-highlight {
  box-shadow: 0 0 0 3px #10b981, 0 0 20px rgba(16, 185, 129, 0.9) !important;
  transform: translateY(-5px) scale(1.05) !important;
  z-index: 100 !important;
  animation: demoPulse 0.9s infinite alternate !important;
}

.demo-target-highlight {
  box-shadow: 0 0 0 3px #f59e0b, 0 0 20px rgba(245, 158, 11, 0.9) !important;
  border-color: #f59e0b !important;
  z-index: 95 !important;
  animation: demoPulse 0.9s infinite alternate !important;
}

/* When targeting a tableau column directly, highlight the empty placeholder slot or top slot rather than the whole height */
.tableau-col.demo-target-highlight {
  box-shadow: none !important;
  border: none !important;
  animation: none !important;
}

.tableau-col.demo-target-highlight .tableau-empty,
.tableau-col.demo-target-highlight .slot-placeholder {
  box-shadow: 0 0 0 3px #f59e0b, 0 0 20px rgba(245, 158, 11, 0.9) !important;
  border-color: #f59e0b !important;
  border-radius: clamp(4px, 1.2vw, 8px) !important;
  animation: demoPulse 0.9s infinite alternate !important;
}

@keyframes demoPulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.04); filter: brightness(1.25); }
}

.demo-btn-pressed {
  transform: scale(0.92) !important;
  filter: brightness(1.35) !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.95), inset 0 0 10px rgba(255, 255, 255, 0.5) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}


.tut-demo-pill {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1px solid #6ee7b7 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
}

/* Language Selector in Demo Overlay (Native Mobile-Safe Picker) */
.demo-lang-selector-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.demo-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid #f5c518;
  border-radius: 14px;
  padding: 3px 8px;
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.25);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.demo-lang-pill:hover, .demo-lang-pill:focus-within {
  background: rgba(245, 197, 24, 0.2);
  border-color: #fef08a;
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.5);
}

.demo-lang-globe {
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.demo-lang-select {
  background: transparent;
  color: #fef08a;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 14px;
}

.demo-lang-select option {
  background: #18181b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px;
}

.demo-lang-arrow {
  position: absolute;
  right: 7px;
  font-size: 9px;
  color: #f5c518;
  pointer-events: none;
}

/* --- GLOBAL LANGUAGE MODAL (10 Languages) --- */
.lang-modal-dialog {
  max-width: 440px !important;
}

.lang-grid-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 0;
}

.lang-card-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  color: #f3f4f6;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-card-btn:hover {
  background: rgba(245, 197, 24, 0.15);
  border-color: rgba(245, 197, 24, 0.5);
  transform: translateY(-2px);
}

.lang-card-btn.active {
  background: rgba(245, 197, 24, 0.25);
  border-color: #f5c518;
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.35);
  color: #fef08a;
}

.lang-card-flag {
  font-size: 24px;
  line-height: 1;
}

.lang-card-info {
  display: flex;
  flex-direction: column;
}

.lang-card-name {
  font-size: 13px;
  font-weight: 800;
}

.lang-card-sub {
  font-size: 10px;
  color: #9ca3af;
}

.lang-card-btn.active .lang-card-sub {
  color: #fef08a;
}

/* --- DEMO GAME LOGIC ONBOARDING & SPEED CONTROLS --- */
.demo-logic-backdrop {
  z-index: 2200 !important;
}

.demo-logic-dialog {
  max-width: 520px;
  width: min(520px, calc(100% - 24px));
  max-height: 90vh;
  overflow-y: auto;
  background: #0f172a;
  border: 2px solid #f5c518;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 32px rgba(245, 197, 24, 0.3);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.demo-logic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(245, 197, 24, 0.25);
  background: rgba(245, 197, 24, 0.08);
}

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

.demo-logic-crown {
  font-size: 28px;
  line-height: 1;
}

.demo-logic-title-group h3 {
  color: #fef08a;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
}

.demo-logic-title-group p {
  color: #9ca3af;
  font-size: 11px;
  margin: 2px 0 0 0;
}

.demo-logic-actions-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-logic-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logic-rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.logic-rule-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  transition: all 0.15s ease;
}

.logic-rule-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 197, 24, 0.4);
}

.logic-rule-icon {
  font-size: 22px;
  line-height: 1;
  padding: 6px;
  background: rgba(245, 197, 24, 0.15);
  border-radius: 10px;
  flex-shrink: 0;
}

.logic-rule-body strong {
  color: #fef08a;
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}

.logic-rule-body p {
  color: #d1d5db;
  font-size: 11.5px;
  line-height: 1.4;
  margin: 0;
}

/* Speed Selection Panel inside Modal */
.demo-speed-selection-panel {
  background: rgba(245, 197, 24, 0.08);
  border: 1.5px solid rgba(245, 197, 24, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 4px;
}

.demo-speed-panel-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.demo-speed-panel-label span {
  color: #fef08a;
  font-size: 13px;
  font-weight: 800;
}

.demo-speed-hint {
  color: #9ca3af;
  font-size: 11px;
}

.demo-speed-buttons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.demo-speed-option {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 6px;
  color: #f3f4f6;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  transition: all 0.15s ease;
}

.demo-speed-option:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(245, 197, 24, 0.5);
}

.demo-speed-option.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  border-color: #fef08a;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
}

.speed-opt-icon {
  font-size: 18px;
  line-height: 1;
}

.speed-opt-text strong {
  display: block;
  font-size: 12px;
}

.speed-opt-text small {
  font-size: 10px;
  opacity: 0.85;
}

.demo-logic-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-logic-btn {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  text-align: center;
}

.demo-logic-btn.primary {
  background: linear-gradient(135deg, #f5c518, #d97706);
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(245, 197, 24, 0.4);
}

.demo-logic-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.demo-logic-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-logic-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Speed Controls inside Demo Coach Overlay */
.demo-speed-pill-group {
  display: flex;
  gap: 3px;
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 3px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  align-items: center;
}

.demo-speed-pill {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-speed-pill:hover {
  color: #f3f4f6;
}

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

.demo-logic-trigger-btn {
  background: rgba(245, 197, 24, 0.18);
  border: 1px solid rgba(245, 197, 24, 0.45);
  color: #fef08a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.demo-logic-trigger-btn:hover {
  background: rgba(245, 197, 24, 0.35);
  transform: translateY(-1px);
}

.demo-topline-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-playback-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* --- INTERACTIVE COACH NEXT-STEP BUBBLE --- */
.coach-live-bubble {
  position: fixed;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 480px;
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid #f59e0b;
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1050;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.coach-bubble-avatar {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
  cursor: pointer;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.6));
  animation: bounce 2s infinite ease-in-out;
}

.coach-bubble-body {
  flex: 1;
  min-width: 0;
}

.coach-bubble-body h4 {
  margin: 0 0 3px 0;
  font-size: 13px;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

.coach-bubble-body p {
  margin: 0;
  font-size: 11.5px;
  color: #f3f4f6;
  line-height: 1.35;
}

.coach-bubble-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.coach-bubble-action-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  border: none;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s, filter 0.15s;
}

.coach-bubble-action-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
}

.coach-bubble-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #9ca3af;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.coach-bubble-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.demo-coach-content {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.demo-coach-content:hover {
  transform: translateY(-1px);
}

.demo-coach-avatar {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.demo-coach-avatar:hover {
  transform: scale(1.15) rotate(8deg);
}

/* --- AI DEMO FLYING CARD & VISUAL ENHANCEMENTS --- */
.demo-step-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
  margin-bottom: 4px;
}

.demo-step-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.demo-rule-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 2px;
  width: fit-content;
  letter-spacing: 0.3px;
}

.demo-flying-card {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.65), 0 0 16px rgba(245, 158, 11, 0.5) !important;
  pointer-events: none !important;
  z-index: 99999 !important;
}

@keyframes demoLandingGlow {
  0% { box-shadow: 0 0 0 4px #10b981, 0 0 30px #10b981; transform: scale(1.08); }
  50% { box-shadow: 0 0 0 3px #34d399, 0 0 20px #34d399; }
  100% { box-shadow: none; transform: scale(1); }
}

.demo-landing-flash {
  animation: demoLandingGlow 0.6s ease-out !important;
}

/* --- BRAND SPLASH & GAME LOADING SCREEN (ROYAL MATCH & CHESS STYLE) --- */
.app-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #1c1917 0%, #0c0a09 70%, #050505 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-backdrop-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.22) 0%, rgba(217, 119, 6, 0.08) 50%, transparent 75%);
  filter: blur(40px);
  animation: pulseGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.company-logo-halo {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.35), rgba(245, 158, 11, 0.08));
  border: 2px solid rgba(255, 215, 0, 0.75);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.38), 0 12px 32px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  animation: crestFloat 2.6s ease-in-out infinite alternate;
}

@keyframes crestFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.company-splash-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.brand-studio-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #d97706;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.brand-game-title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.35));
  margin-bottom: 4px;
}

.brand-game-subtitle {
  font-size: 13px;
  color: #a1a1aa;
  margin-bottom: 34px;
  font-weight: 500;
}

.splash-loader-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loader-tip-text {
  font-size: 12px;
  color: #fbbf24;
  min-height: 18px;
  font-weight: 600;
}

.loader-bar-outer {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.loader-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #10b981);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.8);
  transition: width 0.15s ease-out;
}

.loader-percent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #71717a;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.loader-percent {
  color: #f3f4f6;
  font-family: monospace;
  font-weight: bold;
}

/* --- HUD USER PROFILE WIDGET --- */
.hud-profile-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 18px;
  padding: 3px 10px 3px 6px;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
}

.hud-profile-widget:hover {
  background: rgba(255, 215, 0, 0.18);
  border-color: #f5c518;
  transform: translateY(-1px);
}

.hud-profile-avatar {
  font-size: 16px;
  line-height: 1;
}

.hud-profile-name {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- USER PROFILE & WELCOME ONBOARDING MODAL --- */
.profile-modal-dialog {
  max-width: 440px !important;
}

.profile-onboard-header {
  text-align: center;
  padding: 18px 20px 8px;
}

.profile-crown-badge {
  font-size: 48px;
  animation: bounce 1.4s infinite;
  margin-bottom: 6px;
}

.profile-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
}

.profile-modal-sub {
  font-size: 12px;
  color: #a1a1aa;
  margin-top: 4px;
}

.profile-form-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-input-label {
  font-size: 12px;
  font-weight: 700;
  color: #d1d5db;
}

.profile-name-row {
  display: flex;
  gap: 8px;
}

.profile-name-input {
  flex: 1;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  outline: none;
}

.profile-name-input:focus {
  border-color: #f5c518;
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.4);
}

.random-dice-btn {
  background: #3f3f46;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s;
}

.random-dice-btn:active {
  transform: rotate(360deg);
}

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

.avatar-choice {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #27272a;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.15s;
}

.avatar-choice:hover {
  transform: scale(1.1);
  background: #3f3f46;
}

.avatar-choice.selected {
  border-color: #f5c518;
  background: rgba(245, 197, 24, 0.2);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.5);
}

.profile-gift-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: #fef08a;
  font-weight: 600;
}

.profile-gift-icon {
  font-size: 26px;
}

.profile-action-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.profile-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* --- JOURNEY 100+ STAGES CHAPTER TABS & MILESTONE STYLES --- */
.journey-chapter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.journey-chapter-tabs::-webkit-scrollbar { display: none; }

.chapter-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d1d5db;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.chapter-tab.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  border-color: #fef08a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.milestone-node {
  border-left: 3px solid #fbbf24 !important;
  background: rgba(245, 197, 24, 0.08) !important;
}

.milestone-circle {
  background: linear-gradient(135deg, #f59e0b, #b45309) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.milestone-badge {
  font-size: 9px;
  background: #dc2626;
  color: #fff;
  padding: 1px 5px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.primary-pulse {
  animation: btnPulse 1.4s infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ONBOARDING: SOCIAL CLOUD AUTH, 9-GAME SELECTOR & GUIDELINES STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Social Cloud Auth Row & Drawer */
.onboard-auth-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.onboard-auth-label {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.onboard-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-auth-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0 10px;
}

.btn-auth-social.google {
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-auth-social.google:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-auth-social.google .auth-social-icon {
  font-weight: 900;
  font-size: 15px;
  background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-auth-social.apple {
  background: #090d16;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn-auth-social.apple:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-auth-social.apple .auth-social-icon {
  font-size: 16px;
  line-height: 1;
}

.btn-auth-social.linked {
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
}

.onboard-auth-drawer {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.onboard-auth-input {
  flex: 1;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: #fff;
}

.btn-onboard-auth-link {
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.onboard-auth-status {
  font-size: 10.5px;
  color: #38bdf8;
  text-align: center;
  margin-top: 4px;
  font-weight: 600;
}

/* 9-Game Selector Dialog */
.game-selector-dialog {
  max-width: 720px !important;
  width: min(96vw, 720px) !important;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  background: #18181b;
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 32px rgba(245, 197, 24, 0.25);
}

.game-selector-header {
  padding: 16px 20px 12px;
  background: linear-gradient(180deg, #1f1b14 0%, #18181b 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  text-align: center;
}

.game-selector-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
}

.game-selector-sub {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 3px;
}

.game-selector-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.onboard-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 620px) {
  .onboard-games-grid {
    grid-template-columns: 1fr;
  }
}

.onboard-game-card {
  background: #27272a;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}

.onboard-game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.5);
  background: #323238;
}

.onboard-game-card.selected {
  border-color: #fbbf24;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(30, 27, 75, 0.45));
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.35);
}

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

.game-card-icon {
  font-size: 24px;
}

.game-card-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.game-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.game-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.game-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-play-style-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.play-style-title {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
}

.play-style-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 500px) {
  .play-style-options {
    grid-template-columns: 1fr;
  }
}

.style-option-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #18181b;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.style-option-label:has(input:checked) {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.style-option-text {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.3;
}

.style-option-text strong {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}

/* Guidelines & Welcome Gifts Dialog */
.guidelines-dialog {
  max-width: 660px !important;
  width: min(96vw, 660px) !important;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  background: #18181b;
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 32px rgba(245, 197, 24, 0.25);
}

.guidelines-header {
  padding: 16px 20px 10px;
  background: linear-gradient(180deg, #1f1b14 0%, #18181b 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  text-align: center;
}

.guidelines-title {
  font-family: 'Cinzel', serif;
  font-size: 21px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.guidelines-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.welcome-gifts-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(16, 185, 129, 0.14));
  border: 1.5px solid rgba(245, 197, 24, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gift-card-heading {
  font-size: 13px;
  font-weight: 900;
  color: #fde047;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.gift-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 500px) {
  .gift-pills-row {
    grid-template-columns: 1fr;
  }
}

.gift-pill-item {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gift-pill-icon {
  font-size: 24px;
}

.gift-pill-text strong {
  display: block;
  font-size: 12px;
  color: #fff;
}

.gift-pill-text span {
  font-size: 10px;
  color: #94a3b8;
}

.industry-standard-note {
  font-size: 10.5px;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid #f59e0b;
  padding: 6px 10px;
  border-radius: 4px;
  line-height: 1.35;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 540px) {
  .guidelines-grid {
    grid-template-columns: 1fr;
  }
}

.guideline-item {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.guideline-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.guideline-info strong {
  display: block;
  font-size: 12px;
  color: #fbbf24;
  margin-bottom: 2px;
}

.guideline-info p {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
  margin: 0;
}

.terms-agreement-row {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.terms-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
  cursor: pointer;
}

.terms-links {
  font-size: 11px;
  display: flex;
  gap: 12px;
}

.terms-links a {
  color: #38bdf8;
  text-decoration: underline;
  cursor: pointer;
}

.btn-accept-play {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 60%, #15803d 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.45);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  animation: btnPulse 1.6s infinite;
}

.btn-accept-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MULTI-TIER VIP PACKAGES (SCREENSHOT 2 ENHANCEMENT)
   ═══════════════════════════════════════════════════════════════════════════ */
.iap-packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0 16px;
  width: 100%;
}

@media (max-width: 620px) {
  .iap-packages-grid {
    grid-template-columns: 1fr;
  }
}

.iap-package-card {
  background: #27272a;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
  text-align: left;
}

.iap-package-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.5);
  background: #323238;
}

.iap-package-card.featured {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(22, 163, 74, 0.18));
  border: 2px solid #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}

.iap-pkg-badge {
  position: absolute;
  top: -9px;
  right: 12px;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 8px;
  background: #f59e0b;
  color: #000;
  letter-spacing: 0.5px;
}

.iap-package-card.featured .iap-pkg-badge {
  background: #22c55e;
  color: #fff;
}

.iap-pkg-title {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

.iap-pkg-price {
  font-size: 20px;
  font-weight: 900;
  color: #fbbf24;
}

.iap-pkg-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.iap-pkg-perks li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.iap-pkg-buy-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  width: 100%;
}

.iap-pkg-buy-btn:hover {
  background: #15803d;
}

.iap-package-card.featured .iap-pkg-buy-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   VARNAMS GAMES SHOWCASE & EXIT CONFIRMATION MODALS
   ═══════════════════════════════════════════════════════════════════════════ */
.varnams-portal-dialog {
  max-width: 720px !important;
  width: min(96vw, 720px) !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  background: #18181b;
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 32px rgba(124, 58, 237, 0.3);
}

.portal-section-heading {
  font-size: 12px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 10px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

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

.portal-game-card {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: transform 0.15s, border-color 0.15s;
}

.portal-game-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  background: #323238;
}

.portal-game-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  background: #10b981;
  color: #fff;
  align-self: flex-start;
}

.portal-upcoming-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.portal-upcoming-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  align-self: flex-start;
}

.portal-play-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
}

.portal-play-btn:hover {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.portal-web-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Exit Confirmation Dialog */
.exit-confirm-dialog {
  max-width: 460px !important;
  width: min(94vw, 460px) !important;
  background: radial-gradient(circle at 50% 0%, #2e1010 0%, #18181b 80%) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.45) !important;
  border-radius: 20px !important;
  padding: 24px 20px !important;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 28px rgba(239, 68, 68, 0.25);
}

.exit-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
}

.btn-exit-continue {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  padding: 13px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
  transition: all 0.15s;
}

.btn-exit-continue:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-exit-portal {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: all 0.15s;
}

.btn-exit-portal:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  transform: translateY(-1px);
}

.btn-exit-leave {
  background: rgba(255, 255, 255, 0.08);
  color: #f87171;
  font-size: 13px;
  font-weight: 800;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-exit-leave:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* ==========================================================================
   SOVEREIGN ALPHA ACCESS GATE (PASSWORD: "Biryani")
   ========================================================================== */
.app-password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: radial-gradient(circle at 50% 25%, #131b2e 0%, #080c16 60%, #020408 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-password-gate.unlocked-fade {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.gate-backdrop-stars {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ffd700, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90px 40px, #fbbf24, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 230px 180px, #f59e0b, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 300px 90px, rgba(255,255,255,0.6), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 350px 350px;
  opacity: 0.35;
  pointer-events: none;
}

.gate-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(165deg, rgba(24, 32, 54, 0.94) 0%, rgba(11, 16, 29, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 26px;
  padding: 38px 30px 30px;
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(245, 158, 11, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 10;
  animation: gateCardPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gateCardPop {
  0% { opacity: 0; transform: scale(0.92) translateY(18px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.gate-card.shake {
  animation: gateShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes gateShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.gate-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.gate-logo-img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(245, 158, 11, 0.4));
  position: relative;
  z-index: 2;
}

.gate-logo-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0) 70%);
  animation: gateGlowPulse 2.8s ease-in-out infinite;
  z-index: 1;
}

@keyframes gateGlowPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.gate-brand-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.gate-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 1px;
  margin: 0 0 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gate-subtitle {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 340px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gate-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(10, 15, 28, 0.85);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 0 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.gate-input-wrapper:focus-within {
  border-color: #fbbf24;
  box-shadow: 
    0 0 18px rgba(245, 158, 11, 0.35),
    inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.gate-input-icon {
  font-size: 18px;
  margin-right: 8px;
  opacity: 0.85;
}

.gate-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 4px;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.gate-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.gate-pwd-toggle {
  background: none;
  border: none;
  font-size: 17px;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  transition: transform 0.15s, color 0.15s;
}

.gate-pwd-toggle:hover {
  color: #fbbf24;
  transform: scale(1.1);
}

.gate-error-banner {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fca5a5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.gate-success-banner {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.gate-unlock-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #0b0f19;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 15px 22px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.38);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-unlock-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.55);
  transform: translateY(-1.5px);
}

.gate-unlock-btn:active {
  transform: translateY(0.5px) scale(0.98);
}

.btn-unlock-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: unlockBtnShine 3.2s infinite;
}

@keyframes unlockBtnShine {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

.gate-footer {
  margin-top: 24px;
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gate-dot {
  opacity: 0.4;
}

@media (max-width: 480px) {
  .gate-card {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }
  .gate-title {
    font-size: 19px;
  }
  .gate-subtitle {
    font-size: 12px;
  }
  .gate-logo-img {
    width: 72px;
    height: 72px;
  }
}

/* PWA Install Header Button */
.pwa-install-header-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(5, 150, 105, 0.42) 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.6) !important;
  color: #a7f3d0 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
  animation: pwaPulse 3.5s ease-in-out infinite;
}

.pwa-install-header-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45) 0%, rgba(5, 150, 105, 0.6) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

@keyframes pwaPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.55); }
}




