/* ══════════════════════════════════════════════════════════════════
   ROYAL FLUSH CASINO — Professional Dark Casino Theme
   ══════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Core dark casino palette */
  --bg:           #080c08;
  --bg-2:         #0d120d;
  --felt:         #0f1a10;
  --felt-2:       #132015;
  --felt-3:       #1a2b1b;
  --surface:      #141f14;
  --surface-2:    #1c2a1c;
  --surface-3:    #223023;
  --card-bg:      #1a2a1b;
  --border:       rgba(255, 215, 0, 0.12);
  --border-bright:rgba(255, 215, 0, 0.28);
  --border-subtle:rgba(255, 255, 255, 0.07);

  /* Text */
  --text:         #f0ede6;
  --text-muted:   #b8b0a0;
  --text-soft:    #7a7268;
  --text-dark:    #1a1208;

  /* Gold */
  --gold:         #ffd700;
  --gold-2:       #f5a623;
  --gold-3:       #c47f00;
  --gold-light:   #ffe566;
  --gold-dark:    #8a5800;

  /* Green (casino felt) */
  --green:        #00c853;
  --green-2:      #00a843;
  --green-3:      #007a30;
  --green-dark:   #004a1e;
  --green-light:  #33d370;

  /* Accents */
  --red:          #e53935;
  --red-2:        #b71c1c;
  --blue:         #1565c0;
  --blue-2:       #0d47a1;
  --purple:       #6a1b9a;
  --cyan:         #00838f;

  /* Gradients */
  --grad-gold:    linear-gradient(135deg, #ffe566 0%, #ffd700 40%, #f5a623 100%);
  --grad-felt:    linear-gradient(180deg, var(--felt) 0%, var(--felt-2) 100%);
  --grad-card:    linear-gradient(145deg, var(--surface-2) 0%, var(--card-bg) 100%);
  --grad-dark:    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.55);
  --shadow-lg:    0 16px 56px rgba(0,0,0,0.65);
  --shadow-gold:  0 4px 20px rgba(255,215,0,0.2);
  --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.4);

  /* Borders */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --radius-xl:    18px;
  --radius-pill:  999px;

  /* Layout */
  --max-w:        1400px;
  --sidebar-w:    280px;

  /* Fonts */
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', 'Georgia', serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 120% 40% at 50% 0%, rgba(0,200,83,0.04) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,0.01) 80px, rgba(255,255,255,0.01) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.01) 80px, rgba(255,255,255,0.01) 81px);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--grad-gold);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255,215,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-gold:active { transform: translateY(0); filter: brightness(0.95); }

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: transparent;
  transition: background 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.btn-outline-gold:hover { background: rgba(255,215,0,0.1); }

.btn-xl  { padding: 0.85rem 2.2rem; font-size: 1rem; }
.btn-full { width: 100%; }

button:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; filter: none !important; }

/* ══════════════════════════════════════════════════════════════════
   SITE HEADER
   ══════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,8,0.97);
  border-bottom: 1px solid var(--border-bright);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  height: 64px;
  max-width: var(--max-w);
  margin-inline: auto;
}
.casino-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-suit {
  font-size: 1.4rem;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255,215,0,0.4);
}
.logo-suit.red { color: var(--red); text-shadow: 0 0 12px rgba(229,57,53,0.4); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: 0.02em;
}
.logo-text strong { color: var(--gold); display: block; font-size: 1.25rem; }
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.nav-item {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 140ms ease, color 140ms ease;
  white-space: nowrap;
}
.nav-item:hover { background: rgba(255,215,0,0.08); color: var(--gold); }
.nav-item.active { background: rgba(255,215,0,0.1); color: var(--gold); }
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.balance-display {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255,215,0,0.07);
  border: 1px solid rgba(255,215,0,0.2);
}
.balance-label { color: var(--text-soft); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.balance-amount { color: var(--gold); font-size: 1rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.balance-currency { color: var(--gold-3); font-size: 0.7rem; font-weight: 700; }

/* User menu */
.user-menu { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-bright);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 140ms ease;
}
.user-btn:hover { background: rgba(255,255,255,0.08); }
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--text-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.chevron { color: var(--text-soft); font-size: 0.7rem; }
.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 50;
}
.dropdown-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.dropdown-header strong { font-size: 0.9rem; color: var(--text); }
.dropdown-header span { font-size: 0.78rem; color: var(--gold); font-weight: 700; }
.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: background 120ms ease, color 120ms ease;
}
.dropdown-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.dropdown-item.danger { color: #ef5350; }
.dropdown-item.danger:hover { background: rgba(239,83,80,0.08); }

/* ══════════════════════════════════════════════════════════════════
   AUTH MODAL
   ══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,215,0,0.08);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.2s cubic-bezier(.2,.9,.2,1);
}
.auth-modal-box { max-width: 420px; padding: 2rem; }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  transition: background 120ms ease;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.modal-logo {
  text-align: center;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  padding: 0.25rem;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}
.modal-tab {
  padding: 0.55rem;
  border-radius: calc(var(--radius-md) - 2px);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.modal-tab.active {
  background: var(--grad-gold);
  color: var(--text-dark);
}
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-field input {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-bright);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.form-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.12);
}
.register-bonus {
  background: rgba(0,200,83,0.08);
  border: 1px solid rgba(0,200,83,0.25);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: var(--green-light);
  font-size: 0.85rem;
}
.register-bonus strong { color: var(--green); }
.auth-status {
  min-height: 1.2rem;
  font-size: 0.82rem;
  color: var(--green);
  text-align: center;
}
.auth-status.error { color: #ef5350; }
.auth-disclaimer {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.72rem;
  margin-top: 0.75rem;
}

/* ══════════════════════════════════════════════════════════════════
   PLAY MODAL
   ══════════════════════════════════════════════════════════════════ */
.play-modal-box {
  max-width: 860px;
  padding: 1.5rem;
}
.play-modal-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.25rem;
  min-height: 460px;
}
.play-result-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.play-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.25);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}
.result-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(0,200,83,0.06) 0%, var(--felt) 100%);
  border: 1px solid rgba(0,200,83,0.15);
  border-radius: var(--radius-lg);
  min-height: 280px;
  perspective: 1200px;
  overflow: hidden;
  position: relative;
}
.result-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(0,200,83,0.025) 18px,
    rgba(0,200,83,0.025) 19px
  );
  pointer-events: none;
}
.play-result-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}
.result-net { font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.result-net.pos { color: var(--green); }
.result-net.neg { color: #ef5350; }
.result-net.jackpot { color: var(--gold); }
.result-detail { color: var(--text-muted); font-size: 0.82rem; }
.game-status {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 2.4rem;
}
.game-status.error { color: #ef5350; }
.game-status.win { color: var(--green); }
.game-status.jackpot { color: var(--gold); font-weight: 800; }

/* Play controls */
.play-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}
.jackpot-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.2);
}
.jp-icon { font-size: 1rem; }
.jp-label { color: var(--text-muted); font-size: 0.78rem; font-weight: 700; }
.jp-label strong { color: var(--gold); }
.ctrl-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.wager-block { display: flex; flex-direction: column; }
.wager-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.4rem; }
.wager-min-max { font-size: 0.7rem; color: var(--text-soft); }
.wager-input-wrap { position: relative; display: flex; align-items: center; margin-bottom: 0.5rem; }
.wager-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--gold);
  font-weight: 900;
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}
#wager {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-bright);
  background: rgba(0,0,0,0.3);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
#wager:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.12);
}
.wager-presets {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.3rem;
}
.preset-btn {
  padding: 0.4rem 0.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 120ms ease;
}
.preset-btn:hover, .preset-btn.active {
  background: rgba(255,215,0,0.12);
  border-color: rgba(255,215,0,0.35);
  color: var(--gold);
}

/* Roulette controls */
.roulette-block { display: flex; flex-direction: column; gap: 0.5rem; }
.roulette-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.3rem; }
.rlt-btn {
  padding: 0.45rem 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 120ms ease;
}
.rlt-btn:hover, .rlt-btn.active {
  background: rgba(229,57,53,0.15);
  border-color: rgba(229,57,53,0.4);
  color: #ef5350;
}
.number-picker { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.number-picker summary {
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
}
.number-picker summary:hover { background: rgba(255,255,255,0.06); }
.number-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  padding: 0.5rem;
  max-height: 140px;
  overflow-y: auto;
  background: rgba(0,0,0,0.2);
}
.num-btn {
  padding: 0.3rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 100ms ease;
}
.num-btn:hover, .num-btn.active {
  background: rgba(229,57,53,0.2);
  border-color: rgba(229,57,53,0.4);
  color: #ef5350;
}

/* Deal button */
.btn-deal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--grad-gold);
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: filter 150ms ease, transform 150ms ease;
  position: relative;
  overflow: hidden;
}
.btn-deal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.btn-deal:not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-deal:not(:disabled):active { transform: translateY(1px); filter: brightness(0.95); }

.account-quick {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.aq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.aq-row span { color: var(--text-muted); }
.aq-row strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.play-login-cta {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.play-login-cta p { color: var(--text-muted); font-size: 0.85rem; }

/* ══════════════════════════════════════════════════════════════════
   PROMOTIONAL BANNER
   ══════════════════════════════════════════════════════════════════ */
.promo-banner {
  background: linear-gradient(135deg, #0a1a0b 0%, #0f2410 40%, #081508 100%);
  border-bottom: 1px solid rgba(0,200,83,0.2);
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 70% 50%, rgba(255,215,0,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 80% at 10% 50%, rgba(0,200,83,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.promo-banner-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: center;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}
.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(0,200,83,0.12);
  border: 1px solid rgba(0,200,83,0.3);
  color: var(--green-light);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.promo-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1rem;
}
.promo-title span {
  color: var(--gold);
  display: block;
  font-size: 0.65em;
  opacity: 0.85;
}
.promo-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}
.promo-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.member-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0,200,83,0.3);
  background: rgba(0,200,83,0.06);
  color: var(--green-light);
  font-size: 0.88rem;
}
.member-pill strong { color: var(--green); }

/* Jackpot display */
.promo-jackpot-display {
  background: linear-gradient(145deg, rgba(255,215,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 60px rgba(255,215,0,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.promo-jackpot-display::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255,215,0,0.06) 50%, transparent 100%);
  animation: jpSweep 3.5s ease-in-out infinite;
}
.promo-jp-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.blink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: blinkDot 1.2s ease-in-out infinite;
}
.promo-jp-amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255,215,0,0.4), 0 4px 0 var(--gold-dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.promo-jp-sub {
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.promo-jp-suits {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: rgba(255,215,0,0.3);
}

/* Marquee */
.promo-marquee {
  border-top: 1px solid rgba(255,215,0,0.1);
  padding: 0.55rem 0;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}
.marquee-track {
  display: inline-block;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  animation: marqueeRun 28s linear infinite;
}

/* ══════════════════════════════════════════════════════════════════
   JACKPOT TICKER BAR
   ══════════════════════════════════════════════════════════════════ */
.jp-ticker-bar {
  background: rgba(0,0,0,0.5);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
}
.jp-ticker-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 1.5rem;
}
.jp-ticker-live {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.jp-ticker-item { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.jp-ticker-name { color: var(--text-muted); font-size: 0.78rem; font-weight: 600; }
.jp-ticker-amount { color: var(--gold); font-size: 0.9rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.jp-ticker-unit { color: var(--text-soft); font-size: 0.68rem; }
.jp-ticker-sep { color: rgba(255,215,0,0.2); font-size: 0.55rem; }

/* ══════════════════════════════════════════════════════════════════
   SITE BODY (main + sidebar)
   ══════════════════════════════════════════════════════════════════ */
.site-body {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 0;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 1.5rem;
  align-items: start;
}
.casino-main { padding: 1.5rem 1.5rem 3rem 0; min-width: 0; }
.casino-sidebar { padding: 1.5rem 0 3rem; position: sticky; top: 64px; }

/* ══════════════════════════════════════════════════════════════════
   CATEGORY TABS
   ══════════════════════════════════════════════════════════════════ */
.category-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}
.cat-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 140ms ease;
}
.cat-tab:hover { background: rgba(255,215,0,0.06); color: var(--gold-light); }
.cat-tab.active {
  background: rgba(255,215,0,0.1);
  border-color: rgba(255,215,0,0.3);
  color: var(--gold);
}

/* ══════════════════════════════════════════════════════════════════
   GAME LOBBY — TILE GRID
   ══════════════════════════════════════════════════════════════════ */
.game-lobby {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.game-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
}
.game-tile:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--border-bright);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,215,0,0.1);
}
.game-tile:hover .tile-overlay { opacity: 1; }
.game-tile.active-game {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255,215,0,0.25), 0 12px 40px rgba(255,215,0,0.1);
}

/* Tile thumbnails */
.tile-thumb {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.slots-thumb {
  background: linear-gradient(145deg, #1a0833 0%, #2d0d5c 50%, #120522 100%);
}
.dice-thumb {
  background: linear-gradient(145deg, #0a2240 0%, #1a4a7a 50%, #081830 100%);
}
.blackjack-thumb {
  background: linear-gradient(145deg, #0a200a 0%, #1a401a 50%, #081508 100%);
}
.roulette-thumb {
  background: linear-gradient(145deg, #200a0a 0%, #4a0f0f 50%, #150505 100%);
}

/* Tile previews */
.tile-reels-preview {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.tile-reels-preview span {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 3.2rem;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #fff 0%, #e0d0ff 100%);
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  animation: tileReelSway 2s ease-in-out infinite;
}
.tile-reels-preview span:nth-child(2) { animation-delay: 0.2s; }
.tile-reels-preview span:nth-child(3) { animation-delay: 0.4s; }
.tile-dice-preview {
  display: flex;
  gap: 0.75rem;
}
.tile-dice-preview span {
  font-size: 2.5rem;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
  animation: diceSway 3s ease-in-out infinite;
}
.tile-dice-preview span:last-child { animation-delay: 0.35s; }
.tile-cards-preview {
  display: flex;
  gap: -0.5rem;
  position: relative;
}
.preview-card {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 4.2rem;
  border-radius: 0.45rem;
  background: #fff;
  color: #111;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transform: rotate(-5deg);
}
.preview-card:last-child { transform: rotate(5deg) translateX(-8px); }
.red-card { color: #d32f2f; }
.tile-wheel-preview { display: grid; place-items: center; }
.mini-wheel {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(
    #111 0 10deg, #b91c1c 10deg 20deg, #111 20deg 30deg, #b91c1c 30deg 40deg,
    #047857 40deg 50deg, #111 50deg 60deg, #b91c1c 60deg 70deg, #111 70deg 80deg,
    #b91c1c 80deg 90deg, #111 90deg 200deg, #b91c1c 200deg 260deg, #111 260deg 360deg
  );
  border: 4px solid #d4a017;
  box-shadow: 0 0 30px rgba(180,120,0,0.3), inset 0 0 20px rgba(0,0,0,0.5);
  animation: wheelTurn 6s linear infinite;
}

/* Tile overlay */
.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 180ms ease;
  backdrop-filter: blur(3px);
}
.tile-play-icon {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--grad-gold);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-gold);
}

/* Tile badges */
.tile-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  gap: 0.3rem;
}
.tile-badge {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid;
}
.tile-badge.hot        { background: rgba(229,57,53,0.2); color: #ef5350; border-color: rgba(229,57,53,0.4); }
.tile-badge.progressive{ background: rgba(255,215,0,0.15); color: var(--gold); border-color: rgba(255,215,0,0.35); }
.tile-badge.fast       { background: rgba(0,200,83,0.15); color: var(--green-light); border-color: rgba(0,200,83,0.3); }
.tile-badge.classic    { background: rgba(255,255,255,0.1); color: #e0e0e0; border-color: rgba(255,255,255,0.2); }
.tile-badge.numbers    { background: rgba(229,57,53,0.15); color: #ef5350; border-color: rgba(229,57,53,0.3); }

/* Tile info */
.tile-info {
  padding: 0.75rem 0.85rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.tile-name { font-size: 0.9rem; font-weight: 800; color: var(--text); }
.tile-meta { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════
   SECTION HEADINGS
   ══════════════════════════════════════════════════════════════════ */
.section-heading {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.section-heading p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.suit-gold { color: var(--gold); margin-right: 0.4rem; }

/* ══════════════════════════════════════════════════════════════════
   JACKPOT CARDS
   ══════════════════════════════════════════════════════════════════ */
.jackpots-section { margin-bottom: 2.5rem; }
.jp-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.jp-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.jp-card:hover { transform: translateY(-3px); }
.jp-card-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  transform: translateX(-120%);
  animation: cardGlare 4s ease-in-out infinite;
  pointer-events: none;
}
.jp-gold   { border-color: rgba(255,215,0,0.35); }
.jp-gold .jp-card-amount { color: var(--gold); text-shadow: 0 0 20px rgba(255,215,0,0.3); }
.jp-gold:hover { box-shadow: 0 8px 30px rgba(255,215,0,0.12); }
.jp-blue   { border-color: rgba(30,100,200,0.4); }
.jp-blue .jp-card-amount { color: #5b9fff; text-shadow: 0 0 20px rgba(91,159,255,0.3); }
.jp-blue:hover { box-shadow: 0 8px 30px rgba(30,100,200,0.12); }
.jp-purple { border-color: rgba(150,50,200,0.4); }
.jp-purple .jp-card-amount { color: #c084fc; text-shadow: 0 0 20px rgba(192,132,252,0.3); }
.jp-purple:hover { box-shadow: 0 8px 30px rgba(150,50,200,0.12); }
.jp-green  { border-color: rgba(0,200,83,0.35); }
.jp-green .jp-card-amount { color: var(--green-light); text-shadow: 0 0 20px rgba(0,200,83,0.3); }
.jp-green:hover { box-shadow: 0 8px 30px rgba(0,200,83,0.12); }
.jp-card-top { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.1rem; }
.jp-card-icon { font-size: 1rem; }
.jp-card-tier { font-size: 0.62rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); }
.jp-card-name { color: var(--text-muted); font-size: 0.78rem; font-weight: 700; }
.jp-card-amount {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.jp-card-fc { color: var(--text-soft); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.jp-card-footer {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
}
.jp-last-won { color: var(--text-muted); }
.jp-last-won strong { color: var(--text); }
.jp-never-won { color: var(--text-soft); font-style: italic; }
.jp-card.recent-hit { animation: jackpotHit 0.8s ease-in-out 3; }

/* ══════════════════════════════════════════════════════════════════
   LEADERBOARDS
   ══════════════════════════════════════════════════════════════════ */
.leaders-section { margin-bottom: 2.5rem; }
.lb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.lb-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lb-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.2);
}
.lb-card-icon { font-size: 1.1rem; }
.lb-card-header h3 { font-size: 0.9rem; font-weight: 800; color: var(--text); }
.lb-list { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; }
.lb-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
}
.lb-row:hover { background: rgba(255,255,255,0.04); }
.lb-top-1 { border-color: rgba(255,215,0,0.25); background: rgba(255,215,0,0.05); }
.lb-top-2 { border-color: rgba(192,192,192,0.2); background: rgba(192,192,192,0.04); }
.lb-top-3 { border-color: rgba(205,127,50,0.2);  background: rgba(205,127,50,0.04); }
.lb-pos { font-size: 0.7rem; font-weight: 900; text-align: center; color: var(--text-soft); }
.lb-top-1 .lb-pos { color: var(--gold); }
.lb-top-2 .lb-pos { color: #c0c0c0; }
.lb-top-3 .lb-pos { color: #cd7f32; }
.lb-uname { color: var(--text); font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { color: var(--gold); font-size: 0.85rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-empty { color: var(--text-soft); font-size: 0.82rem; font-style: italic; padding: 0.5rem; }

/* ══════════════════════════════════════════════════════════════════
   ACCOUNT SECTION
   ══════════════════════════════════════════════════════════════════ */
.account-section { margin-bottom: 2.5rem; }
.account-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0.85rem;
  align-items: start;
}
.account-stats-card, .account-info-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.account-grid.is-auth .account-stats-card { border-color: rgba(0,200,83,0.3); }
.acct-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.acct-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--text-dark);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}
.acct-name { display: block; font-size: 1rem; font-weight: 800; }
.acct-rank { display: block; color: var(--text-muted); font-size: 0.78rem; margin-top: 0.15rem; }
.acct-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.acct-stat {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.acct-stat span { color: var(--text-muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.acct-stat strong { color: var(--gold); font-size: 1.1rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.acct-guest-msg {
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(0,200,83,0.06);
  border: 1px solid rgba(0,200,83,0.2);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.acct-guest-msg strong { color: var(--green); }
.account-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.how-steps { display: flex; flex-direction: column; gap: 1rem; }
.how-step { display: grid; grid-template-columns: 2rem 1fr; gap: 0.85rem; align-items: start; }
.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255,215,0,0.1);
  border: 1.5px solid rgba(255,215,0,0.3);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.how-step strong { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 0.3rem; }
.how-step p { color: var(--text-muted); font-size: 0.83rem; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════════ */
.sidebar-widget {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.widget-title {
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.2);
}
.sidebar-jackpots { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.sjp-row {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
  transition: background 120ms ease;
}
.sjp-row:hover { background: rgba(255,215,0,0.04); border-color: rgba(255,215,0,0.1); }
.sjp-icon { font-size: 1rem; text-align: center; }
.sjp-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.sjp-name { color: var(--text-muted); font-size: 0.72rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sjp-amount { color: var(--gold); font-size: 0.82rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.sidebar-lb { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; }
.slb-row {
  display: grid;
  grid-template-columns: 1.2rem 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
}
.slb-gold   { background: rgba(255,215,0,0.06); }
.slb-silver { background: rgba(192,192,192,0.04); }
.slb-bronze { background: rgba(205,127,50,0.04); }
.slb-pos { font-size: 0.68rem; font-weight: 900; color: var(--text-soft); text-align: center; }
.slb-gold .slb-pos { color: var(--gold); }
.slb-silver .slb-pos { color: #c0c0c0; }
.slb-bronze .slb-pos { color: #cd7f32; }
.slb-name { color: var(--text-muted); font-size: 0.78rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slb-score { color: var(--gold); font-size: 0.78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.slb-empty { color: var(--text-soft); font-size: 0.78rem; font-style: italic; padding: 0.5rem 0.65rem; }

.promo-widget { padding: 1rem; text-align: center; }
.promo-mini-title { font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.35rem; }
.promo-mini-amount { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); font-weight: 900; margin-bottom: 0.35rem; }
.promo-mini-desc { color: var(--text-muted); font-size: 0.78rem; line-height: 1.5; margin-bottom: 0.85rem; }
.promo-mini-active { color: var(--green-light); font-size: 0.82rem; font-weight: 700; }

.responsible-widget { padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.responsible-icon { font-size: 1.4rem; }
.responsible-widget p { color: var(--text-soft); font-size: 0.75rem; line-height: 1.55; }
.responsible-widget strong { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════
   RESULT DISPLAY — SLOT CABINET
   ══════════════════════════════════════════════════════════════════ */
.slot-cabinet {
  width: min(100%, 420px);
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #2a0a55, #060212 55%, #380b50);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 0 30px rgba(255,255,255,0.03), 0 20px 60px rgba(0,0,0,0.5);
  transform: rotateX(5deg);
}
.slot-header {
  text-align: center;
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 1rem;
  text-shadow: 0 0 16px rgba(255,215,0,0.4);
  margin-bottom: 0.75rem;
}
.slot-header em {
  display: block;
  color: var(--green-light);
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.16em;
  margin-top: 0.15rem;
  opacity: 0.8;
}
.slot-reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.reel-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #fff 0%, #d4c2ff 100%);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.1), 0 6px 16px rgba(0,0,0,0.25);
}
.slot-lights { display: flex; justify-content: center; gap: 0.4rem; }
.slot-lights i {
  width: 0.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: lightBlink 0.9s ease-in-out infinite alternate;
}
.slot-lights i:nth-child(even) {
  background: var(--green-light);
  box-shadow: 0 0 10px var(--green-light);
  animation-delay: 0.35s;
}

/* Live slot reels */
.live-cabinet { width: min(100%, 420px); position: relative; }
.live-reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  position: relative;
}
.live-reel {
  height: 5.4rem;
  overflow: hidden;
  border-radius: 0.6rem;
  background: linear-gradient(180deg, #fff 0%, #d4c0ff 45%, #fff 52%, #c0aeff 100%);
  box-shadow: inset 0 14px 20px rgba(255,255,255,0.5), inset 0 -14px 22px rgba(20,5,40,0.25), 0 12px 28px rgba(0,0,0,0.3);
  position: relative;
}
.live-reel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,3,22,0.28) 0%, transparent 28%, transparent 70%, rgba(10,3,22,0.28) 100%);
  z-index: 3;
  pointer-events: none;
}
.live-reel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  z-index: 4;
  pointer-events: none;
}
.reel-strip {
  display: grid;
  grid-auto-rows: 5.4rem;
  will-change: transform;
}
.reel-strip span {
  display: grid;
  place-items: center;
  min-width: 0 !important;
  min-height: 5.4rem !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #14042a;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
}
.payline {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  top: calc(50% + 0.2rem);
  height: 3px;
  z-index: 6;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.12), transparent);
}
.payline span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--green), var(--gold), transparent);
  box-shadow: 0 0 12px var(--gold), 0 0 24px var(--green-light);
  animation: paylineScan 1.1s ease-in-out infinite alternate;
}
.live-slot-active .live-reel { animation: cabinetShake 0.15s ease-in-out infinite alternate; }
.live-slot-active .live-reel:nth-child(2) { animation-delay: 0.04s; }
.live-slot-active .live-reel:nth-child(3) { animation-delay: 0.08s; }
.live-slot-active .live-reel:nth-child(4) { animation-delay: 0.12s; }
.live-slot-active .live-reel:nth-child(5) { animation-delay: 0.16s; }
.live-reel.edging {
  outline: 2px solid rgba(255,215,0,0.6);
  box-shadow: inset 0 14px 20px rgba(255,255,255,0.5), inset 0 -14px 22px rgba(20,5,40,0.25), 0 0 20px rgba(255,215,0,0.3), 0 12px 28px rgba(0,0,0,0.3);
}
.live-reel.near-miss { outline-color: rgba(229,57,53,0.9); animation: nearMissShake 0.1s ease-in-out 10 alternate; }
.live-reel.locked { outline: 2px solid rgba(0,200,83,0.7); }
.final-lock { animation: finalPop 0.4s cubic-bezier(.2,.9,.2,1) both; animation-delay: var(--delay, 0ms); }
.slot-win .payline span { animation: jackpotPayline 0.5s ease-in-out infinite alternate; }
.slot-win .live-reel { box-shadow: inset 0 14px 20px rgba(255,255,255,0.5), inset 0 -14px 22px rgba(20,5,40,0.25), 0 0 28px rgba(255,215,0,0.35), 0 12px 28px rgba(0,0,0,0.3); }

/* Dice stage */
.dice-stage { flex-direction: column; gap: 1rem; }
.dice-table { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.die-3d {
  display: grid !important;
  place-items: center;
  min-width: 5rem !important;
  min-height: 5rem !important;
  border-radius: 1rem !important;
  background: linear-gradient(145deg, #fff 0%, #b0f0ff 100%) !important;
  color: #0a0c20 !important;
  font-size: 2.4rem !important;
  box-shadow: 0 14px 0 #45a0b0, 0 22px 36px rgba(0,0,0,0.4) !important;
  transform: rotateX(12deg) rotateY(-14deg);
  animation: diceSettle 0.65s cubic-bezier(.2,.9,.2,1) both;
}
.die-2 { animation-delay: 0.1s; }
.is-spinning .die-3d { animation: diceSpin 0.3s linear infinite; }

/* Blackjack stage */
.card-stage { flex-direction: column; }
.card-table { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; width: 100%; padding: 1rem; }
.hand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  min-width: 120px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.hand div { display: flex; gap: 0.45rem; justify-content: center; flex-wrap: wrap; }
.card {
  display: grid !important;
  place-items: center;
  min-width: 3.6rem !important;
  min-height: 4.8rem !important;
  border-radius: 0.55rem !important;
  background: linear-gradient(160deg, #fff 0%, #eee0ff 100%) !important;
  color: #140828 !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25) !important;
  animation: cardFlipIn 0.58s cubic-bezier(.2,.9,.2,1) both;
}
.dealer .card { animation-delay: 0.14s; }
.card.back { background: linear-gradient(135deg, #c62828 0%, #283593 100%) !important; color: rgba(255,255,255,0.6) !important; }
.is-spinning .card { animation: cardSpin 0.4s linear infinite; }

/* Roulette stage */
.roulette-stage { flex-direction: column; gap: 0.5rem; }
.roulette-wheel {
  position: relative;
  display: grid;
  place-items: center;
  width: min(14rem, 65vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    #111 0deg 10deg, #b91c1c 10deg 20deg, #111 20deg 30deg, #b91c1c 30deg 40deg,
    #047857 40deg 50deg, #111 50deg 60deg, #b91c1c 60deg 70deg, #111 70deg 80deg,
    #b91c1c 80deg 90deg, #111 90deg 100deg, #b91c1c 100deg 110deg, #111 110deg 120deg,
    #b91c1c 120deg 130deg, #111 130deg 140deg, #b91c1c 140deg 150deg, #111 150deg 160deg,
    #b91c1c 160deg 170deg, #111 170deg 180deg, #b91c1c 180deg 190deg, #111 190deg 200deg,
    #b91c1c 200deg 210deg, #111 210deg 220deg, #b91c1c 220deg 230deg, #111 230deg 240deg,
    #b91c1c 240deg 250deg, #111 250deg 260deg, #b91c1c 260deg 270deg, #111 270deg 280deg,
    #b91c1c 280deg 290deg, #111 290deg 300deg, #b91c1c 300deg 310deg, #111 310deg 320deg,
    #b91c1c 320deg 330deg, #111 330deg 340deg, #b91c1c 340deg 350deg, #111 350deg 360deg
  );
  border: 6px solid #d4a017;
  box-shadow: inset 0 0 0 12px rgba(255,255,255,0.03), 0 20px 50px rgba(0,0,0,0.5);
  transform: rotateX(50deg);
  animation: wheelSpin 8s linear infinite;
}
.roulette-wheel.landed { animation-duration: 16s; }
.roulette-ball {
  position: absolute;
  top: 0.5rem;
  display: grid !important;
  place-items: center;
  min-width: 2.6rem !important;
  min-height: 2.6rem !important;
  border-radius: 50% !important;
  background: #f8fafc !important;
  color: #111 !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35) !important;
}
.wheel-center {
  display: grid;
  place-items: center;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, #7a3c00 100%);
  color: #1a0800;
  font-size: 1.4rem;
  font-weight: 900;
  z-index: 3;
}
.roulette-ball.red   { background: #c62828 !important; color: #fff !important; }
.roulette-ball.black { background: #111 !important; color: #fff !important; }
.roulette-ball.green { background: #047857 !important; color: #fff !important; }
.is-spinning .roulette-ball { animation: ballOrbit 0.46s linear infinite; }

/* ══════════════════════════════════════════════════════════════════
   TOAST STACK
   ══════════════════════════════════════════════════════════════════ */
.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(360px, calc(100% - 2.5rem));
}
.toast-item {
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(8,12,8,0.97);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  pointer-events: all;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast-item.show { opacity: 1; transform: translateX(0); }
.toast-item.win-toast   { border-color: rgba(0,200,83,0.5); }
.toast-item.jackpot-toast { border-color: rgba(255,215,0,0.65); background: rgba(12,10,2,0.98); color: var(--gold); font-weight: 800; }
.toast-item.error-toast { border-color: rgba(229,57,53,0.5); }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
}
.footer-disclaimer {
  max-width: 60ch;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 120ms ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: var(--text-soft); font-size: 0.72rem; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .site-body { grid-template-columns: 1fr; }
  .casino-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding-top: 0;
    position: static;
  }
  .casino-main { padding-right: 0; }
  .game-lobby { grid-template-columns: repeat(3, 1fr); }
  .jp-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
  .promo-banner-inner { grid-template-columns: 1fr; }
  .promo-jackpot-display { max-width: 320px; }
}
@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto auto; }
  .main-nav { display: none; }
  .game-lobby { grid-template-columns: repeat(2, 1fr); }
  .lb-grid { grid-template-columns: repeat(2, 1fr); }
  .play-modal-inner { grid-template-columns: 1fr; }
  .play-controls-panel { padding: 1rem; }
}
@media (max-width: 600px) {
  :root { --sidebar-w: 0px; }
  .site-body { padding: 0 1rem; }
  .casino-main { padding: 1rem 0 2rem; }
  .casino-sidebar { grid-template-columns: 1fr; }
  .game-lobby { grid-template-columns: repeat(2, 1fr); }
  .jp-cards-grid { grid-template-columns: 1fr 1fr; }
  .lb-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 1rem; }
  .balance-display { display: none; }
  .promo-banner-inner { padding: 2.5rem 1rem; }
  .promo-title { font-size: clamp(1.8rem, 9vw, 2.5rem); }
}
@media (max-width: 400px) {
  .game-lobby { grid-template-columns: 1fr; }
  .jp-cards-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ══════════════════════════════════════════════════════════════════ */
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes jpSweep {
  0%, 100% { transform: translateX(-120%); opacity: 0; }
  40%, 60%  { opacity: 1; }
  80%       { transform: translateX(120%); opacity: 0; }
}
@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}
@keyframes marqueeRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes tileReelSway {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes diceSway {
  0%, 100% { transform: rotate(-5deg); }
  50%       { transform: rotate(5deg) translateY(-4px); }
}
@keyframes wheelTurn {
  to { transform: rotate(360deg); }
}
@keyframes cardGlare {
  0%, 100% { transform: translateX(-120%); }
  50%, 75%  { transform: translateX(120%); }
}
@keyframes jackpotHit {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%       { transform: scale(1.04); filter: brightness(1.45); }
}
@keyframes lightBlink {
  from { opacity: 0.3; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1.1); }
}
@keyframes paylineScan {
  from { opacity: 0.5; transform: scaleX(0.8); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes jackpotPayline {
  from { filter: hue-rotate(0deg) brightness(1); }
  to   { filter: hue-rotate(90deg) brightness(1.6); }
}
@keyframes cabinetShake {
  from { transform: translateX(0); }
  to   { transform: translateX(1.5px); }
}
@keyframes nearMissShake {
  from { transform: translateX(-2px); }
  to   { transform: translateX(2px); }
}
@keyframes finalPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes diceSettle {
  from { transform: rotateX(180deg) rotateY(-120deg) translateY(-24px); }
  to   { transform: rotateX(12deg) rotateY(-14deg); }
}
@keyframes diceSpin {
  to { transform: rotateX(360deg) rotateY(260deg); }
}
@keyframes cardFlipIn {
  from { opacity: 0; transform: rotateY(80deg) translateY(-10px); }
  to   { opacity: 1; transform: rotateY(0deg) translateY(0); }
}
@keyframes cardSpin {
  to { transform: rotateY(360deg); }
}
@keyframes wheelSpin {
  to { transform: rotateX(50deg) rotateZ(360deg); }
}
@keyframes ballOrbit {
  to { transform: rotateZ(360deg); }
}

/* ══════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
