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

:root {
  --red: #cc1111;
  --purple: #7c3aed;
  --yellow: #d97706;
  --bg-dark: #0d0d0d;
  --white: #ffffff;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

/* ──────────────────────────────────────
   BUTTONS
────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 36px;
  border-radius: 14px;
  font-size: clamp(17px, 3.5vw, 22px);
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  letter-spacing: -0.3px;
  width: 100%;
  max-width: 360px;
}

.btn:hover  { transform: scale(1.04); }
.btn:active { transform: scale(0.96); }

.btn--red    { background: var(--red);    box-shadow: 0 6px 24px rgba(204,17,17,0.45); }
.btn--purple { background: var(--purple); box-shadow: 0 6px 24px rgba(124,58,237,0.45); }
.btn--yellow { background: var(--yellow); box-shadow: 0 6px 24px rgba(217,119,6,0.45); }
.btn--ghost  {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
  box-shadow: none;
}

.btn-emoji { font-size: 1.2em; }

/* ──────────────────────────────────────
   HOMEPAGE
────────────────────────────────────── */
body.home {
  background: var(--bg-dark);
  color: var(--white);
}

.home main {
  width: 100%;
  max-width: 440px;
}

.chaos-badge {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.logo {
  font-size: clamp(52px, 12vw, 100px);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
}

.tagline {
  font-size: clamp(15px, 2.5vw, 20px);
  color: #555;
  margin-top: 12px;
  font-style: italic;
}

.counter {
  margin-top: 18px;
  font-size: 13px;
  color: #3a3a3a;
  font-family: monospace;
}

.home .buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
}

.footer-note {
  margin-top: 52px;
  font-size: 11px;
  color: #282828;
  line-height: 2;
}

/* ──────────────────────────────────────
   BACK LINK
────────────────────────────────────── */
.back-home {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 12px;
  text-decoration: none;
  opacity: 0.25;
  transition: opacity 0.2s;
  letter-spacing: 0.5px;
}
.back-home:hover { opacity: 0.7; }

/* ──────────────────────────────────────
   FLASH OVERLAY
────────────────────────────────────── */
.flash {
  position: fixed;
  inset: 0;
  background: #ff0000;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.08s;
}
.flash.on { opacity: 0.25; }

/* ──────────────────────────────────────
   SHAKE ANIMATION
────────────────────────────────────── */
@keyframes shake {
  0%,100% { transform: translateX(0) rotate(0); }
  10%      { transform: translateX(-10px) rotate(-1.5deg); }
  20%      { transform: translateX(10px)  rotate(1.5deg); }
  30%      { transform: translateX(-7px); }
  40%      { transform: translateX(7px); }
  50%      { transform: translateX(-4px); }
  60%      { transform: translateX(4px); }
  70%      { transform: translateX(-2px); }
  80%      { transform: translateX(2px); }
}
.shake { animation: shake 0.55s ease; }

/* ──────────────────────────────────────
   FADE IN
────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.4s ease forwards; }

/* ──────────────────────────────────────
   CTA SECTION (shared)
────────────────────────────────────── */
.cta-section {
  margin-top: 44px;
  display: none;
}
.cta-section.visible {
  display: block;
  animation: fadeUp 0.4s ease forwards;
}
.cta-nudge {
  font-size: 13px;
  opacity: 0.5;
  margin-bottom: 14px;
}

/* ──────────────────────────────────────
   RED BUTTON HOVER WIGGLE
────────────────────────────────────── */
@keyframes btnWiggle {
  0%,100% { transform: scale(1.05) rotate(0deg); }
  25%      { transform: scale(1.05) rotate(-1.2deg); }
  75%      { transform: scale(1.05) rotate(1.2deg); }
}

.btn--red:hover {
  animation: btnWiggle 0.35s ease infinite;
  box-shadow: 0 8px 36px rgba(204,17,17,0.7);
}

/* ──────────────────────────────────────
   STEP TRANSITIONS (dont-click flow)
────────────────────────────────────── */
.step { display: none; flex-direction: column; align-items: center; width: 100%; }
.step.active { display: flex; animation: fadeUp 0.4s ease forwards; }

/* ──────────────────────────────────────
   RESPONSIVE
────────────────────────────────────── */
@media (max-width: 480px) {
  .btn { padding: 18px 24px; }
  .back-home { top: 12px; left: 12px; }
}
