:root {
  color: #31312d;
  background: #f7f1e8;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  --paper: #f7f1e8;
  --ink: #31312d;
  --muted: #77776f;
  --sage: #8fa18b;
  --sage-dark: #5e705d;
  --lavender: #d9d7e6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 81% 35%, rgba(218, 215, 231, .72), transparent 26rem),
    var(--paper);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.surprise-page {
  min-height: 100vh;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 28px clamp(22px, 5vw, 76px) 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

html.embedded,
html.embedded body {
  background: var(--paper);
}

.embedded .surprise-page {
  width: 100%;
  min-height: 100dvh;
  padding: 18px clamp(18px, 3vw, 42px);
  display: block;
}

.embedded .preview-header,
.embedded .preview-footer {
  display: none;
}

.embedded .experience-shell {
  min-height: calc(100dvh - 36px);
}

.preview-header,
.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-header {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(50, 50, 45, .12);
}

.preview-header p,
.preview-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .09em;
}

.wordmark {
  display: inline-block;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: clamp(150px, 14vw, 200px);
  height: auto;
  mix-blend-mode: darken;
}

.experience-shell {
  display: grid;
  grid-template-columns: minmax(340px, .86fr) minmax(440px, 1.14fr);
  min-height: 650px;
}

.copy-column {
  align-self: center;
  padding: 62px clamp(20px, 4vw, 70px) 62px 0;
  z-index: 5;
}

.eyebrow,
.unlock-kicker {
  color: var(--sage-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

h1 {
  margin: 18px 0 23px;
  max-width: 620px;
  font: 600 clamp(44px, 5.3vw, 76px)/.97 "Manrope", sans-serif;
  letter-spacing: -.065em;
}

.intro {
  max-width: 490px;
  margin: 0;
  color: #686861;
  font-size: 17px;
  line-height: 1.72;
}

.steps {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  color: #a2a199;
  font-size: 11px;
  letter-spacing: .08em;
}

.step {
  position: relative;
  padding-top: 10px;
  transition: color .3s ease;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.step b { margin-right: 7px; }
.step.active { color: var(--sage-dark); }

.unlock-panel,
.reward-panel {
  max-width: 520px;
  margin-top: 34px;
  animation: panel-in .55s cubic-bezier(.2, .8, .2, 1) both;
}

.unlock-panel h2 {
  margin: 6px 0 8px;
  font: 600 28px/1.1 "Manrope", sans-serif;
  letter-spacing: -.04em;
}

.unlock-panel > p:not(.unlock-kicker) {
  margin: 0 0 16px;
  color: var(--muted);
}

.email-field {
  display: flex;
  padding: 5px;
  border: 1px solid rgba(49, 49, 45, .2);
  border-radius: 14px;
  background: rgba(255,255,255,.56);
  box-shadow: 0 14px 45px rgba(65, 61, 53, .06);
}

.email-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 13px;
  color: var(--ink);
  background: transparent;
}

.email-field button,
.coupon-row button {
  border: 0;
  border-radius: 10px;
  padding: 12px 17px;
  background: var(--sage-dark);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  color: #85857e;
  font-size: 11px;
  line-height: 1.5;
}

.consent input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--sage-dark);
}

.claim-error {
  min-height: 1.45em;
  margin: 9px 0 0;
  color: #a24d42;
  font-size: 11px;
}

.play-column {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
  overflow: hidden;
}

.soft-glow {
  position: absolute;
  width: min(47vw, 690px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.77) 0 26%, rgba(217,215,230,.66) 56%, transparent 72%);
  filter: blur(8px);
}

.sensory-ball {
  position: relative;
  z-index: 2;
  width: min(38vw, 520px);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
}

.ball-image-wrap {
  position: relative;
  display: block;
  border-radius: 50%;
  transition: transform .5s cubic-bezier(.16, 1.25, .3, 1), filter .3s ease;
  filter: drop-shadow(0 34px 30px rgba(71, 67, 83, .22));
}

.ball-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.ball-shine {
  position: absolute;
  inset: 6% 8% 30% 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 45% 22%, rgba(255,255,255,.72), transparent 42%);
  opacity: .45;
  pointer-events: none;
}

.poke-dimple {
  position: absolute;
  z-index: 3;
  width: 24%;
  aspect-ratio: 1;
  left: var(--poke-x, 55%);
  top: var(--poke-y, 43%);
  border-radius: 50%;
  background: radial-gradient(circle at 44% 43%, rgba(90,88,115,.3), rgba(255,255,255,.13) 52%, transparent 68%);
  box-shadow: inset 7px 9px 14px rgba(68,65,89,.25), inset -7px -5px 12px rgba(255,255,255,.16);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.sensory-ball:hover .ball-image-wrap { transform: translateY(-5px) scale(1.015); }
.sensory-ball:focus-visible .ball-image-wrap { outline: 3px solid rgba(94,112,93,.45); outline-offset: 8px; }

.sensory-ball.poking .ball-image-wrap {
  transform: scaleX(1.075) scaleY(.91) translateY(12px);
  filter: drop-shadow(0 18px 20px rgba(71, 67, 83, .18));
}

.sensory-ball.poking .poke-dimple {
  opacity: 1;
  animation: dimple .5s ease both;
}

.sensory-ball.released .ball-image-wrap {
  animation: jelly-release .85s cubic-bezier(.2,.8,.15,1) both;
}

.sensory-ball.final-stretch .ball-image-wrap {
  animation: final-stretch .95s cubic-bezier(.18,.84,.22,1) both;
}

.tap-hint {
  position: absolute;
  left: 50%;
  bottom: -27px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  transform: translateX(-50%);
  color: #6d6d67;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: opacity .25s ease;
}

.tap-hint i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(143,161,139,.38);
  animation: pulse 1.8s infinite;
}

.sensory-ball.revealed .tap-hint { opacity: 0; }

.texture-name {
  position: absolute;
  z-index: 3;
  bottom: 34px;
  margin: 0;
  color: #92918b;
  font-size: 9px;
  letter-spacing: .17em;
}

.texture-name span { color: #5f5f59; font-weight: 700; }

.surprise-mark {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 42%;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 50%;
  background: rgba(247,241,232,.92);
  color: var(--sage-dark);
  box-shadow: 0 18px 60px rgba(80,77,93,.22);
  opacity: 0;
  transform: translate(-50%, 20px) scale(.2) rotate(-18deg);
  pointer-events: none;
}

.surprise-mark span {
  font: 600 35px/1 "Manrope", sans-serif;
}

.surprise-mark i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9cae98;
}

.surprise-mark i:nth-child(2) { top: -26px; left: 8px; }
.surprise-mark i:nth-child(3) { right: -28px; top: 24px; width: 8px; height: 8px; }
.surprise-mark i:nth-child(4) { left: -21px; bottom: -8px; width: 4px; height: 4px; }

.surprise-mark.visible {
  animation: surprise-pop .75s cubic-bezier(.16,1.4,.3,1) forwards;
}

.reward-value {
  margin-top: 4px;
  font: 600 76px/.95 "Manrope", sans-serif;
  letter-spacing: -.07em;
}

.reward-value span { font-size: .46em; margin-left: 3px; }
.reward-label { margin: 6px 0 20px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .15em; }

.coupon-row {
  display: flex;
  align-items: center;
  max-width: 420px;
  padding: 5px;
  border: 1px dashed rgba(49,49,45,.26);
  border-radius: 13px;
  background: rgba(255,255,255,.47);
}

.coupon-row code {
  flex: 1;
  padding: 8px 13px;
  color: var(--sage-dark);
  font: 700 15px/1 "DM Sans", sans-serif;
  letter-spacing: .11em;
}

.shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--sage-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sent-note { color: #8b8a84; font-size: 11px; }
.sent-note.email-not-sent { color: #9a6a3f; }

.reward-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.discord-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(94,112,93,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.35);
  color: var(--sage-dark);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.community-note {
  margin: 9px 0 0;
  color: #8b8a84;
  font-size: 9px;
  letter-spacing: .025em;
}

.preview-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(50,50,45,.12);
}

.preview-footer button {
  border: 0;
  padding: 6px 0;
  border-bottom: 1px solid #87867e;
  background: transparent;
  color: #77766f;
  font-size: 11px;
  cursor: pointer;
}

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes dimple {
  0% { transform: translate(-50%,-50%) scale(0); }
  60%, 100% { transform: translate(-50%,-50%) scale(1); }
}

@keyframes jelly-release {
  0% { transform: scaleX(1.075) scaleY(.91) translateY(12px); }
  32% { transform: scaleX(.94) scaleY(1.075) translateY(-9px); }
  58% { transform: scaleX(1.025) scaleY(.98) translateY(2px); }
  78% { transform: scaleX(.99) scaleY(1.012); }
  100% { transform: none; }
}

@keyframes final-stretch {
  0% { transform: scaleX(1.04) scaleY(.94); }
  24% { transform: scaleX(1.28) scaleY(.78); }
  46% { transform: scaleX(.9) scaleY(1.09); }
  65% { transform: scaleX(1.08) scaleY(.95); }
  82% { transform: scaleX(.98) scaleY(1.02); }
  100% { transform: none; }
}

@keyframes surprise-pop {
  0% { opacity: 0; transform: translate(-50%, 30px) scale(.2) rotate(-18deg); }
  65% { opacity: 1; transform: translate(-50%, -155px) scale(1.08) rotate(4deg); }
  100% { opacity: 1; transform: translate(-50%, -148px) scale(1) rotate(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(143,161,139,.38); }
  70% { box-shadow: 0 0 0 8px rgba(143,161,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(143,161,139,0); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  body { background: radial-gradient(circle at 50% 27%, rgba(218,215,231,.7), transparent 21rem), var(--paper); }
  .surprise-page { padding: 20px 20px 18px; }
  .preview-header { padding-bottom: 17px; }
  .preview-header p { display: none; }
  .experience-shell { display: flex; flex-direction: column-reverse; min-height: 0; }
  .play-column { min-height: 390px; overflow: visible; }
  .sensory-ball { width: min(76vw, 380px); }
  .soft-glow { width: 95vw; }
  .texture-name { bottom: 0; }
  .copy-column { padding: 26px 0 45px; text-align: center; }
  h1 { margin: 11px auto 17px; font-size: clamp(42px, 12vw, 64px); }
  .intro { margin: auto; font-size: 15px; }
  .steps { justify-content: center; margin-top: 28px; }
  .unlock-panel, .reward-panel { margin: 27px auto 0; text-align: left; }
  .preview-footer p { max-width: 210px; line-height: 1.6; }
  .surprise-mark { top: 50%; }
  .embedded .surprise-page { padding: 12px 18px 24px; }
  .embedded .experience-shell { min-height: 0; }
}

@media (max-width: 460px) {
  .play-column { min-height: 325px; }
  .sensory-ball { width: min(72vw, 310px); }
  .texture-name { display: none; }
  .steps { gap: 15px; }
  .email-field { flex-direction: column; }
  .email-field button { width: 100%; }
  .reward-actions { align-items: stretch; flex-direction: column; }
  .shop-link, .discord-join { width: 100%; text-align: center; }
  .surprise-mark { width: 66px; height: 66px; }
  @keyframes surprise-pop {
    0% { opacity: 0; transform: translate(-50%, 20px) scale(.2) rotate(-18deg); }
    65% { opacity: 1; transform: translate(-50%, -112px) scale(1.08) rotate(4deg); }
    100% { opacity: 1; transform: translate(-50%, -106px) scale(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
