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

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #334155;
  --border: #475569;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --red: #ef4444;
  --red-soft: #fca5a5;
  --green: #10b981;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --mock-bg: #f8fafc;
  --mock-surface: #ffffff;
  --mock-text: #0f172a;
  --mock-muted: #64748b;
  --mock-border: #e2e8f0;
  --mock-primary: #4f46e5;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* ── Top bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  background: #0b1222;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.back-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.back-link:hover { color: var(--text); }

.progress-dots {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.progress-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-2);
  transition: background 0.3s, transform 0.3s;
}
.progress-dots .dot.active { background: var(--primary-light); transform: scale(1.3); }
.progress-dots .dot.done { background: var(--green); }
.progress-dots .dot.fell { background: var(--red); }

/* ── Header ── */
.game-header {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid var(--border);
}

.game-header__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.85rem;
}

.game-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #f8fafc 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.game-header__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Stage / Browser mock ── */
.stage {
  max-width: 880px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
}

.browser {
  background: var(--mock-surface);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: #e2e8f0;
  border-bottom: 1px solid var(--mock-border);
}

.browser__dots { display: flex; gap: 0.3rem; }
.browser__dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot--red { background: #ef4444; }
.dot--yellow { background: #f59e0b; }
.dot--green { background: #10b981; }

.browser__url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--mock-border);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.75rem;
  color: var(--mock-muted);
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser__spacer { width: 60px; }

.browser__body {
  background: var(--mock-bg);
  color: var(--mock-text);
  min-height: 460px;
  padding: 1.5rem;
  position: relative;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .browser__body { min-height: 380px; padding: 1rem; font-size: 0.85rem; }
}

/* ── Mock site typography ── */
.browser__body h2 { color: var(--mock-text); }
.browser__body .muted { color: var(--mock-muted); }
.browser__body a { color: var(--mock-primary); }

/* ── Scene: Intro ── */
.intro {
  text-align: center;
  padding: 2.5rem 1rem;
  max-width: 560px;
  margin: 0 auto;
}
.intro__emoji { font-size: 3.5rem; margin-bottom: 1rem; }
.intro__title { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.intro__text { color: var(--mock-muted); margin-bottom: 1.5rem; line-height: 1.65; }

/* ── Mock buttons ── */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--mock-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.btn--primary:hover { background: #4338ca; }

.btn--green {
  background: #10b981;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.btn--green:hover { background: #059669; }

.btn--gray { background: #e2e8f0; color: var(--mock-text); }
.btn--gray:hover { background: #cbd5e1; }

.btn--huge { font-size: 1.05rem; padding: 0.85rem 2rem; }

.link-muted {
  display: inline-block;
  color: var(--mock-muted) !important;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}
.link-muted:hover { color: #475569 !important; }

/* ── Modal overlay (mock site popups) ── */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 5;
}
.modal {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.75rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__emoji { font-size: 2.6rem; margin-bottom: 0.5rem; }
.modal__title { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.4rem; }
.modal__desc { color: var(--mock-muted); font-size: 0.85rem; margin-bottom: 1.25rem; line-height: 1.55; }
.modal__actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }

.modal__x {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--mock-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}
.modal__x:hover { color: var(--mock-text); }

/* ── Scene: form ── */
.form { max-width: 440px; margin: 0 auto; }
.form__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.3rem; }
.form__sub { color: var(--mock-muted); font-size: 0.85rem; margin-bottom: 1.25rem; }
.form__group { margin-bottom: 0.85rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--mock-border);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  background: #fff;
  transition: background 0.12s;
}
.check:hover { background: #f8fafc; }
.check input { margin-top: 0.15rem; cursor: pointer; }
.check__label { flex: 1; }
.check__label strong { display: block; font-weight: 600; }
.check__label small { color: var(--mock-muted); }
.form__actions { margin-top: 1.25rem; text-align: right; }

/* ── Scene: pricing ── */
.pricing__title { text-align: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 0.25rem; }
.pricing__sub { text-align: center; color: var(--mock-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; align-items: stretch; }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } }

.tier {
  background: #fff;
  border: 1.5px solid var(--mock-border);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.tier__name { font-weight: 700; font-size: 0.9rem; }
.tier__price { font-size: 1.5rem; font-weight: 800; }
.tier__price small { font-size: 0.75rem; font-weight: 500; color: var(--mock-muted); }
.tier__features { font-size: 0.75rem; color: var(--mock-muted); list-style: none; padding: 0; margin: 0.5rem 0; }
.tier__features li { margin: 0.25rem 0; }
.tier__btn { margin-top: auto; }

.tier--featured {
  border: 2px solid var(--mock-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12), 0 12px 30px rgba(79, 70, 229, 0.18);
  transform: scale(1.04);
}
.tier--featured .tier__badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mock-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tier--dim { opacity: 0.65; }

.pricing__skip { text-align: center; margin-top: 1.25rem; }

/* ── Scene: trial signup ── */
.trial { max-width: 440px; margin: 0 auto; text-align: center; }
.trial__badge { display: inline-block; background: #dcfce7; color: #15803d; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 999px; margin-bottom: 0.6rem; }
.trial__title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.3rem; }
.trial__sub { color: var(--mock-muted); font-size: 0.88rem; margin-bottom: 1.25rem; }
.trial__card {
  background: #f8fafc;
  border: 1px solid var(--mock-border);
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.85rem;
  text-align: left;
}
.trial__card label { display: block; font-size: 0.75rem; color: var(--mock-muted); margin-bottom: 0.25rem; }
.trial__card input {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--mock-text);
  outline: none;
}
.trial__fine { color: var(--mock-muted); font-size: 0.72rem; margin-bottom: 1rem; line-height: 1.5; }
.trial__actions { display: flex; flex-direction: column; gap: 0.55rem; align-items: center; }

/* ── Scene: checkout ── */
.checkout { max-width: 460px; margin: 0 auto; }
.checkout__title { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.2rem; }
.checkout__sub { color: var(--mock-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.checkout__box {
  background: #fff;
  border: 1px solid var(--mock-border);
  border-radius: 0.5rem;
  padding: 1rem;
}
.checkout__row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.3rem 0; color: var(--mock-text); }
.checkout__row--muted { color: var(--mock-muted); }
.checkout__row--new { animation: feeIn 0.5s ease; }
@keyframes feeIn {
  from { opacity: 0; transform: translateX(-6px); background: rgba(239, 68, 68, 0.08); }
  to { opacity: 1; transform: translateX(0); background: transparent; }
}
.checkout__divider { border-top: 1px dashed var(--mock-border); margin: 0.5rem 0; }
.checkout__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 800;
  padding-top: 0.4rem;
}
.checkout__actions { margin-top: 1rem; display: flex; gap: 0.5rem; justify-content: flex-end; }

/* ── Scene: cancellation ── */
.cancel { max-width: 460px; margin: 0 auto; text-align: center; }
.cancel__title { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.4rem; }
.cancel__sub { color: var(--mock-muted); font-size: 0.85rem; margin-bottom: 1.25rem; }
.cancel__offer {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.cancel__offer-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.25rem; color: #9a3412; }
.cancel__offer-desc { font-size: 0.82rem; color: #c2410c; }
.cancel__step { font-size: 0.72rem; color: var(--mock-muted); margin-bottom: 0.75rem; }
.cancel__actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.cancel__phone {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--mock-muted);
  background: #f1f5f9;
  border-radius: 0.4rem;
  padding: 0.5rem;
}

/* ── Scene: download (disguised ad) ── */
.download { max-width: 460px; margin: 0 auto; text-align: center; }
.download__app {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}
.download__name { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.2rem; }
.download__tagline { color: var(--mock-muted); font-size: 0.82rem; margin-bottom: 1rem; }
.download__ad {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
  transition: transform 0.12s;
  margin-bottom: 0.4rem;
  position: relative;
}
.download__ad:hover { transform: translateY(-1px); }
.download__ad::after {
  content: 'Ad';
  position: absolute;
  top: 0.3rem;
  right: 0.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.05rem 0.3rem;
  border-radius: 0.2rem;
}
.download__real {
  font-size: 0.8rem;
  color: var(--mock-muted);
  margin-top: 0.5rem;
}
.download__real a { color: var(--mock-primary); text-decoration: underline; cursor: pointer; }

/* ── Scene: countdown ── */
.fomo { max-width: 440px; margin: 0 auto; text-align: center; padding-top: 1.5rem; }
.fomo__badge { display: inline-block; background: #fef3c7; color: #b45309; font-weight: 700; font-size: 0.75rem; padding: 0.25rem 0.65rem; border-radius: 999px; margin-bottom: 0.6rem; }
.fomo__title { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.3rem; }
.fomo__sub { color: var(--mock-muted); font-size: 0.88rem; margin-bottom: 1.25rem; }
.fomo__timer {
  font-size: 3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #dc2626;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.fomo__timer.expired { color: var(--mock-muted); animation: none; }
.fomo__actions { display: flex; gap: 0.5rem; justify-content: center; }

/* ── Scene: contacts (privacy zuckering) ── */
.findfriends { max-width: 440px; margin: 0 auto; text-align: center; }
.findfriends__emoji { font-size: 2.6rem; margin-bottom: 0.5rem; }
.findfriends__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.3rem; }
.findfriends__sub { color: var(--mock-muted); font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.55; }
.findfriends__list { text-align: left; background: #f8fafc; border: 1px solid var(--mock-border); border-radius: 0.5rem; padding: 0.6rem 0.85rem; margin-bottom: 1rem; font-size: 0.78rem; color: var(--mock-muted); }
.findfriends__actions { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }

/* ── Reveal panel ── */
.reveal {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.reveal__inner {
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.reveal__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.reveal__badge--gotcha { background: rgba(239, 68, 68, 0.18); color: var(--red-soft); border: 1px solid rgba(239, 68, 68, 0.35); }
.reveal__badge--avoided { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }
.reveal__badge--info { background: rgba(99, 102, 241, 0.18); color: var(--primary-light); border: 1px solid rgba(99, 102, 241, 0.35); }

.reveal__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.reveal__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 1rem;
}
.reveal__next {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
}
.reveal__next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* ── Summary ── */
.summary {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  padding: 1rem;
}
.summary.active { display: flex; }

.summary__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.summary__icon { font-size: 3rem; margin-bottom: 0.5rem; }
.summary__title { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 0.25rem; }
.summary__subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.summary__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.summary__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
}
.summary__item-name { flex: 1; font-weight: 600; }
.summary__item-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}
.summary__item-status--fell { background: rgba(239, 68, 68, 0.18); color: var(--red-soft); }
.summary__item-status--avoided { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }

.summary__restart {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
  width: 100%;
}
.summary__restart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}
