:root {
  --bg: #0b0e17;
  --bg-alt: #141826;
  --card: #1b2033;
  --gold: #ffc94a;
  --gold-dim: #caa24d;
  --pink: #ff4f81;
  --purple: #a855f7;
  --purple-bar-1: #5b21b6;
  --purple-bar-2: #3b1370;
  --teal: #22d3ee;
  --teal-dark: #0891b2;
  --text: #f2f3f7;
  --muted: #9099b0;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: linear-gradient(90deg, var(--purple-bar-1), var(--purple-bar-2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
}

.logo-mark { flex: 0 0 auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }

.brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.5px; color: #fff; }
.brand-sub { font-weight: 700; font-size: 0.6rem; letter-spacing: 3px; color: var(--gold); }

.nav-links { display: flex; gap: 22px; }
.nav-links a { color: rgba(255, 255, 255, 0.75); font-weight: 600; font-size: 0.9rem; }
.nav-links a:hover { color: #fff; }

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

/* Winners ticker */
.ticker {
  background: linear-gradient(90deg, #1a0f2e, #2a0f3a, #1a0f2e);
  border-bottom: 1px solid rgba(255, 201, 74, 0.25);
  overflow: hidden;
  white-space: nowrap;
  position: sticky;
  top: 65px;
  z-index: 19;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  padding: 8px 0;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-track span {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 60px 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a0b38 0%, var(--bg) 60%);
  border-bottom: 1px solid rgba(255, 201, 74, 0.12);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  opacity: 0.5;
  filter: saturate(1.15) contrast(1.05);
}
.hero-bg-row {
  display: flex;
  gap: 14px;
  width: max-content;
  animation-name: scroll-x;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.hero-bg-row img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11, 14, 23, 0.45) 0%, rgba(11, 14, 23, 0.82) 55%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text { max-width: 480px; flex: 1 1 380px; text-align: left; }
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: 2.9rem;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.15;
  color: #fff;
}
.headline-accent { color: var(--gold); }

.hero-sub { color: rgba(255, 255, 255, 0.75); font-size: 1.15rem; margin: 0 0 28px; line-height: 1.6; }

.jackpot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: 10px 22px;
  margin-top: 28px;
  box-shadow: 0 0 24px rgba(255, 201, 74, 0.25);
  animation: jackpot-pulse 2.4s ease-in-out infinite;
}
@keyframes jackpot-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 201, 74, 0.2); }
  50% { box-shadow: 0 0 34px rgba(255, 201, 74, 0.45); }
}
.jackpot-label { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; font-weight: 600; }
.jackpot-amount { color: var(--gold); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.hero-ctas { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), #ff9f4a); color: #1a1200; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-cta { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #04222b; }
.btn-cta:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }
.btn-outline:hover { border-color: #fff; }
.btn-large { padding: 14px 30px; font-size: 1.05rem; }
.btn-glow { animation: btn-pulse 2s ease-in-out infinite; }
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
}

.section { max-width: 1100px; margin: 0 auto; padding: 80px 24px; text-align: center; position: relative; z-index: 1; }
.section h2 { font-size: 2rem; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 40px; }
.section-alt { background: var(--bg-alt); border-radius: var(--radius); margin: 0 24px; max-width: none; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
  text-align: left;
}
.game-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--gold-dim);
  box-shadow: 0 12px 28px rgba(255, 201, 74, 0.18);
}
.game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.game-card span { padding: 10px 12px; font-size: 0.82rem; font-weight: 600; }

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  background-size: 250% 250%;
  background-position: -100% -100%;
  transition: background-position 0.6s ease;
  pointer-events: none;
}
.game-card:hover::after { background-position: 100% 100%; }

.game-card.hot::before {
  content: "🔥 HOT";
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--pink), #ff8a4c);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 79, 129, 0.5);
  animation: badge-bounce 1.6s ease-in-out infinite;
}
@keyframes badge-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: left;
}
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p { color: var(--muted); font-size: 0.9rem; margin: 0; line-height: 1.5; }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(540deg); opacity: 0.3; }
}

/* Hero visual: phone mockup */
.hero-visual {
  position: relative;
  flex: 1 1 420px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-stage {
  position: relative;
  width: 580px;
  max-width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow {
  position: absolute;
  inset: -12%;
  z-index: 0;
  background:
    radial-gradient(circle, rgba(11, 14, 23, 0.9) 0%, rgba(11, 14, 23, 0.55) 42%, transparent 68%),
    radial-gradient(circle, rgba(124, 58, 237, 0.4), rgba(34, 211, 238, 0.1) 45%, transparent 70%);
  filter: blur(34px);
  pointer-events: none;
}

.phone-mockup {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #2c3050, #0d0f1a 55%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(255, 255, 255, 0.12),
    inset 0 2px 1px rgba(255, 255, 255, 0.18),
    inset 0 -4px 8px rgba(0, 0, 0, 0.5);
}
.phone-btn {
  position: absolute;
  background: linear-gradient(90deg, #0d0f1a, #22263c);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}
/* Landscape device: wider than tall */
.phone-landscape {
  width: 520px;
  border-radius: 40px;
  padding: 14px 14px 14px 32px;
}
.phone-notch-land {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06), 0 0 5px rgba(120, 170, 255, 0.5);
  z-index: 2;
}
.phone-btn-power-land { top: -4px; right: 120px; width: 56px; height: 4px; }
.phone-btn-vol-land { bottom: -4px; right: 180px; width: 42px; height: 4px; }

.phone-screen-land {
  position: relative;
  background: #000;
  border-radius: 28px;
  overflow: hidden;
}
.phone-screen-land::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, transparent 22%, transparent 78%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}
.phone-land-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Sticky bottom bonus bar */
.bonus-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: linear-gradient(90deg, var(--purple-bar-1), var(--purple-bar-2));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
.bonus-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.bonus-bar-icon { font-size: 1.6rem; }
.bonus-bar-text {
  display: flex;
  flex-direction: column;
  color: #fff;
  flex: 1;
  font-size: 0.85rem;
}
.bonus-bar-text strong { color: var(--gold); font-size: 0.9rem; }
.bonus-bar-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.bonus-bar-close:hover { color: #fff; }

body.has-bonus-bar { padding-bottom: 64px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
  .ticker { top: 57px; }
  .hero-inner { flex-direction: column; }
  .hero-text { text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-visual { min-height: 300px; }
  .visual-stage { height: auto; padding: 20px 0; }
  .phone-landscape { width: min(90vw, 420px); padding: 12px 12px 12px 26px; }
  .bonus-bar-text { font-size: 0.78rem; }
}
