:root {
  color-scheme: dark;
  --green: #14f195;
  --gold: #ffd166;
  --bg: #04110a;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 50% 18%, #14532d 0%, var(--bg) 48%, #010403 100%);
  color: #f5fff8;
  touch-action: manipulation;
}

.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  text-align: center;
  position: relative;
  isolation: isolate;
}

.glow {
  position: fixed;
  width: min(82vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,241,149,.26), transparent 68%);
  filter: blur(8px);
  z-index: -1;
  animation: pulse 3.2s ease-in-out infinite;
}

.kicker {
  margin: 0;
  color: var(--green);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: clamp(.72rem, 2.7vw, .92rem);
}

h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.35rem, 9.5vw, 6.8rem);
  line-height: .92;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(0,0,0,.55);
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 20px 34px;
  min-width: min(90vw, 360px);
  font-weight: 1000;
  font-size: clamp(1.25rem, 5vw, 2.15rem);
  color: #05280f;
  background: linear-gradient(135deg, var(--gold), var(--green));
  box-shadow: 0 18px 0 #0d6b38, 0 30px 50px rgba(0,0,0,.42), inset 0 2px 0 rgba(255,255,255,.45);
  cursor: pointer;
  transform: translateY(0);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
button:active, button.is-down {
  transform: translateY(13px) scale(.985);
  box-shadow: 0 5px 0 #0d6b38, 0 16px 30px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.35);
  filter: saturate(1.2);
}
button:focus-visible { outline: 4px solid #fff; outline-offset: 6px; }

.counter {
  min-height: 1.6em;
  margin: 0;
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  font-weight: 800;
  color: #d7ffe6;
}

.bill {
  position: fixed;
  top: -12vh;
  left: 0;
  z-index: 5;
  pointer-events: none;
  user-select: none;
  font-size: var(--size);
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.4));
  animation: fall var(--duration) linear forwards;
  will-change: transform;
}

.flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.24), transparent 55%);
  pointer-events: none;
  animation: flash .38s ease-out forwards;
}

@keyframes fall {
  from { transform: translate3d(var(--x), -14vh, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  to { transform: translate3d(calc(var(--x) + var(--drift)), 114vh, 0) rotate(var(--rot)); opacity: .95; }
}
@keyframes flash { to { opacity: 0; } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .72; } }

@media (prefers-reduced-motion: reduce) {
  .bill { animation-duration: 2.5s; }
  .glow { animation: none; }
}
