/*
 * PlayRollWin — dark royal navy base, molten gold accent,
 * playful magenta + cyan neon highlights.
 */

:root {
  --bg: oklch(0.16 0.06 285);
  --panel: oklch(0.22 0.08 280);
  --panel-2: oklch(0.28 0.1 285);
  --border: oklch(0.36 0.09 285 / 55%);
  --text: oklch(0.98 0.01 90);
  --muted: oklch(0.75 0.03 90);

  --gold: oklch(0.85 0.19 88);
  --gold-dark: oklch(0.65 0.18 60);
  --gold-foreground: oklch(0.18 0.05 285);
  --magenta: oklch(0.65 0.29 340);
  --cyan: oklch(0.82 0.16 220);
  --royal: oklch(0.28 0.15 285);
  --green: oklch(0.72 0.17 150);
  --red: oklch(0.62 0.24 25);

  --gradient-hero:
    radial-gradient(ellipse at top, oklch(0.35 0.2 300 / 55%) 0%, transparent 60%),
    radial-gradient(circle at 8% 25%, oklch(0.65 0.29 340 / 22%) 0%, transparent 45%),
    radial-gradient(circle at 92% 15%, oklch(0.82 0.16 220 / 18%) 0%, transparent 42%),
    radial-gradient(circle at 4% 85%, oklch(0.85 0.19 88 / 14%) 0%, transparent 40%),
    radial-gradient(circle at 96% 80%, oklch(0.65 0.29 340 / 16%) 0%, transparent 42%),
    linear-gradient(180deg, oklch(0.18 0.08 285) 0%, oklch(0.12 0.06 285) 100%);
  --gradient-gold: linear-gradient(135deg, oklch(0.92 0.15 95) 0%, oklch(0.78 0.2 75) 50%, oklch(0.65 0.18 60) 100%);
  --gradient-neon: linear-gradient(135deg, oklch(0.65 0.29 340) 0%, oklch(0.55 0.28 300) 50%, oklch(0.7 0.2 220) 100%);
  --gradient-card: linear-gradient(180deg, oklch(0.28 0.1 285) 0%, oklch(0.2 0.08 285) 100%);

  --shadow-gold: 0 10px 40px -10px oklch(0.82 0.19 85 / 50%), 0 0 0 1px oklch(0.85 0.19 88 / 25%) inset;
  --shadow-neon: 0 12px 50px -12px oklch(0.65 0.29 340 / 55%);
  --shadow-card: 0 20px 50px -20px oklch(0.05 0 0 / 60%);

  --radius: 1rem;
  --font-display: "Titan One", "Fredoka", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

.hidden { display: none !important; }

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-neon {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid-noise {
  background-image: radial-gradient(oklch(1 0 0 / 4%) 1px, transparent 1px);
  background-size: 24px 24px;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 25px oklch(0.82 0.19 85 / 35%), 0 10px 40px -10px oklch(0.82 0.19 85 / 50%); }
  50% { box-shadow: 0 0 45px oklch(0.82 0.19 85 / 65%), 0 10px 55px -10px oklch(0.82 0.19 85 / 75%); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.animate-float { animation: float-slow 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2.6s ease-in-out infinite; }
.animate-marquee { animation: marquee 32s linear infinite; }

/* ------------------------------------------------------------- Buttons --- */

.btn {
  border: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn.primary {
  background: var(--gradient-gold);
  color: var(--gold-foreground);
  box-shadow: var(--shadow-gold);
}
.btn.ghost {
  background: oklch(0.28 0.1 285 / 60%);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.ghost:hover { background: var(--panel-2); }
.btn.buy {
  background: var(--cyan);
  color: var(--royal);
  box-shadow: 0 0 30px oklch(0.82 0.16 220 / 40%);
}
.btn.buy:hover { filter: brightness(1.08); }
.btn.small { padding: 8px 14px; font-size: 0.85rem; }
.btn.icon-only {
  padding: 0;
  width: 38px;
  height: 38px;
  justify-content: center;
  font-size: 1rem;
}
.btn.icon-only.muted { color: var(--muted); opacity: 0.6; }
.btn.large { padding: 16px 34px; font-size: 1.1rem; }

/* ------------------------------------------------------------------ Nav --- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: oklch(0.16 0.06 285 / 75%);
  backdrop-filter: blur(16px);
  z-index: 40;
}
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px oklch(0.65 0.29 340 / 45%));
}
.topnav {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}
.topnav a, .topnav button.navlink {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.topnav a:hover, .topnav button.navlink:hover, .topnav .navlink.active { color: var(--text); }
@media (min-width: 860px) {
  .topnav { display: flex; }
}

.wallet-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-left: auto;
}
.wallet-chip .coin-icon { color: var(--gold); font-size: 0.7rem; }
.wallet-chip .label { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.wallet-chip.social { margin-left: 0; border-color: oklch(0.82 0.16 220 / 40%); }
.wallet-chip.social .coin-icon { color: var(--cyan); font-size: 0.85rem; font-weight: 800; }
.wallet-chip {
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.wallet-chip:hover { background: var(--panel); border-color: oklch(0.85 0.19 88 / 50%); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ----------------------------------------------------------------- Hero --- */

main { max-width: 1180px; margin: 0 auto; padding: 0 20px 80px; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
  margin: 0 -20px 0;
  padding: 56px 20px 64px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}
.hero::before { top: -140px; left: -120px; width: 340px; height: 340px; background: oklch(0.65 0.29 340 / 30%); }
.hero::after { top: 60px; right: -80px; width: 320px; height: 320px; background: oklch(0.82 0.16 220 / 25%); }

.hero-motifs { display: none; }
@media (min-width: 1500px) {
  .hero-motifs {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
  }
  .hero-motifs .motif {
    position: absolute;
    font-size: 5rem;
    line-height: 1;
    opacity: 0.08;
    color: var(--gold);
    filter: blur(0.5px);
    animation: float-slow 9s ease-in-out infinite;
  }
  .motif-1 { top: 8%; left: 3%; font-size: 6.5rem; animation-delay: -1s; }
  .motif-2 { top: 42%; left: 6%; font-size: 4rem; opacity: 0.06; color: var(--cyan); animation-delay: -4s; }
  .motif-3 { top: 72%; left: 2%; font-size: 5.5rem; animation-delay: -2.5s; }
  .motif-4 { top: 12%; right: 3%; font-size: 5.5rem; color: var(--magenta); opacity: 0.07; animation-delay: -3s; }
  .motif-5 { top: 48%; right: 5%; font-size: 4.5rem; animation-delay: -6s; }
  .motif-6 { top: 78%; right: 2%; font-size: 4rem; color: var(--cyan); opacity: 0.06; animation-delay: -5s; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: oklch(0.28 0.1 285 / 70%);
  border: 1px solid oklch(0.85 0.19 88 / 30%);
  padding: 6px 14px 6px 8px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.hero-badge .pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--gradient-gold);
  color: var(--gold-foreground);
  padding: 2px 8px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}
.hero p.lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 520px;
}
.hero p.lede b { color: var(--text); font-weight: 700; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-ctas .btn.primary { height: 54px; padding: 0 26px; }
.hero-ctas .btn.ghost { height: 54px; padding: 0 22px; }
.btn .chip {
  border-radius: 999px;
  background: oklch(0 0 0 / 15%);
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-trust {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
.hero-trust .stars { color: var(--gold); letter-spacing: 2px; }

.hero-visual {
  position: relative;
  border-radius: 2rem;
  border: 1px solid oklch(0.85 0.19 88 / 35%);
  box-shadow: var(--shadow-gold);
  background: var(--gradient-card);
  padding: 36px 28px;
  overflow: visible;
}
.hero-coin-stack {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}
.hero-coin-stack .stack-coin {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  box-shadow: var(--shadow-gold);
  margin: 0 -14px;
  border: 2px solid oklch(0.98 0.01 90 / 40%);
}
.hero-visual .headline {
  text-align: center;
  margin-top: 18px;
}
.hero-visual .headline .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
}
.hero-visual .headline .caption {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-top: 4px;
}

.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card, var(--panel));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  border-radius: 1rem;
  padding: 10px 14px;
}
.hero-float-badge .icon {
  height: 34px;
  width: 34px;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.hero-float-badge .icon.gold { background: var(--gradient-gold); box-shadow: var(--shadow-gold); }
.hero-float-badge .icon.neon { background: var(--gradient-neon); box-shadow: var(--shadow-neon); }
.hero-float-badge .title { font-size: 0.7rem; color: var(--muted); }
.hero-float-badge .value { font-family: var(--font-display); font-size: 0.95rem; }
.badge-topleft { top: -18px; left: -18px; transform: rotate(-6deg); display: none; }
.badge-bottomright { bottom: -18px; right: -14px; transform: rotate(5deg); display: none; }
@media (min-width: 640px) {
  .badge-topleft, .badge-bottomright { display: flex; }
}

/* --------------------------------------------------------- Live ticker --- */

.ticker {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: oklch(0.28 0.1 285 / 35%);
  padding: 12px 0;
  overflow: hidden;
}
.ticker-fade {
  pointer-events: none;
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.ticker-fade.left { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker-fade.right { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ticker-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: oklch(0.16 0.06 285 / 85%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ticker-label .dot {
  position: relative;
  height: 8px; width: 8px;
}
.ticker-label .dot::before, .ticker-label .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--magenta);
}
.ticker-label .dot::before { animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  width: max-content;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding-left: 140px;
}
.ticker-track .win-item { display: flex; align-items: center; gap: 8px; }
.ticker-track .win-item .name { color: var(--text); font-weight: 800; }
.ticker-track .win-item .amount { color: var(--gold); font-weight: 800; }
.ticker-track .win-item .sep { height: 6px; width: 6px; border-radius: 50%; background: var(--gold); margin-left: 16px; }
.ticker-track.is-empty {
  padding-left: 0;
  width: 100%;
  justify-content: center;
  animation: none;
}
.ticker-empty { text-align: center; font-size: 0.85rem; color: var(--muted); }

/* --------------------------------------------------------------- Panels --- */

.section-nav {
  display: flex;
  gap: 8px;
  margin: 40px 0 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.navlink {
  background: none;
  border: none;
  color: var(--muted);
  padding: 10px 4px;
  margin-right: 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
}
.navlink:hover { color: var(--text); }
.navlink.active { color: var(--gold); border-bottom-color: var(--gold); }

.panel { padding: 8px 0 40px; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
}
.panel h2 { font-size: 2rem; margin-top: 0; }
.panel h3 { color: var(--muted); font-size: 0.95rem; margin-top: 36px; text-transform: uppercase; letter-spacing: 0.06em; }
.subtext { color: var(--muted); font-size: 0.95rem; margin-top: 8px; margin-bottom: 24px; max-width: 640px; line-height: 1.6; }

/* Search + filter chips (games lobby) */
.lobby-controls { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.search-wrap { position: relative; max-width: 420px; }
.search-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 44px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.search-wrap input:focus { outline: none; border-color: oklch(0.85 0.19 88 / 60%); box-shadow: 0 0 0 3px oklch(0.85 0.19 88 / 20%); }
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap .clear-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 32px; width: 32px; border-radius: 50%; border: none;
  background: var(--panel-2); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; font-size: 0.9rem;
}
.search-wrap .clear-btn:hover { color: var(--text); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--font-body);
  transition: background 0.15s ease, color 0.15s ease;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--gradient-gold); color: var(--gold-foreground); box-shadow: var(--shadow-gold); }

.result-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

.simple-input {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 48px;
  padding: 0 18px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
}
.simple-input:focus { outline: none; border-color: oklch(0.85 0.19 88 / 60%); box-shadow: 0 0 0 3px oklch(0.85 0.19 88 / 20%); }
.simple-input::placeholder { color: var(--muted); }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: oklch(0.85 0.19 88 / 40%); }

.card-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tag-badge.hot { background: var(--gradient-neon); color: var(--text); box-shadow: var(--shadow-neon); }
.tag-badge.hot svg,
.tag-badge.hot .flame-emoji {
  display: inline-block;
  animation: flame-flicker 0.9s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes flame-flicker {
  0%   { transform: scale(1) rotate(0deg); filter: brightness(1); }
  20%  { transform: scale(1.12, 0.94) rotate(-4deg); filter: brightness(1.25); }
  40%  { transform: scale(0.94, 1.08) rotate(3deg); filter: brightness(0.95); }
  60%  { transform: scale(1.08, 0.96) rotate(-2deg); filter: brightness(1.15); }
  80%  { transform: scale(0.97, 1.05) rotate(2deg); filter: brightness(1.05); }
  100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}
.tag-badge.category { background: oklch(0 0 0 / 40%); color: var(--text); border: 1px solid var(--border); position: absolute; top: 14px; right: 14px; }

.card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.85rem; margin: 4px 0 14px; line-height: 1.5; }
.card .meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.card .meta b { color: var(--text); }

.bet-row { display: flex; gap: 8px; }
.bet-row input {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  width: 0;
  font-family: var(--font-body);
}
.bet-row input:focus { outline: none; border-color: oklch(0.85 0.19 88 / 60%); }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
}
.list-row .muted { color: var(--muted); font-size: 0.8rem; }

.badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge.win, .badge.completed { background: oklch(0.72 0.17 150 / 18%); color: var(--green); }
.badge.loss, .badge.failed { background: oklch(0.62 0.24 25 / 18%); color: var(--red); }
.badge.pending, .badge.processing { background: oklch(0.85 0.19 88 / 18%); color: var(--gold); }

.toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 50;
  box-shadow: var(--shadow-card);
}
.toast.win { background: var(--green); color: oklch(0.15 0.05 150); }
.toast.loss { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.toast.info { background: var(--gradient-gold); color: var(--gold-foreground); }
.toast.err { background: var(--red); color: oklch(0.15 0.05 25); }

.empty { color: var(--muted); font-size: 0.9rem; padding: 12px 0; }

/* Ad slots */
.ad-slot {
  max-width: 1180px;
  margin: 24px auto;
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: oklch(0.22 0.08 280 / 40%);
}
.ad-slot-top { margin-top: 0; }

/* ------------------------------------------------------------- Promos --- */

.promo-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.promo-card {
  position: relative;
  border-radius: 1.4rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  padding: 30px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.promo-card .icon-tile {
  height: 52px;
  width: 52px;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.promo-card .icon-tile.gold { background: var(--gradient-gold); box-shadow: var(--shadow-gold); }
.promo-card .icon-tile.neon { background: var(--gradient-neon); box-shadow: var(--shadow-neon); color: var(--text); }
.promo-card .icon-tile.cyan { background: var(--cyan); color: var(--royal); box-shadow: 0 0 30px oklch(0.82 0.16 220 / 40%); }
.promo-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.promo-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin: 0; }

/* ---------------------------------------------------------- How it works --- */

.how-it-works { padding: 56px 0 8px; }
.how-it-works .section-head { max-width: 640px; margin-bottom: 34px; }
.how-it-works .section-head h2 { font-size: 2rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.step-bignum {
  position: absolute;
  top: -10px; left: -4px;
  font-family: var(--font-display);
  font-size: 4.4rem;
  color: oklch(0.85 0.19 88 / 14%);
  line-height: 1;
  user-select: none;
}
.step-num {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 0.9rem;
  background: var(--panel-2);
  border: 1px solid oklch(0.85 0.19 88 / 30%);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 800;
}
.step h3 { margin: 0 0 8px; font-size: 1.1rem; position: relative; }
.step p { color: var(--muted); font-size: 0.88rem; margin: 0; position: relative; line-height: 1.55; }

/* -------------------------------------------------------------- Trust band --- */

.trust-band {
  margin: 8px -20px 0;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, oklch(0.28 0.15 285 / 45%), oklch(0.65 0.29 340 / 10%), oklch(0.82 0.16 220 / 10%));
}
.trust-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-stat .value { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.trust-stat .label { margin-top: 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); }

/* -------------------------------------------------------------------- CTA --- */

.cta-band { padding: 56px 0; }
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid oklch(0.85 0.19 88 / 35%);
  box-shadow: var(--shadow-gold);
  padding: 56px 30px;
  text-align: center;
  background: linear-gradient(160deg, var(--royal), var(--bg) 60%, var(--bg));
}
.cta-panel h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-panel p { color: var(--muted); max-width: 480px; margin: 14px auto 0; }
.cta-actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-panel .btn.large { height: 56px; }

/* ----------------------------------------------------------------- Footer --- */

.site-footer { border-top: 1px solid var(--border); padding: 44px 0 32px; margin-top: 16px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.inline-link {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--gold); text-decoration: underline; cursor: pointer;
  font-size: inherit; font-family: inherit;
}
.inline-link:hover { color: var(--text); }
.footer-brand-logo { height: 34px; margin-bottom: 12px; }
.footer-tagline { color: var(--muted); font-size: 0.88rem; max-width: 340px; line-height: 1.5; }
.footer-links h4 { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 14px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links button {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--muted); font-size: 0.88rem; font-family: var(--font-body);
}
.footer-links button:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-end; } }
.footer-legal { max-width: 640px; text-align: left; }

/* -------------------------------------------------------------- Overlays --- */

.overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.05 0.02 285 / 75%);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}
.overlay-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.overlay-close:hover { color: var(--text); }

.auth-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid oklch(0.85 0.19 88 / 30%);
  box-shadow: var(--shadow-gold);
  border-radius: 1.4rem;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
}
.tabs { display: flex; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  padding: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
}
.tab.active { color: var(--gold); border-bottom: 2px solid var(--gold); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.auth-form input {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.auth-form input:focus { outline: none; border-color: var(--gold); }
.auth-form .btn { margin-top: 6px; justify-content: center; }

.error { color: var(--red); font-size: 0.85rem; margin-top: 14px; text-align: center; }
.fineprint { color: var(--muted); font-size: 0.72rem; text-align: center; margin-top: 22px; line-height: 1.5; }

/* Dashboard / verify banner */
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel-2);
  border: 1px solid var(--gold-dark);
  border-radius: 1rem;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.verify-banner.status-pending { border-color: var(--border); }
.verify-banner.status-rejected { border-color: var(--red); }
.modal-title { margin: 0 0 4px; font-size: 1.3rem; font-family: var(--font-display); }

.legal-page { max-width: 760px; margin: 0 auto; padding: 40px 0 80px; }
.legal-page h1 { font-size: 2rem; margin: 0 0 4px; font-family: var(--font-display); }
.legal-page .back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 0.85rem; }
.legal-page .back-link:hover { color: var(--text); }
.legal-body h3 {
  margin: 20px 0 8px;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1rem;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 0.85rem; line-height: 1.6; }
.legal-body ul, .legal-body ol { padding-left: 20px; margin: 8px 0; }
.legal-updated { color: var(--muted); font-size: 0.75rem; margin-bottom: 16px; }

.redeem-confirm-details {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 16px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}
.redeem-confirm-details .row { display: flex; justify-content: space-between; }
.redeem-confirm-details .row.total { border-top: 1px solid var(--border); padding-top: 8px; font-weight: 700; color: var(--text); }
.redeem-confirm-actions { display: flex; gap: 10px; margin-top: 8px; }
.redeem-confirm-actions .btn { flex: 1; }

.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem !important;
  color: var(--muted);
  font-weight: 400 !important;
}
.checkbox-label input[type="checkbox"] { margin-top: 3px; width: 15px; height: 15px; flex-shrink: 0; }
.checkbox-label a, .checkbox-label button.inline-link { font-size: inherit; }

/* -------------------------------------------------------------- Game visuals --- */

.game-visual {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 14px;
  min-height: 60px;
  align-items: center;
}
.reel {
  width: 52px; height: 52px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
}
.reel.spin { animation: reel-shake 0.12s linear infinite; }
.die {
  width: 46px; height: 46px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.die.spin { animation: reel-shake 0.12s linear infinite; }
.coin {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-gold);
  box-shadow: var(--shadow-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800;
  color: var(--gold-foreground);
}
.coin.spin { animation: coin-flip 0.5s linear infinite; }
.coin.result-win { box-shadow: 0 0 0 3px var(--green); }
.coin.result-loss { box-shadow: 0 0 0 3px var(--border); }
.wheel {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800;
  color: var(--text);
  border: 3px solid var(--border);
}
.wheel.spin { animation: reel-shake 0.1s linear infinite; }
.wheel.color-red { background: oklch(0.42 0.19 25); }
.wheel.color-black { background: oklch(0.18 0.02 285); }

.type-icon {
  height: 48px; width: 48px;
  border-radius: 1rem;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  margin: 28px 0 8px;
}

@keyframes reel-shake {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes coin-flip {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(0.9); }
  100% { transform: rotateY(360deg) scale(1); }
}

/* ------------------------------------------------------------ Chat widget --- */

.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 500; }
.chat-toggle {
  height: 58px; width: 58px; border-radius: 50%;
  background: var(--gradient-gold); color: var(--gold-foreground);
  border: none; cursor: pointer; font-size: 1.5rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px oklch(0 0 0 / 35%), 0 0 0 0 oklch(0.85 0.19 88 / 55%);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.chat-toggle:hover { transform: scale(1.06); }
.chat-toggle.active { box-shadow: 0 8px 24px oklch(0 0 0 / 35%), 0 0 0 4px oklch(0.85 0.19 88 / 35%); }

.chat-panel {
  position: absolute; right: 0; bottom: 72px;
  width: min(340px, calc(100vw - 40px));
  height: min(460px, calc(100vh - 140px));
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 1rem; box-shadow: 0 20px 50px oklch(0 0 0 / 45%);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel.hidden { display: none; }

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}
.chat-header b { font-family: var(--font-display); font-size: 0.95rem; }
.chat-subhead { color: var(--muted); font-size: 0.72rem; margin-top: 2px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.assistant, .chat-msg.system { justify-content: flex-start; }
.chat-bubble {
  max-width: 85%; padding: 9px 13px; border-radius: 12px;
  font-size: 0.85rem; line-height: 1.4; white-space: pre-wrap;
}
.chat-msg.user .chat-bubble { background: var(--gradient-gold); color: var(--gold-foreground); border-bottom-right-radius: 3px; }
.chat-msg.assistant .chat-bubble { background: var(--panel-2); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.chat-msg.system .chat-bubble { background: transparent; border: 1px dashed var(--border); color: var(--muted); font-size: 0.78rem; }
.chat-msg.system .chat-bubble a { color: var(--cyan); }
.chat-typing { opacity: 0.6; letter-spacing: 2px; }

.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input-row input {
  flex: 1; height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); font-size: 0.85rem; font-family: var(--font-body);
}
.chat-input-row input:focus { outline: none; border-color: oklch(0.85 0.19 88 / 60%); }

@media (max-width: 480px) {
  .chat-widget { right: 12px; bottom: 12px; }
  .chat-panel { right: -6px; }
}
