:root {
  --bg-top: #fde4ef;
  --bg-bottom: #fff6fa;
  --plum: #9c0f55;        /* headings */
  --pink-soft: #d77ba3;   /* highlighted words */
  --pink: #f43f97;        /* yes button, accents */
  --pink-light: #f9a8cf;  /* hearts, borders */
  --pink-wash: #ffe1ee;
  --text: #a3487a;        /* body copy */
  --white: #ffffff;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", cursive;
  --bounce: cubic-bezier(.2, .9, .3, 1.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100%;
  color: var(--plum);
  font-family: var(--sans);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom) 40%, var(--bg-top));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Ambient bits ---------- */
.corner { position: fixed; font-size: 18px; color: #ff8fc8; z-index: 30; pointer-events: none; line-height: 1; }
.corner.tl { top: max(16px, env(safe-area-inset-top)); left: 14px; }
.corner.tr { top: max(16px, env(safe-area-inset-top)); right: 14px; }
.corner.bl { bottom: max(16px, env(safe-area-inset-bottom)); left: 14px; }
.corner.br { bottom: max(16px, env(safe-area-inset-bottom)); right: 14px; }

.hearts { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; will-change: transform; }
.hearts span { position: absolute; bottom: -40px; color: var(--pink-light); opacity: 0; animation: float linear infinite; }
@keyframes float {
  0%   { transform: translateY(0) translateX(0) rotate(-10deg); opacity: 0; }
  10%  { opacity: var(--o, .5); }
  50%  { transform: translateY(-55vh) translateX(var(--sway, 20px)) rotate(10deg); }
  90%  { opacity: var(--o, .5); }
  100% { transform: translateY(-110vh) translateX(0) rotate(-8deg); opacity: 0; }
}

/* Hearts that follow a finger / cursor */
.trail {
  position: fixed; z-index: 150; pointer-events: none;
  color: var(--pink); font-size: var(--s, 14px);
  transform: translate(-50%, -50%);
  animation: trail .9s ease-out forwards;
}
@keyframes trail {
  to { transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - 40px)) scale(.4) rotate(var(--r, 0deg)); opacity: 0; }
}

/* Scroll progress: a thread with a heart riding on it */
.bar {
  position: fixed; top: max(20px, env(safe-area-inset-top)); left: 44px; right: 44px;
  height: 4px; border-radius: 4px; background: rgba(249,168,207,.35);
  z-index: 40; pointer-events: none;
  opacity: 0; transition: opacity .4s;
}
.bar.show { opacity: 1; }
.bar i { position: relative; display: block; height: 100%; width: 0; border-radius: 4px; background: var(--pink); }
.bar b {
  position: absolute; right: -7px; top: 50%; transform: translateY(-52%);
  font-size: 14px; color: var(--pink); line-height: 1;
  animation: beat 1.3s ease-in-out infinite;
}

/* ---------- Sections ---------- */
main { position: relative; z-index: 1; }
.sec {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 28px calc(56px + env(safe-area-inset-bottom));
  text-align: center;
  scroll-snap-align: center;
  max-width: 520px; margin: 0 auto;
}

.title { font-weight: 700; font-size: clamp(26px, 7.4vw, 36px); line-height: 1.22; color: var(--plum); letter-spacing: -.01em; }
.title em { font-style: normal; color: var(--pink-soft); }
.caption { margin: 12px auto 0; font-size: 16px; line-height: 1.55; color: var(--text); max-width: 30ch; }

/* Words that float up one by one */
.w { display: inline-block; opacity: 0; transform: translateY(14px) scale(.96); filter: blur(4px);
     transition: opacity .55s ease, transform .6s var(--bounce), filter .55s ease;
     transition-delay: calc(var(--d, 0s) + var(--i) * 70ms); }
.in .w { opacity: 1; transform: none; filter: none; }

.fade { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s var(--bounce); transition-delay: var(--d, 0s); }
.in .fade { opacity: 1; transform: none; }

/* ---------- Cover ---------- */
.cover .to { font-weight: 700; font-size: 30px; color: var(--plum); margin-bottom: 30px; }
.cover .to span { display: inline-block; animation: letter .6s var(--bounce) both; animation-delay: calc(.2s + var(--i) * 70ms); }
.cover .to em { font-style: normal; color: var(--pink-soft); }
@keyframes letter { from { opacity: 0; transform: translateY(-24px) rotate(-12deg) scale(.6); } }

.envelope {
  position: relative; width: min(270px, 70vw); aspect-ratio: 3 / 2;
  perspective: 900px; cursor: pointer;
  filter: drop-shadow(0 18px 24px rgba(244,63,151,.22));
  animation: envIn .9s var(--bounce) .6s both, bob 2.8s ease-in-out 1.6s infinite;
}
@keyframes envIn { from { opacity: 0; transform: translateY(40px) scale(.8) rotate(-6deg); } }
@keyframes bob { 50% { transform: translateY(-7px) rotate(-1.5deg); } }
.envelope .back, .envelope .front, .envelope .flap { position: absolute; inset: 0; }
.envelope .back { background: #f7b6d2; border-radius: 10px; }
.envelope .letter {
  position: absolute; left: 8%; right: 8%; top: 10%; bottom: 6%; z-index: 1;
  background: var(--white); border-radius: 6px;
  display: grid; place-items: center; font-size: 30px; color: var(--pink);
  transition: transform .9s var(--bounce) .35s;
}
.envelope .front {
  z-index: 2; border-radius: 10px;
  background: linear-gradient(160deg, #ffd3e6, #fbbfd9);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}
.envelope .flap {
  z-index: 3; background: linear-gradient(180deg, #ffc7df, #f6a8c9);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  transform-origin: top center; transition: transform .6s ease;
}
.envelope .seal {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: var(--pink); color: #fff;
  box-shadow: 0 4px 12px rgba(244,63,151,.45), inset 0 0 0 3px rgba(255,255,255,.35);
  display: grid; place-items: center; font-size: 22px;
  transition: opacity .3s, transform .35s var(--bounce);
  animation: beat 1.6s ease-in-out infinite;
}
.envelope.opened { animation: none; }
.envelope.opened .seal { opacity: 0; transform: scale(1.8); animation: none; }
.envelope.opened .flap { transform: rotateX(180deg); z-index: 0; }
.envelope.opened .letter { transform: translateY(-62%) rotate(-2deg); }

.cue {
  margin-top: 46px; font-size: 13px; color: var(--pink); letter-spacing: .04em;
  display: grid; justify-items: center; gap: 6px;
  animation: cueIn .6s ease 1.6s both; transition: opacity .4s;
}
.cue .chev { width: 18px; height: 18px; border-right: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(45deg); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(7px) rotate(45deg); } }
@keyframes cueIn { from { opacity: 0; } }
.scrolled .cue { opacity: 0; }

/* ---------- Note card: unfolds like paper ---------- */
.letter-card {
  background: var(--white); color: var(--plum);
  width: min(340px, 100%); padding: 30px 26px 26px; border-radius: 22px;
  text-align: left; margin: 0 auto;
  border: 2px solid var(--pink-wash);
  box-shadow: 0 18px 40px rgba(244,63,151,.14);
  transform-origin: top center;
  opacity: 0; transform: perspective(900px) rotateX(-85deg) translateY(-20px);
  transition: transform 1.1s var(--bounce), opacity .5s ease;
}
.in .letter-card { opacity: 1; transform: perspective(900px) rotate(-1.5deg); }
.letter-card p { font-family: var(--hand); font-size: 26px; line-height: 1.3; color: var(--text); }
.letter-card .sign { text-align: right; color: var(--pink); margin-top: 12px; }
.letter-card .w { --d: .6s; }

/* ---------- Polaroids: drop in, swing, develop ---------- */
.drift { will-change: transform; margin-bottom: 30px; }
.polaroid {
  position: relative; width: min(290px, 72vw);
  background: var(--white); padding: 12px 12px 52px; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(244,63,151,.18);
  transform-origin: 50% -20px;
  opacity: 0;
  transform: translateY(-90px) rotate(calc(var(--tilt) * -4)) scale(.92);
}
.in .polaroid { animation: drop 1.3s var(--bounce) forwards; }
@keyframes drop {
  0%   { opacity: 0; transform: translateY(-90px) rotate(calc(var(--tilt) * -4)) scale(.92); }
  45%  { opacity: 1; transform: translateY(6px) rotate(calc(var(--tilt) * 2.2)) scale(1); }
  70%  { transform: translateY(0) rotate(calc(var(--tilt) * .4)); }
  85%  { transform: rotate(calc(var(--tilt) * 1.3)); }
  100% { opacity: 1; transform: rotate(var(--tilt)); }
}
.polaroid::before { /* washi tape, slapped on after it lands */
  content: ""; position: absolute; top: -12px; left: 50%;
  width: 90px; height: 24px; margin-left: -45px; border-radius: 3px;
  background: repeating-linear-gradient(45deg, rgba(249,168,207,.8) 0 8px, rgba(255,225,238,.9) 8px 16px);
  transform: rotate(-4deg) scaleX(0); transform-origin: left center;
}
.in .polaroid::before { animation: tape .45s ease-out .9s forwards; }
@keyframes tape { to { transform: rotate(-4deg) scaleX(1); } }
.polaroid::after { /* heart sticker pops on last */
  content: "♥"; position: absolute; right: -10px; bottom: 30px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--pink); color: #fff; font-size: 16px;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(244,63,151,.4);
  transform: rotate(12deg) scale(0);
}
.in .polaroid::after { animation: sticker .6s var(--bounce) 1.5s forwards; }
@keyframes sticker { 60% { transform: rotate(-8deg) scale(1.3); } to { transform: rotate(12deg) scale(1); } }

.polaroid .photo {
  aspect-ratio: 4 / 5; max-height: 52vh; max-height: 52svh; width: 100%; border-radius: 8px;
  overflow: hidden; background: linear-gradient(160deg, #ffe1ee, #fbc3dc);
  display: grid; place-items: center;
}
.polaroid .photo > * { filter: brightness(1.9) saturate(0) blur(6px); opacity: .4; transition: filter 2.2s ease .5s, opacity 2.2s ease .5s; }
.in .polaroid .photo > * { filter: none; opacity: 1; } /* the photo "develops" */
.polaroid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid .placeholder { color: var(--pink-soft); font-size: 12px; line-height: 1.5; }
.polaroid .placeholder b { display: block; font-size: 60px; line-height: 1.2; }
.polaroid .scribble {
  position: absolute; left: 0; right: 0; bottom: 10px;
  font-family: var(--hand); font-size: 25px; color: var(--plum);
  clip-path: inset(0 100% 0 0);
}
.in .polaroid .scribble { animation: write 1.1s steps(18) 1.1s forwards; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }

.photo-sec .title .w { --d: .5s; }
.photo-sec .caption { --d: .9s; }

/* ---------- The ask ---------- */
.duo { width: 96px; height: 80px; margin: 0 auto 22px; display: block; }
.in .duo { animation: popIn .8s var(--bounce) both, bob 2.6s ease-in-out .8s infinite; }
@keyframes popIn { from { opacity: 0; transform: scale(0) rotate(-20deg); } }
.ask .title .w { --d: .3s; }
.ask .caption { --d: .8s; }

.choices { margin-top: 40px; min-height: 60px; display: flex; gap: 16px; justify-content: center; align-items: center; --d: 1.1s; }
.btn {
  font: 600 17px var(--sans); border-radius: 999px;
  padding: 14px 32px; cursor: pointer; touch-action: manipulation;
  transition: transform .25s var(--bounce), box-shadow .25s ease;
}
.btn-yes { border: 0; color: #fff; background: var(--pink); box-shadow: 0 10px 24px rgba(244,63,151,.35); }
.in .btn-yes { animation: wiggle 3.2s ease-in-out 2.2s infinite; }
@keyframes wiggle { 0%, 86%, 100% { rotate: 0deg; } 89% { rotate: -6deg; } 92% { rotate: 6deg; } 95% { rotate: -3deg; } }
.btn-no { background: var(--white); color: var(--pink); border: 2px solid var(--pink-light); box-shadow: 0 6px 16px rgba(244,63,151,.12); }
.btn-no.runaway { position: fixed; z-index: 100; transition: left .25s var(--bounce), top .25s var(--bounce); }

.yay { display: none; }
.ask.said-yes .question { display: none; }
.ask.said-yes .yay { display: block; animation: popIn .7s var(--bounce); }

#burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }

@keyframes beat { 0%,100% { scale: 1; } 15% { scale: 1.2; } 30% { scale: 1; } 45% { scale: 1.12; } }

/* ---------- Phone sizes ---------- */
@media (max-height: 700px) {
  .sec { padding-top: 52px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .polaroid { width: min(250px, 66vw); padding-bottom: 46px; }
  .polaroid .photo { max-height: 46vh; max-height: 46svh; }
  .polaroid .scribble { font-size: 22px; }
  .duo { width: 80px; height: 66px; margin-bottom: 16px; }
  .choices { margin-top: 28px; }
}
@media (max-width: 360px) {
  .sec { padding-left: 20px; padding-right: 20px; }
  .btn { padding: 13px 26px; font-size: 16px; }
}

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

/* =========================================================
   New sections
   ========================================================= */
.polaroid .photo video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- founders equation ---------- */
.equation { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 34px; }
.person { display: grid; justify-items: center; gap: 6px; opacity: 0; }
.person .face {
  width: 76px; height: 76px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; font-size: 40px;
  box-shadow: 0 10px 24px rgba(244,63,151,.18); border: 2px solid var(--pink-wash);
}
.person small { font: 600 13px var(--sans); color: var(--pink); }
.op { font: 700 26px var(--sans); color: var(--pink-soft); opacity: 0; }
.result { font-size: 50px; opacity: 0; }
.in .person.left { animation: fromLeft .8s var(--bounce) .1s forwards; }
.in .person.right { animation: fromRight .8s var(--bounce) .3s forwards; }
.in .op.plus { animation: popShow .5s var(--bounce) .7s forwards; }
.in .op.eq { animation: popShow .5s var(--bounce) 1s forwards; }
.in .result { animation: popShow .7s var(--bounce) 1.25s forwards, beat 1.3s ease-in-out 2s infinite; }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-80px) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes fromRight { from { opacity: 0; transform: translateX(80px) rotate(20deg); } to { opacity: 1; transform: none; } }
.founders .title .w { --d: 1.4s; }
.founders .caption { --d: 1.9s; }
@media (max-width: 360px) { .person .face { width: 64px; height: 64px; font-size: 34px; } .result { font-size: 42px; } }

/* ---------- sticker cloud ---------- */
.stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; margin-top: 28px; max-width: 360px; }
.sticker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--plum); font: 600 15px var(--sans);
  padding: 10px 16px 10px 12px; border-radius: 999px;
  border: 2px solid var(--pink-wash); box-shadow: 0 8px 20px rgba(244,63,151,.14);
  opacity: 0; transform: scale(0) rotate(var(--rot));
}
.sticker .e { font-size: 24px; line-height: 1; }
.in .sticker { animation: stickerIn .6s var(--bounce) forwards, idle 3.2s ease-in-out infinite; animation-delay: calc(.4s + var(--i) * .12s), calc(1.4s + var(--i) * .3s); }
@keyframes stickerIn { to { opacity: 1; transform: scale(1) rotate(var(--rot)); } }
@keyframes idle { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }

/* ---------- mountains vs beaches ---------- */
.versus { position: relative; display: flex; justify-content: center; margin-bottom: 30px; height: min(330px, 46svh); width: 100%; }
.vs-card { position: absolute; width: min(180px, 46vw); }
.vs-card.yes { left: 50%; margin-left: calc(min(180px, 46vw) * -1 + 14px); z-index: 2; }
.vs-card.no { right: 50%; margin-right: calc(min(180px, 46vw) * -1 + 14px); top: 40px; }
.polaroid.mini { width: 100%; padding: 8px 8px 40px; border-radius: 10px; }
.polaroid.mini::after { display: none; }
.polaroid.mini .photo { aspect-ratio: 3 / 4; }
.polaroid.mini .scribble { font-size: 21px; bottom: 7px; }
.vs-card.no .photo img { transition: filter .6s ease 2.2s; }
.in .vs-card.no .photo img { filter: grayscale(.8) brightness(.95); }
.stamp {
  position: absolute; z-index: 3; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font: 700 32px var(--sans); color: #fff;
  border: 3px solid #fff; box-shadow: 0 8px 18px rgba(0,0,0,.18);
  opacity: 0; transform: scale(3) rotate(-25deg);
}
.stamp.ok { background: #22c55e; top: -16px; left: -14px; }
.stamp.nope { background: #ef4444; top: -16px; right: -14px; }
.in .stamp.ok { animation: stamp .45s cubic-bezier(.3,1.6,.5,1) 1.4s forwards; }
.in .stamp.nope { animation: stamp .45s cubic-bezier(.3,1.6,.5,1) 1.9s forwards, shake .5s ease 2.4s; }
@keyframes stamp { to { opacity: 1; transform: scale(1) rotate(-8deg); } }
@keyframes shake { 20%,60% { translate: -6px 0; } 40%,80% { translate: 6px 0; } }
.versus .vs-card.no .polaroid { animation-delay: .25s; }

/* ---------- Instagram reel ---------- */
.insta { width: 100%; max-width: 340px; margin: 22px auto 0; --d: .4s; }
.insta .instagram-media {
  margin: 0 auto !important; min-width: 0 !important; width: 100% !important;
  background: var(--white); border-radius: 18px !important; border: 2px solid var(--pink-wash) !important;
  box-shadow: 0 14px 34px rgba(244,63,151,.16) !important; padding: 18px; text-align: center;
}
.insta iframe { border-radius: 18px !important; }
.insta .instagram-media a { color: var(--pink); font-weight: 600; text-decoration: none; }
.ig-link {
  display: inline-block; margin-top: 14px; padding: 10px 20px; border-radius: 999px;
  background: var(--white); color: var(--pink); font: 600 14px var(--sans); text-decoration: none;
  border: 2px solid var(--pink-light); --d: .9s;
}
.insta-sec .caption, .sec.insta .caption { --d: .7s; }

/* ---------- vent: kitchen + decks ---------- */
.kitchen { position: relative; width: 140px; height: 130px; margin: 18px auto 6px; }
.kitchen .pan { position: absolute; left: 50%; top: 20px; font-size: 76px; margin-left: -38px; transform-origin: 30% 80%; }
.kitchen .fire { position: absolute; left: 50%; bottom: 0; font-size: 30px; margin-left: -15px; animation: flicker .5s ease-in-out infinite alternate; }
.kitchen .puff { position: absolute; top: 0; font-size: 22px; opacity: 0; }
.kitchen .p1 { left: 18px; } .kitchen .p2 { right: 18px; }
.in .kitchen .pan { animation: toss 1.6s ease-in-out .4s infinite; }
.in .kitchen .puff { animation: puff 1.6s ease-out .9s infinite; }
.in .kitchen .p2 { animation-delay: 1.3s; }
@keyframes toss { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-18deg) translateY(-10px); } 35% { transform: rotate(6deg); } 50% { transform: rotate(0); } }
@keyframes flicker { from { transform: scale(1) translateY(0); } to { transform: scale(1.15, .9) translateY(2px); } }
@keyframes puff { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-26px) scale(1.2); } }
.answer { font-family: var(--hand); font-size: 34px; color: var(--pink); --d: 1s; }
.vent .caption { --d: 1.3s; }
.sets-label { margin-top: 24px; font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--pink-soft); --d: 1.5s; }
.sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 380px; margin-top: 10px; --d: 1.6s; }
.yt {
  position: relative; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; overflow: hidden;
  background: #000; cursor: pointer; padding: 0;
  box-shadow: 0 8px 18px rgba(244,63,151,.2); border: 2px solid var(--white);
  transition: transform .25s var(--bounce);
}
.yt:active { transform: scale(.95); }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt .play {
  position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border-radius: 50%; background: var(--pink); color: #fff; font-size: 12px;
  display: grid; place-items: center; padding-left: 2px; box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
/* a set that's playing takes the full row */
.yt.playing { grid-column: 1 / -1; }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }

@keyframes popShow { from { opacity: 0; transform: scale(0) rotate(-20deg); } to { opacity: 1; transform: none; } }


/* Polaroid notes: neater handwriting */
.polaroid .scribble { font-family: "Patrick Hand", var(--hand); font-size: 21px; }
.polaroid.mini .scribble { font-size: 18px; }
@media (max-height: 700px) { .polaroid .scribble { font-size: 19px; } }
.stickers { max-width: 380px; gap: 10px 8px; }
.sticker { font-size: 14px; padding: 8px 14px 8px 10px; }
.sticker .e { font-size: 20px; }
.stickers { width: 100%; }
.sticker { font-size: 13px; padding: 7px 12px 7px 9px; gap: 6px; }
.sticker .e { font-size: 17px; }
.stickers { gap: 9px 6px; margin-top: 22px; }
@media (max-width: 360px) { .sticker { font-size: 12.5px; padding: 6px 10px 6px 8px; } }

/* ---------- password gate ---------- */
body.locked { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center; padding: 24px;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  transition: opacity .6s ease, visibility .6s;
}
.gate.open { opacity: 0; visibility: hidden; }
.gate-card {
  width: min(320px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center;
  background: var(--white); padding: 30px 24px 24px; border-radius: 24px;
  border: 2px solid var(--pink-wash); box-shadow: 0 20px 50px rgba(244,63,151,.16);
  animation: popShow .7s var(--bounce) both;
}
.gate-lock { font-size: 40px; animation: bob 2.6s ease-in-out infinite; }
.gate-title { font: 700 20px var(--sans); color: var(--plum); }
.gate-card input {
  width: 100%; font: 500 16px var(--sans); color: var(--plum); text-align: center;
  padding: 13px 16px; border-radius: 999px; outline: none;
  border: 2px solid var(--pink-light); background: #fff8fb;
  user-select: text; -webkit-user-select: text;
}
.gate-card input:focus { border-color: var(--pink); }
.gate-card .btn { width: 100%; }
.gate-err { font-size: 13px; color: var(--pink); opacity: 0; height: 0; transition: opacity .3s; }
.gate-err.show { opacity: 1; height: auto; }
.gate-card.shake { animation: shake .45s ease; }
