* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: #0d0221;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #f5e6c8;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: none;
}

.stage { position: relative; width: 100%; height: 100%; overflow: hidden; }

/* Warmth glow: brightness/scale driven by --warmth (0..1) set from JS */
.glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 45%,
    rgba(57,255,20, calc(var(--warmth, 0) * 0.85)) 0%,
    rgba(57,255,20, calc(var(--warmth, 0) * 0.25)) 35%,
    transparent 70%);
  transition: background 120ms linear;
  pointer-events: none;
}

/* Overlays (same pattern as tilt) */
.overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.1rem; padding: 2rem; text-align: center; z-index: 10;
}
.overlay[hidden] { display: none; }

.title { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: 0.01em; }
.sub {
  margin: 0; font-size: 1.05rem; line-height: 1.45; max-width: 20rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

.btn {
  font: inherit; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.02em;
  color: #f5e6c8; background: rgba(20,10,4,0.85);
  border: 1.5px solid #39ff14; border-radius: 999px;
  padding: 0.9rem 1.6rem; cursor: pointer; text-decoration: none;
  box-shadow: 0 0 24px rgba(57,255,20,0.35);
}
.btn:active { transform: translateY(1px); }
.btn.maps { font-size: 1.05rem; }

/* Hunt hint */
.hunt {
  position: absolute; left: 0; right: 0; bottom: 14%;
  display: flex; justify-content: center; padding: 0 2rem;
  text-align: center; z-index: 9; pointer-events: none;
}
.hunt[hidden] { display: none; }
.hunt-hint { margin: 0; font-size: 1.15rem; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

/* Reveal */
.reveal { background: rgba(13,2,33,0.92); }
.reveal-burst { margin: 0; font-size: 2.4rem; animation: pop 600ms ease forwards; }
.reveal-headline {
  margin: 0; font-size: 1.5rem; font-weight: 800; color: #39ff14;
  opacity: 0; animation: fadeIn 500ms ease 200ms forwards;
}
.reveal-payoff { margin: 0; font-size: 1rem; opacity: 0; animation: fadeIn 500ms ease 500ms forwards; }
.reveal-address {
  margin: 0.2rem 0 0; font-size: 1.3rem; font-weight: 700; line-height: 1.35;
  opacity: 0; animation: fadeIn 500ms ease 700ms forwards;
}
.reveal-when { margin: 0; font-size: 0.95rem; opacity: 0.85; }
.link-btn {
  font: inherit; background: none; border: none; color: #f5e6c8;
  text-decoration: underline; cursor: pointer; opacity: 0.8; font-size: 0.9rem;
}

/* Escape hatch — hidden until JS reveals it, then fades in */
.escape {
  position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
  font: inherit; font-size: 0.95rem; color: #f5e6c8;
  background: rgba(20,10,4,0.7); border: 1px solid rgba(245,230,200,0.4);
  border-radius: 999px; padding: 0.6rem 1.1rem; cursor: pointer;
  z-index: 12; opacity: 0; animation: fadeIn 700ms ease forwards;
}
.escape[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .glow { transition: none; }
  .reveal-burst, .reveal-headline, .reveal-payoff, .reveal-address, .escape { animation: none; opacity: 1; }
}

/* Reveal: distance + avocado stops */
.reveal-distance { margin: 0; font-size: 1rem; opacity: 0.9; }
.reveal-distance[hidden] { display: none; }
.reveal-stops {
  width: 100%; max-width: 20rem; margin: 0.2rem auto 0;
}
.reveal-stops[hidden] { display: none; }
.stops-title { margin: 0 0 0.3rem; font-size: 0.95rem; font-weight: 700; color: #39ff14; }
.stops-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.stops-row { margin: 0.18rem 0; font-size: 0.9rem; line-height: 1.3; }
.stops-row a {
  color: #f5e6c8; text-decoration: none;
  border-bottom: 1px dotted rgba(245, 230, 200, 0.5);
}
.stops-msg { margin: 0.3rem 0 0; font-size: 0.85rem; opacity: 0.85; }
.stops-msg[hidden] { display: none; }
