/* Purana Seekho — lemon gingham, sticker cats, pink bubbles.
   Motion budget: springy cubic-bezier(.34,1.56,.64,1), nothing over 400ms. */

:root {
  --cream: #FFF9EF;
  --cream-deep: #FFF3D6;
  --gingham: rgba(244, 200, 66, .16);
  --pink: #F0427E;
  --pink-pill: #E84A7F;
  --pink-soft: #FDE3EC;
  --purple: #8A4FFF;
  --purple-deep: #7A3FF0;
  --red: #D6453D;
  --ink: #4A3B3F;
  --ink-soft: #8A747B;
  --card-r: 18px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 10px 30px rgba(74, 59, 63, .14);
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font: 500 17px/1.55 "DM Sans", system-ui, -apple-system, sans-serif;
  min-height: 100svh;
  overflow-x: hidden;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---- the gingham: one fixed layer, never repaints under scroll ---- */
.ps-gingham {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, var(--gingham) 26px 28px),
    repeating-linear-gradient(0deg, transparent 0 26px, var(--gingham) 26px 28px),
    var(--cream);
}

.ps { min-height: 100svh; }

/* ---- the shared cream card ---- */
.ps-card {
  background: #fff;
  border: 2px solid rgba(74, 59, 63, .08);
  border-radius: var(--card-r);
  box-shadow: var(--shadow);
}

/* ============================================================
   ① THE GATE — light theme, zero dark tokens
   ============================================================ */
.ps-gate[hidden] { display: none !important; }
.ps-gate {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.ps-gate__card {
  width: 100%; max-width: 420px;
  padding: 34px 26px 26px;
  text-align: center;
}
.ps-gate__title {
  margin: 0 0 6px;
  font: 800 30px/1.15 "Baloo 2", "DM Sans", sans-serif;
  color: var(--pink);
  -webkit-text-stroke: 0;
}
.ps-gate__sub { margin: 0 0 20px; color: var(--ink-soft); font-size: 15px; }
.ps-gate__form { display: flex; flex-direction: column; gap: 10px; }
.ps-gate__input {
  width: 100%; height: 56px;
  padding: 0 18px;
  border: 2px solid rgba(74, 59, 63, .16);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: 600 17px/1 "DM Sans", sans-serif;
  text-align: center;
  outline: none;
  transition: border-color .2s var(--spring), box-shadow .2s var(--spring);
}
.ps-gate__input:focus-visible {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(138, 79, 255, .15);
}
.ps-gate__go {
  width: 100%; height: 56px;
  border: 0; border-radius: 14px;
  background: var(--purple); color: #fff;
  font: 700 18px/1 "Baloo 2", "DM Sans", sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .18s var(--spring), background .18s ease;
}
.ps-gate__go:hover { background: var(--purple-deep); }
.ps-gate__go:active { transform: scale(.96); }
.ps-gate__hint { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--pink); font-weight: 600; }

/* the joke captcha — decorative by design */
.ps-captcha {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px;
  padding: 9px 14px;
  border: 2px solid rgba(74, 59, 63, .14);
  border-radius: 8px;
  background: var(--cream-deep);
  user-select: none;
  filter: saturate(.92);
}
.ps-captcha__box {
  width: 24px; height: 24px;
  border: 2px solid rgba(74, 59, 63, .35);
  border-radius: 5px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: #2AA05A;
}
.ps-captcha__tick { width: 18px; height: 18px; opacity: 0; transform: scale(.4); transition: all .3s var(--spring); }
.ps-captcha__text { font-size: 13px; color: var(--ink-soft); font-style: italic; }

.ps-gate__peek { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }
.ps-gate__peek b { color: var(--ink); }

/* ============================================================
   ② THE TEASE — playful, never hostile
   ============================================================ */
.ps-tease[hidden] { display: none !important; }
.ps-tease {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 249, 239, .94);
  animation: ps-fade .2s var(--spring);
}
.ps-tease__cat {
  width: min(52vw, 240px); height: auto;
  transform: rotate(-4deg);
  animation: ps-wiggle .4s var(--spring);
}
.ps-tease__line {
  margin: 4px 0 2px;
  font: 800 clamp(34px, 10vw, 56px)/1.05 "Baloo 2", "DM Sans", sans-serif;
  color: var(--pink);
  /* the sticker: soft white outline via layered shadows */
  text-shadow:
    -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 3px 3px 0 #fff,
    0 -3px 0 #fff, 0 3px 0 #fff, -3px 0 0 #fff, 3px 0 0 #fff,
    0 6px 14px rgba(74, 59, 63, .18);
  transform: rotate(-1.5deg);
  animation: ps-pop-in .3s var(--spring);
}
.ps-tease__retry {
  margin-top: 10px;
  min-height: 56px;
  padding: 0 34px;
  border: 0; border-radius: 999px;
  background: var(--pink-pill); color: #fff;
  font: 700 18px/1 "Baloo 2", "DM Sans", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(232, 74, 127, .35);
  transform: scale(0);
  animation: ps-spring .3s .12s var(--spring) forwards;
  transition: transform .18s var(--spring);
}
.ps-tease__retry:active { transform: scale(.94); }

@keyframes ps-spring { to { transform: scale(1); } }
@keyframes ps-pop-in { from { transform: scale(.6) rotate(-6deg); opacity: 0; } to { transform: scale(1) rotate(-1.5deg); opacity: 1; } }
@keyframes ps-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ps-wiggle {
  0% { transform: rotate(-10deg) scale(.85); }
  60% { transform: rotate(-2deg) scale(1.05); }
  100% { transform: rotate(-4deg) scale(1); }
}

/* ============================================================
   THE SITE — beats stacked, revealed in order
   ============================================================ */
.ps-site[hidden] { display: none !important; }
.ps-beat {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  text-align: center;
}

/* scroll-in pops */
.ps-pop { opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .35s ease, transform .35s var(--spring); }
.is-in .ps-pop, .ps-pop.is-in { opacity: 1; transform: none; }

/* ---- ③ the pick ---- */
.ps-pick__cat { width: min(44vw, 190px); height: auto; }
.ps-pick__headline {
  margin: 10px 0 2px;
  font: 800 clamp(26px, 7.4vw, 40px)/1.1 "Baloo 2", "DM Sans", sans-serif;
  color: var(--pink);
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 4px 10px rgba(74,59,63,.14);
}
.ps-pick__sub { margin: 0 0 26px; color: var(--ink-soft); font-size: 15px; }

.ps-gifts {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.ps-gift { width: min(28vw, 150px); }
.ps-gift__btn {
  display: block; width: 100%;
  aspect-ratio: 1;
  min-height: 56px;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--spring);
}
.ps-gift__btn img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 8px 14px rgba(74, 59, 63, .18)); }
.ps-gift__btn:hover { transform: translateY(-6px) rotate(-2deg); }
.ps-gift.is-open .ps-gift__btn,
.ps-gift.is-open .ps-gift__btn:hover { transform: scale(.9) rotate(-8deg); cursor: default; }
/* lid off + dimmed: the box slumps open, colour drains to ~55% */
.ps-gift.is-open .ps-gift__btn img {
  filter: grayscale(.45) brightness(.72) drop-shadow(0 4px 8px rgba(74, 59, 63, .12));
  opacity: .55;
}
.ps-gift.is-open::after {
  content: "opened!";
  position: absolute;
  font: 600 13px/1 "Caveat", cursive;
  color: var(--ink-soft);
  transform: rotate(-8deg);
}
.ps-gift { position: relative; }

/* ---- ④a the hero ---- */
.ps-hero__cat { width: min(58vw, 260px); height: auto; }
.ps-hero__line {
  margin: 14px 0 0;
  font: 800 clamp(34px, 9.6vw, 56px)/1.08 "Baloo 2", "DM Sans", sans-serif;
  color: var(--pink);
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 5px 12px rgba(74,59,63,.16);
}
.ps-hero__word { display: inline-block; animation: ps-word-pop .38s var(--spring) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes ps-word-pop { from { transform: scale(.5) translateY(10px); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ps-hero__doodle img { width: 120px; height: auto; opacity: .9; }

/* ---- ④b the word cloud ---- */
.ps-cloud__kitten { width: min(48vw, 210px); height: auto; }
.ps-cloud__title {
  margin: 10px 0 8px;
  font: 800 clamp(28px, 8vw, 46px)/1.1 "Baloo 2", "DM Sans", sans-serif;
  color: var(--pink);
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 0 5px 12px rgba(74,59,63,.16);
}
.ps-cloud__list { list-style: none; margin: 0; padding: 0; }
.ps-cloud__item {
  position: relative;
  animation: ps-pop-in2 .3s var(--spring) both;
  animation-delay: calc(var(--i) * 60ms);
}
@keyframes ps-pop-in2 { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ps-cloud__arrow { display: none; }
.ps-cloud__label {
  display: inline-block;
  margin: 5px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font: 600 15px/1.2 "Caveat", cursive;
  font-size: 18px;
}

/* ≥520px: the cloud floats around the kitten */
@media (min-width: 520px) {
  .ps-cloud { position: relative; padding-bottom: 84px; }
  .ps-cloud__list { position: relative; min-height: 300px; }
  .ps-cloud__item { position: absolute; width: 150px; }
  .ps-cloud__item:nth-child(1) { top: -10px; left: 8%; transform: rotate(-6deg); }
  .ps-cloud__item:nth-child(2) { top: -26px; right: 10%; transform: rotate(4deg); }
  .ps-cloud__item:nth-child(3) { top: 90px; left: 2%; transform: rotate(3deg); }
  .ps-cloud__item:nth-child(4) { top: 96px; right: 3%; transform: rotate(-4deg); }
  .ps-cloud__item:nth-child(5) { bottom: 6px; left: 16%; transform: rotate(2deg); }
  .ps-cloud__item:nth-child(6) { bottom: -8px; right: 15%; transform: rotate(-2deg); }
  .ps-cloud__arrow { display: block; width: 34px; height: auto; color: var(--pink); pointer-events: none; }
  .ps-cloud__item:nth-child(odd) .ps-cloud__arrow { transform: scaleX(-1); }
  .ps-cloud__label { background: #fff; box-shadow: 0 4px 12px rgba(74, 59, 63, .12); }
}
/* under 380px: centered pill column, no fighting the layout */
@media (max-width: 379.98px) {
  .ps-cloud__list { display: flex; flex-direction: column; align-items: center; }
  .ps-cloud__item { margin: 0; }
}

.ps-cloud__sign, .ps-closer__sign {
  margin: 18px 0 0;
  font: 600 24px/1.3 "Caveat", cursive;
  color: var(--ink);
}

/* ---- ④c the memories strip ---- */
.ps-strip {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 14px 14px 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(74, 59, 63, .08);
}
.ps-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ps-strip__shot { margin: 0; overflow: hidden; border-radius: 6px; background: var(--cream-deep); }
.ps-strip__shot img {
  display: block; width: 100%; height: 100%;
  min-height: 110px; object-fit: cover;
  animation: ps-photo-in .4s var(--spring) both;
  animation-delay: calc(var(--i) * 70ms);
}
@keyframes ps-photo-in { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ps-strip__banner {
  position: absolute;
  left: 50%; bottom: -14px;              /* overhangs the frame's bottom edge */
  transform: translateX(-50%) rotate(-1.2deg);
  padding: 9px 22px;
  background: var(--red); color: #FFF6E8;
  font: 700 15px/1 "Baloo 2", "DM Sans", sans-serif;
  letter-spacing: .22em;
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(214, 69, 61, .35);
  white-space: nowrap;
}
.ps-memories__caption { margin: 34px 0 0; font: 600 20px/1.3 "Caveat", cursive; color: var(--ink-soft); }

/* under 480px: vertical booth strip, one column */
@media (max-width: 479.98px) {
  .ps-strip__grid { grid-template-columns: 1fr; }
  .ps-strip__shot img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---- ⑤ the closer ---- */
.ps-closer { position: relative; padding-bottom: 40px; }
.ps-closer__doodle {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 200px; height: auto; opacity: .55; pointer-events: none;
}
.ps-closer__oval {
  margin: 26px auto 18px;
  max-width: 340px;
  padding: 26px 34px;
  background: var(--pink-soft);
  border: 3px solid var(--pink);
  border-radius: 50% / 58%;
  display: flex; align-items: center; justify-content: center;
  min-height: 120px;
}
.ps-closer__oval span {
  font: 600 34px/1.2 "Caveat", cursive;
  color: var(--pink);
  transform: rotate(-2deg);
}
.ps-closer__couple { width: min(64vw, 300px); height: auto; }
.ps-closer__foot { margin: 34px 0 0; font-size: 13px; color: var(--ink-soft); }
.ps-closer__foot a { color: var(--pink); font-weight: 600; text-decoration: none; }

/* ---- the closer's song ---- */
.ps-song__embed {
  position: relative; width: 100%; max-width: 460px;
  aspect-ratio: 16 / 9; margin: 26px auto 0;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
}
.ps-song__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ps-song__pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 26px auto 0;
  min-height: 56px; padding: 0 28px;
  border-radius: 999px;
  background: var(--pink-pill); color: #fff;
  font: 700 16px/1 "Baloo 2", "DM Sans", sans-serif;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(232, 74, 127, .35);
  transition: transform .18s var(--spring);
}
.ps-song__pill:active { transform: scale(.95); }
.ps-svc-ic { width: 18px; height: 18px; }

/* ---- the music chip picks up the pink ---- */
:root { --bgm-accent: #E84A7F; }

/* reduced motion: everything readable, nothing bouncy */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .ps-tease__retry { transform: scale(1); }
}
