:root {
  --stage: #0a0910;
  --stage-2: #14101f;
  --cyan: #2ff3e0;
  --pink: #ff2e6c;
  --violet: #8b5cf6;
  --text: #f4f2fb;
  --text-dim: #9d96b8;
  --card: #16131f;
  --card-border: rgba(255,255,255,0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--stage);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

/* Fullscreen app-style lock — used only on the game page (play.html) */
body.app {
  height: 100%;
  overflow: hidden;
}
html:has(body.app) {
  height: 100%;
  overflow: hidden;
}

.screen {
  position: relative;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  padding: 24px;
}
.screen.active { display: flex; }

.bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,46,108,0.25), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(47,243,224,0.2), transparent 45%),
    linear-gradient(180deg, var(--stage) 0%, var(--stage-2) 100%);
  z-index: 0;
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* ---------- Login card ---------- */
.login-card, .home-card {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.home-card.wide { width: min(480px, 100%); }

.login-card { position: relative; }
.back-home {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
}
.back-home:hover { color: var(--cyan); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 8px;
}

.title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: var(--text);
}
.title span { color: var(--pink); }
.title.small { font-size: 36px; margin-bottom: 4px; }

.subtitle {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 28px;
  line-height: 1.5;
}

.btn-tiktok {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(90deg, #111 0%, #111 100%);
  background-image: linear-gradient(90deg, var(--pink), var(--violet) 55%, var(--cyan));
  color: #0a0910;
  font-weight: 700;
  font-size: 16px;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn-tiktok:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-tiktok:active { transform: translateY(0px) scale(0.98); }
.tt-icon { width: 20px; height: 20px; }

.login-error {
  color: var(--pink);
  font-size: 13px;
  margin-top: 14px;
}

.fine-print {
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.disclaimer-badge {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(47,243,224,0.08);
  border: 1px solid rgba(47,243,224,0.25);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}
.disclaimer-badge strong { color: var(--cyan); }

/* ---------- Home / profile ---------- */
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  object-fit: cover;
  margin-bottom: 14px;
}
.welcome { color: var(--text-dim); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.user-name { font-family: 'Bebas Neue', sans-serif; font-size: 32px; margin-bottom: 26px; }

.btn-primary, .btn-secondary, .btn-ghost {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 12px;
  border: none;
  transition: transform .15s ease, filter .15s ease;
}
.btn-primary { background: linear-gradient(90deg, var(--pink), var(--violet)); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--card-border); }
.btn-ghost { background: transparent; color: var(--text-dim); margin-bottom: 0; }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ---------- Game screen ---------- */
#screen-game { padding: 12px; }

.hud {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}
.hud-item {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}
.hud-item span { font-size: 26px; color: var(--text); }
.hud-item.combo span { color: var(--cyan); }

#game-canvas {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  width: min(420px, 92vw);
  height: min(560px, 62vh);
  touch-action: none;
}

.lane-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: min(420px, 92vw);
  margin-top: 12px;
}
.lane-btn {
  padding: 16px 0;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.05em;
  cursor: pointer;
  user-select: none;
}
.lane-btn:active { background: var(--cyan); color: #0a0910; }

/* ---------- Slot machine ---------- */
.machine {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(340px, 92vw);
  background: linear-gradient(180deg, #2a1a3a 0%, #16101f 100%);
  border: 3px solid #ffb703;
  border-radius: 22px;
  padding: 18px 16px 24px;
  box-shadow: 0 0 0 2px #6b1b3a, 0 20px 50px rgba(0,0,0,0.6), inset 0 0 30px rgba(0,0,0,0.4);
}

.marquee {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.1em;
}
.marquee span {
  color: #ffd23f;
  text-shadow: 0 0 8px #ffb703, 0 0 2px #fff;
  animation: bulb-flicker 1.2s infinite alternate;
}
.marquee span:nth-child(2) { animation-delay: .2s; }
.marquee span:nth-child(3) { animation-delay: .4s; }
.marquee span:nth-child(4) { animation-delay: .6s; }
@keyframes bulb-flicker {
  from { opacity: 1; }
  to { opacity: 0.45; }
}

.reel-window {
  position: relative;
  width: 100%;
  height: 225px;
  background: #0a0910;
  border-radius: 12px;
  border: 4px solid #ffb703;
  overflow: hidden;
  margin-bottom: 20px;
}
.payline {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: rgba(255,46,108,0.7);
  transform: translateY(-1px);
  z-index: 3;
}
.reel-shadow-top, .reel-shadow-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 45px;
  z-index: 2;
  pointer-events: none;
}
.reel-shadow-top { top: 0; background: linear-gradient(180deg, #0a0910, transparent); }
.reel-shadow-bottom { bottom: 0; background: linear-gradient(0deg, #0a0910, transparent); }

.reels {
  display: flex;
  height: 100%;
}
.reel {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.reel:last-child { border-right: none; }
.reel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 0; left: 0; right: 0;
  will-change: transform;
}
.reel-strip .symbol {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  line-height: 1;
}

.win-banner {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: #ffd23f;
  text-shadow: 0 0 10px #ff2e6c;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  animation: win-pop .5s ease;
}
@keyframes win-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.btn-spin {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #ffd23f;
  background: radial-gradient(circle at 35% 30%, #ff5c8a, #ff2e6c 55%, #b3123f 100%);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 8px 0 #7a0f2c, 0 14px 24px rgba(0,0,0,0.5);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn-spin:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #7a0f2c, 0 6px 14px rgba(0,0,0,0.5);
}
.btn-spin:disabled {
  filter: grayscale(0.6) brightness(0.7);
  cursor: not-allowed;
}

/* ---------- Game over ---------- */
.final-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 80px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.final-best { color: var(--text-dim); font-size: 13px; margin-bottom: 26px; }

/* ---------- Leaderboard ---------- */
.leaderboard-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  max-height: 320px;
  overflow-y: auto;
}
.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.04);
  font-size: 14px;
}
.leaderboard-list li .rank { color: var(--cyan); font-weight: 700; margin-right: 10px; }
.leaderboard-list li .score { color: var(--pink); font-weight: 700; }
.leaderboard-list .empty { text-align: center; color: var(--text-dim); padding: 20px 0; }

/* ================= Marketing site (home / privacy / terms) ================= */
body.site {
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10,9,16,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--pink); }
.brand.small { font-size: 18px; }

.site-nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a.active { color: var(--cyan); }

.btn-nav-cta {
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.btn-primary.as-link, .btn-secondary.as-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: auto;
  padding: 14px 26px;
}

/* Hero */
.hero {
  position: relative;
  padding: 90px 24px 100px;
  text-align: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.title.huge { font-size: 88px; }
.hero-copy {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-disclaimer {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--cyan);
  opacity: 0.85;
}

/* Generic content sections */
.section { padding: 72px 24px; }
.section.alt { background: var(--stage-2); }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  margin: 4px 0 20px;
}
.section-copy {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px 22px;
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; margin: 0 0 8px; }
.feature-card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin: 0; }

.steps { list-style: none; margin: 24px 0 0; padding: 0; max-width: 620px; }
.steps li {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
}
.steps h3 { margin: 0 0 4px; font-size: 16px; }
.steps p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 32px 24px;
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; margin-right: auto; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { color: var(--text-dim); font-size: 12px; }

/* Legal pages */
.legal-main { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.legal-updated { color: var(--text-dim); font-size: 13px; margin-bottom: 32px; }
.legal-doc h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  margin: 32px 0 10px;
}
.legal-doc p, .legal-doc li {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.75;
}
.legal-doc ul { padding-left: 20px; margin: 8px 0 16px; }
.legal-doc a { color: var(--cyan); }
.legal-doc code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.legal-disclaimer {
  margin-top: 40px;
  padding: 16px;
  border: 1px dashed var(--card-border);
  border-radius: 10px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .title { font-size: 48px; }
  .title.huge { font-size: 56px; }
  .site-nav { display: none; }
}

