:root {
  color-scheme: dark;
  --ink: #24170f;
  --paper: #fff8ef;
  --room: #1a1410;
  font-family: "Avenir Next", "Segoe UI", ui-rounded, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 50% 12%, rgba(232, 176, 96, 0.32), transparent 34%),
    radial-gradient(ellipse at 18% 80%, rgba(120, 72, 36, 0.28), transparent 40%),
    radial-gradient(ellipse at 88% 30%, rgba(90, 56, 28, 0.22), transparent 36%),
    linear-gradient(180deg, #3a2a1c 0%, var(--room) 48%, #0e0a08 100%);
}

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #f0c48a;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.lede {
  max-width: 34rem;
  margin: 12px 0 0;
  color: #efe4d4;
}

.bubble {
  margin: 28px 0 8px;
  max-width: 28rem;
  min-height: 4.6rem;
  padding: 16px 18px;
  border-radius: 22px 22px 22px 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.35;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.alf {
  appearance: none;
  border: 0;
  padding: 0;
  margin-top: 8px;
  background: transparent;
  cursor: pointer;
  width: min(420px, 88vw);
  border-radius: 24px;
  line-height: 0;
}

.alf:focus-visible {
  outline: 3px solid #f0c48a;
  outline-offset: 10px;
}

.alf-gif {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.34));
  transform-origin: center bottom;
  animation: breathe 3.6s ease-in-out infinite;
}

.alf.wink .alf-gif {
  animation: wink-bounce 0.55s ease, breathe 3.6s ease-in-out infinite;
}

.count {
  margin: 16px 0 0;
  color: #d9cbb8;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes wink-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(4px) scale(0.97);
  }
  65% {
    transform: translateY(-6px) scale(1.03);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .alf-gif {
    animation: none;
  }

  .alf.wink .alf-gif {
    animation: none;
  }
}
