:root {
  color-scheme: dark;
  --bg-1: #0b0f16;
  --bg-2: #121826;
  --bg-3: #1b2333;
  --ink: #f6f2ee;
  --ink-soft: rgba(246, 242, 238, 0.75);
  --accent: #ff6a3d;
  --accent-deep: #ff4b21;
  --accent-cool: #32c2a2;
  --gold: #f8c24c;
  --shadow: rgba(3, 6, 12, 0.55);
  --glass: rgba(20, 27, 38, 0.72);
  --border: rgba(246, 242, 238, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  background: #07090d;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background-color: #07090d;
  background-image:
    radial-gradient(1200px 900px at 25% 5%, rgba(126, 65, 47, 0.85), transparent 68%),
    radial-gradient(900px 700px at 85% 0%, rgba(30, 120, 105, 0.5), transparent 70%),
    radial-gradient(1200px 900px at 20% 85%, rgba(21, 35, 50, 0.7), transparent 72%),
    linear-gradient(160deg, #1b2333 0%, #121826 45%, #07090d 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-glow {
  position: fixed;
  inset: -15% -10% auto;
  height: 120vh;
  background: radial-gradient(circle, rgba(255, 125, 75, 0.45), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 194, 162, 0.22), transparent 65%);
  filter: blur(1px);
  z-index: 1;
}

body::after {
  bottom: -180px;
  left: -160px;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw 12px;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-pair {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.18));
}

.brand-logo.manifest {
  height: 32px;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.3);
}

.badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(50, 194, 162, 0.2);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(50, 194, 162, 0.4);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  padding: 28px 6vw 64px;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
  animation: fadeUp 0.8s ease-out;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 12px;
  color: var(--ink-soft);
}

h1 {
  font-family: "Bungee Shade", cursive;
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 0 0 18px;
  line-height: 1.05;
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.spin-btn {
  padding: 14px 28px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(255, 91, 45, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spin-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 34px rgba(255, 91, 45, 0.4);
}

.spin-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.streak {
  background: var(--glass);
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.reel-cta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.streak-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.streak-count {
  font-size: 1.3rem;
  font-weight: 700;
}

.ticker {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 600;
}

.ticker span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 20, 30, 0.8);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

.machine {
  display: flex;
  justify-content: center;
}

.machine-shell {
  background: linear-gradient(160deg, #111826, #1b2333 60%);
  border-radius: 28px;
  padding: 28px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px var(--shadow);
  width: min(460px, 100%);
  position: relative;
  overflow: hidden;
}

.machine-shell::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto;
  height: 200px;
  background: radial-gradient(circle, rgba(248, 194, 76, 0.35), transparent 60%);
  opacity: 0.7;
}

.machine-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.jackpot-light {
  background: var(--gold);
  color: #2a1e14;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.8);
}

.machine-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.odds {
  font-size: 0.8rem;
  opacity: 0.6;
  color: var(--ink-soft);
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reel {
  height: 100px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.reel.spinning {
  transform: translateY(-4px);
  filter: blur(0.6px);
}

.reel .symbol img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.reel.jackpot {
  animation: glow 1s ease-in-out infinite;
  border: 2px solid rgba(255, 91, 45, 0.5);
}

.result {
  margin-top: 16px;
  font-weight: 600;
  font-size: 1rem;
  min-height: 24px;
  color: var(--ink-soft);
}

.machine-footer {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 106, 61, 0.15);
  border: 1px solid rgba(255, 106, 61, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.spotlight {
  padding: 0 6vw 80px;
  position: relative;
  z-index: 1;
}

.spotlight-card {
  background: rgba(10, 14, 22, 0.8);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeUp 0.9s ease-out;
}

.spotlight-card h2 {
  margin-top: 0;
  font-size: 2rem;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.highlights h3 {
  margin-bottom: 8px;
}

.spotlight-card p {
  color: var(--ink-soft);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 13, 10, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 5;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #101624;
  border-radius: 24px;
  padding: 28px;
  width: min(420px, 90vw);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeUp 0.25s ease-out;
}

.modal-card p {
  color: var(--ink-soft);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.modal-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(50, 194, 162, 0.2);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-cta {
  display: inline-flex;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--accent-cool);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  opacity: 0.9;
  animation: confetti-fall 1.8s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(255, 91, 45, 0.4);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 91, 45, 0.75);
  }
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(var(--x-start, 0px), -10vh, 0) rotate(var(--rotate-start, 0deg));
  }
  100% {
    transform: translate3d(var(--x-end, 0px), 110vh, 0) rotate(var(--rotate-end, 360deg));
  }
}

@media (max-width: 768px) {
  .topbar {
    justify-content: center;
  }

  .hero {
    padding-top: 8px;
  }

  .machine-shell {
    padding: 22px;
  }

  .reel {
    height: 88px;
    font-size: 2.4rem;
  }
}
