/* ═══════════════════════════════════════════════════════════════════════════
   Lucky Larry Casino — Global Stylesheet
   Palette: deep navy + gold + emerald accents
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --gold:        #d4a41c;
  --gold-light:  #f0c040;
  --gold-dark:   #a07810;
  --navy:        #0b0f1a;
  --navy-dark:   #060a12;
  --navy-mid:    #111827;
  --navy-light:  #1c2535;
  --card-bg:     #141b2b;
  --card-border: rgba(212, 164, 28, 0.18);
  --emerald:     #10b981;
  --red:         #ef4444;
  --text-main:   #f0e6c8;
  --text-muted:  #8899aa;
  --radius:      12px;
  --shadow:      0 8px 32px rgba(0,0,0,0.5);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--navy);
  color: var(--text-main);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ── Typography ────────────────────────────────────────────────────────────── */
.cinzel { font-family: 'Barlow Condensed', sans-serif; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  background: linear-gradient(90deg, #080c14 0%, #0f1826 50%, #080c14 100%);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .logo img {
  height: 42px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.balance-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 164, 28, 0.1);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
  min-width: 110px;
}

.balance-badge .coin-icon { font-size: 1.1em; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: #0b0f1a;
  box-shadow: 0 2px 12px rgba(212, 164, 28, 0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, #ffe060 50%, var(--gold-light) 100%);
  box-shadow: 0 4px 20px rgba(212, 164, 28, 0.5);
  transform: translateY(-1px);
}
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.btn-ghost:hover { color: var(--red); }

/* ── Auth Pages ────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding: 2rem 6%;
  background: radial-gradient(ellipse at 50% 0%, #1c2535 0%, var(--navy) 70%);
}

/* Left column: logo + card — anchored to the left side */
.auth-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-left: 2%;
}

.auth-logo {
  margin-bottom: 2rem;
  text-align: center;
}
.auth-logo img { height: 56px; object-fit: contain; }
.auth-logo .powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-logo .powered-by img { height: 72px; opacity: 0.85; }

/* Right column: welcome bonus image */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 58%;
  margin-left: auto;
}
.auth-bonus-img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  object-fit: contain;
  /* Fade all four edges (top, bottom, left, right) into the dark background */
  mask-image:
    linear-gradient(to right,  transparent 0%, black 12%, black 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 12%, black 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.auth-card {
  width: 420px;
  max-width: 90vw;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 1.8rem;
  letter-spacing: 0.04em;
}

/* On narrow screens, stack vertically and hide the bonus image */
@media (max-width: 768px) {
  .auth-page {
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0.25rem;
    gap: 1.5rem;
  }
  .auth-left {
    margin-left: 0;
    width: 100%;
    transform: translateY(-5vh);
  }
  .auth-logo {
    margin-bottom: 0.5rem;
  }
  .auth-right {
    display: none;
  }
  .auth-card {
    width: 100%;
    max-width: 95%;
    padding: 1.8rem 1rem;
  }
}

.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(212, 164, 28, 0.05);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group textarea { font-family: inherit; resize: vertical; }

.form-group select option { background: var(--navy-mid); }

.auth-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-footer {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.auth-footer a { color: var(--gold-light); }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: none;
}
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-info { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }
.alert.show { display: block; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: var(--navy-mid);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}
.sidebar-logo {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid var(--card-border);
  text-align: center;
}
.sidebar-logo a { display: inline-block; }
.sidebar-logo img {
  height: 104px;
  object-fit: contain;
}
.sidebar-nav {
  list-style: none;
  padding: 1rem 0;
  flex: 1;
}
.sidebar-nav li { margin: 0.15rem 0; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}
.sidebar-link:hover {
  background: rgba(212,164,28,0.08);
  color: var(--gold-light);
  text-decoration: none;
}
.sidebar-link.active {
  color: var(--gold-light);
  background: rgba(212,164,28,0.12);
  border-left: 3px solid var(--gold);
}
.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.sidebar-link:hover svg,
.sidebar-link.active svg {
  opacity: 1;
}
.sidebar-bottom {
  border-top: 1px solid var(--card-border);
  padding: 0.8rem;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.4rem;
  margin-bottom: 0.3rem;
}
.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sidebar-username {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-balance {
  font-size: 0.75rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.sidebar-balance .coin-icon { font-size: 0.7rem; }
.sidebar-logout {
  color: var(--red) !important;
  font-size: 0.82rem;
}
.sidebar-logout:hover {
  background: rgba(239,68,68,0.1) !important;
}

/* Sidebar toggle (mobile) */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 101;
  background: var(--navy-mid);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Main content offset for sidebar */
.has-sidebar { min-height: 100vh; }
.main-content {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Mobile sidebar */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-toggle {
    display: block;
  }
  .main-content {
    margin-left: 0;
  }
}

/* ── Lobby ─────────────────────────────────────────────────────────────────── */
.lobby-page { min-height: 100vh; display: flex; flex-direction: column; }

.lobby-hero {
  text-align: center;
  padding: 3rem 0 0 0;
  background: none;
  border-bottom: none;
}
.lobby-hero .hero-logo-img {
  max-width: 100%;
  width: 25%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 30px rgba(212,164,28,0.3));
}
.lobby-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px rgba(212,164,28,0.25);
}
.lobby-hero p {
  color: var(--text-muted);
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.games-section {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.6rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
/* Subtle ambient breathing glow on all cards */
.game-card {
  animation: card-ambient-breathe 3s ease-in-out infinite;
}

@keyframes card-ambient-breathe {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(212,164,28,0.04),
                0 0 30px rgba(212,164,28,0.02);
  }
  50% {
    box-shadow: 0 4px 20px rgba(212,164,28,0.1),
                0 0 40px rgba(212,164,28,0.05);
  }
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,164,28,0.8);
  animation: card-glow-pulse 0.9s ease-in-out infinite;
}

/* ── Card glow animations ────────────────────────────────────────────────── */

/* Fast pulsating gold glow on hover */
@keyframes card-glow-pulse {
  0%, 100% {
    box-shadow: 0 8px 30px rgba(212,164,28,0.3),
                0 0 50px rgba(212,164,28,0.1);
  }
  50% {
    box-shadow: 0 8px 45px rgba(212,164,28,0.6),
                0 0 90px rgba(212,164,28,0.25),
                0 0 140px rgba(212,164,28,0.08);
  }
}

/* Quick attention grabber — applied randomly via JS */
.game-card.glow-attract {
  animation: card-glow-attract 1.2s ease-out;
  border-color: rgba(212,164,28,0.9);
}

@keyframes card-glow-attract {
  0% {
    box-shadow: 0 0 0 rgba(212,164,28,0);
  }
  30% {
    box-shadow: 0 0 40px rgba(212,164,28,0.65),
                0 0 80px rgba(212,164,28,0.25);
  }
  70% {
    box-shadow: 0 0 25px rgba(212,164,28,0.35),
                0 0 50px rgba(212,164,28,0.12);
  }
  100% {
    box-shadow: 0 0 0 rgba(212,164,28,0);
  }
}

.game-card-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.game-card-emoji {
  font-size: 3.5rem;
}
.game-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%);
}

.game-card-body {
  padding: 1rem 1rem 1.1rem;
}
.game-card-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.game-card-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.85rem;
  font-style: italic;
  line-height: 1.3;
}
.volatility-badge {
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.volatility-high { background: rgba(239,68,68,0.15); color: #fca5a5; }
.volatility-medium { background: rgba(245,158,11,0.15); color: #fcd34d; }
.volatility-low { background: rgba(16,185,129,0.15); color: #6ee7b7; }

.btn-play {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Upcoming games ─────────────────────────────────────────────────────── */
.upcoming-section {
  margin-top: 1rem;
  padding-bottom: 2rem;
}
.upcoming-card {
  opacity: 0.85;
  position: relative;
}
.upcoming-card:hover {
  opacity: 1;
  cursor: default;
  transform: translateY(-4px);
}
.coming-soon-badge {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(212,164,28,0.2), rgba(212,164,28,0.1));
  border: 1px solid rgba(212,164,28,0.4);
  border-radius: 6px;
  color: #d4a41c;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Marquee tape ───────────────────────────────────────────────────────── */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.3) 100%);
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy-dark), transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, var(--navy-dark), transparent);
}
.marquee-track {
  display: flex;
  gap: 1.5rem;
  animation: marquee-scroll 60s linear infinite;
  width: max-content;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee-item {
  flex-shrink: 0;
  width: 140px;
  text-align: center;
  transition: transform 0.2s;
}
.marquee-item:hover {
  transform: scale(1.08);
}
.marquee-item img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(212,164,28,0.3);
  display: block;
  margin-bottom: 0.4rem;
}
.marquee-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reverse direction (bottom tape on auth pages) */
.marquee-track--reverse {
  animation-name: marquee-scroll-reverse;
}
@keyframes marquee-scroll-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Fixed-position variants for auth pages (login / register) */
.marquee-wrapper--fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.marquee-wrapper--fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

/* Auth-page tapes: never pause on hover (they're decorative background) */
.marquee-wrapper--fixed-top .marquee-track:hover,
.marquee-wrapper--fixed-bottom .marquee-track:hover {
  animation-play-state: running;
}

/* Auth-page tapes: transparent background (let the page bg show through) */
.marquee-wrapper--fixed-top,
.marquee-wrapper--fixed-bottom {
  background: transparent;
}
.marquee-wrapper--fixed-top::before,
.marquee-wrapper--fixed-top::after,
.marquee-wrapper--fixed-bottom::before,
.marquee-wrapper--fixed-bottom::after {
  background: transparent;
}

/* Auth-page tapes: scale down 15% vs lobby */
.marquee-wrapper--fixed-top .marquee-item,
.marquee-wrapper--fixed-bottom .marquee-item {
  width: 119px; /* 140 * 0.85 */
}
.marquee-wrapper--fixed-top .marquee-item img,
.marquee-wrapper--fixed-bottom .marquee-item img {
  width: 119px;
  height: 119px;
}
.marquee-wrapper--fixed-top .marquee-item span,
.marquee-wrapper--fixed-bottom .marquee-item span {
  font-size: 0.61rem; /* 0.72 * 0.85 */
}

/* loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--navy-light) 25%, var(--navy-mid) 50%, var(--navy-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.skeleton-thumb { width: 100%; aspect-ratio: 16/9; }
.skeleton-body { padding: 1rem; }
.skeleton-line { height: 14px; margin-bottom: 0.6rem; }
.skeleton-line.short { width: 60%; }

/* ── Live Activity Ticker ──────────────────────────────────────────────────── */
.activity-ticker {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
  overflow: hidden;
  position: relative;
}

.ticker-wrapper {
  background: linear-gradient(90deg, rgba(11,15,26,0.95) 0%, rgba(20,27,43,0.98) 50%, rgba(11,15,26,0.95) 100%);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.5rem 0;
  position: relative;
  overflow: hidden;
}

.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, rgba(11,15,26,0.95), transparent);
}
.ticker-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, rgba(11,15,26,0.95), transparent);
}

.ticker-label {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

.ticker-track {
  display: flex;
  gap: 1rem;
  animation: ticker-scroll 80s linear infinite;
  width: max-content;
  padding: 0.25rem 1rem 0.25rem 6.5rem; /* leave room for the LIVE badge */
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 0.3rem 0.75rem 0.3rem 0.55rem;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.ticker-item:hover {
  border-color: rgba(212, 164, 28, 0.4);
  background: rgba(212, 164, 28, 0.06);
}

.ticker-item-emoji {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ticker-item-text {
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 500;
}

.ticker-item-text strong {
  color: var(--gold-light);
  font-weight: 600;
}

.ticker-item-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 0.15rem;
}

/* Ticker win amount glow */
.ticker-item .ticker-amount {
  color: var(--emerald);
  font-weight: 700;
}

/* Ticker jackpot glow */
.ticker-item.type-jackpot .ticker-item-text strong {
  color: #f59e0b;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Lobby Stats Bar ───────────────────────────────────────────────────────── */
.lobby-stats-bar {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.lobby-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.lobby-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 164, 28, 0.4);
  box-shadow: 0 4px 20px rgba(212, 164, 28, 0.08);
}

.lobby-stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,164,28,0.04) 0%, transparent 70%);
  pointer-events: none;
}


.lobby-stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  transition: color 0.3s;
}

.lobby-stat-value.pulse {
  color: #fde68a;
}

.lobby-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* ── Live Activity Banner (single spotlight, full-width) ─────────────────── */
.activity-banner {
  max-width: 1200px;
  margin: 0 auto 0.5rem;
  padding: 0 1.5rem;
}

.activity-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(90deg, rgba(212,164,28,0.08) 0%, rgba(11,15,26,0.9) 30%, rgba(11,15,26,0.9) 100%);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  overflow: hidden;
  position: relative;
}

.activity-banner-inner::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(270deg, rgba(11,15,26,0.9), transparent);
  pointer-events: none;
}

.activity-banner-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fca5a5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-banner-badge .live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.activity-banner-text {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: banner-fade-in 0.4s ease-out;
}

.activity-banner-text .banner-amount {
  color: var(--emerald);
  font-weight: 700;
}

.activity-banner-text .banner-name {
  color: var(--gold-light);
  font-weight: 600;
}

@keyframes banner-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.activity-banner-time {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Banner win flash (rapid 3-pulse burst) ──────────────────────────────── */
.activity-banner-inner.flash-win {
  animation: banner-flash-win 0.55s ease-out;
}

.activity-banner-inner.flash-jackpot {
  animation: banner-flash-jackpot 0.7s ease-out;
}

@keyframes banner-flash-win {
  /* Pulse 1 */
  0%   { box-shadow: inset 0 0 0 rgba(16,185,129,0), 0 0 0 rgba(16,185,129,0); border-color: var(--card-border); }
  10%  { box-shadow: inset 0 0 50px rgba(16,185,129,0.6), 0 0 35px rgba(16,185,129,0.7), 0 0 70px rgba(16,185,129,0.3); border-color: rgba(16,185,129,1); }
  25%  { box-shadow: inset 0 0 0 rgba(16,185,129,0), 0 0 0 rgba(16,185,129,0); border-color: var(--card-border); }
  /* Pulse 2 */
  35%  { box-shadow: inset 0 0 50px rgba(16,185,129,0.6), 0 0 35px rgba(16,185,129,0.7), 0 0 70px rgba(16,185,129,0.3); border-color: rgba(16,185,129,1); }
  55%  { box-shadow: inset 0 0 0 rgba(16,185,129,0), 0 0 0 rgba(16,185,129,0); border-color: var(--card-border); }
  /* Pulse 3 */
  65%  { box-shadow: inset 0 0 50px rgba(16,185,129,0.6), 0 0 35px rgba(16,185,129,0.7), 0 0 70px rgba(16,185,129,0.3); border-color: rgba(16,185,129,1); }
  85%  { box-shadow: inset 0 0 10px rgba(16,185,129,0.2), 0 0 8px rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); }
  100% { box-shadow: inset 0 0 0 rgba(16,185,129,0), 0 0 0 rgba(16,185,129,0); border-color: var(--card-border); }
}

@keyframes banner-flash-jackpot {
  /* Pulse 1 */
  0%   { box-shadow: inset 0 0 0 rgba(245,158,11,0), 0 0 0 rgba(245,158,11,0); border-color: var(--card-border); background: linear-gradient(90deg, rgba(212,164,28,0.08) 0%, rgba(11,15,26,0.9) 30%, rgba(11,15,26,0.9) 100%); }
  8%   { box-shadow: inset 0 0 70px rgba(245,158,11,0.7), 0 0 50px rgba(245,158,11,0.8), 0 0 90px rgba(245,158,11,0.4); border-color: rgba(245,158,11,1); background: linear-gradient(90deg, rgba(245,158,11,0.3) 0%, rgba(212,164,28,0.18) 30%, rgba(11,15,26,0.9) 100%); }
  22%  { box-shadow: inset 0 0 0 rgba(245,158,11,0), 0 0 0 rgba(245,158,11,0); border-color: var(--card-border); background: linear-gradient(90deg, rgba(212,164,28,0.08) 0%, rgba(11,15,26,0.9) 30%, rgba(11,15,26,0.9) 100%); }
  /* Pulse 2 */
  30%  { box-shadow: inset 0 0 70px rgba(245,158,11,0.7), 0 0 50px rgba(245,158,11,0.8), 0 0 90px rgba(245,158,11,0.4); border-color: rgba(245,158,11,1); background: linear-gradient(90deg, rgba(245,158,11,0.3) 0%, rgba(212,164,28,0.18) 30%, rgba(11,15,26,0.9) 100%); }
  48%  { box-shadow: inset 0 0 0 rgba(245,158,11,0), 0 0 0 rgba(245,158,11,0); border-color: var(--card-border); background: linear-gradient(90deg, rgba(212,164,28,0.08) 0%, rgba(11,15,26,0.9) 30%, rgba(11,15,26,0.9) 100%); }
  /* Pulse 3 */
  56%  { box-shadow: inset 0 0 70px rgba(245,158,11,0.7), 0 0 50px rgba(245,158,11,0.8), 0 0 90px rgba(245,158,11,0.4); border-color: rgba(245,158,11,1); background: linear-gradient(90deg, rgba(245,158,11,0.3) 0%, rgba(212,164,28,0.18) 30%, rgba(11,15,26,0.9) 100%); }
  78%  { box-shadow: inset 0 0 10px rgba(245,158,11,0.2), 0 0 8px rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.3); background: linear-gradient(90deg, rgba(212,164,28,0.08) 0%, rgba(11,15,26,0.9) 30%, rgba(11,15,26,0.9) 100%); }
  100% { box-shadow: inset 0 0 0 rgba(245,158,11,0), 0 0 0 rgba(245,158,11,0); border-color: var(--card-border); background: linear-gradient(90deg, rgba(212,164,28,0.08) 0%, rgba(11,15,26,0.9) 30%, rgba(11,15,26,0.9) 100%); }
}

/* ── Game page ─────────────────────────────────────────────────────────────── */
.game-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
}

.game-page .site-header {
  flex-shrink: 0;
  background: #050810;
}

.game-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #050810;
}

#game-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: #050810;
  z-index: 10;
  transition: opacity 0.3s;
}
#game-spinner.hidden { opacity: 0; pointer-events: none; }

.spinner-ring {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(212,164,28,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#game-spinner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.1em;
}

#game-frame {
  display: block;
  width: 100%;
  border: 0;
}

/* ── Error toast ───────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  max-width: 320px;
  animation: slideIn 0.25s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.toast.error { border-color: rgba(239,68,68,0.4); color: #fca5a5; }
.toast.win   { border-color: rgba(16,185,129,0.4); color: #6ee7b7; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.7;
  border-top: 1px solid var(--card-border);
}
.site-footer .powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  opacity: 0.5;
}
.site-footer .powered-by img { height: 32px; }
.site-footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.site-footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.15s;
}
.site-footer .footer-links a:hover { color: var(--gold); }
.site-footer .footer-sep { color: rgba(255,255,255,0.12); }

/* ── Wallet Dashboard (§10) ─────────────────────────────────────────────────── */
.wallet-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.wallet-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.wallet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.wallet-card-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin: 0;
}

.wallet-balance-amount {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.wallet-balance-amount .coin-icon {
  font-size: 1.8rem;
}

.wallet-balance-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wallet-balance-actions {
  display: flex;
  gap: 0.75rem;
}

.wallet-form-card {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Data Table ─────────────────────────────────────────────────────────────── */
.table-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table thead {
  background: rgba(212, 164, 28, 0.08);
}

.data-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
}

.data-table td {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--text-main);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tbody tr:hover {
  background: rgba(212, 164, 28, 0.04);
}

.tx-positive { color: var(--emerald); font-weight: 600; }
.tx-negative { color: var(--red); font-weight: 600; }

/* ── Stats Grid ─────────────────────────────────────────────────────────────── */
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 164, 28, 0.4);
}

.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Form hint ──────────────────────────────────────────────────────────────── */
.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.25rem 0 1rem;
  font-style: italic;
}

/* ── Small button variant ───────────────────────────────────────────────────── */
.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

/* ── Page layout (wallet, settings) ─────────────────────────────────────────── */
.page-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-hero {
  text-align: center;
  padding: 2.5rem 1.5rem 1rem;
}

.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
}

/* ── Section header ─────────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin: 0;
}

.section-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filter-select {
  padding: 0.45rem 0.75rem;
  background: var(--navy-light);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
}

.filter-select:focus {
  border-color: var(--gold);
}

/* ── Wallet overview grid ───────────────────────────────────────────────────── */
.wallet-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Multi-currency balance cards ───────────────────────────────────────────── */
.balance-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.balance-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: transform 0.15s, border-color 0.15s;
}

.balance-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 164, 28, 0.4);
}

.balance-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 164, 28, 0.1);
  border-radius: 50%;
  overflow: hidden;
}

.balance-card-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.balance-card-symbol {
  font-size: 1.5rem;
}

.balance-card-info {
  min-width: 0;
}

.balance-card-amount {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.balance-card-currency {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Chain group (deposit addresses by network family) ───────────────────────── */
.chain-group {
  margin-bottom: 1rem;
}

.chain-group-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.chain-group-icon {
  font-size: 1.1rem;
}

.chain-group-badge {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  background: rgba(212, 164, 28, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ── Withdrawal fee preview (v1.5.0) ────────────────────────────────────────── */
.fee-preview {
  background: rgba(212, 164, 28, 0.05);
  border: 1px solid rgba(212, 164, 28, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.25rem 0;
  color: var(--text-muted);
}

.fee-row span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

.fee-total {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.3rem;
  padding-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--gold-light);
}

.fee-total span:last-child {
  color: var(--emerald);
}

/* ── Bonus cards (v1.4.0) ───────────────────────────────────────────────────── */
.bonus-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
}

.bonus-card:hover {
  border-color: rgba(212, 164, 28, 0.4);
}

.bonus-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.bonus-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  color: var(--gold-light);
  font-weight: 600;
}

.bonus-status {
  font-size: 0.75rem;
  font-weight: 600;
}

.bonus-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bonus-amount {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

.bonus-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.bonus-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.bonus-progress-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bonus-expiry {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Quick stats list ───────────────────────────────────────────────────────── */
.quick-stats-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.quick-stat {
  background: rgba(212, 164, 28, 0.04);
  border-radius: 8px;
  padding: 0.7rem;
}

.quick-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.quick-stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ── Wallet actions grid ────────────────────────────────────────────────────── */
.wallet-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Deposit address box ────────────────────────────────────────────────────── */
.deposit-address-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.deposit-address-box code {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--gold-light);
  word-break: break-all;
  background: none;
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.full-width { width: 100%; }

/* ── Data table full width ──────────────────────────────────────────────────── */
.data-table.full-width {
  width: 100%;
}

.table-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.table-state a {
  color: var(--gold-light);
}

/* ── Settings Grid ──────────────────────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.settings-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.settings-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-info-row:last-child {
  border-bottom: none;
}

.settings-info-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.settings-info-value {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

.settings-info-value code {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--gold-light);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .wallet-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wallet-overview-grid,
  .wallet-actions-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .quick-stats-list {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 1.3rem;
  }

  /* Ticker mobile */
  .ticker-label {
    font-size: 0.6rem;
    padding: 0.2rem 0.45rem;
  }
  .ticker-track {
    padding-left: 5rem;
  }
  .ticker-item {
    padding: 0.2rem 0.55rem;
    gap: 0.25rem;
  }
  .ticker-item-text {
    font-size: clamp(0.55rem, 2.3vw, 0.7rem);
  }

  /* Stats bar mobile — 2x2 grid */
  .lobby-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .lobby-stat-card {
    padding: 0.7rem 0.5rem;
  }
  .lobby-stat-value {
    font-size: 0.95rem;
  }

  /* Activity banner — smaller on mobile, fixed width */
  .activity-banner {
    padding: 0 1rem;
    width: 100%;
  }
  .activity-banner-inner {
    width: 100%;
  }
  .activity-banner-text {
    font-size: clamp(0.55rem, 2.5vw, 0.76rem);
  }
  .activity-banner-badge {
    font-size: 0.62rem;
    padding: 0.2rem 0.45rem;
  }

  /* Auth-page marquee (symbol tape) images — 30 % smaller on mobile */
  .marquee-wrapper--fixed-top .marquee-item,
  .marquee-wrapper--fixed-bottom .marquee-item {
    width: 83px;
  }
  .marquee-wrapper--fixed-top .marquee-item img,
  .marquee-wrapper--fixed-bottom .marquee-item img {
    width: 83px;
    height: 83px;
  }
  .marquee-wrapper--fixed-top .marquee-item span,
  .marquee-wrapper--fixed-bottom .marquee-item span {
    font-size: 0.43rem;
  }

  /* ── Lobby game cards — compact 2-column grid on mobile ────────────────── */
  .games-section {
    padding: 1.2rem 0.75rem;
  }

  .section-title {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .game-card-thumb {
    aspect-ratio: 4 / 5;
  }

  .game-card-thumb img {
    object-fit: contain;
  }

  .game-card-body {
    padding: 0.5rem 0.6rem 0.6rem;
  }

  .game-card-body h3 {
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
  }

  .game-card-tagline {
    display: none;
  }

  .game-card-meta {
    font-size: 0.68rem;
    margin-bottom: 0.35rem;
  }

  .volatility-badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
  }

  /* Upcoming card badge more compact */
  .coming-soon-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
  }
}


/* ── Symbol Tape (decorative slot-symbol marquee — top + bottom of lobby) ── */

.symbol-tape {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: rgba(11, 15, 26, 0.7);
  padding: 0.4rem 0;
  margin: 0;
  user-select: none;
  pointer-events: none;
}

.symbol-tape::before,
.symbol-tape::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 2;
  pointer-events: none;
}
.symbol-tape::before {
  left: 0;
  background: linear-gradient(90deg, rgba(11,15,26,0.9), transparent);
}
.symbol-tape::after {
  right: 0;
  background: linear-gradient(270deg, rgba(11,15,26,0.9), transparent);
}

.symbol-tape-inner {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  animation: symbol-scroll 25s linear infinite;
}

.symbol-tape--reverse .symbol-tape-inner {
  animation-name: symbol-scroll-reverse;
}

.symbol-tape-inner span {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.55;
  filter: grayscale(0.2);
}

/* Fixed-position variants for auth pages (login / register) */
.symbol-tape--fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.symbol-tape--fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.symbol-tape-inner::after {
  content: "\01F352\00A0\01F34B\00A0\01F34A\00A0\01F347\00A0\01F48E\00A037\FE0F\20E3\00A0\01F514\00A0\2B50\00A0\01F3B0\00A0\01FA99\00A0\01F352\00A0\01F34B\00A0\01F34A\00A0\01F347\00A0\01F48E\00A037\FE0F\20E3\00A0\01F514\00A0\2B50\00A0\01F3B0\00A0\01FA99\00A0\01F352\00A0\01F34B\00A0\01F34A\00A0\01F347\00A0\01F48E\00A037\FE0F\20E3\00A0\01F514\00A0\2B50\00A0\01F3B0\00A0\01FA99\00A0\01F352\00A0\01F34B\00A0\01F34A\00A0\01F347\00A0\01F48E\00A037\FE0F\20E3\00A0\01F514\00A0\2B50\00A0\01F3B0\00A0\01FA99";
  display: block;
}

@keyframes symbol-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes symbol-scroll-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ── Cookie Consent Banner ─────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  padding: 0;
}
#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.cookie-banner-link {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.cookie-banner-link:hover {
  color: var(--gold);
}

.cookie-banner-btn {
  flex-shrink: 0;
  padding: 0.5rem 1.4rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: var(--navy-dark);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 2px 10px rgba(212,164,28,0.25);
}
.cookie-banner-btn:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, #ffe060 50%, var(--gold-light) 100%);
  box-shadow: 0 4px 18px rgba(212,164,28,0.4);
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }
  .cookie-banner-text {
    font-size: 0.78rem;
  }
  .cookie-banner-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}
