/* ═══════════════════════════════════════════
   LUCKY SHOP WEB — Industrial Luxe Design System
   Version 5.0 — Casino & Mobile Ad Banner Update
   ═══════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --green:         #1BFB60;
  --green-dark:    #0AC848;
  --green-glow:    rgba(27, 251, 96, 0.45);
  --gold:          #FFD700;
  --gold-glow:     rgba(255, 215, 0, 0.45);
  --bg:            #07190F;
  --card-bg:       rgba(255, 255, 255, 0.08);
  --card-border:   rgba(255, 255, 255, 0.12);
  --text:          #ffffff;
  --muted:         rgba(255, 255, 255, 0.7);
  --nav-h:         68px;
  --ad-banner-h:   56px;
  --safe-bot:      env(safe-area-inset-bottom, 0px);
  --safe-top:      env(safe-area-inset-top, 44px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }

body {
  background: radial-gradient(circle at 50% -20%, #104A26 0%, var(--bg) 80%);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }
img { display: block; }

/* ── Screen Shell ── */
.screen {
  width: 100%;
  max-width: 430px;
  height: 100%;
  display: none;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.screen.active { display: flex; }

/* ── Background Glow ── */
.bg-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}
.top-glow {
  width: 450px; height: 450px;
  top: -200px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(27,251,96,0.3) 0%, transparent 70%);
  animation: breathe 6s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { transform: translateX(-50%) scale(0.9); opacity: 0.7; }
  to   { transform: translateX(-50%) scale(1.2); opacity: 1;   }
}

/* ── Floating Clovers ── */
.floating-clovers {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.floating-clovers span {
  position: absolute;
  font-size: 26px; opacity: 0.25;
  left: calc(50% + var(--x, 0%));
  top: calc(50% + var(--y, 0%));
  transform: scale(var(--s, 0.5));
  animation: drift var(--d, 8s) ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(var(--s)) translateY(-15px) rotate(-10deg); }
  to   { transform: scale(var(--s)) translateY(15px)  rotate(10deg);  }
}

/* ════════════════════════════════
   AUTH SCREEN
════════════════════════════════ */
#screen-auth {
  justify-content: space-between;
  padding-bottom: calc(var(--ad-banner-h) + var(--safe-bot) + 8px);
}

.auth-hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  flex: 1; justify-content: center;
  padding: 20px 28px 0; gap: 8px;
}

.mascot-ring {
  position: relative; width: 100px; height: 100px;
  margin-bottom: 6px;
}
.mascot-halo {
  position: absolute; inset: -12px;
  border-radius: 34px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  animation: mascotPulse 2.8s ease-in-out infinite alternate;
}
@keyframes mascotPulse {
  from { transform: scale(0.85); opacity: 0.4; }
  to   { transform: scale(1.2);  opacity: 1;   }
}
.mascot-img {
  width: 100px; height: 100px;
  border-radius: 26px; object-fit: cover;
  position: relative; z-index: 1;
  box-shadow: 0 0 28px rgba(16,251,88,0.18);
}

.eyebrow {
  font-size: 11px; font-weight: 900;
  letter-spacing: 4px; color: var(--green);
}
.auth-tagline {
  font-size: 15px; font-weight: 600;
  color: var(--muted);
}

/* Auth Card */
.auth-card {
  position: relative; z-index: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px; padding: 20px 18px;
  margin: 0 14px 10px;
  backdrop-filter: blur(20px);
}

.tab-row {
  display: flex;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 16px;
}
.tab {
  flex: 1; font-size: 11px; font-weight: 900; letter-spacing: 0.5px;
  padding: 8px 0 12px; color: var(--muted); position: relative;
  transition: color 0.2s;
}
.tab.active { color: var(--green); }
.tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 15%; right: 15%;
  height: 3px; background: var(--green); border-radius: 3px;
}

.field { margin-bottom: 12px; }
.field label {
  display: block; font-size: 9px; font-weight: 900;
  letter-spacing: 1.5px; color: var(--muted); margin-bottom: 6px;
}
.field input {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07); border-radius: 14px;
  padding: 12px 14px; color: #fff; font-size: 14px; font-weight: 600;
  outline: none; transition: border-color 0.2s;
}
.field input:focus { border-color: rgba(16,251,88,0.4); }
.field.hidden { display: none; }

.form-error {
  font-size: 12px; font-weight: 700; color: #FF5B5B; margin-bottom: 10px;
}
.form-error.hidden { display: none; }

.cta-btn {
  width: 100%;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: #000; font-size: 14px; font-weight: 900; letter-spacing: 0.3px;
  padding: 15px; border-radius: 50px;
  box-shadow: 0 6px 24px rgba(16,251,88,0.35);
  transition: transform 0.12s, box-shadow 0.12s; margin-top: 4px;
}
.cta-btn:active { transform: scale(0.97); }

/* ════════════════════════════════
   MAIN APP LAYOUT
════════════════════════════════ */
#screen-main {
  display: none; flex-direction: column;
}
#screen-main.active { display: flex; }

.tab-pane {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--safe-top) + 10px) 16px calc(var(--nav-h) + var(--ad-banner-h) + var(--safe-bot) + 16px);
  position: relative; z-index: 1;
  display: none;
}
.tab-pane.active { display: block; }

/* Page header variants */
.page-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 18px;
}
.page-top.centered { flex-direction: column; align-items: center; text-align: center; }

.greeting { font-size: 24px; font-weight: 800; margin-top: 2px; }
.page-title { font-size: 24px; font-weight: 800; margin-top: 4px; }
.page-sub { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 4px; padding: 0 16px; }

/* Status badge & Coin badge */
.status-badge {
  font-size: 9px; font-weight: 900; letter-spacing: 0.5px;
  padding: 6px 12px; border-radius: 20px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--muted); transition: all 0.4s; white-space: nowrap;
}
.status-badge.active {
  background: var(--green); color: #000; border-color: var(--green);
  box-shadow: 0 0 20px rgba(16,251,88,0.5);
}
.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 215, 0, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--gold);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.15);
}
.lucky-coin-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
  vertical-align: -3px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.lucky-coin-img.inline {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}
.lucky-coin-img.med {
  width: 22px;
  height: 22px;
  vertical-align: -4px;
}
.lucky-coin-img.large {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 4px 10px rgba(255,215,0,0.3));
}


/* ─── Timer Ring (Accueil) ─── */
.ring-wrapper {
  position: relative; width: 210px; height: 210px;
  margin: 0 auto 14px; cursor: pointer;
  transition: transform 0.2s;
}
.ring-wrapper:active { transform: scale(0.97); }
.ring-svg { width: 100%; height: 100%; }
.ring-face {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  border-radius: 32px; overflow: hidden;
  background: var(--card-bg);
}
.ring-face img { width: 100%; height: 100%; object-fit: cover; }

/* Timer Text */
.timer-block {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 14px; gap: 2px;
}
.timer-value {
  font-size: 44px; font-weight: 900; font-variant-numeric: tabular-nums;
  letter-spacing: -1px; color: #fff;
  text-shadow: 0 0 20px rgba(16,251,88,0.2);
}
.timer-label { font-size: 10px; font-weight: 900; letter-spacing: 2px; color: var(--muted); }

/* Quick Action Ad Banner (Home) */
.ad-banner {
  width: 100%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  color: #fff; margin-bottom: 14px;
  backdrop-filter: blur(12px); transition: all 0.2s;
}
.ad-banner:active { transform: scale(0.98); background: rgba(255,255,255,0.1); }
.ad-banner-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(27,251,96,0.15); border: 1px solid rgba(27,251,96,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 16px;
}
.ad-banner-text { flex: 1; text-align: left; }
.ad-banner-title { font-size: 12px; font-weight: 900; letter-spacing: 1px; color: #fff; }
.ad-banner-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ad-banner-chevron { font-size: 20px; color: var(--muted); font-weight: 300; }

/* Stat Row */
.stat-row {
  display: flex; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: 18px;
  padding: 14px; backdrop-filter: blur(16px);
}
.stat-cell { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-val { font-size: 18px; font-weight: 900; color: var(--green); }
.stat-lbl { font-size: 9px; font-weight: 900; letter-spacing: 1.5px; color: var(--muted); }
.stat-sep { width: 1px; background: var(--card-border); margin: 4px 0; }

/* ════════════════════════════════
   PERSISTENT MOBILE AD BANNER (TextNow Style)
════════════════════════════════ */
.mobile-ad-banner {
  position: absolute;
  left: 0; right: 0;
  height: var(--ad-banner-h);
  background: rgba(8, 14, 10, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  z-index: 15;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 12px 6px;
  cursor: pointer;
  transition: background 0.2s;
}
#screen-main .mobile-ad-banner {
  bottom: calc(var(--nav-h) + var(--safe-bot));
}
#screen-auth .mobile-ad-banner {
  bottom: var(--safe-bot);
  border-bottom: none;
}
.mobile-ad-banner:active {
  background: rgba(14, 25, 18, 0.98);
}
.ad-badge-container {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}
.ad-tag {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  padding: 1px 4px;
  border-radius: 4px;
}
.ad-info-icon {
  font-size: 9px;
  color: var(--muted);
  opacity: 0.7;
}
.ad-banner-body {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ad-sponsor-icon {
  font-size: 22px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.ad-sponsor-details {
  flex: 1;
  min-width: 0;
}
.ad-sponsor-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-sponsor-desc {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-action-btn {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(27, 251, 96, 0.3);
  transition: transform 0.1s;
}
.ad-action-btn:active {
  transform: scale(0.94);
}

/* ════════════════════════════════
   BOTTOM TAB BAR
════════════════════════════════ */
.tab-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex;
  background: rgba(6, 10, 8, 0.96);
  backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-bottom: var(--safe-bot);
  height: calc(var(--nav-h) + var(--safe-bot));
}
.tab-bar-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; color: rgba(160,160,160,0.6);
  font-size: 10px; font-weight: 600; padding-top: 6px;
  transition: color 0.2s;
}
.tab-bar-item.active { color: var(--green); }
.tab-bar-item svg { transition: transform 0.2s; }
.tab-bar-item.active svg { transform: scale(1.15); }

/* ════════════════════════════════
   UNIVERSAL LEPRECHAUN LUCK WIDGET (IN GAMES)
════════════════════════════════ */
.games-luck-widget {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all 0.2s;
}
.games-luck-widget:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(27, 251, 96, 0.3);
}
.mini-leprechaun-ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.mini-ring-svg {
  width: 100%;
  height: 100%;
}
.mini-leprechaun-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.games-luck-info {
  flex: 1;
  min-width: 0;
}
.luck-timer-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.luck-active-dot {
  font-size: 10px;
}
.luck-active-dot.active {
  color: var(--green);
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.luck-timer-value {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.luck-multiplier-pill {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  background: rgba(27, 251, 96, 0.18);
  border: 1px solid rgba(27, 251, 96, 0.4);
  color: var(--green);
  border-radius: 10px;
}
.luck-odds-hint {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.luck-widget-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.games-coins-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 215, 0, 0.14);
  padding: 5px 9px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--gold);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s;
  white-space: nowrap;
}
.games-coins-badge:hover {
  background: rgba(255, 215, 0, 0.22);
  transform: scale(1.04);
}
.mini-boost-btn {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s;
}
.mini-boost-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 12px rgba(27, 251, 96, 0.4);
}

/* Luck Status Indicator Banner in Games */
.luck-indicator-banner {
  background: rgba(27, 251, 96, 0.12);
  border: 1px solid rgba(27, 251, 96, 0.3);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
  margin-top: 6px;
  text-align: center;
}
.luck-indicator-banner.inactive {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

/* ════════════════════════════════
   GAMES HUB & ARCADE CARDS
════════════════════════════════ */
.games-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.game-card:active {
  transform: scale(0.98);
  border-color: var(--green);
}
.game-card-icon {
  font-size: 34px;
  background: rgba(255,255,255,0.06);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.game-card-info {
  flex: 1;
  min-width: 0;
}
.game-card-header-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.game-card-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.game-card-info p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.game-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.game-badge.free {
  background: rgba(27,251,96,0.15);
  color: var(--green);
  border: 1px solid rgba(27,251,96,0.3);
}
.game-badge.cost {
  background: rgba(251,191,36,0.15);
  color: var(--gold);
  border: 1px solid rgba(251,191,36,0.3);
}
.game-badge.casino {
  background: rgba(255,71,87,0.18);
  color: #ff6b81;
  border: 1px solid rgba(255,71,87,0.3);
}
.game-chevron {
  font-size: 20px;
  color: var(--muted);
  font-weight: 300;
}
.back-btn {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 0 10px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ════════════════════════════════
   GAME 1: LA GROSSE ROUE
════════════════════════════════ */
.wheel-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
}
.wheel-outer-ring {
  position: relative;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 10px solid #222;
  box-shadow: 0 0 30px var(--green-glow), inset 0 0 15px rgba(0,0,0,0.8);
  background: #111;
}
.wheel-pointer {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  color: var(--gold);
  z-index: 12;
  text-shadow: 0 0 12px var(--gold);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: transform 4s cubic-bezier(0.1, 1, 0.2, 1);
  background: conic-gradient(
    #ff4757 0deg 45deg,
    #2ed573 45deg 90deg,
    #1e90ff 90deg 135deg,
    #ffa502 135deg 180deg,
    #9b59b6 180deg 225deg,
    #2ed573 225deg 270deg,
    #747d8c 270deg 315deg,
    #ffa502 315deg 360deg
  );
}
.wheel-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: rotate(calc(var(--i) * 45deg + 22.5deg));
}
.wheel-segment span {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-weight: 900;
  font-size: 13px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
  white-space: nowrap;
}
.wheel-segment .jackpot-txt {
  color: var(--gold);
  font-size: 14px;
  text-shadow: 0 0 8px var(--gold);
}
.wheel-segment .rien-txt {
  color: rgba(255,255,255,0.7);
}
.wheel-center-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2a 0%, #111 100%);
  border: 3px solid var(--gold);
  box-shadow: 0 0 15px rgba(255,215,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 10;
}
.spin-btn {
  max-width: 260px;
  margin: 0 auto;
}

/* ════════════════════════════════
   GAME 2: LE JACKPOT DU LUTIN (SLOTS)
════════════════════════════════ */
.slots-cabinet {
  background: #121815;
  border: 4px solid #2e3a33;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,0.6);
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}
.slots-header-marquee {
  background: #000;
  border: 1px solid rgba(255,215,0,0.4);
  border-radius: 12px;
  padding: 6px;
  text-align: center;
  margin-bottom: 12px;
}
.marquee-text {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--gold);
}
.slots-container {
  width: 100%;
  height: 150px;
  background: #0a0a0a;
  border: 4px solid #1f2923;
  border-radius: 16px;
  display: flex;
  padding: 8px;
  gap: 8px;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
}
.slot-reel {
  flex: 1;
  background: #1c2620;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.slot-symbols {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.slot-symbol {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}
.slot-payline {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 71, 87, 0.6);
  box-shadow: 0 0 10px #ff4757;
  pointer-events: none;
  z-index: 5;
}
.slot-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  border-radius: 12px;
}
.slots-controls {
  margin-top: 14px;
  text-align: center;
}
.btn-danger {
  background: #ff4757 !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.5) !important;
}

/* ════════════════════════════════
   GAME 3: LA ROULETTE ROYALE (CASINO)
════════════════════════════════ */
.roulette-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px auto;
}
.roulette-rim {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 8px solid #5c3818; /* Rich mahogany wood tone */
  box-shadow: 0 0 25px rgba(0,0,0,0.9), 0 0 15px rgba(255,215,0,0.3), inset 0 0 20px rgba(0,0,0,0.9);
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
#roulette-canvas {
  width: 234px;
  height: 234px;
  border-radius: 50%;
  transition: transform 5s cubic-bezier(0.1, 0.9, 0.2, 1);
}
.roulette-center-spindle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffeaa7 0%, #d68910 70%, #7e5109 100%);
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.spindle-top {
  font-size: 20px;
}
.roulette-ball {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #dcdde1 60%, #718093 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.8);
  top: 14px;
  left: calc(50% - 6px);
  z-index: 8;
  opacity: 0;
  transition: transform 0.05s linear;
}
.roulette-ball.spinning {
  opacity: 1;
}
.roulette-win-display {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,215,0,0.5);
  min-height: 20px;
}

/* History Ribbon */
.roulette-history-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  padding: 6px 10px;
  border-radius: 12px;
  margin: 6px 0 10px;
}
.history-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.history-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.r-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.r-chip.red { background: #ff4757; }
.r-chip.black { background: #2f3542; }
.r-chip.green { background: #2ed573; }

/* Chip Selector Bar */
.chip-selector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.chip-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.chip-options {
  display: flex;
  gap: 8px;
}
.poker-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255,255,255,0.7);
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}
.poker-chip.chip-1 { background: radial-gradient(circle, #3498db, #2980b9); }
.poker-chip.chip-5 { background: radial-gradient(circle, #e74c3c, #c0392b); }
.poker-chip.chip-10 { background: radial-gradient(circle, #2ecc71, #27ae60); }
.poker-chip.chip-25 { background: radial-gradient(circle, #9b59b6, #8e44ad); }
.poker-chip.active {
  transform: scale(1.18) translateY(-2px);
  border-style: solid;
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.total-bet-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(255,215,0,0.12);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,215,0,0.3);
}

/* Roulette Felt Board (Tapis de Roulette) */
.roulette-table-felt {
  background: #0f3d23;
  border: 2px solid #1b633a;
  border-radius: 16px;
  padding: 10px 8px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.felt-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  padding: 8px 4px;
  transition: background 0.15s;
}
.felt-btn:active {
  background: rgba(255,255,255,0.2);
}
.felt-btn.zero {
  background: #2ed573;
  color: #000;
  font-size: 16px;
  font-weight: 900;
  padding: 10px;
}
.felt-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.felt-num {
  height: 36px;
  font-size: 13px;
  font-weight: 900;
  border-radius: 6px;
}
.felt-num.red { background: #c0392b; color: #fff; }
.felt-num.black { background: #1e272e; color: #fff; }

.felt-dozens-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.felt-btn.dozen {
  font-size: 10px;
  background: rgba(255,255,255,0.08);
}
.felt-outside-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.felt-outside-row .felt-btn {
  font-size: 9px;
  padding: 10px 2px;
}
.felt-outside-row .felt-btn.red { background: #c0392b; }
.felt-outside-row .felt-btn.black { background: #1e272e; }

/* Placed Chip Badge Overlay */
.placed-chip-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.8);
  border: 1px solid #fff;
  z-index: 5;
}
.placed-chip-badge.active {
  display: flex;
}

/* Roulette Action Row */
.roulette-action-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.btn-secondary-action {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 20px;
  transition: all 0.15s;
}
.btn-secondary-action:active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.roulette-spin-cta {
  flex: 1;
  margin-top: 0;
  padding: 12px;
  font-size: 13px;
}

/* ════════════════════════════════
   GAME PAYOUT INFO BOX
════════════════════════════════ */
.game-payout-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--muted);
}
.payout-title {
  display: block;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.payout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

/* ════════════════════════════════
   BOUTIQUE & HISTORY & SETTINGS
════════════════════════════════ */
.card-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 14px 16px; margin-bottom: 12px;
  cursor: pointer; backdrop-filter: blur(16px);
}
.card-row-icon { font-size: 22px; width: 30px; text-align: center; }
.card-row-text { flex: 1; min-width: 0; }
.card-row-title { font-size: 12px; font-weight: 900; letter-spacing: 1px; color: #fff; }
.card-row-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.card-row-chevron { font-size: 20px; color: var(--muted); }

.free-banner {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(27,251,96,0.18) 0%, rgba(10,200,72,0.08) 100%);
  border: 1px solid rgba(27,251,96,0.35); border-radius: 18px;
  padding: 14px 16px; margin-bottom: 12px; color: #fff; text-align: left;
}
.free-banner-icon { font-size: 24px; }
.free-banner-title { font-size: 12px; font-weight: 900; color: var(--green); }
.free-banner-sub { font-size: 11px; color: var(--muted); }
.free-banner-arrow { font-size: 20px; color: var(--green); margin-left: auto; }

.watch-ad-row {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 14px 16px; margin-bottom: 20px;
  color: #fff; text-align: left; backdrop-filter: blur(16px);
}
.watch-ad-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(27,251,96,0.15); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.watch-ad-title { font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.watch-ad-sub { font-size: 11px; color: var(--muted); }
.watch-ad-chevron { font-size: 20px; color: var(--muted); margin-left: auto; }

.section-label {
  font-size: 10px; font-weight: 900; letter-spacing: 2px;
  color: var(--muted); margin-bottom: 10px;
}
.store-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pack-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 14px 10px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; position: relative; cursor: pointer; backdrop-filter: blur(16px);
  transition: transform 0.15s, border-color 0.15s;
}
.pack-card:active { transform: scale(0.96); }
.pack-card.featured {
  border-color: rgba(27,251,96,0.45);
  box-shadow: 0 0 20px rgba(27,251,96,0.15);
}
.pack-badge {
  position: absolute; top: -7px;
  background: var(--green); color: #000;
  font-size: 7px; font-weight: 900; letter-spacing: 0.5px;
  padding: 2px 6px; border-radius: 10px;
}
.pack-icon { font-size: 26px; }
.pack-name { font-size: 11px; font-weight: 800; }
.pack-tagline { font-size: 9px; color: var(--muted); }
.pack-price {
  margin-top: auto; font-size: 12px; font-weight: 900;
  color: #000; background: var(--green);
  padding: 4px 10px; border-radius: 20px; width: 100%;
}
.store-footer {
  text-align: center; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.25); margin: 24px 0 6px;
}

/* History List */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 12px 14px;
}
.history-icon { font-size: 20px; }
.history-details { flex: 1; }
.history-title { font-size: 13px; font-weight: 700; }
.history-date { font-size: 10px; color: var(--muted); }
.history-amount { font-size: 13px; font-weight: 800; color: var(--green); }

/* Settings */
.settings-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 18px; overflow: hidden;
}
.settings-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
}
.settings-icon { font-size: 16px; width: 22px; text-align: center; }
.settings-label { font-size: 13px; font-weight: 500; flex: 1; }
.settings-val { font-size: 12px; font-weight: 600; color: var(--muted); }
.settings-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 0 14px; }
.logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 14px;
  background: rgba(255,59,48,0.08); border: 1px solid rgba(255,59,48,0.15);
  border-radius: 16px; padding: 14px;
  color: rgba(255,90,80,0.9); font-size: 14px; font-weight: 700;
}

/* ════════════════════════════════
   MODALS & TOAST
════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: calc(18px + var(--safe-top)) 20px calc(22px + var(--safe-bot));
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  width: min(100%, 390px);
  max-height: min(86vh, 640px);
  overflow-y: auto;
  background: #101a14;
  border-radius: 28px;
  padding: 24px 20px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(27,251,96,0.08);
}
.modal-eyebrow { font-size: 10px; font-weight: 900; letter-spacing: 2px; color: var(--green); margin-bottom: 4px; }
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.modal-price { font-size: 32px; font-weight: 900; color: var(--green); text-align: center; margin-bottom: 4px; }
.modal-cancel {
  width: 100%; text-align: center; padding: 14px;
  font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 10px;
}

/* Floating Toast Notification */
.app-toast {
  position: fixed;
  top: calc(var(--safe-top) + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 26, 20, 0.95);
  border: 1px solid var(--green);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px var(--green-glow);
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  animation: toastIn 0.3s ease;
}
.app-toast.hidden { display: none; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hidden { display: none !important; }
