/* NeonDraw, Vegas neon crypto lottery UI */

:root {
  --bg-primary: #0d0d14;
  --bg-secondary: #14141f;
  --bg-card: #1a1a28;
  --bg-elevated: #222233;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f5;
  --text-secondary: #a8a8be;
  --text-muted: #9090a8;
  --accent-gold: #f5b731;
  --accent-gold-hover: #ffc94d;
  --accent-green: #00d68f;
  --accent-purple: #7c5cfc;
  --accent-pink: #ff6b9d;
  --gradient-gold: linear-gradient(135deg, #f5b731 0%, #ff8c00 100%);
  --gradient-hero: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #0f3460 100%);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --sidebar-w: 220px;
  --frame-inset: 12px;
  --font: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  --tracking-tight: -0.025em;
  --tracking-normal: 0.01em;
  --leading-body: 1.62;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(900px 480px at 8% -5%, rgba(124, 92, 252, 0.12), transparent 55%),
    radial-gradient(700px 420px at 92% 5%, rgba(245, 183, 49, 0.09), transparent 50%),
    radial-gradient(600px 360px at 70% 100%, rgba(255, 107, 157, 0.06), transparent 55%),
    var(--bg-primary);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-normal);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  padding: var(--frame-inset);
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + var(--frame-inset) + 12px);
}

#app {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Header */
.header {
  position: fixed;
  top: var(--frame-inset);
  left: var(--frame-inset);
  right: var(--frame-inset);
  height: var(--header-h);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 100;
  isolation: isolate;
  border-radius: 0 0 8px 8px;
}

.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-gold) 14%,
    var(--accent-pink) 32%,
    var(--accent-purple) 52%,
    var(--accent-gold) 72%,
    #5eead4 86%,
    transparent 100%
  );
  opacity: 0.7;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(245, 183, 49, 0.3);
}

/* Full-site casino marquee frame — chasing bulbs around the viewport */
.casino-lights-frame {
  --rail: 11px;
  --bulb-gap: 16px;
  position: fixed;
  inset: 0;
  z-index: 160;
  pointer-events: none;
  overflow: hidden;
}

.casino-lights-rail {
  position: absolute;
  background-color: #0a0a10;
  background-image:
    radial-gradient(circle closest-side, rgba(245, 183, 49, 0.28) 0 42%, transparent 48%),
    radial-gradient(circle closest-side, #f5b731 0 46%, transparent 55%),
    radial-gradient(circle closest-side, #ff6b9d 0 42%, transparent 52%),
    radial-gradient(circle closest-side, #7c5cfc 0 42%, transparent 52%),
    radial-gradient(circle closest-side, #5eead4 0 40%, transparent 50%);
  box-shadow:
    inset 0 0 0 1px rgba(245, 183, 49, 0.15),
    0 0 18px rgba(245, 183, 49, 0.12);
}

.casino-lights-top,
.casino-lights-bottom {
  left: 0;
  right: 0;
  height: var(--rail);
  background-size:
    var(--bulb-gap) 100%,
    calc(var(--bulb-gap) * 4) 100%,
    calc(var(--bulb-gap) * 4) 100%,
    calc(var(--bulb-gap) * 4) 100%,
    calc(var(--bulb-gap) * 4) 100%;
  background-position:
    0 50%,
    0 50%,
    calc(var(--bulb-gap)) 50%,
    calc(var(--bulb-gap) * 2) 50%,
    calc(var(--bulb-gap) * 3) 50%;
  background-repeat: repeat-x;
  animation: casino-chase-x 1.35s linear infinite;
}

.casino-lights-top { top: 0; }
.casino-lights-bottom {
  bottom: 0;
  animation-direction: reverse;
}

.casino-lights-left,
.casino-lights-right {
  top: 0;
  bottom: 0;
  width: var(--rail);
  background-size:
    100% var(--bulb-gap),
    100% calc(var(--bulb-gap) * 4),
    100% calc(var(--bulb-gap) * 4),
    100% calc(var(--bulb-gap) * 4),
    100% calc(var(--bulb-gap) * 4);
  background-position:
    50% 0,
    50% 0,
    50% calc(var(--bulb-gap)),
    50% calc(var(--bulb-gap) * 2),
    50% calc(var(--bulb-gap) * 3);
  background-repeat: repeat-y;
  animation: casino-chase-y 1.35s linear infinite;
}

.casino-lights-left { left: 0; }
.casino-lights-right {
  right: 0;
  animation-direction: reverse;
}

/* Bright chase “head” sweeping along each rail */
.casino-lights-rail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 246, 208, 0.15) 42%,
    rgba(245, 183, 49, 0.95) 48%,
    rgba(255, 107, 157, 0.9) 52%,
    rgba(124, 92, 252, 0.85) 56%,
    rgba(94, 234, 212, 0.55) 60%,
    transparent 68%,
    transparent 100%
  );
  background-size: 220% 100%;
  mix-blend-mode: screen;
  animation: casino-sweep-x 2.4s linear infinite;
  opacity: 0.9;
}

.casino-lights-left::after,
.casino-lights-right::after {
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 246, 208, 0.15) 42%,
    rgba(245, 183, 49, 0.95) 48%,
    rgba(255, 107, 157, 0.9) 52%,
    rgba(124, 92, 252, 0.85) 56%,
    rgba(94, 234, 212, 0.55) 60%,
    transparent 68%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation-name: casino-sweep-y;
}

.casino-lights-bottom::after,
.casino-lights-right::after {
  animation-direction: reverse;
}

@keyframes casino-chase-x {
  to {
    background-position:
      calc(var(--bulb-gap) * -1) 50%,
      calc(var(--bulb-gap) * -4) 50%,
      calc(var(--bulb-gap) * -3) 50%,
      calc(var(--bulb-gap) * -2) 50%,
      calc(var(--bulb-gap) * -1) 50%;
  }
}

@keyframes casino-chase-y {
  to {
    background-position:
      50% calc(var(--bulb-gap) * -1),
      50% calc(var(--bulb-gap) * -4),
      50% calc(var(--bulb-gap) * -3),
      50% calc(var(--bulb-gap) * -2),
      50% calc(var(--bulb-gap) * -1);
  }
}

@keyframes casino-sweep-x {
  to { background-position: -120% 0; }
}

@keyframes casino-sweep-y {
  to { background-position: 0 -120%; }
}

@media (prefers-reduced-motion: reduce) {
  .casino-lights-rail,
  .casino-lights-rail::after {
    animation: none !important;
  }
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: var(--tracking-tight);
  flex-shrink: 0;
}
.logo-star {
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 0 8px rgba(245, 183, 49, 0.55));
}
.logo-star svg { stroke: var(--accent-gold); fill: var(--accent-gold); }
.icon-star svg { fill: currentColor; }
.sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
  color: var(--text-muted);
}
.sidebar-item.active .sidebar-icon,
.sidebar-item:hover .sidebar-icon { color: var(--accent-purple); }

/* Icon system */
.icon { display: block; flex-shrink: 0; }
.icon-inline { display: inline-block; vertical-align: middle; margin-right: 6px; }
.icon-gold { color: var(--accent-gold); }
.icon-gold svg { stroke: var(--accent-gold); }

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124, 92, 252, 0.12);
  color: var(--accent-purple);
  flex-shrink: 0;
}
.stat-icon svg { stroke: var(--accent-purple); }

.section-title,
.panel-title,
.featured-draw-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}
.section-title { font-size: 1.22rem; }
.panel-title { font-size: 1rem; font-weight: 600; }
.title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}
.title-icon svg { stroke: var(--accent-gold); }

.draw-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent-purple);
  margin-bottom: 4px;
}
.draw-card.active .draw-card-icon {
  background: rgba(245, 183, 49, 0.15);
  color: var(--accent-gold);
}
.draw-card.active .draw-card-icon svg { stroke: var(--accent-gold); }

/* Distinct colors per draw tier */
.draw-card[data-draw-id="daily"] {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.1), var(--bg-card) 55%);
}
.draw-card[data-draw-id="daily"] .draw-card-icon {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}
.draw-card[data-draw-id="daily"] .draw-card-icon svg { stroke: #38bdf8; }
.draw-card[data-draw-id="daily"] .draw-card-prize { color: #7dd3fc; }
.draw-card[data-draw-id="daily"].active {
  border-color: #38bdf8;
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.2), rgba(26, 26, 40, 0.95));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.draw-card[data-draw-id="weekly"] {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(165deg, rgba(52, 211, 153, 0.1), var(--bg-card) 55%);
}
.draw-card[data-draw-id="weekly"] .draw-card-icon {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}
.draw-card[data-draw-id="weekly"] .draw-card-icon svg { stroke: #34d399; }
.draw-card[data-draw-id="weekly"] .draw-card-prize { color: #6ee7b7; }
.draw-card[data-draw-id="weekly"].active {
  border-color: #34d399;
  background: linear-gradient(165deg, rgba(52, 211, 153, 0.2), rgba(26, 26, 40, 0.95));
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25);
}

.draw-card[data-draw-id="monthly"] {
  border-color: rgba(251, 146, 60, 0.4);
  background: linear-gradient(165deg, rgba(251, 146, 60, 0.12), var(--bg-card) 55%);
}
.draw-card[data-draw-id="monthly"] .draw-card-icon {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
}
.draw-card[data-draw-id="monthly"] .draw-card-icon svg { stroke: #fb923c; }
.draw-card[data-draw-id="monthly"] .draw-card-prize { color: #fdba74; }
.draw-card[data-draw-id="monthly"].active {
  border-color: #fb923c;
  background: linear-gradient(165deg, rgba(251, 146, 60, 0.22), rgba(26, 26, 40, 0.95));
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.3);
}

.draw-card[data-draw-id="quarterly"] {
  border-color: rgba(232, 121, 249, 0.4);
  background: linear-gradient(165deg, rgba(232, 121, 249, 0.12), var(--bg-card) 55%);
}
.draw-card[data-draw-id="quarterly"] .draw-card-icon {
  background: rgba(232, 121, 249, 0.2);
  color: #e879f9;
}
.draw-card[data-draw-id="quarterly"] .draw-card-icon svg { stroke: #e879f9; }
.draw-card[data-draw-id="quarterly"] .draw-card-prize { color: #f0abfc; }
.draw-card[data-draw-id="quarterly"].active {
  border-color: #e879f9;
  background: linear-gradient(165deg, rgba(232, 121, 249, 0.22), rgba(26, 26, 40, 0.95));
  box-shadow: 0 0 0 1px rgba(232, 121, 249, 0.3);
}

.featured-draw-label[data-draw-id="daily"] { color: #7dd3fc; }
.featured-draw-label[data-draw-id="daily"] svg { stroke: #38bdf8; }
.featured-draw-label[data-draw-id="weekly"] { color: #6ee7b7; }
.featured-draw-label[data-draw-id="weekly"] svg { stroke: #34d399; }
.featured-draw-label[data-draw-id="monthly"] { color: #fdba74; }
.featured-draw-label[data-draw-id="monthly"] svg { stroke: #fb923c; }
.featured-draw-label[data-draw-id="quarterly"] { color: #f0abfc; }
.featured-draw-label[data-draw-id="quarterly"] svg { stroke: #e879f9; }

.wallet-icon-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent-purple);
}
.wallet-icon-large svg { stroke: var(--accent-purple); }

.security-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.security-badge [data-icon] {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-green);
}
.security-badge svg { stroke: var(--accent-green); }

.logo-accent { color: var(--accent-gold); }

.header-nav {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Step Inside CTA — gold, restrained */
.btn-portal {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 183, 49, 0.5);
  background: linear-gradient(135deg, rgba(245, 183, 49, 0.18), rgba(20, 16, 28, 0.95));
  color: #fff8e7;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.2s, box-shadow 0.2s;
}
.btn-portal:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 214, 102, 0.85);
  box-shadow: 0 8px 24px rgba(245, 183, 49, 0.2);
}
.btn-portal:active { transform: scale(0.98); }
.btn-portal-glow {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 140deg, transparent 45%, rgba(245, 183, 49, 0.22), transparent 70%);
  animation: portal-spin 8s linear infinite;
  opacity: 0.4;
  z-index: -1;
}
.btn-portal-orb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 183, 49, 0.7);
  flex-shrink: 0;
}
.btn-portal-arrow { opacity: 0.8; transition: transform 0.15s; }
.btn-portal:hover .btn-portal-arrow { transform: translateX(2px); }
.btn-start-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
  text-align: left;
}
.btn-start-main {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff6d8;
}
.btn-start-sub {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 236, 190, 0.7);
}
.btn-portal-lg { padding: 12px 20px 12px 16px; }
.btn-portal-lg .btn-start-main { font-size: 1rem; }
.btn-portal-block { width: 100%; justify-content: center; }
.btn-portal.is-connected {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  background: var(--bg-elevated);
  box-shadow: none;
  padding: 10px 14px;
}
.btn-portal.is-connected .btn-portal-glow,
.btn-portal.is-connected .btn-portal-orb,
.btn-portal.is-connected .btn-portal-arrow,
.btn-portal.is-connected .btn-start-sub { display: none; }
.btn-portal.is-connected .btn-start-main {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
body.is-player .portal-gateway { display: none; }
@keyframes portal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn-portal-glow { animation: none; }
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.btn-icon:hover { background: var(--bg-elevated); color: var(--text-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-elevated); }
.btn-primary {
  background: var(--accent-purple);
  color: #fff;
}
.btn-primary:hover { background: #9070ff; box-shadow: 0 4px 20px rgba(124, 92, 252, 0.4); }
.btn-gold {
  background: var(--gradient-gold);
  color: #1a0a00;
  font-weight: 700;
}
.btn-gold:hover { box-shadow: 0 4px 24px rgba(245, 183, 49, 0.45); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Layout */
.layout {
  display: flex;
  padding-top: var(--header-h);
  min-height: calc(100vh - var(--header-h) - var(--frame-inset) * 2);
  width: 100%;
  max-width: 100%;
}

.sidebar {
  position: fixed;
  top: calc(var(--header-h) + var(--frame-inset));
  left: var(--frame-inset);
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h) - var(--frame-inset) * 2);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  overflow-y: auto;
  z-index: 50;
  transition: transform 0.3s;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.sidebar-item:hover, .sidebar-item.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.sidebar-divider { height: 1px; background: var(--border); margin: 12px 0; }

.sidebar-balance {
  margin-top: 20px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.balance-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.balance-amount { font-size: 1.1rem; font-weight: 700; color: var(--accent-gold); }

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  width: calc(100% - var(--sidebar-w));
  max-width: calc(100% - var(--sidebar-w));
  padding: 16px 20px 32px;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.stats-bar-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stat-highlight {
  border-color: rgba(245, 183, 49, 0.45);
  background: linear-gradient(135deg, rgba(245, 183, 49, 0.1), var(--bg-card));
  box-shadow:
    0 0 20px rgba(245, 183, 49, 0.12),
    inset 0 0 0 1px rgba(245, 183, 49, 0.08);
  position: relative;
}
.stat-highlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 183, 49, 0.55), rgba(255, 107, 157, 0.25), rgba(124, 92, 252, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}
.stat-highlight .stat-icon {
  background: rgba(245, 183, 49, 0.15);
  color: var(--accent-gold);
}
.stat-highlight .stat-icon svg { stroke: var(--accent-gold); }
.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 0;
}
.stat-icon { font-size: 1.2rem; flex-shrink: 0; }
.stat-value { display: block; font-weight: 700; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-label { display: block; font-size: 0.65rem; color: var(--text-muted); }

/* Hero */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  min-height: 280px;
}
.hero-slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px;
  background: var(--hero-bg, var(--gradient-hero));
  min-height: 280px;
}
.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(245, 183, 49, 0.2);
  color: var(--accent-gold);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.hero-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 520px;
}
.text-gold { color: var(--accent-gold); }
.hero-content p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { flex-shrink: 0; }
.hero-coins {
  display: flex;
  gap: 16px;
  font-size: 3.5rem;
  opacity: 0.9;
  animation: float 3s ease-in-out infinite;
}
.hero-coins span:nth-child(2) { animation-delay: 0.5s; }
.hero-coins span:nth-child(3) { animation-delay: 1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
}
.hero-dot.active { background: var(--accent-gold); width: 24px; border-radius: 4px; }

/* Crypto bar */
.crypto-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
}
.crypto-bar-label { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.crypto-icons { display: flex; gap: 8px; }
.crypto-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.crypto-chip:hover, .crypto-chip.active {
  background: rgba(245, 183, 49, 0.15);
  color: var(--accent-gold);
}

/* Game sections */
.game-section { margin-bottom: 32px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(1.05rem, 2.5vw, 1.25rem); font-weight: 700; }
.section-hint { font-size: 0.8rem; color: var(--text-secondary); }
.see-all { font-size: 0.875rem; color: var(--accent-gold); font-weight: 500; }
.see-all:hover { text-decoration: underline; }

.game-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) transparent;
}
.game-slider::-webkit-scrollbar { height: 6px; }
.game-slider::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }

.game-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s;
}
.game-card:hover { transform: translateY(-4px); }
.game-thumb {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-card));
  color: var(--accent-purple);
}
.game-thumb-placeholder svg,
.game-card-icon svg { stroke: var(--accent-purple); }
.game-card:hover .game-thumb-placeholder svg { stroke: var(--accent-gold); }
.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}
.game-badge.hot { background: #ff4757; color: #fff; }
.game-badge.new { background: var(--accent-green); color: #000; }
.game-badge.jackpot { background: var(--accent-gold); color: #000; }
.game-card h3 {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card p { font-size: 0.7rem; color: var(--text-muted); }

/* Promotions */
.promotions { margin-bottom: 32px; }
.promotions-featured {
  margin: 8px 0 28px;
  padding: 18px 16px 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(245, 183, 49, 0.08), rgba(26, 26, 40, 0.9));
  border: 1px solid rgba(245, 183, 49, 0.22);
}
.promotions-inline { margin-top: 4px; }
.promo-intro {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: -4px 0 14px;
  line-height: 1.45;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.promo-card {
  position: relative;
  padding: 24px 20px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.2s;
}
.promo-card:hover {
  border-color: rgba(245, 183, 49, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.promo-card:hover::before { opacity: 1; }
.promo-card-vip { border-color: rgba(245, 183, 49, 0.25); background: linear-gradient(160deg, rgba(245, 183, 49, 0.06), var(--bg-card)); }
.promo-card-hot::before { opacity: 1; background: linear-gradient(90deg, #ff4757, #ff9f43); }
.promo-card-ticket-prize {
  border-color: rgba(124, 92, 252, 0.35);
  background: linear-gradient(160deg, rgba(124, 92, 252, 0.1), var(--bg-card));
}
.promo-card-prize-product::before {
  opacity: 1;
  background: linear-gradient(90deg, #7c5cfc, #00d68f);
}
.promo-badge-ticket-prize {
  background: rgba(124, 92, 252, 0.2);
  color: #c4b5fd;
  border-color: rgba(124, 92, 252, 0.4);
}
.promo-price-ticket {
  color: #c4b5fd;
  font-weight: 800;
}
.promo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--accent-pink);
  color: #fff;
}
.promo-badge-save { background: var(--accent-green); color: #000; }
.promo-badge-bonus { background: var(--accent-purple); }
.promo-badge-vip { background: var(--accent-gold); color: #1a0a00; }
.promo-badge-hot { background: #ff4757; }
.promo-badge-starter { background: #3498db; }
.promo-card h3 { font-size: 1.05rem; margin-bottom: 8px; padding-right: 72px; }
.promo-card p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 14px; min-height: 2.8em; }
.promo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.promo-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold);
}
.promo-cta { width: 100%; }

/* Affiliate partners */
.affiliate-partners {
  margin-bottom: 32px;
}
.partners-intro,
.brand-names-intro {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 720px;
}
.partners-intro { margin-bottom: 20px; }
.brand-names-intro code {
  font-size: 0.78rem;
  color: var(--accent-gold);
  background: rgba(245, 183, 49, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.partner-card {
  position: relative;
  padding: 16px 14px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0.6;
}
.partner-card:hover {
  border-color: rgba(245, 183, 49, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.partner-tier-neon::before { background: linear-gradient(90deg, #ff6b9d, #7c5cfc); }
.partner-tier-emerald::before { background: linear-gradient(90deg, #00d68f, #0a7c59); }
.partner-tier-silver::before { background: linear-gradient(90deg, #c0c0c0, #606060); }
.partner-logo-wrap {
  margin-bottom: 10px;
  height: 48px;
  display: flex;
  align-items: center;
}
.partner-logo-svg {
  width: 100%;
  max-width: 140px;
  height: 48px;
}
.partner-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.partner-meta strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.partner-meta span {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.partner-affiliate-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(124, 92, 252, 0.25);
}
.partner-card-official {
  border-color: rgba(245, 183, 49, 0.4);
  background: linear-gradient(160deg, rgba(245, 183, 49, 0.06), var(--bg-card));
  grid-column: span 1;
}
.partner-card-official::before {
  opacity: 1;
  height: 3px;
}
.partner-logo-real {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 4px 0;
}
.partner-real-logo {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.12) contrast(1.05);
}
.partner-logo-ph {
  max-height: 48px;
  filter: saturate(1.35) contrast(1.12) brightness(1.1)
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.08));
}
.partner-card-ph .partner-meta strong {
  color: #ffd24d;
}
.partner-card-ph .partner-meta span {
  color: rgba(255, 210, 77, 0.85);
}
.partner-badge-official {
  background: rgba(245, 183, 49, 0.15);
  color: var(--accent-gold);
  border-color: rgba(245, 183, 49, 0.35);
}
.partners-attribution {
  margin-top: 14px;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Ticket lookup */
.ticket-lookup-section {
  margin-top: 28px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.lookup-intro {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 18px;
  line-height: 1.5;
}
.ticket-lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 20px;
}
.lookup-input-wrap {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lookup-input-wrap:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(245, 183, 49, 0.15);
}
.lookup-input-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}
.lookup-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
.lookup-input:focus {
  outline: none;
  box-shadow: none;
}
.lookup-search-btn {
  flex-shrink: 0;
}
.lookup-use-connected {
  flex-shrink: 0;
}
.ticket-lookup-results {
  min-height: 120px;
}
.lookup-placeholder,
.lookup-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.lookup-empty-hint {
  font-size: 0.78rem;
  opacity: 0.85;
  max-width: 420px;
}
.lookup-error {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: #ff8fa3;
  font-size: 0.88rem;
}
.lookup-summary {
  padding: 18px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 183, 49, 0.08), rgba(124, 92, 252, 0.06));
  border: 1px solid rgba(245, 183, 49, 0.2);
}
.lookup-summary-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.lookup-summary-count {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}
.lookup-summary-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.lookup-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.lookup-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lookup-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.lookup-stat strong {
  font-size: 0.95rem;
}
.lookup-address-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  text-decoration: none;
}
.lookup-address-link:hover {
  text-decoration: underline;
}
.lookup-tx-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lookup-tx-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}
.lookup-tx-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}
.lookup-tx-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.lookup-tx-qty {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(124, 92, 252, 0.15);
  color: #b8a0ff;
  font-size: 0.72rem;
}
.lookup-tx-total {
  color: var(--text);
  font-weight: 500;
}
.lookup-tx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: rgba(0, 214, 143, 0.08);
  border: 1px solid rgba(0, 214, 143, 0.2);
}
.lookup-tx-link:hover {
  background: rgba(0, 214, 143, 0.15);
}
.lookup-ticket-list {
  padding: 8px 0;
}
.lookup-ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.lookup-ticket-row:last-child {
  border-bottom: none;
}
.lookup-ticket-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lookup-ticket-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.lookup-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 600;
  background: linear-gradient(145deg, rgba(245, 183, 49, 0.25), rgba(124, 92, 252, 0.2));
  border: 1px solid rgba(245, 183, 49, 0.35);
}
.lookup-ticket-price {
  font-weight: 600;
  color: var(--accent-gold);
  white-space: nowrap;
}
.lookup-bundle-tag {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(124, 92, 252, 0.15);
  color: #b8a0ff;
}
@media (max-width: 640px) {
  .lookup-summary-stats {
    grid-template-columns: 1fr;
  }
  .lookup-ticket-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ticket-lookup-form {
    flex-direction: column;
  }
  .lookup-search-btn,
  .lookup-use-connected {
    width: 100%;
  }
}

/* Curaçao Gaming Authority: license disclosure
   Figtree matches cert.cga.cw (official CGA certificate portal) */
.license-section,
.license-certificate,
.footer-license-seal {
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
}
.license-section { margin-bottom: 48px; }
.license-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 720px;
  line-height: 1.55;
}
.license-player-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 880px;
  margin: 0 auto 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(148, 163, 184, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.license-player-banner strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.license-player-banner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 560px;
}
.license-certificate {
  max-width: 880px;
  margin: 0 auto;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.license-cert-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 18px;
  background: #1f2937;
  color: #e5e7eb;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.license-cert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #e2e8f0;
}
.license-cert-country {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}
.license-cert-title {
  margin: 0 0 6px;
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.license-cert-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.4;
  max-width: 34rem;
}
.license-cert-seal-wrap { flex-shrink: 0; }
.cga-seal { display: block; }
.cga-seal-hero { width: 112px; height: 112px; }
.cga-seal-footer { width: 56px; height: 56px; }
.license-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 24px;
  padding: 12px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
}
.license-status-active {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #064e3b;
  background: #34d399;
  padding: 4px 10px;
  border-radius: 4px;
}
.license-status-copy {
  font-size: 0.82rem;
  color: #065f46;
}
.license-particulars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 18px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.license-particulars > div {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  background: #fff;
}
.license-particulars > div:nth-child(2n) { border-right: none; }
.license-particulars > div:nth-last-child(-n+2) { border-bottom: none; }
.license-particulars dt {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 3px;
  font-weight: 700;
}
.license-particulars dd {
  margin: 0;
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.35;
}
.license-grant {
  margin: 0 24px 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #334155;
}
.license-grant strong { color: #0f172a; }
.license-two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin: 0 24px 18px;
}
.license-two-col h4,
.license-obligations h4,
.license-verify-copy h4 {
  margin: 0 0 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #475569;
}
.license-activity-list,
.license-key-list,
.license-obligations ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.license-activity-list li,
.license-key-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.license-activity-list code {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 700;
}
.license-activity-list span,
.license-key-list strong {
  font-size: 0.84rem;
  color: #0f172a;
}
.license-key-list span {
  font-size: 0.8rem;
  color: #334155;
}
.license-key-list em {
  font-size: 0.72rem;
  color: #64748b;
  font-style: normal;
}
.license-obligations {
  margin: 0 24px 18px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.license-obligations li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
}
.license-obligations li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #64748b;
}
.license-verify-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 24px 18px;
  padding: 16px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
}
.license-verify-copy h4 { color: #94a3b8; }
.license-verify-copy ol {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #cbd5e1;
}
.license-verify-copy a { color: #fbbf24; }
.license-verify-note {
  margin: 0;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 36rem;
}
.license-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}
.license-cert-footer {
  padding: 12px 24px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f1f5f9;
}
.license-cert-footer p {
  margin: 0;
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.45;
}
.license-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  max-width: 880px;
  margin: 16px auto 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.license-trust-strip > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-license-seal {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.cga-seal-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.cga-seal-caption {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.cga-seal-caption strong {
  font-size: 0.78rem;
  color: var(--text-primary);
}
.cga-seal-caption em {
  font-style: normal;
  font-size: 0.68rem;
  font-family: ui-monospace, monospace;
  color: var(--accent-gold);
}
.cga-seal-caption small {
  font-size: 0.62rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .license-cert-header { flex-direction: column; align-items: center; text-align: center; }
  .license-particulars { grid-template-columns: 1fr; }
  .license-particulars > div { border-right: none; }
  .license-particulars > div:nth-last-child(-n+2) { border-bottom: 1px solid #e2e8f0; }
  .license-particulars > div:last-child { border-bottom: none; }
  .license-two-col { grid-template-columns: 1fr; }
  .license-player-banner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-wrap: wrap; gap: 12px; }
}
.brand-names-section { margin-bottom: 40px; }
.brand-name-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.brand-name-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.brand-name-chip:hover {
  border-color: var(--accent-gold);
  background: rgba(245, 183, 49, 0.08);
  transform: translateY(-1px);
}
.brand-name-chip.current {
  border-color: var(--accent-gold);
  background: rgba(245, 183, 49, 0.12);
  cursor: default;
}
.brand-name-chip .brand-accent { color: var(--accent-gold); }
.brand-current-tag {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  background: var(--accent-green);
  color: #000;
  text-transform: uppercase;
}

/* Providers */
.providers { margin-bottom: 32px; }
.provider-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.provider-logos span {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  margin-left: var(--sidebar-w);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 24px 20px;
}
.footer-inner {
  max-width: 1200px;
  display: flex;
  gap: 60px;
  margin-bottom: 32px;
}
.footer-brand p { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; max-width: 280px; }
.footer-links { display: flex; gap: 48px; }
.footer-links h4 { font-size: 0.8rem; font-weight: 600; margin-bottom: 12px; color: var(--text-secondary); }
.footer-links a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom {
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-crypto {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-eth-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.crypto-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(124, 92, 252, 0.1);
  color: var(--text-secondary);
  opacity: 0.85;
  transition: color 0.2s, background 0.2s;
}
.crypto-badge:hover {
  color: var(--accent-gold);
  background: rgba(245, 183, 49, 0.12);
}
.crypto-badge svg { stroke: currentColor; }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: fadeIn 0.2s;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-secondary);
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--bg-card); color: var(--text-primary); }

/* Wallet modal */
.wallet-modal { max-width: 440px; padding: 28px; }
.wallet-header h2 { font-size: 1.35rem; margin-bottom: 4px; }
.wallet-address {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
  word-break: break-all;
}
.wallet-tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.wallet-tab {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.wallet-tab.active { background: var(--bg-elevated); color: var(--text-primary); }
.wallet-panel { display: none; }
.wallet-panel.active { display: block; }

.wallet-connect-prompt { text-align: center; padding: 24px 0; }
.wallet-connect-prompt h3 { margin-bottom: 8px; }
.wallet-connect-prompt p { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 20px; }

.balance-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.875rem;
}
.balance-display.casino { border: 1px solid rgba(245, 183, 49, 0.3); }
.balance-display strong { color: var(--accent-gold); font-size: 1rem; }

.field-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; margin-top: 16px; }
.field-hint { font-size: 0.75rem; color: var(--text-muted); margin: 12px 0; }

.currency-select { display: flex; gap: 8px; }
.currency-option {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.currency-icon {
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.currency-option.active .currency-icon svg { stroke: var(--accent-gold); }
.currency-option.active {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
}

.amount-input-wrap {
  display: flex;
  gap: 8px;
}
.amount-input-wrap input, .text-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  width: 100%;
}
.amount-input-wrap input:focus, .text-input:focus {
  outline: none;
  border-color: var(--accent-purple);
}
.btn-max {
  padding: 0 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.quick-amounts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.quick-amounts button {
  flex: 1;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.quick-amounts button:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

.tx-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  word-break: break-all;
}
.tx-status.success { background: rgba(0, 214, 143, 0.15); color: var(--accent-green); }
.tx-status.error { background: rgba(255, 71, 87, 0.15); color: #ff4757; }
.tx-status.pending { background: rgba(124, 92, 252, 0.15); color: var(--accent-purple); }

.balance-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.balance-card {
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.balance-card.highlight { border-color: rgba(245, 183, 49, 0.4); }
.balance-card-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.balance-card-value { font-size: 1.25rem; font-weight: 700; }

.tx-history h4 { font-size: 0.85rem; margin-bottom: 12px; color: var(--text-secondary); }
.tx-history ul { list-style: none; max-height: 200px; overflow-y: auto; }
.tx-history li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.tx-history .tx-empty { color: var(--text-muted); justify-content: center; }
.tx-type-deposit { color: var(--accent-green); }
.tx-type-withdraw { color: var(--accent-pink); }

/* Search modal */
.search-modal { max-width: 640px; padding: 24px; }
.search-header input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
}
.search-header input:focus { outline: none; border-color: var(--accent-purple); }
.search-filters {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.filter-chip.active, .filter-chip:hover {
  background: rgba(124, 92, 252, 0.15);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}
.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

/* Game modal */
.game-modal { max-width: 480px; padding: 32px; }
.game-preview { text-align: center; }
.game-preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent-purple);
}
.game-preview-icon svg { stroke: var(--accent-purple); }
.game-preview h2 { margin-bottom: 4px; }
.game-preview p { color: var(--text-muted); font-size: 0.875rem; }
.game-preview-hint { margin: 16px 0 24px !important; }
.game-preview .btn { margin: 0 6px 8px; }

/* Slot machine: Vegas cabinet */
.slot-machine {
  text-align: center;
  padding: 20px 0;
}
.slot-reels {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.reel {
  width: 80px;
  height: 100px;
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  transition: transform 0.1s;
}
.reel svg { stroke: var(--accent-gold); }
.reel .icon-star svg { fill: var(--accent-gold); stroke: var(--accent-gold); }
.reel.spinning { animation: reelSpin 0.1s linear infinite; }
@keyframes reelSpin {
  0% { transform: translateY(-4px); }
  50% { transform: translateY(4px); }
  100% { transform: translateY(-4px); }
}
.slot-result { margin-bottom: 16px; font-weight: 600; color: var(--accent-gold); }
.slot-controls { display: flex; gap: 12px; justify-content: center; margin-bottom: 12px; }
.slot-controls .text-input { max-width: 120px; }
.slot-balance { font-size: 0.875rem; color: var(--text-secondary); }

/* NeonDraw slot cabinet */
.slot-cabinet {
  --slot-symbol-h: 92px;
  width: 100%;
  max-width: 420px;
  min-height: 520px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(165deg, #2a1848 0%, #14141f 35%, #0d0d14 100%);
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2px rgba(245, 183, 49, 0.45),
    0 0 40px rgba(124, 92, 252, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-lg);
  position: relative;
  overflow: visible;
  transform: none;
}
.slot-cabinet-expanded {
  box-shadow:
    0 0 0 2px rgba(124, 92, 252, 0.55),
    0 0 50px rgba(124, 92, 252, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-lg);
}
.slot-cabinet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(245, 183, 49, 0.12), transparent 55%);
  pointer-events: none;
}
.slot-cabinet-top {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.slot-marquee-wrap {
  background: linear-gradient(90deg, #1a0a2e, #2d1b4e, #1a0a2e);
  border: 2px solid rgba(245, 183, 49, 0.5);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: inset 0 0 20px rgba(124, 92, 252, 0.3), 0 0 16px rgba(245, 183, 49, 0.15);
}
.slot-marquee {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: marqueeGlow 2.4s ease-in-out infinite;
}
@keyframes marqueeGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}
.slot-lights {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
  min-height: 10px;
}
.slot-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--light-color);
  box-shadow: 0 0 8px var(--light-color), 0 0 14px var(--light-color);
  animation: lightBlink 1.2s ease-in-out infinite;
  animation-delay: var(--light-delay);
}
@keyframes lightBlink {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}
.slot-window {
  position: relative;
  z-index: 1;
  padding: 10px;
  background: linear-gradient(180deg, #0a0a10 0%, #12121c 100%);
  border-radius: 14px;
  border: 3px solid rgba(245, 183, 49, 0.55);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.8),
    inset 0 2px 0 rgba(255, 255, 255, 0.06);
}
.slot-window-inner {
  position: relative;
  background: #08080e;
  border-radius: 10px;
  padding: 8px;
  overflow: hidden;
}
.slot-payline {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: var(--slot-symbol-h);
  border-top: 2px dashed rgba(255, 107, 157, 0.55);
  border-bottom: 2px dashed rgba(255, 107, 157, 0.55);
  background: rgba(255, 107, 157, 0.04);
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 12px rgba(255, 107, 157, 0.15);
}
.slot-reels-frame {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  position: relative;
  z-index: 1;
  min-height: var(--slot-symbol-h);
}
.slot-reel-col {
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #1e1e2e 0%, #12121a 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
}
.slot-reel-col.reel-landed {
  animation: reelBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes reelBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.01); }
  100% { transform: scale(1); }
}
.slot-reel-viewport {
  height: var(--slot-symbol-h);
  overflow: hidden;
  position: relative;
}
.slot-reel-viewport::before,
.slot-reel-viewport::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 2;
  pointer-events: none;
}
.slot-reel-viewport::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
}
.slot-reel-viewport::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}
.slot-reel-strip {
  will-change: transform;
}
.slot-reel-strip.spinning {
  animation: stripScroll 0.07s linear infinite;
}
.slot-reel-strip.stopping {
  transition: transform 0.55s cubic-bezier(0.15, 0.85, 0.25, 1);
}
@keyframes stripScroll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-1 * var(--slot-symbol-h))); }
}
.slot-symbol {
  height: var(--slot-symbol-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sym-bg);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.slot-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 12px var(--sym-color, rgba(255, 255, 255, 0.15)));
}
.slot-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.slot-symbol .slot-art {
  animation: slotArtIdle 3s ease-in-out infinite;
}
.slot-symbol[data-symbol="seven"] .slot-art,
.slot-symbol[data-symbol="crown"] .slot-art {
  animation-duration: 2.2s;
}
@keyframes slotArtIdle {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px var(--sym-color)); }
}
.slot-symbol.symbol-win .slot-art {
  animation: symbolPulse 0.6s ease-in-out infinite alternate;
}
.slot-paytable {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  min-height: 54px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.slot-pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.slot-pay-icon .slot-art {
  width: 32px;
  height: 32px;
}
.slot-pay-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(245, 183, 49, 0.25);
}
.ticker-slot-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 4px;
}
.ticker-slot-art .slot-art {
  width: 22px;
  height: 22px;
  filter: none;
  animation: none;
}
.ticker-slot-fallback {
  font-weight: 700;
  color: var(--accent-gold);
  margin-right: 4px;
}
.slot-symbol-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sym-color) 0%, transparent 70%);
  opacity: 0.35;
  filter: blur(10px);
}
.slot-symbol.symbol-win .slot-symbol-glow {
  opacity: 0.65;
}
@keyframes symbolPulse {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.slot-lever-mount {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 72px;
  padding-top: 0;
}
.slot-lever-base {
  position: relative;
  width: 56px;
  height: 22px;
  margin-bottom: -2px;
  z-index: 2;
}
.slot-lever-base-plate {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #c8c8d0 0%, #6a6a78 45%, #3a3a48 100%);
  border: 2px solid #888;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.slot-lever-base-bolt {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #eee, #666);
  border: 1px solid #444;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.4);
}
.slot-lever-base-bolt-left { left: 8px; }
.slot-lever-base-bolt-right { right: 8px; }
.slot-lever {
  --lever-pull: 0;
  width: 64px;
  height: 108px;
  position: relative;
  cursor: grab;
  background: none;
  border: none;
  padding: 0;
  touch-action: none;
  z-index: 1;
  margin-top: -2px;
}
.slot-lever:active { cursor: grabbing; }
.slot-lever-arm-group {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(calc(var(--lever-pull) * 52deg));
  transform-origin: 50% 0;
  transition: transform 0.42s cubic-bezier(0.34, 1.45, 0.64, 1);
}
.slot-lever.is-dragging .slot-lever-arm-group,
.slot-lever.lever-spring .slot-lever-arm-group {
  transition: transform 0.42s cubic-bezier(0.34, 1.45, 0.64, 1);
}
.slot-lever.is-dragging .slot-lever-arm-group {
  transition: none;
}
.slot-lever-arm {
  position: absolute;
  top: 0;
  left: -5px;
  width: 10px;
  height: 54px;
  background: linear-gradient(90deg, #5a5a68 0%, #e8e8f0 35%, #f8f8ff 50%, #c0c0cc 65%, #484858 100%);
  border-radius: 5px;
  box-shadow:
    inset -2px 0 4px rgba(0, 0, 0, 0.35),
    inset 2px 0 4px rgba(255, 255, 255, 0.25),
    2px 4px 8px rgba(0, 0, 0, 0.4);
}
.slot-lever-knob {
  position: absolute;
  top: 46px;
  left: -16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0%, transparent 45%),
    radial-gradient(circle at 50% 55%, #ff4d78 0%, #c9184a 55%, #8b0028 100%);
  border: 3px solid #fff;
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(255, 77, 120, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.25);
}
.slot-lever.pulled .slot-lever-arm-group {
  transform: rotate(52deg);
}
.slot-lever-hint {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.slot-lever.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.slot-spin-btn:disabled,
#neonSlotFreeBtn:disabled,
#neonSlotGrantFreeTicket:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.slot-cabinet-display {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid var(--border);
  min-height: 52px;
}
.slot-cabinet .slot-result {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.slot-cabinet .slot-result.spinning-text {
  color: var(--accent-purple);
  animation: pulseText 0.8s ease-in-out infinite;
}
@keyframes pulseText {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.slot-cabinet .slot-result.win {
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(0, 214, 143, 0.45);
}
.slot-cabinet .slot-result.loss {
  color: var(--text-muted);
  font-weight: 500;
}
.slot-cabinet .slot-explain {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  min-height: 1.45em;
}
.slot-cabinet-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 4px;
}
.slot-bet-row {
  flex: 1;
  text-align: left;
  max-width: 120px;
}
.slot-bet-row .field-label {
  font-size: 0.72rem;
  margin-bottom: 4px;
}
.slot-bet-input {
  width: 100%;
  text-align: center;
  font-weight: 600;
}
.slot-spin-btn {
  flex-shrink: 0;
  min-width: 88px;
  padding: 12px 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.slot-cabinet.is-spinning {
  box-shadow:
    0 0 0 2px rgba(124, 92, 252, 0.6),
    0 0 50px rgba(124, 92, 252, 0.35),
    var(--shadow-lg);
  transform: none;
}
.slot-cabinet.is-spinning .slot-light {
  animation-duration: 0.35s;
}
.slot-cabinet.is-win {
  box-shadow:
    0 0 0 3px rgba(0, 214, 143, 0.6),
    0 0 60px rgba(0, 214, 143, 0.35),
    var(--shadow-lg);
  transform: none;
}
.slot-cabinet.is-win .slot-payline {
  border-color: rgba(0, 214, 143, 0.8);
  background: rgba(0, 214, 143, 0.08);
  box-shadow: 0 0 20px rgba(0, 214, 143, 0.35);
}
.slot-cabinet.is-loss .slot-marquee {
  filter: brightness(0.85);
}


/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 14px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 360px;
}
.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid #ff4757; }
.toast.info { border-left: 3px solid var(--accent-purple); }

/* Lottery */
.lottery-hero {
  text-align: center;
  padding: 28px 20px;
  background: var(--gradient-hero);
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.lottery-jackpot {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.12;
  margin-bottom: 12px;
}
.lottery-jackpot-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin-bottom: 6px;
}
.lottery-sub { color: var(--text-secondary); margin-bottom: 10px; font-size: 0.88rem; font-weight: 400; }
.hero-tagline {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: var(--tracking-normal);
}
.hero-format-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.lotto-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff8e7, var(--accent-gold) 55%, #c98a10);
  color: #1a1200;
  font-weight: 800;
  font-size: 0.7rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.hero-trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.hero-trust-line [data-icon] { color: var(--accent-green); flex-shrink: 0; }
.hero-trust-line svg { stroke: var(--accent-green); }
.lottery-countdown {
  display: inline-flex;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.countdown-unit span { display: block; font-size: 1.25rem; font-weight: 700; color: var(--accent-gold); }
.countdown-unit small { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; }
.lottery-countdown .countdown-unit {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(245, 183, 49, 0.2);
}

.draw-schedule { margin-bottom: 16px; }

/* Unified lottery play zone: jackpot + numbers together */
.lottery-play-zone {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(26, 10, 46, 0.35) 0%, rgba(13, 13, 20, 0.2) 100%);
  border: 1px solid rgba(245, 183, 49, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.draw-schedule-inset {
  margin-bottom: 12px;
  padding-bottom: 4px;
}
.lottery-hero-tight {
  margin-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}
.pool-bar-inset {
  margin: 0;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 1px solid rgba(245, 183, 49, 0.12);
  border-right: 1px solid rgba(245, 183, 49, 0.12);
}
.lottery-grid-tight {
  margin-top: 0;
  margin-bottom: 0;
  gap: 12px;
}
.lottery-grid-tight .lottery-panel:first-child {
  border-radius: 0 0 0 var(--radius);
  border-top: 1px solid rgba(245, 183, 49, 0.08);
}
.lottery-grid-tight .lottery-panel:last-child {
  border-radius: 0 0 var(--radius) 0;
  border-top: 1px solid rgba(245, 183, 49, 0.08);
}
.number-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

/* Casino floor: separated from lottery */
.zone-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 32px;
  padding: 0 8px;
}
.zone-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 252, 0.35) 20%,
    rgba(245, 183, 49, 0.45) 50%,
    rgba(124, 92, 252, 0.35) 80%,
    transparent
  );
}
.zone-divider-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 183, 49, 0.2);
  background: rgba(124, 92, 252, 0.06);
}
.zone-divider-label [data-icon] { color: var(--accent-pink); }
.casino-floor-zone {
  margin-bottom: 32px;
  padding: 36px 24px 40px;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124, 92, 252, 0.1), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 107, 157, 0.06), transparent 45%),
    radial-gradient(ellipse at 10% 80%, rgba(245, 183, 49, 0.05), transparent 40%),
    var(--bg-secondary);
  border: 1px solid rgba(124, 92, 252, 0.2);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(245, 183, 49, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
}
.casino-floor-zone::before,
.casino-floor-zone::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  height: 8px;
  pointer-events: none;
  background-image:
    radial-gradient(circle closest-side, var(--accent-gold) 0 58%, transparent 62%),
    radial-gradient(circle closest-side, var(--accent-pink) 0 58%, transparent 62%),
    radial-gradient(circle closest-side, var(--accent-purple) 0 58%, transparent 62%),
    radial-gradient(circle closest-side, #5eead4 0 58%, transparent 62%);
  background-size: 48px 8px, 48px 8px, 48px 8px, 48px 8px;
  background-position: 0 50%, 12px 50%, 24px 50%, 36px 50%;
  background-repeat: repeat-x;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(245, 183, 49, 0.35));
  animation: neon-marquee-chase 1.1s steps(4) infinite;
}
.casino-floor-zone::before { top: 10px; }
.casino-floor-zone::after { bottom: 10px; transform: scaleX(-1); }
.slot-section-standalone {
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
}

.section-hint { font-size: 0.8rem; color: var(--text-secondary); }
.draw-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.draw-pool-note {
  margin: 0 0 4px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 52rem;
}
.jackpot-pool-note {
  margin: -4px 0 12px;
  font-size: 0.8rem;
  color: var(--accent-gold, #f5b731);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.draw-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.draw-card:hover { border-color: var(--accent-purple); }
.draw-card.active {
  border-color: var(--accent-gold);
  background: rgba(245, 183, 49, 0.1);
}
.draw-card-name { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.draw-card-prize { font-size: 0.95rem; font-weight: 800; color: var(--accent-gold); }
.draw-card-timer { font-size: 0.7rem; color: var(--text-muted); font-family: monospace; }

.lottery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  margin-bottom: 20px;
}
.lottery-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.compact-panel { margin-bottom: 20px; }
.how-list {
  margin: 12px 0 0 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.85rem;
}
.lottery-panel h3 { margin-bottom: 12px; font-size: 1rem; }

.number-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.number-ball {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: clamp(0.65rem, 2vw, 0.8rem);
  min-width: 0;
  padding: 0;
}
.number-ball:hover { border-color: var(--accent-purple); }
.number-ball.selected {
  background: radial-gradient(circle at 30% 28%, #fff8e7, var(--accent-gold) 60%, #c98a10);
  border-color: #ffd700;
  color: #1a1200;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(245, 183, 49, 0.5);
}
.selected-numbers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 40px;
  margin-bottom: 16px;
}
.selected-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff8e7, var(--accent-gold) 55%, #c98a10);
  color: #1a1200;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ticket-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.ticket-tier {
  position: relative;
  padding: 14px 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.ticket-tier:hover { border-color: var(--accent-gold); transform: translateY(-1px); }
.ticket-tier.active {
  border-color: var(--accent-gold);
  background: rgba(245, 183, 49, 0.12);
  box-shadow: 0 0 0 1px rgba(245, 183, 49, 0.25);
}
.ticket-tier-custom {
  border-style: dashed;
}
.ticket-tier strong { display: block; font-size: 1.05rem; color: var(--accent-gold); }
.ticket-tier small { color: var(--text-muted); font-size: 0.68rem; }
.tier-tag {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-purple);
  color: #fff;
  white-space: nowrap;
}
.ticket-tier.active .tier-tag { background: var(--accent-gold); color: #1a0a00; }

.custom-tier-panel {
  margin-bottom: 12px;
  padding: 14px;
  background: rgba(124, 92, 252, 0.08);
  border: 1px solid rgba(124, 92, 252, 0.25);
  border-radius: var(--radius-sm);
}
.custom-amount-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 6px;
}
.custom-amount-prefix {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--accent-gold);
  font-weight: 700;
}
.custom-amount-input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  font-size: 1.1rem !important;
  font-weight: 700;
  color: var(--accent-gold) !important;
}

.purchase-summary {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(245, 183, 49, 0.08), rgba(124, 92, 252, 0.08));
  border: 1px solid rgba(245, 183, 49, 0.2);
  border-radius: var(--radius-sm);
}
.custom-summary-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.custom-summary-count {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}
.custom-summary-label { font-size: 0.85rem; color: var(--text-secondary); }
.custom-summary-total { font-size: 0.9rem; color: var(--text-secondary); }
.custom-summary-total strong { color: var(--accent-gold); }
.custom-summary-afford { font-size: 0.78rem; color: var(--accent-green); margin-top: 8px; }
.custom-summary-afford.muted { color: var(--text-muted); }
.custom-summary-warn { font-size: 0.78rem; color: #ff9f43; margin-top: 6px; }
.checkout-fee-breakdown {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}
.fee-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
.fee-line-muted { color: var(--text-muted); font-size: 0.78rem; }
.fee-line-total {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
.fee-line-total strong { color: var(--accent-gold); font-weight: 600; }
.fee-line-note {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.fee-line-note.fee-line-note-muted { font-size: 0.68rem; margin-top: 4px; }
.fee-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.dev-grant-panel {
  position: fixed;
  bottom: calc(16px + var(--frame-inset));
  right: calc(16px + var(--frame-inset));
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(124, 92, 252, 0.45);
  background: rgba(20, 20, 31, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.dev-grant-label {
  flex: 0 0 100%;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a78bfa;
  margin-bottom: 2px;
}
.dev-grant-btn {
  position: static;
  padding: 7px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 252, 0.35);
  background: rgba(124, 92, 252, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
}
.dev-grant-btn:hover {
  background: rgba(124, 92, 252, 0.15);
  color: var(--text-primary);
}

.active-offer-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.3);
  font-size: 0.8rem;
  color: var(--accent-green);
}
.active-offer-banner strong { color: #fff; }

.pool-bar {
  margin-bottom: 24px;
}
.pool-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.pool-bar-track {
  height: 10px;
  background: var(--bg-elevated);
  border-radius: 5px;
  overflow: hidden;
}
.pool-bar-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 5px;
  transition: width 0.6s ease;
  width: 0%;
}

.activity-feed {
  max-height: 280px;
  overflow-y: auto;
}
.activity-item {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(80px, 1.5fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  animation: fadeSlide 0.4s ease;
}
.activity-item .wallet { overflow: hidden; text-overflow: ellipsis; }

.winner-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.winner-prize { font-weight: 800; color: var(--accent-gold); white-space: nowrap; }
.winner-prize-ticket { color: #c4b5fd; }
.winner-prize-jackpot { color: #ffd700; text-shadow: 0 0 12px rgba(255, 215, 0, 0.35); }
.winner-prize-tier { color: #f0c14b; }
.winner-tier-headline {
  font-size: 0.65rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd !important;
}
.winner-row-new { animation: winnerRowPulse 1.4s ease 2; }
@keyframes winnerRowPulse {
  0%, 100% { background: transparent; }
  50% { background: rgba(0, 214, 143, 0.08); }
}

/* Jackpot winner cards: distinct from secondary prize rows */
.jackpot-win-card {
  margin: 14px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 183, 49, 0.45);
  background:
    linear-gradient(145deg, rgba(245, 183, 49, 0.14) 0%, rgba(26, 26, 40, 0.95) 42%, rgba(20, 18, 32, 0.98) 100%);
  box-shadow: 0 0 0 1px rgba(245, 183, 49, 0.08), 0 12px 32px rgba(0, 0, 0, 0.35);
}
.jackpot-win-card.jackpot-win-shared {
  border-color: rgba(167, 139, 250, 0.55);
  background:
    linear-gradient(145deg, rgba(167, 139, 250, 0.16) 0%, rgba(26, 26, 40, 0.95) 45%, rgba(20, 18, 32, 0.98) 100%);
}
.jackpot-win-banner {
  padding: 8px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1208;
  background: linear-gradient(90deg, #f5b731 0%, #ff8c00 55%, #f5b731 100%);
}
.jackpot-win-shared .jackpot-win-banner {
  color: #f8f5ff;
  background: linear-gradient(90deg, #7c5cfc 0%, #a78bfa 50%, #5b8def 100%);
}
.jackpot-win-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px 16px;
}
.jackpot-win-amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
  white-space: nowrap;
  line-height: 1.1;
}
.jackpot-win-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.jackpot-win-meta strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}
.jackpot-win-jackpot,
.jackpot-win-share,
.jackpot-win-match,
.jackpot-win-numbers {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.jackpot-win-jackpot em {
  font-style: normal;
  color: var(--accent-gold);
  font-weight: 700;
}
.jackpot-win-share { color: #e8d5a3; }
.jackpot-win-match { color: #86efac; font-weight: 600; }
.jackpot-co-winners {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jackpot-co-winners li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.jackpot-ticket-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1208;
  background: linear-gradient(90deg, #f5b731, #ff8c00);
  padding: 2px 7px;
  border-radius: 4px;
}
.jackpot-win-shared .jackpot-ticket-tag {
  color: #f8f5ff;
  background: linear-gradient(90deg, #7c5cfc, #a78bfa);
}
.jackpot-share-amt {
  font-size: 0.68rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-left: auto;
}
.jackpot-win-when {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: right;
}
.historic-jackpot-card { margin: 10px 0; }
@media (max-width: 640px) {
  .jackpot-win-body {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .jackpot-win-when { text-align: left; }
  .jackpot-win-amount { font-size: 1.2rem; }
}
.draw-card-prize-ticket { color: #c4b5fd; }
.free-ticket-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.12), rgba(0, 214, 143, 0.08));
  border: 1px solid rgba(124, 92, 252, 0.35);
}
.free-ticket-icon { color: #c4b5fd; flex-shrink: 0; }
.free-ticket-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 180px;
}
.free-ticket-text strong { color: #c4b5fd; }
.free-ticket-redeem-btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.winner-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.winner-meta span { font-size: 0.75rem; color: var(--text-muted); }
.winner-wallet { font-family: monospace; }
.winner-time { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
.empty-winners { color: var(--text-muted); font-size: 0.85rem; padding: 12px 0; }
.winner-tier-note {
  font-size: 0.68rem;
  color: var(--accent-gold);
  font-weight: 600;
}
.winners-payout-note {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ticker-tier-tag {
  font-size: 0.65rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.winners-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.winners-panel-header .panel-title { margin-bottom: 0; }
.winners-draw-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.25);
}
.winners-draw-badge [data-icon] { color: var(--accent-purple); }

.footer {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  max-width: calc(100vw - var(--sidebar-w));
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.activity-item .amount { color: var(--accent-green); font-weight: 600; }
.activity-item-win .amount { color: var(--text-muted); font-weight: 500; font-size: 0.7rem; }
.activity-item-win .amount-win { color: var(--accent-gold); }
.activity-item-win .amount-ticket { color: #c4b5fd; }
.activity-win-detail { color: var(--text-secondary); }
.activity-item .wallet { color: var(--text-muted); font-family: monospace; font-size: 0.75rem; }
.activity-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.activity-crowd-note {
  margin: 10px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.activity-crowd-note.is-busy {
  color: #cbd5e1;
}
.activity-crowd-note .activity-crowd-status {
  display: inline;
}
.activity-crowd-note .activity-crowd-online {
  opacity: 0.9;
}
.activity-crowd-note .activity-crowd-cta {
  color: var(--accent-gold, #f5b731);
  text-decoration: none;
  font-weight: 600;
}
.activity-crowd-note .activity-crowd-cta:hover {
  text-decoration: underline;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 214, 143, 0.08);
  border: 1px solid rgba(0, 214, 143, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--accent-green);
  margin-top: 16px;
}

.demo-banner {
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-align: center;
}

.live-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(245, 183, 49, 0.18);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow:
    0 0 24px rgba(124, 92, 252, 0.08),
    inset 0 1px 0 rgba(245, 183, 49, 0.08);
  position: relative;
}
.live-ticker-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-gold), var(--accent-pink), var(--accent-purple));
  box-shadow: 0 0 10px rgba(245, 183, 49, 0.45);
}
.ticker-wallet-hint {
  margin: 0 0 18px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.play-odds-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background: rgba(245, 183, 49, 0.08);
  border: 1px solid rgba(245, 183, 49, 0.22);
  border-radius: var(--radius-sm, 8px);
}
.play-odds-note strong { color: var(--accent-gold); font-weight: 650; }
.play-odds-note-casino {
  background: rgba(124, 92, 252, 0.08);
  border-color: rgba(167, 139, 250, 0.25);
}
.play-odds-note-casino strong { color: #c4b5fd; }
.slot-live-ticker-wrap + .ticker-wallet-hint,
.roulette-live-ticker-wrap + .ticker-wallet-hint {
  margin-top: -8px;
  margin-bottom: 14px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4757;
  flex-shrink: 0;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.live-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #ff4757;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.live-ticker {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--text-secondary);
  scrollbar-width: none;
}
.live-ticker::-webkit-scrollbar { display: none; }
.ticker-item strong { color: var(--text-primary); font-family: monospace; font-size: 0.75rem; }
.ticker-amount { color: var(--accent-gold); font-weight: 700; }
.ticker-prize-ticket { color: #c4b5fd; }
.ticker-item-win .ticker-when { color: var(--text-muted); font-size: 0.68rem; margin-left: 4px; }
.ticker-you { color: var(--accent-green); font-style: normal; font-weight: 600; font-size: 0.72rem; }
.ticker-qty { color: var(--text-muted); font-size: 0.72rem; }
.ticker-item-new .ticker-amount { color: var(--accent-green); animation: tickerAmountPulse 1.2s ease 2; }
.ticker-item-you { background: rgba(46, 213, 115, 0.08); border-radius: 4px; padding: 2px 6px; }
@keyframes tickerAmountPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.ticker-sep { color: var(--text-muted); }

.ticker-item-slot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ticker-slot-icon {
  font-size: 0.95rem;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(245, 183, 49, 0.35));
}
.ticker-slot-free {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c4b5fd;
  background: rgba(124, 92, 252, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
}
.slot-live-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(124, 92, 252, 0.08) 0%, rgba(245, 183, 49, 0.06) 100%);
  border: 1px solid rgba(124, 92, 252, 0.22);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.slot-live-dot { background: #a78bfa; animation: pulse 1.5s ease infinite; }
.slot-live-label { color: #a78bfa; }
.slot-live-ticker { flex: 1; min-width: 0; }

/* Roulette: casino floor */
.casino-game-divider {
  margin: 32px 0 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 183, 49, 0.35), rgba(124, 92, 252, 0.35), transparent);
}
.roulette-section-standalone {
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
}
.roulette-live-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.08) 0%, rgba(245, 183, 49, 0.06) 100%);
  border: 1px solid rgba(230, 57, 70, 0.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.roulette-live-dot { background: #e63946; animation: pulse 1.5s ease infinite; }
.roulette-live-label { color: #ff6b7a; font-weight: 700; letter-spacing: 0.08em; }
.roulette-live-ticker { flex: 1; min-width: 0; }
.roulette-ticker-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  margin-right: 4px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  vertical-align: middle;
}
.roulette-section-grid { align-items: start; }
.roulette-machine-panel {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.roulette-cabinet {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(165deg, #2a1020 0%, #14141f 35%, #0d0d14 100%);
  border: 3px solid transparent;
  box-shadow:
    0 0 0 2px rgba(230, 57, 70, 0.4),
    0 0 40px rgba(124, 92, 252, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.roulette-cabinet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(230, 57, 70, 0.1), transparent 55%);
  pointer-events: none;
}
.roulette-cabinet-top { position: relative; z-index: 1; margin-bottom: 12px; }
.roulette-marquee-wrap {
  background: linear-gradient(90deg, #2a0a14, #3d1020, #2a0a14);
  border: 2px solid rgba(230, 57, 70, 0.45);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: inset 0 0 20px rgba(230, 57, 70, 0.15);
}
.roulette-marquee {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #ff8fa3;
  text-shadow: 0 0 12px rgba(230, 57, 70, 0.4);
}
.roulette-stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
}
.roulette-pointer {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #f5b731;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  z-index: 3;
}
.roulette-wheel-outer {
  width: min(280px, 72vw);
  height: min(280px, 72vw);
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(145deg, #f5b731, #8b6914);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
.roulette-wheel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: rotate(0deg);
  will-change: transform;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.roulette-wheel-svg { width: 100%; height: 100%; display: block; }
.roulette-cabinet-display {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid var(--border);
  min-height: 52px;
  text-align: center;
}
.roulette-result {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.roulette-result.spinning-text { color: #ff8fa3; animation: pulseText 0.8s ease-in-out infinite; }
.roulette-result.win { color: var(--accent-green); text-shadow: 0 0 20px rgba(0, 214, 143, 0.45); }
.roulette-result.loss { color: var(--text-muted); font-weight: 500; }
.roulette-result-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  vertical-align: middle;
}
.roulette-result-red { background: #d62839; box-shadow: 0 0 10px rgba(214, 40, 57, 0.5); }
.roulette-result-black { background: #14141c; border: 1px solid rgba(255,255,255,0.15); }
.roulette-result-green { background: #1fa84a; box-shadow: 0 0 10px rgba(31, 168, 74, 0.45); }
.roulette-explain {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.roulette-cabinet-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.roulette-spin-btn {
  flex-shrink: 0;
  min-width: 120px;
  padding: 12px 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.roulette-cabinet.is-spinning {
  box-shadow:
    0 0 0 2px rgba(230, 57, 70, 0.55),
    0 0 50px rgba(230, 57, 70, 0.25),
    var(--shadow-lg);
}
.roulette-cabinet.is-win {
  animation: cabinetWin 0.5s ease-out;
  box-shadow:
    0 0 0 3px rgba(0, 214, 143, 0.6),
    0 0 60px rgba(0, 214, 143, 0.35),
    var(--shadow-lg);
}
.roulette-bet-panel {
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(230, 57, 70, 0.22);
  background: linear-gradient(165deg, rgba(230, 57, 70, 0.06) 0%, var(--bg-card) 45%);
}
.roulette-bet-header { margin-bottom: 14px; }
.roulette-bet-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}
.roulette-bet-intro {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.roulette-bet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.roulette-bet-btn {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.roulette-bet-btn:hover:not(:disabled) {
  border-color: rgba(245, 183, 49, 0.45);
  transform: translateY(-1px);
}
.roulette-bet-btn.active {
  border-color: var(--accent-gold);
  box-shadow: 0 0 16px rgba(245, 183, 49, 0.25);
  background: rgba(245, 183, 49, 0.08);
}
.roulette-bet-red { color: #ff6b7a; }
.roulette-bet-red.active { border-color: #e63946; background: rgba(230, 57, 70, 0.12); box-shadow: 0 0 16px rgba(230, 57, 70, 0.25); }
.roulette-bet-black { color: #c8c8d0; }
.roulette-bet-black.active { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.roulette-bet-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.roulette-bet-hint {
  margin: 0 0 14px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.roulette-free-card { margin-bottom: 16px; }
.roulette-recent-block {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.roulette-recent-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.roulette-recent-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.roulette-result-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}
.roulette-recent-empty { font-size: 0.78rem; color: var(--text-muted); }

.activity-item.simulated .wallet::after {
  content: '';
}
.activity-item.verified {
  border-left: 2px solid var(--accent-green);
  padding-left: 8px;
}

@media (max-width: 900px) {
  .lottery-grid { grid-template-columns: 1fr; }
  .number-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .ticket-tiers { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .draw-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .promo-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .header-nav { display: none; }
  .sidebar { transform: translateX(calc(-100% - var(--frame-inset))); }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5);
  }
  .main, .footer {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px 24px;
  }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .draw-cards { grid-template-columns: 1fr 1fr; }
  .ticket-tiers { grid-template-columns: repeat(2, 1fr); }
  .number-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .lottery-hero { padding: 20px 14px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
  .activity-item { grid-template-columns: 1fr; gap: 2px; }
  .winner-row { grid-template-columns: 1fr; gap: 4px; }
  .stats-bar-five { grid-template-columns: 1fr 1fr; }
  .trust-pillars { grid-template-columns: 1fr; }
  .trust-ribbon-inner { justify-content: flex-start; }
  .player-promise { flex-direction: column; text-align: center; }
  .player-promise-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    width: 100%;
  }
  .slot-section-grid,
  .roulette-section-grid { grid-template-columns: 1fr; }
  .how-games-grid { grid-template-columns: 1fr; }
  .heritage-actions { flex-direction: column; }
  .heritage-actions .btn,
  .heritage-actions .btn-portal { width: 100%; justify-content: center; }
}

/* Trust ribbon */
.trust-ribbon {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(0, 214, 143, 0.08), rgba(124, 92, 252, 0.06));
  border: 1px solid rgba(0, 214, 143, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.trust-ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.trust-chip [data-icon] { color: var(--accent-green); flex-shrink: 0; }
.trust-chip svg { stroke: var(--accent-green); }
.trust-chip-age [data-icon] { color: var(--accent-gold); }
.trust-chip-age svg { stroke: var(--accent-gold); }

/* Why trust */
.why-trust { margin-bottom: 20px; }
.trust-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.trust-pillar {
  padding: 18px 16px;
  background: linear-gradient(165deg, rgba(34, 34, 51, 0.6) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.trust-pillar:hover {
  border-color: rgba(245, 183, 49, 0.3);
  transform: translateY(-2px);
}
.trust-pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(124, 92, 252, 0.12);
  color: var(--accent-purple);
  margin-bottom: 12px;
}
.trust-pillar-icon svg { stroke: var(--accent-purple); }
.trust-pillar h3 {
  font-size: 0.98rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.trust-pillar p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.62;
}
.player-promise {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(245, 183, 49, 0.1), rgba(124, 92, 252, 0.08));
  border: 1px solid rgba(245, 183, 49, 0.25);
  border-radius: var(--radius);
}
.player-promise-stat {
  flex-shrink: 0;
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid var(--border);
}
.player-promise-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-gold);
  line-height: 1.1;
}
.player-promise-stat span {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.player-promise-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.panel-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: -8px 0 14px;
  line-height: 1.58;
  font-weight: 400;
}
.how-intro { margin-top: 0; font-size: 0.88rem; }
.how-it-works-section { overflow: hidden; }

.how-start-card {
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.how-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.how-steps-compact { gap: 10px; }
.how-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.how-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.how-game-lottery .how-step-num {
  background: rgba(245, 183, 49, 0.12);
  border-color: rgba(245, 183, 49, 0.28);
  color: var(--accent-gold);
}
.how-game-slots .how-step-num {
  background: rgba(124, 92, 252, 0.14);
  border-color: rgba(124, 92, 252, 0.3);
  color: #c4b5fd;
}
.how-step-body strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: var(--tracking-tight);
}
.how-step-body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.how-step-body em {
  font-style: normal;
  color: var(--text-primary);
  font-weight: 500;
}
.how-step-body a { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }

.how-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.how-game-card {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-width: 0;
}
.how-game-lottery {
  border-color: rgba(245, 183, 49, 0.22);
  background: linear-gradient(165deg, rgba(245, 183, 49, 0.05) 0%, var(--bg-elevated) 50%);
}
.how-game-slots {
  border-color: rgba(124, 92, 252, 0.25);
  background: linear-gradient(165deg, rgba(124, 92, 252, 0.07) 0%, var(--bg-elevated) 50%);
}
.how-game-roulette {
  border-color: rgba(230, 57, 70, 0.25);
  background: linear-gradient(165deg, rgba(230, 57, 70, 0.07) 0%, var(--bg-elevated) 50%);
}
.how-game-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  align-items: start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.how-game-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.how-game-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}
.how-game-tagline {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 400;
}
.how-game-jump {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(245, 183, 49, 0.35);
  background: rgba(245, 183, 49, 0.08);
  align-self: start;
}
.how-game-slots .how-game-jump {
  color: #c4b5fd;
  border-color: rgba(124, 92, 252, 0.4);
  background: rgba(124, 92, 252, 0.12);
}
.how-game-roulette .how-step-num {
  background: rgba(230, 57, 70, 0.14);
  border-color: rgba(230, 57, 70, 0.3);
  color: #ff8fa3;
}
.how-game-roulette .how-game-jump {
  color: #ff8fa3;
  border-color: rgba(230, 57, 70, 0.4);
  background: rgba(230, 57, 70, 0.12);
}
.how-game-jump:hover { opacity: 0.88; }

.how-draws-quick {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.how-draws-quick-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.how-draws-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.how-draws-list li {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.how-draw-name {
  flex-shrink: 0;
  min-width: 4.5rem;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
}

.how-game-foot {
  margin: 14px 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.how-game-foot a { color: var(--accent-gold); }

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

/* Odds table */
.odds-section { margin-bottom: 20px; }
.odds-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.odds-table th,
.odds-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.odds-table th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.odds-table td:first-child { font-weight: 600; color: var(--text-primary); }
.odds-table td:nth-child(2) { color: var(--accent-gold); font-weight: 700; }
.odds-table tr:last-child td { border-bottom: none; }

/* Match-tier prize matrix */
.match-tier-block {
  margin-bottom: 18px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(124, 92, 252, 0.06) 0%, rgba(245, 183, 49, 0.04) 100%);
  border: 1px solid rgba(124, 92, 252, 0.18);
  border-radius: var(--radius);
}
.match-tier-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.match-tier-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-purple);
}
.match-tier-summary {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.match-tier-draw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.match-tier-draw-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.match-tier-draw-btn:hover {
  border-color: rgba(167, 139, 250, 0.45);
  color: var(--text-primary);
}
.match-tier-draw-btn.active {
  background: rgba(124, 92, 252, 0.2);
  border-color: var(--accent-purple);
  color: #e9d5ff;
}
.match-tier-draw-btn[data-draw-id="daily"].active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #e0f2fe;
}
.match-tier-draw-btn[data-draw-id="weekly"].active {
  background: rgba(52, 211, 153, 0.2);
  border-color: #34d399;
  color: #d1fae5;
}
.match-tier-draw-btn[data-draw-id="monthly"].active {
  background: rgba(251, 146, 60, 0.22);
  border-color: #fb923c;
  color: #ffedd5;
}
.match-tier-draw-btn[data-draw-id="quarterly"].active {
  background: rgba(232, 121, 249, 0.22);
  border-color: #e879f9;
  color: #fae8ff;
}

.jackpot-win-card[data-draw-id="daily"] { border-color: rgba(56, 189, 248, 0.45); }
.jackpot-win-card[data-draw-id="daily"] .jackpot-win-banner {
  background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 55%, #38bdf8 100%);
  color: #0c4a6e;
}
.jackpot-win-card[data-draw-id="weekly"] { border-color: rgba(52, 211, 153, 0.45); }
.jackpot-win-card[data-draw-id="weekly"] .jackpot-win-banner {
  background: linear-gradient(90deg, #34d399 0%, #059669 55%, #34d399 100%);
  color: #064e3b;
}
.jackpot-win-card.jackpot-win-rollover {
  border-color: rgba(148, 163, 184, 0.45);
  opacity: 0.95;
}
.jackpot-win-card.jackpot-win-rollover .jackpot-win-banner {
  background: linear-gradient(90deg, #94a3b8 0%, #64748b 55%, #94a3b8 100%);
  color: #0f172a;
}
.jackpot-win-card.jackpot-win-rollover .jackpot-win-amount {
  color: var(--text-muted, #94a3b8);
  font-size: 1.15rem;
}
.jackpot-win-card[data-draw-id="monthly"] { border-color: rgba(251, 146, 60, 0.5); }
.jackpot-win-card[data-draw-id="monthly"] .jackpot-win-banner {
  background: linear-gradient(90deg, #fb923c 0%, #ea580c 55%, #fb923c 100%);
  color: #7c2d12;
}
.jackpot-win-card[data-draw-id="quarterly"] { border-color: rgba(232, 121, 249, 0.5); }
.jackpot-win-card[data-draw-id="quarterly"] .jackpot-win-banner {
  background: linear-gradient(90deg, #e879f9 0%, #c026d3 55%, #e879f9 100%);
  color: #701a75;
}

.match-tier-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}
.match-tier-table-wrap { min-width: 0; }
.match-tier-table td:nth-child(2) { font-weight: 500; color: var(--text-muted); font-size: 0.78rem; }
.match-tier-table td:nth-child(3) { font-weight: 600; }
.match-tier-table td:nth-child(4) { color: var(--accent-gold); font-weight: 600; font-size: 0.78rem; white-space: nowrap; }
.match-tier-table td:nth-child(5) { color: var(--accent-purple); font-weight: 600; font-size: 0.78rem; }
.match-example-cell { font-variant-numeric: tabular-nums; }
.match-odds-cell { font-variant-numeric: tabular-nums; }
.match-ball-count {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 183, 49, 0.12);
  color: var(--accent-gold);
  font-size: 0.76rem;
}
.match-prize-jackpot { color: var(--accent-gold) !important; }
.match-prize-cash { color: #86efac !important; }
.match-prize-ticket { color: #c4b5fd !important; }
.match-prize-none { color: var(--text-muted) !important; font-weight: 500 !important; }
.match-tier-chart-wrap {
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.match-tier-chart-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-align: center;
}
.match-tier-footnote {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 12px 0 0;
}

@media (max-width: 900px) {
  .match-tier-grid { grid-template-columns: 1fr; }
}
.odds-tz-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.odds-notes {
  list-style: none;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.odds-notes li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.odds-notes li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
}
.faq-item summary {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1rem;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 14px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.faq-expense-list {
  margin: 0 0 8px;
  padding: 0 14px 0 32px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.faq-expense-list li { margin-bottom: 5px; }
.faq-item a { color: var(--accent-gold); text-decoration: underline; }

/* Responsible gaming */
.responsible-gaming {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: var(--radius);
}
.rg-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.rg-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.rg-list li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}
.rg-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}
.rg-list a { color: var(--accent-gold); }

@media (max-width: 1100px) {
  .stats-bar-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-promise { flex-direction: column; text-align: center; }
  .player-promise-stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
  .slot-section-grid { grid-template-columns: 1fr; }
  .dashboard-charts { grid-template-columns: 1fr; }
  .historic-stats-row { grid-template-columns: repeat(2, 1fr); }
  .lottery-grid-tight .lottery-panel:first-child,
  .lottery-grid-tight .lottery-panel:last-child {
    border-radius: 0;
  }
  .lottery-grid-tight .lottery-panel:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

/* Heritage banner */
.heritage-banner {
  margin-bottom: 20px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(167, 139, 250, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.25);
  position: relative;
  overflow: hidden;
}
.heritage-banner.has-marquee {
  padding-top: 16px;
  padding-bottom: 16px;
  box-shadow:
    0 0 0 1px rgba(245, 183, 49, 0.1),
    0 12px 36px rgba(0, 0, 0, 0.25),
    inset 0 0 36px rgba(124, 92, 252, 0.05);
}
.heritage-banner.has-marquee .heritage-inner {
  padding: 10px 6px 6px;
}
.heritage-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 8px;
}
.heritage-headline {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}
.heritage-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.heritage-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.heritage-chip { border-color: rgba(251, 191, 36, 0.35); }

/* Vegas marquee bulbs — gold-led with pink/purple/cyan accents */
.neon-marquee {
  height: 10px;
  margin: 0 4px;
  border-radius: 999px;
  background-image:
    radial-gradient(circle closest-side, var(--accent-gold) 0 60%, transparent 64%),
    radial-gradient(circle closest-side, var(--accent-pink) 0 58%, transparent 62%),
    radial-gradient(circle closest-side, var(--accent-purple) 0 58%, transparent 62%),
    radial-gradient(circle closest-side, #5eead4 0 56%, transparent 60%);
  background-size: 56px 10px, 56px 10px, 56px 10px, 56px 10px;
  background-position: 0 50%, 14px 50%, 28px 50%, 42px 50%;
  background-repeat: repeat-x;
  filter: drop-shadow(0 0 5px rgba(245, 183, 49, 0.4));
  animation: neon-marquee-chase 1.15s steps(4) infinite;
  opacity: 0.9;
}
.neon-marquee-top { margin-bottom: 4px; }
.neon-marquee-bottom {
  margin-top: 10px;
  animation-direction: reverse;
}
@keyframes neon-marquee-chase {
  0% { filter: drop-shadow(0 0 4px rgba(245, 183, 49, 0.35)) brightness(0.85); }
  25% { filter: drop-shadow(0 0 7px rgba(255, 107, 157, 0.4)) brightness(1.15); }
  50% { filter: drop-shadow(0 0 7px rgba(124, 92, 252, 0.4)) brightness(1.05); }
  75% { filter: drop-shadow(0 0 7px rgba(94, 234, 212, 0.35)) brightness(1.2); }
  100% { filter: drop-shadow(0 0 4px rgba(245, 183, 49, 0.35)) brightness(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .neon-marquee,
  .casino-floor-zone::before,
  .casino-floor-zone::after,
  .casino-lights-rail,
  .casino-lights-rail::after {
    animation: none !important;
  }
}

.pool-retention-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Player dashboard */
.player-dashboard-section {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dashboard-connect {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.dashboard-connect h3 { color: var(--text-primary); margin: 12px 0 8px; }
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.dash-stat {
  padding: 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.dash-stat span { display: block; font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 4px; }
.dash-stat strong { font-size: 1.1rem; }
.dash-stat.highlight strong { color: var(--accent-gold); }
.dash-stat-hero {
  grid-column: span 1;
  background: linear-gradient(145deg, rgba(245, 183, 49, 0.12) 0%, var(--bg-elevated) 55%);
  border-color: rgba(245, 183, 49, 0.28);
}
.dash-stat-hero strong { font-size: 1.35rem; }
.dashboard-welcome {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.dashboard-welcome p { margin: 0; }

.invite-showcase {
  margin: 0 0 22px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 183, 49, 0.28);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(245, 183, 49, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(245, 183, 49, 0.06) 0%, var(--bg-card) 48%, rgba(124, 92, 252, 0.05) 100%);
}
.invite-showcase-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.invite-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold, #f5b731);
}
.invite-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.invite-lede {
  margin: 0 0 14px;
  max-width: 38rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.invite-reward-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.invite-reward-row li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 183, 49, 0.22);
  background: rgba(11, 12, 20, 0.35);
}
.invite-reward-row strong {
  color: var(--accent-gold, #f5b731);
  font-weight: 700;
  margin-right: 4px;
}
.invite-showcase-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: min(100%, 220px);
}
.invite-showcase-action .btn {
  white-space: nowrap;
}
.invite-action-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 720px) {
  .invite-showcase {
    padding: 18px 16px;
  }
  .invite-showcase-inner {
    align-items: stretch;
  }
  .invite-showcase-action {
    width: 100%;
  }
}

.dashboard-perks {
  margin-bottom: 14px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(124, 92, 252, 0.08) 0%, var(--bg-elevated) 60%);
  border: 1px solid rgba(124, 92, 252, 0.22);
  border-radius: var(--radius-sm);
}
.dashboard-perks-muted {
  background: var(--bg-elevated);
  border-color: var(--border);
}
.dashboard-perks h4,
.dashboard-wins-feed h4,
.dashboard-next-draw h4,
.dashboard-encourage h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.dashboard-perk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.dash-perk-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 252, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(124, 92, 252, 0.25);
}
.dashboard-referrals {
  margin-bottom: 14px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(245, 183, 49, 0.08) 0%, var(--bg-elevated) 55%);
  border: 1px solid rgba(245, 183, 49, 0.22);
  border-radius: var(--radius-sm);
}
.dashboard-referrals h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.dashboard-ref-copy {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.dashboard-ref-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.dashboard-ref-input {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text-primary);
}
.dashboard-ref-preview {
  display: none;
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.dashboard-ref-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.dashboard-ref-stats strong {
  color: var(--gold);
  font-weight: 700;
}
@media (max-width: 640px) {
  .dashboard-ref-link-row {
    flex-direction: column;
  }
}
.dashboard-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dashboard-quick-actions-main {
  margin-bottom: 16px;
}
.dashboard-wins-feed {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.dashboard-wins-empty p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.dash-wins-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}
.dash-win-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}
.dash-win-item:last-child { border-bottom: none; }
.dash-win-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 183, 49, 0.12);
  color: var(--accent-gold);
}
.dash-win-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dash-win-body strong { color: var(--text-primary); font-size: 0.82rem; }
.dash-win-body span { color: var(--text-secondary); font-size: 0.72rem; }
.dash-win-amount {
  font-weight: 700;
  color: var(--accent-green);
  white-space: nowrap;
}
.dash-win-bonus { color: #c4b5fd; }
.dashboard-encourage {
  padding: 14px;
  margin-bottom: 16px;
  background: rgba(167, 139, 250, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.6;
}
.dash-encourage-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}
.dash-encourage-list li { margin-bottom: 6px; }
.dash-encourage-list li:last-child { margin-bottom: 0; }
.dashboard-next-draw {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.dashboard-next-draw .panel-hint { margin: 0; }
.dash-ticket-row.active .dash-ticket-status { color: var(--accent-green); }
.dashboard-pending {
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}
.dashboard-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.chart-card {
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.chart-card h4 { font-size: 0.82rem; margin-bottom: 10px; color: var(--text-secondary); }
.chart-card-wide { margin-bottom: 16px; }
.dashboard-probability {
  padding: 14px;
  margin-bottom: 16px;
  background: rgba(167, 139, 250, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.6;
}
.dashboard-probability h4 { margin-bottom: 8px; font-size: 0.88rem; }
.dash-ticket-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto auto;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.dash-ticket-row.expired { opacity: 0.65; }
.dash-ticket-status { color: var(--text-muted); font-size: 0.72rem; }
.operator-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-sm);
}
.operator-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 0.78rem;
}
.btn-sm { padding: 4px 10px; font-size: 0.72rem; }

/* Slots section */
.slot-section {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.slot-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 769px) {
  .slot-section-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.slot-machine-panel {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  width: 100%;
  min-width: 0;
}
.slot-bonus-panel {
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(124, 92, 252, 0.22);
  background: linear-gradient(165deg, rgba(124, 92, 252, 0.06) 0%, var(--bg-card) 45%);
}
.slot-bonus-header { margin-bottom: 14px; }
.slot-bonus-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}
.slot-bonus-intro {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 400;
}
.slot-bonus-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.slot-bonus-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.slot-bonus-spins {
  border-color: rgba(124, 92, 252, 0.25);
  background: linear-gradient(165deg, rgba(124, 92, 252, 0.08) 0%, var(--bg-elevated) 55%);
}
.slot-bonus-tickets {
  border-color: rgba(245, 183, 49, 0.22);
  background: linear-gradient(165deg, rgba(245, 183, 49, 0.06) 0%, var(--bg-elevated) 55%);
}
.slot-bonus-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.slot-bonus-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  flex-shrink: 0;
  color: #c4b5fd;
}
.slot-bonus-tickets .slot-bonus-icon { color: var(--accent-gold); }
.slot-bonus-card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.slot-bonus-stat {
  margin: 3px 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.slot-bonus-stat strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}
.slot-bonus-spins .slot-bonus-stat strong { color: #c4b5fd; }
.slot-bonus-tickets .slot-bonus-stat strong { color: var(--accent-gold); }
.slot-bonus-hint {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.slot-bonus-btn { margin: 0; }
.slot-bonus-btn + .slot-bonus-btn { margin-top: 0; }
.slot-bonus-wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.28);
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.slot-bonus-wallet-icon { color: #c4b5fd; flex-shrink: 0; }
.slot-bonus-wallet-text { flex: 1; min-width: 140px; }
.slot-bonus-wallet-text strong { color: #c4b5fd; font-weight: 600; }
.slot-bonus-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
  white-space: nowrap;
}
.slot-bonus-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Provably fair */
.fair-records { display: flex; flex-direction: column; gap: 10px; }
.fair-record {
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.78rem;
}
.fairness-pro-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.14), rgba(245, 183, 49, 0.08));
  border: 1px solid rgba(124, 92, 252, 0.35);
}
.fairness-pro-banner strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.fairness-pro-banner span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.fairness-pro-banner.is-active {
  border-color: rgba(46, 213, 115, 0.35);
  background: rgba(46, 213, 115, 0.08);
}
.fair-locked-panel {
  position: relative;
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.fair-locked-blur {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: 0.55;
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.fair-unlock-btn { width: 100%; }
.fair-seed-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.7rem;
}
.fair-seed-block span { color: var(--text-muted); margin-right: 6px; }
.fair-seed-block code { word-break: break-all; color: var(--accent-gold); font-size: 0.68rem; }
.fairness-pro-modal[hidden] { display: none !important; }
.fairness-pro-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 16px;
}
.fairness-pro-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.fairness-pro-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 24px 22px 20px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid rgba(245, 183, 49, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.fairness-pro-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.fairness-pro-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 6px;
}
.fairness-pro-dialog h3 { margin: 0 0 8px; font-size: 1.25rem; }
.fairness-pro-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px;
}
.fairness-pro-perks {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.fairness-pro-form .field-label { margin-top: 8px; }
.fairness-pro-price {
  text-align: center;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 12px 0;
}
.fairness-pro-fine {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 12px 0 0;
  text-align: center;
}
.fairness-pro-wallet-box {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
  text-align: left;
}
.fairness-pro-wallet-box.is-connected {
  border-color: rgba(52, 211, 153, 0.35);
}
.fairness-pro-wallet-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.fairness-pro-wallet-addr {
  display: block;
  font-size: 1rem;
  color: var(--text-primary, #e2e8f0);
  margin-bottom: 4px;
}
.fairness-pro-wallet-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.fair-record-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.fair-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-green);
}
.fair-record.pending .fair-badge { background: rgba(251, 191, 36, 0.15); color: var(--accent-gold); }
.fair-hash code { font-size: 0.72rem; color: var(--accent-gold); word-break: break-all; }
.fair-numbers.muted { color: var(--text-muted); }
.fair-verify { color: var(--accent-green); margin-top: 4px; }

/* Historic growth */
.historic-growth-section {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.historic-chart-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin: -4px 0 14px;
  line-height: 1.5;
}
.historic-stat-growth strong { color: var(--accent-green); }
.historic-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.historic-stat {
  padding: 12px;
  text-align: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}
.historic-stat strong { display: block; font-size: 1.2rem; color: var(--accent-gold); }
.historic-stat span { font-size: 0.72rem; color: var(--text-muted); }
.historic-winners-list { max-height: 520px; overflow-y: auto; padding-right: 4px; }

/* Contact */
.contact-section {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-textarea { min-height: 100px; resize: vertical; }
.contact-form .btn { margin-top: 12px; }

.currency-select-five {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.currency-select-eth {
  display: flex;
  gap: 6px;
}
.currency-select-eth .currency-option[disabled] {
  cursor: default;
  opacity: 1;
}

@media (max-width: 768px) {
  .slot-cabinet {
    --slot-symbol-h: 78px;
    min-height: auto;
    max-width: 100%;
    padding: 12px 10px 16px;
    overflow: hidden;
  }
  .slot-machine-panel {
    padding: 0;
    width: 100%;
    overflow: hidden;
  }
  .slot-marquee { font-size: 0.85rem; letter-spacing: 0.08em; }
  .slot-art { width: 50px; height: 50px; }
  .slot-lever-mount { display: none; }
  .slot-cabinet-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 14px;
  }
  .slot-bet-row {
    max-width: none;
    flex: none;
    width: 100%;
  }
  .slot-bet-row .field-label { font-size: 0.88rem; margin-bottom: 6px; }
  .slot-bet-input {
    min-height: 48px;
    font-size: 1.05rem;
    padding: 12px;
  }
  .slot-spin-btn {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
    padding: 14px 20px;
  }
  .slot-cabinet .slot-result { font-size: 1rem; line-height: 1.45; }
  .slot-cabinet .slot-explain { font-size: 0.85rem; }
  .slot-paytable { flex-wrap: wrap; gap: 8px; padding: 10px; min-height: auto; }
  .slot-pay-icon { width: 44px; height: 44px; }
  .slot-bonus-btn { min-height: 48px; font-size: 0.95rem; }
  .slot-bonus-stat { font-size: 0.88rem; }
  .slot-bonus-stat strong { font-size: 1.15rem; }
  .section-title { font-size: 1.28rem; }
  .trust-pillar h3 { font-size: 1.05rem; }
  .trust-pillar p { font-size: 0.95rem; }
  .slot-section { padding: 16px 12px; }
  .slot-section-grid,
  .roulette-section-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .roulette-cabinet-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .roulette-spin-btn {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
  }
  .roulette-cabinet { max-width: 100%; min-height: auto; }
  .trust-chip { font-size: 0.82rem; }
  .btn { min-height: 44px; }
  .casino-floor-zone { padding: 16px 10px 20px; }
}

@media (max-width: 640px) {
  .lottery-play-zone { padding: 14px 12px; }
  .casino-floor-zone { padding: 20px 14px 24px; }
  .zone-divider { margin: 28px 0 24px; }
  .zone-divider-label { font-size: 0.62rem; letter-spacing: 0.14em; padding: 5px 10px; }
  .currency-select-five { grid-template-columns: repeat(3, 1fr); }
  .dashboard-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-grid { grid-template-columns: 1fr; }
  .dash-ticket-row { grid-template-columns: 1fr; }
  .slot-cabinet { max-width: 100%; }
  .slot-cabinet-controls { flex-wrap: nowrap; justify-content: stretch; }
  .slot-bet-row { max-width: 100%; flex: 1 1 100%; }
  .roulette-cabinet { max-width: 100%; }
  .roulette-cabinet-controls { flex-wrap: wrap; }
  .heritage-banner { padding: 18px 14px; }
  .heritage-headline { font-size: 1.25rem; }
  .player-dashboard-section { padding: 14px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .header-actions .btn { padding: 8px 12px; font-size: 0.78rem; }
  .dev-grant-panel {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .slot-cabinet {
    --slot-symbol-h: 68px;
    padding: 10px 8px 14px;
  }
  .slot-art { width: 42px; height: 42px; }
  .slot-reels-frame { gap: 4px; }
  .slot-window { padding: 8px; }
  .slot-window-inner { padding: 6px; }
  .slot-marquee-wrap { padding: 8px 10px; }
  .slot-marquee { font-size: 0.72rem; letter-spacing: 0.06em; }
  .slot-spin-btn { min-height: 54px; font-size: 1.1rem; }
  .slot-cabinet .slot-result { font-size: 0.95rem; }
  .stats-bar,
  .stats-bar-five { grid-template-columns: 1fr; }
  .dashboard-stats-grid { grid-template-columns: 1fr; }
  .trust-pillars { grid-template-columns: 1fr; }
  .draw-cards { grid-template-columns: 1fr; }
  .header-inner { padding: 0 10px; gap: 8px; }
  .logo { font-size: 1.05rem; }
  .btn-lg { padding: 12px 18px; font-size: 0.9rem; }
}

@media (max-width: 1200px) {
  .header-nav .nav-link { padding: 8px 10px; font-size: 0.85rem; }
  .header-inner { gap: 12px; padding: 0 14px; }
}

@media (max-width: 1024px) {
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ── Subtle casino hooks: sparkle, pulse, shimmer (gold theme) ── */
.casino-ambience {
  position: fixed;
  inset: var(--frame-inset);
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  border-radius: 4px;
}

.casino-sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff6d0;
  box-shadow:
    0 0 6px rgba(245, 183, 49, 0.9),
    0 0 14px rgba(255, 107, 157, 0.35);
  animation: casino-twinkle 3.6s ease-in-out infinite;
  opacity: 0;
}

.casino-sparkle.s1 { top: 18%; left: 12%; animation-delay: 0s; }
.casino-sparkle.s2 { top: 32%; right: 18%; animation-delay: 0.7s; background: #e9d5ff; }
.casino-sparkle.s3 { top: 58%; left: 22%; animation-delay: 1.4s; background: #fda4af; }
.casino-sparkle.s4 { top: 72%; right: 14%; animation-delay: 2.1s; }
.casino-sparkle.s5 { top: 44%; left: 48%; animation-delay: 1.1s; background: #99f6e4; }
.casino-sparkle.s6 { top: 84%; left: 62%; animation-delay: 2.8s; }

@keyframes casino-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  40% { opacity: 0.85; transform: scale(1); }
  60% { opacity: 0.35; transform: scale(0.8); }
}

.jackpot-glow {
  animation: jackpot-breathe 3.2s ease-in-out infinite;
  text-shadow:
    0 0 18px rgba(245, 183, 49, 0.35),
    0 0 40px rgba(245, 183, 49, 0.12);
}

.jackpot-glow-card {
  animation: jackpot-card-pulse 3.8s ease-in-out infinite;
}

@keyframes jackpot-breathe {
  0%, 100% {
    filter: brightness(1);
    text-shadow:
      0 0 16px rgba(245, 183, 49, 0.28),
      0 0 32px rgba(245, 183, 49, 0.1);
  }
  50% {
    filter: brightness(1.08);
    text-shadow:
      0 0 24px rgba(245, 183, 49, 0.5),
      0 0 48px rgba(255, 107, 157, 0.18);
  }
}

@keyframes jackpot-card-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(245, 183, 49, 0.1), inset 0 0 0 1px rgba(245, 183, 49, 0.08); }
  50% { box-shadow: 0 0 28px rgba(245, 183, 49, 0.22), inset 0 0 0 1px rgba(245, 183, 49, 0.18); }
}

.casino-pulse-chip {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe08a;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 183, 49, 0.35);
  background: rgba(245, 183, 49, 0.1);
  animation: chip-pulse 2.2s ease-in-out infinite;
}

@keyframes chip-pulse {
  0%, 100% { opacity: 0.7; box-shadow: 0 0 0 rgba(245, 183, 49, 0); }
  50% { opacity: 1; box-shadow: 0 0 12px rgba(245, 183, 49, 0.35); }
}

.live-ticker-wrap {
  animation: live-rail-glow 4s ease-in-out infinite;
}

@keyframes live-rail-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 92, 252, 0.06), inset 0 1px 0 rgba(245, 183, 49, 0.06); }
  50% { box-shadow: 0 0 28px rgba(245, 183, 49, 0.12), inset 0 1px 0 rgba(245, 183, 49, 0.14); }
}

.live-label {
  animation: live-label-blink 1.8s ease-in-out infinite;
}

@keyframes live-label-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.pool-bar-fill {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #e8a317, #f5b731 40%, #ffc94d 70%, #ff6b9d);
  box-shadow: 0 0 14px rgba(245, 183, 49, 0.35);
}

.pool-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 48%,
    transparent 62%
  );
  background-size: 200% 100%;
  animation: pool-shimmer 2.4s linear infinite;
}

@keyframes pool-shimmer {
  to { background-position: 200% 0; }
}

.lottery-countdown .countdown-unit {
  position: relative;
  /* border set above with units */
  animation: countdown-tick 1s ease-in-out infinite;
}

.lottery-countdown .countdown-unit:last-child {
  animation-name: countdown-sec-glow;
  border-color: rgba(255, 107, 157, 0.4);
}

@keyframes countdown-tick {
  0%, 100% { box-shadow: 0 0 0 rgba(245, 183, 49, 0); }
  50% { box-shadow: 0 0 12px rgba(245, 183, 49, 0.12); }
}

@keyframes countdown-sec-glow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(255, 107, 157, 0);
    border-color: rgba(255, 107, 157, 0.35);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 107, 157, 0.28);
    border-color: rgba(245, 183, 49, 0.55);
  }
}

.btn-portal:not(.is-connected) .btn-portal-orb {
  animation: portal-orb-pulse 1.8s ease-in-out infinite;
}

@keyframes portal-orb-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(245, 183, 49, 0.7); }
  50% { transform: scale(1.25); box-shadow: 0 0 18px rgba(255, 107, 157, 0.7), 0 0 28px rgba(245, 183, 49, 0.45); }
}

.btn-gold {
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  background-size: 220% 100%;
  animation: gold-btn-sheen 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gold-btn-sheen {
  0%, 55%, 100% { background-position: 120% 0; }
  70% { background-position: -20% 0; }
}

.draw-card.active {
  animation: draw-active-glow 2.8s ease-in-out infinite;
}

@keyframes draw-active-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(245, 183, 49, 0); }
  50% { box-shadow: 0 0 22px rgba(245, 183, 49, 0.22); }
}

.trust-ribbon {
  position: relative;
  overflow: hidden;
}

.trust-ribbon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(245, 183, 49, 0.08) 45%,
    rgba(124, 92, 252, 0.1) 55%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: trust-sheen 6s linear infinite;
  pointer-events: none;
}

@keyframes trust-sheen {
  to { background-position: -120% 0; }
}

.zone-divider-label {
  box-shadow: 0 0 16px rgba(255, 107, 157, 0.15);
  animation: zone-label-glow 3s ease-in-out infinite;
}

@keyframes zone-label-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(124, 92, 252, 0.12); }
  50% { box-shadow: 0 0 18px rgba(245, 183, 49, 0.25); }
}

.ticker-amount {
  text-shadow: 0 0 10px rgba(245, 183, 49, 0.2);
}

.number-ball.selected,
.lotto-ball {
  box-shadow: 0 0 10px rgba(245, 183, 49, 0.25);
}

.heritage-banner.has-marquee {
  animation: heritage-soft-glow 5s ease-in-out infinite;
}

@keyframes heritage-soft-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(245, 183, 49, 0.1), 0 12px 36px rgba(0, 0, 0, 0.25); }
  50% { box-shadow: 0 0 0 1px rgba(245, 183, 49, 0.22), 0 12px 40px rgba(124, 92, 252, 0.12), 0 0 40px rgba(245, 183, 49, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .casino-sparkle,
  .jackpot-glow,
  .jackpot-glow-card,
  .casino-pulse-chip,
  .live-ticker-wrap,
  .live-label,
  .pool-bar-fill::after,
  .lottery-countdown .countdown-unit,
  .btn-portal:not(.is-connected) .btn-portal-orb,
  .btn-gold::after,
  .draw-card.active,
  .trust-ribbon::after,
  .zone-divider-label,
  .heritage-banner.has-marquee {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .casino-pulse-chip { display: none; }
  .casino-sparkle.s5,
  .casino-sparkle.s6 { display: none; }
}
