:root {
  --sage: #a8b79d;
  --sage-light: #c2ccba;
  --ink: #2d241e;
  --cream: #fff2cf;
  --orange: #e78027;
  --berry: #493142;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--sage);
}

body {
  margin: 0;
  background: var(--sage);
  color: var(--ink);
  font-family: var(--font-geist-sans, "Manrope"), Arial, sans-serif;
}

a {
  color: inherit;
}

.landing-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.25rem, 3.4vw, 3rem) clamp(1.25rem, 5vw, 5rem);
}

.landing-page::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(45, 36, 30, 0.12) 0.7px, transparent 0.7px);
  background-size: 7px 7px;
  opacity: 0.25;
  content: "";
}

.landing-page::after {
  position: absolute;
  right: -13vw;
  bottom: -36vw;
  z-index: -1;
  width: min(72vw, 68rem);
  aspect-ratio: 1;
  border: 3px solid rgba(45, 36, 30, 0.2);
  border-radius: 50%;
  background: rgba(255, 242, 207, 0.16);
  content: "";
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.wordmark span {
  color: var(--orange);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-geist-mono, "Geist Mono"), monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(231, 128, 39, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero {
  display: grid;
  min-height: calc(100svh - 7.25rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 4rem);
}

.hero-copy {
  z-index: 2;
  padding: clamp(3rem, 7vh, 7rem) 0;
}

.eyebrow {
  margin: 0 0 1.3rem;
  font-family: var(--font-geist-mono, "Geist Mono"), monospace;
  font-size: clamp(0.68rem, 1vw, 0.8rem);
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 2.6rem;
  height: 2px;
  margin: 0 0.7rem 0.2rem 0;
  background: var(--ink);
  content: "";
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(4.35rem, 8.6vw, 9.4rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.78;
  text-wrap: balance;
}

h1 > span,
h1 > em {
  display: block;
}

h1 > span {
  margin-left: clamp(0.5rem, 4vw, 4rem);
}

h1 > em {
  width: max-content;
  margin-top: 0.12em;
  margin-left: clamp(1rem, 7vw, 7rem);
  padding: 0.08em 0.12em 0.12em;
  transform: rotate(-2deg);
  background: var(--orange);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72em;
  font-style: italic;
  letter-spacing: -0.055em;
  line-height: 0.8;
  text-shadow: 3px 3px 0 var(--berry);
  box-shadow: 7px 7px 0 var(--ink);
}

.signoff {
  margin: clamp(2rem, 5vh, 4rem) 0 0;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 650;
}

.artwork-wrap {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(100%, 42rem);
}

.cat-artwork {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: saturate(0.95) contrast(1.02);
  pointer-events: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.cat-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 48%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cat-trigger:hover .cat-artwork {
  transform: translateY(-0.35rem) rotate(-0.5deg);
  filter: saturate(1) contrast(1.02);
}

.cat-trigger:active .cat-artwork {
  transform: scale(0.975);
}

.cat-trigger:focus-visible {
  outline: 4px solid var(--cream);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--ink);
}

.tap-ring {
  position: absolute;
  top: 47%;
  left: 50%;
  width: 36%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.55);
  border: 3px solid var(--cream);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.is-discovered .tap-ring {
  animation: tap-ring 900ms ease-out;
}

.batch-note {
  position: absolute;
  right: 1.5%;
  bottom: 7%;
  margin: 0;
  padding: 0.65rem 0.85rem;
  transform: rotate(3deg);
  border: 2px solid var(--ink);
  background: var(--cream);
  font-family: var(--font-geist-mono, "Geist Mono"), monospace;
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
  pointer-events: none;
}

.game-invite {
  position: absolute;
  top: 8%;
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: min(88%, 23rem);
  margin: 0;
  padding: 0.8rem 1rem;
  transform: translateX(-50%) rotate(-1deg);
  border: 2px solid var(--ink);
  border-radius: 1.2rem 1.2rem 1.2rem 0.35rem;
  background: var(--cream);
  font-size: clamp(0.72rem, 1.1vw, 0.9rem);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  box-shadow: 5px 5px 0 var(--ink);
  animation: invite-in 260ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
}

.spark {
  position: absolute;
  z-index: 1;
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 4rem);
  text-shadow: 2px 2px 0 var(--ink);
}

.spark-one {
  top: 12%;
  left: 5%;
  transform: rotate(-15deg);
}

.spark-two {
  top: 28%;
  right: 2%;
  transform: scale(0.6) rotate(18deg);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.72); }
}

@keyframes tap-ring {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.55); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.65); }
}

@keyframes invite-in {
  from { opacity: 0; transform: translate(-50%, 0.65rem) scale(0.9) rotate(-1deg); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(-1deg); }
}

.game-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2.2rem) clamp(1rem, 4vw, 3.5rem);
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 242, 207, 0.6), transparent 48%),
    radial-gradient(rgba(45, 36, 30, 0.12) 0.7px, transparent 0.7px),
    var(--sage);
  background-size: auto, 7px 7px, auto;
  animation: game-reveal 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-layer::before {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(85vw, 68rem);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 2px solid rgba(45, 36, 30, 0.14);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

@keyframes game-reveal {
  from { opacity: 0; clip-path: circle(2% at 75% 65%); }
  to { opacity: 1; clip-path: circle(120% at 75% 65%); }
}

.game-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.game-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-geist-mono, "Geist Mono"), monospace;
  font-size: clamp(0.62rem, 0.9vw, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.game-header h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.game-close,
.game-complete button {
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

.game-close {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.7rem 0.65rem 0.9rem;
}

.game-close span {
  font-size: 1.2rem;
  line-height: 0.7;
}

.game-close:hover,
.game-complete button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.game-close:focus-visible,
.game-complete button:focus-visible,
.question-bubble:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--ink);
}

.game-help {
  position: relative;
  z-index: 3;
  max-width: 26rem;
  margin: 0.7rem 0 0;
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  font-weight: 700;
}

.game-progress {
  position: absolute;
  top: clamp(6.9rem, 16vh, 9rem);
  right: clamp(1rem, 4vw, 3.5rem);
  z-index: 4;
  margin: 0;
  font-family: var(--font-geist-mono, "Geist Mono"), monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-field {
  position: absolute;
  inset: clamp(8rem, 19vh, 11rem) 0 clamp(10rem, 22vh, 13rem);
}

.question-bubble {
  position: absolute;
  top: var(--bubble-y);
  left: var(--bubble-x);
  z-index: 2;
  width: max-content;
  max-width: min(26vw, 20rem);
  min-height: 3rem;
  margin: 0;
  padding: 0.8rem 1.05rem;
  transform: rotate(var(--bubble-tilt));
  border: 2px solid var(--ink);
  border-radius: 1.35rem 1.35rem 1.35rem 0.35rem;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: clamp(0.76rem, 1.18vw, 1rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(45, 36, 30, 0.96);
  animation: question-float 4.2s var(--float-delay) ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.question-bubble:nth-child(even) {
  border-radius: 1.35rem 1.35rem 0.35rem 1.35rem;
  background: #e1d4d9;
}

.question-bubble:nth-child(3) {
  background: #d6dfcf;
}

.question-bubble:nth-child(5) {
  background: #f6c78f;
}

.question-bubble:hover {
  z-index: 3;
  animation-play-state: paused;
  filter: brightness(1.035);
}

.question-bubble:active {
  box-shadow: 2px 2px 0 var(--ink);
}

.bubble-tail {
  position: absolute;
  bottom: -0.47rem;
  left: 0.55rem;
  width: 0.95rem;
  height: 0.95rem;
  transform: rotate(45deg);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: inherit;
}

.question-bubble:nth-child(even) .bubble-tail {
  right: 0.55rem;
  left: auto;
}

@keyframes question-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.65rem; }
}

.drop-muffin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.4rem;
  height: 4.2rem;
  transform: translate(-50%, -45%) scale(0.2);
  opacity: 0;
}

.muffin-top {
  position: absolute;
  top: 0.25rem;
  left: 50%;
  width: 3.5rem;
  height: 2.25rem;
  transform: translateX(-50%);
  border: 2px solid var(--ink);
  border-radius: 52% 52% 38% 38%;
  background:
    radial-gradient(circle at 25% 38%, var(--ink) 0 0.13rem, transparent 0.15rem),
    radial-gradient(circle at 70% 30%, var(--ink) 0 0.13rem, transparent 0.15rem),
    radial-gradient(circle at 55% 70%, #6d3a1f 0 0.12rem, transparent 0.14rem),
    var(--orange);
}

.muffin-cup {
  position: absolute;
  bottom: 0.1rem;
  left: 50%;
  width: 2.75rem;
  height: 2.1rem;
  transform: translateX(-50%);
  border: 2px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--cream) 0 0.35rem, #dbcda9 0.35rem 0.52rem);
  clip-path: polygon(5% 0, 95% 0, 82% 100%, 18% 100%);
}

.question-bubble.is-dropping {
  animation: question-drop 760ms cubic-bezier(0.35, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.question-bubble.is-dropping .bubble-copy,
.question-bubble.is-dropping .bubble-tail {
  opacity: 0;
  transition: opacity 120ms ease;
}

.question-bubble.is-dropping .drop-muffin {
  transform: translate(-50%, -45%) scale(1);
  opacity: 1;
  transition: opacity 100ms 110ms ease, transform 180ms 90ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes question-drop {
  0% { top: var(--bubble-y); left: var(--bubble-x); transform: rotate(var(--bubble-tilt)) scale(1); }
  25% { transform: rotate(5deg) scale(0.75); border-color: transparent; background: transparent; box-shadow: none; }
  100% { top: 88%; left: 50%; transform: rotate(175deg) scale(0.18); border-color: transparent; background: transparent; box-shadow: none; opacity: 0.1; }
}

.muffin-tray {
  position: absolute;
  bottom: clamp(1.3rem, 3vh, 2.5rem);
  left: 50%;
  z-index: 5;
  width: min(88vw, 36rem);
  height: clamp(7rem, 17vh, 9rem);
  transform: translateX(-50%);
}

.tray-slots {
  position: absolute;
  right: 5%;
  bottom: 2.1rem;
  left: 5%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  height: 5.5rem;
}

.tray-slot {
  position: relative;
  display: block;
  height: 100%;
}

.tray-muffin {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4rem;
  height: 4.5rem;
  transform: translate(-50%, -2.8rem) scale(0.2) rotate(-10deg);
  opacity: 0;
}

.tray-muffin.is-visible {
  transform: translate(-50%, 0) scale(0.88) rotate(0);
  opacity: 1;
  animation: muffin-land 420ms cubic-bezier(0.2, 1.35, 0.35, 1);
}

.tray-muffin .muffin-top {
  width: 3.25rem;
  height: 2.05rem;
}

.tray-muffin .muffin-cup {
  width: 2.55rem;
  height: 1.9rem;
}

.muffin-2 { rotate: -2deg; }
.muffin-4 { rotate: 2deg; }

@keyframes muffin-land {
  0% { transform: translate(-50%, -4rem) scale(0.35) rotate(12deg); opacity: 0; }
  70% { transform: translate(-50%, 0.25rem) scale(0.96) rotate(-2deg); opacity: 1; }
  100% { transform: translate(-50%, 0) scale(0.88) rotate(0); opacity: 1; }
}

.tray-rim,
.tray-base {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--ink);
  background: #716b66;
  box-shadow: 0.3rem 0.35rem 0 var(--ink);
}

.tray-rim {
  right: 0;
  bottom: 1.5rem;
  left: 0;
  width: 100%;
  height: 1.55rem;
  border-radius: 0.65rem;
}

.tray-base {
  bottom: 0;
  width: 88%;
  height: 1.2rem;
  border-radius: 0 0 0.6rem 0.6rem;
  background: #918a83;
}

.game-complete {
  position: absolute;
  bottom: clamp(9rem, 22vh, 11.5rem);
  left: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.8rem 0.85rem 0.8rem 1rem;
  transform: translateX(-50%) rotate(-1deg);
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
  animation: complete-in 380ms cubic-bezier(0.2, 1.3, 0.3, 1);
}

.game-complete p {
  margin: 0;
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 900;
}

.game-complete p span {
  color: var(--orange);
}

.game-complete button {
  padding: 0.55rem 0.7rem;
  background: var(--orange);
  color: var(--cream);
}

@keyframes complete-in {
  from { opacity: 0; transform: translate(-50%, 1rem) scale(0.8) rotate(-1deg); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(-1deg); }
}

@media (max-width: 860px) {
  .landing-page {
    padding-bottom: 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding: clamp(4rem, 10vh, 7rem) 0 1rem;
  }

  h1 {
    font-size: clamp(3.7rem, 17vw, 8rem);
  }

  .artwork-wrap {
    width: min(100%, 34rem);
    margin-top: -1rem;
  }

  .question-field {
    inset: 8.5rem 0 10rem;
  }

  .question-bubble {
    max-width: min(43vw, 17rem);
  }

  .question-bubble:nth-child(1) { top: 4%; left: 4%; }
  .question-bubble:nth-child(2) { top: 12%; left: 53%; }
  .question-bubble:nth-child(3) { top: 36%; left: 8%; }
  .question-bubble:nth-child(4) { top: 47%; left: 55%; }
  .question-bubble:nth-child(5) { top: 67%; left: 24%; }
}

@media (max-width: 480px) {
  .status {
    letter-spacing: 0.08em;
  }

  .eyebrow::before {
    width: 1.5rem;
  }

  h1 > span {
    margin-left: 0.2rem;
  }

  h1 > em {
    margin-left: 0.6rem;
  }

  .signoff {
    max-width: 18rem;
  }

  .game-layer {
    padding: 0.85rem;
  }

  .game-header h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .game-close {
    gap: 0.35rem;
    padding: 0.55rem;
    font-size: 0.63rem;
  }

  .game-help {
    max-width: 16rem;
    margin-top: 0.55rem;
    font-size: 0.72rem;
  }

  .game-progress {
    top: 7.2rem;
    right: 0.85rem;
    font-size: 0.58rem;
  }

  .question-field {
    inset: 8.7rem 0 9.2rem;
  }

  .question-bubble {
    max-width: 45vw;
    min-height: 2.6rem;
    padding: 0.62rem 0.72rem;
    border-radius: 1rem 1rem 1rem 0.3rem;
    font-size: clamp(0.65rem, 3.2vw, 0.78rem);
    box-shadow: 3px 3px 0 var(--ink);
  }

  .question-bubble:nth-child(even) {
    border-radius: 1rem 1rem 0.3rem 1rem;
  }

  .question-bubble:nth-child(1) { top: 2%; left: 4%; }
  .question-bubble:nth-child(2) { top: 9%; left: 51%; }
  .question-bubble:nth-child(3) { top: 33%; left: 5%; }
  .question-bubble:nth-child(4) { top: 44%; left: 53%; }
  .question-bubble:nth-child(5) { top: 64%; left: 22%; }

  .muffin-tray {
    bottom: 0.7rem;
    width: 94vw;
    height: 7rem;
  }

  .tray-slots {
    right: 2%;
    left: 2%;
  }

  .tray-muffin {
    scale: 0.78;
  }

  .game-complete {
    bottom: 8.4rem;
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .game-complete p {
    font-size: 0.75rem;
  }

  .game-complete button {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status span,
  .tap-ring,
  .game-invite,
  .game-layer,
  .question-bubble,
  .question-bubble.is-dropping,
  .tray-muffin.is-visible,
  .game-complete {
    animation: none;
  }
}
