:root {
  --pink-cloud: #fff8fc;
  --pink-milk: #ffedf6;
  --pink-petal: #ffd6e8;
  --pink-ribbon: #f49ac2;
  --pink-berry: #cf5f91;
  --pink-wine: #7f2f52;
  --cream: #fffaf3;
  --cocoa: #633848;
  --gold: #e9b35c;
  --shadow: rgba(108, 37, 66, 0.2);
  --display: "Bodoni 72", "Bodoni MT", Didot, "Times New Roman", serif;
  --round: "Avenir Next", Avenir, "Century Gothic", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  overflow: hidden;
  color: var(--cocoa);
  background: var(--pink-petal);
  font-family: var(--round);
}

button {
  font: inherit;
}

.experience {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.84) 0 5%, transparent 19%),
    radial-gradient(circle at 84% 78%, rgba(255, 255, 255, 0.62) 0 7%, transparent 23%),
    linear-gradient(145deg, #ffe7f1 0%, #ffcfe2 48%, #ffeaf4 100%);
}

.experience::before {
  position: absolute;
  inset: 13px;
  z-index: 12;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.15);
  content: "";
  pointer-events: none;
}

.experience::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.36;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.paper-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(70vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 247, 0.86) 0%, rgba(255, 232, 241, 0.28) 58%, transparent 72%);
  filter: blur(4px);
  transform: translate(-50%, -47%);
}

.cinematic-dim {
  position: fixed;
  inset: 0;
  z-index: 29;
  visibility: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(96, 7, 22, 0.2) 0 18%, rgba(24, 2, 9, 0.78) 56%, rgba(5, 0, 3, 0.94) 100%),
    rgba(10, 0, 5, 0.86);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.title-card {
  position: absolute;
  top: clamp(30px, 5vh, 64px);
  left: 50%;
  z-index: 7;
  width: min(82vw, 520px);
  text-align: center;
  transform: translateX(-50%);
  animation: title-arrival 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 -4px;
  color: var(--pink-wine);
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.title-card h1 {
  margin: 0;
  color: var(--pink-wine);
  font-family: var(--display);
  font-size: clamp(4.2rem, 9vw, 7.8rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.88;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.52);
}

.birthday-line {
  display: inline-block;
  margin: 10px 0 0;
  padding: 6px 18px 7px;
  border: 1px solid rgba(129, 39, 70, 0.18);
  border-radius: 999px;
  color: var(--pink-wine);
  background: rgba(255, 250, 243, 0.56);
  box-shadow: 0 8px 20px rgba(129, 39, 70, 0.08);
  font-family: var(--display);
  font-size: clamp(0.94rem, 2vw, 1.15rem);
  font-style: italic;
  letter-spacing: 0.04em;
}

.center-stage {
  position: relative;
  z-index: 8;
  display: grid;
  width: min(86vw, 760px);
  min-height: 470px;
  margin-top: clamp(88px, 12vh, 135px);
  place-items: center;
}

.crate-button {
  position: relative;
  display: grid;
  width: min(760px, 94vw);
  min-height: 450px;
  padding: 24px 18px 10px;
  border: 0;
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  place-items: end center;
  perspective: 1100px;
  -webkit-tap-highlight-color: transparent;
}

.crate-button:focus-visible {
  border-radius: 32px;
  outline: 4px solid var(--cream);
  outline-offset: 5px;
  box-shadow: 0 0 0 8px var(--pink-berry);
}

.crate {
  position: absolute;
  top: 62px;
  left: 50%;
  isolation: isolate;
  width: min(680px, 92vw);
  aspect-ratio: 1672 / 941;
  transform: translateX(-50%);
  transition:
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1),
    scale 720ms cubic-bezier(0.22, 1, 0.36, 1);
  animation:
    crate-arrival 980ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both,
    crate-idle 5.2s 1.15s ease-in-out infinite;
  will-change: transform, translate, scale;
}

.crate-aura,
.crate-shadow,
.crate-shockwave,
.crate-smoke,
.crate-shell,
.crate-body-slice,
.crate-seam-glow,
.crate-lid-slice,
.crate-image,
.crate-latches,
.crate-leds,
.crate-embers {
  position: absolute;
}

.crate-aura {
  z-index: 0;
  inset: 12% 1% -8%;
  border-radius: 45%;
  background:
    radial-gradient(ellipse, rgba(255, 79, 114, 0.42) 0 22%, rgba(244, 154, 194, 0.28) 42%, transparent 72%);
  filter: blur(24px);
  opacity: 0.68;
  transform: scale(0.92);
  animation: crate-glow-breathe 3.8s 1.2s ease-in-out infinite;
  pointer-events: none;
}

.crate-shadow {
  z-index: 0;
  right: 8%;
  bottom: -5%;
  left: 8%;
  height: 16%;
  border-radius: 50%;
  background: rgba(43, 15, 27, 0.38);
  filter: blur(20px);
  transform: scaleX(0.96);
}

.crate-shell {
  inset: 0;
  z-index: 1;
  filter:
    drop-shadow(0 23px 20px rgba(36, 11, 20, 0.32))
    drop-shadow(0 0 12px rgba(255, 67, 91, 0.18));
  transform-origin: 50% 72%;
  transition:
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.crate-body-slice,
.crate-lid-slice {
  inset: 0;
  overflow: visible;
  width: 100%;
  height: 100%;
}

.crate-body-slice {
  z-index: 1;
  clip-path: polygon(0 40%, 100% 40%, 100% 100%, 0 100%);
  transform-origin: 50% 78%;
  will-change: opacity, transform;
}

.crate-seam-glow {
  top: 41%;
  left: 50%;
  z-index: 2;
  width: 82%;
  height: clamp(13px, 2.2vw, 28px);
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #ff173f 10%, #ff725e 50%, #ff173f 90%, transparent);
  box-shadow:
    0 0 10px #ff163d,
    0 0 28px rgba(255, 18, 55, 0.98),
    0 0 64px rgba(255, 18, 55, 0.82),
    0 -20px 70px rgba(255, 40, 48, 0.56);
  filter: blur(2px);
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.55);
  pointer-events: none;
}

.crate-seam-glow::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88%;
  height: 720%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 27, 58, 0.72), rgba(255, 25, 55, 0.2) 38%, transparent 72%);
  content: "";
  opacity: 0.85;
  transform: translate(-50%, -50%);
}

.crate-lid-slice {
  inset: 0;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 100% 43.5%, 0 43.5%);
  transform-origin: 50% 43%;
  will-change: opacity, transform, filter;
}

.crate-image {
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.crate-latches {
  top: 40.2%;
  left: 50%;
  z-index: 5;
  display: flex;
  width: 45%;
  justify-content: space-between;
  transform: translate(-50%, -50%);
}

.crate-latches i {
  width: clamp(8px, 1.35vw, 17px);
  aspect-ratio: 0.72;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  background: linear-gradient(#d9d9d9, #626262 48%, #c7c7c7 52%, #3d3d3d);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
  transform-origin: 50% 0;
}

.crate-leds {
  top: 32.4%;
  right: 10.7%;
  left: 10.7%;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.crate-leds i {
  width: clamp(10px, 1.55vw, 21px);
  aspect-ratio: 1.9;
  border-radius: 3px;
  background: #ffebe7;
  box-shadow: 0 0 5px #ff3659, 0 0 12px #ff3659, 0 0 24px rgba(255, 54, 89, 0.7);
  animation: crate-led-pulse 1.5s ease-in-out infinite;
}

.crate-shockwave {
  top: 43%;
  left: 50%;
  z-index: 0;
  width: 58%;
  aspect-ratio: 1;
  border: 5px solid rgba(255, 225, 237, 0.88);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  pointer-events: none;
}

.crate-smoke {
  top: 28%;
  z-index: 2;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 43, 51, 0.5), rgba(112, 77, 89, 0.22) 45%, transparent 72%);
  filter: blur(10px);
  opacity: 0;
  pointer-events: none;
}

.crate-smoke-left { left: 18%; }
.crate-smoke-right { right: 18%; }

.crate-embers {
  top: 42%;
  left: 50%;
  z-index: 7;
  pointer-events: none;
}

.crate-embers i {
  position: absolute;
  width: 5px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(#fff3dc, #ff4768 55%, transparent);
  box-shadow: 0 0 8px #ff3659;
  opacity: 0;
}

.crate-label {
  position: relative;
  z-index: 8;
  display: grid;
  width: min(270px, 74vw);
  min-height: 76px;
  padding: 11px 20px 10px;
  border: 1px solid rgba(255, 111, 137, 0.85);
  border-radius: 5px;
  color: #fff7fa;
  background:
    linear-gradient(135deg, rgba(32, 26, 30, 0.98), rgba(67, 25, 36, 0.96));
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.76),
    0 9px 22px rgba(78, 22, 42, 0.26);
  place-items: center;
  transform: skewX(-4deg);
  transition:
    translate 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 680ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: crate-label-arrival 700ms 560ms ease both;
}

.crate-label::before,
.crate-label::after {
  position: absolute;
  content: "";
}

.crate-label::before {
  inset: 5px;
  border: 1px dashed rgba(255, 200, 218, 0.38);
}

.crate-label::after {
  top: 0;
  right: 14px;
  width: 48px;
  height: 3px;
  background: #ff4d6d;
  box-shadow: -150px 0 #ff4d6d;
}

.crate-label-small,
.crate-label-status {
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.crate-label-main {
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 1.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.crate-label-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffc8da;
  letter-spacing: 0.12em;
}

.crate-label-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 8px #ff4d6d;
  animation: crate-status-blink 1.35s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .crate-button:not(:disabled):hover .crate {
    filter: saturate(1.08) brightness(1.03);
    scale: 1.018;
  }

  .crate-button:not(:disabled):hover .crate-shell {
    filter: drop-shadow(0 28px 24px rgba(36, 11, 20, 0.38)) drop-shadow(0 0 18px rgba(255, 67, 91, 0.34));
    transform: translateY(-7px) rotateX(2.2deg) scale(1.012);
  }

  .crate-button:not(:disabled):hover .crate-leds i {
    animation-duration: 620ms;
  }

  .crate-button:not(:disabled):hover .crate-label {
    box-shadow: 0 0 0 3px white, 0 13px 28px rgba(78, 22, 42, 0.32);
    translate: 0 -4px;
    transform: skewX(-1deg);
  }
}

.crate-button:not(:disabled):active .crate {
  scale: 0.972;
  transition-duration: 220ms;
}

.crate-button:not(:disabled):active .crate-shell {
  transform: translateY(4px) scale(0.986);
  transition-duration: 220ms;
}

.sticker {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 10px 9px rgba(93, 37, 57, 0.18)) drop-shadow(0 0 2px white);
  animation: sticker-arrival 900ms cubic-bezier(0.18, 0.9, 0.3, 1.25) both, sticker-float 5s 1.3s ease-in-out infinite;
}

.sticker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sticker-anya-full {
  bottom: -38px;
  left: clamp(-24px, 2vw, 45px);
  width: clamp(115px, 15vw, 190px);
  height: clamp(220px, 44vh, 430px);
  transform: rotate(4deg);
}

.sticker-anya-face {
  top: 19%;
  right: clamp(-28px, 3vw, 58px);
  width: clamp(102px, 13vw, 170px);
  aspect-ratio: 474 / 503;
  padding: 7px;
  border: 4px solid white;
  border-radius: 38% 54% 44% 48%;
  background: #ffd5e3;
  transform: rotate(8deg);
}

.sticker-kuromi-main {
  top: 4%;
  left: 8%;
  width: clamp(76px, 8vw, 112px);
  aspect-ratio: 1;
  opacity: 0.94;
  transform: rotate(-9deg);
  animation-delay: 180ms, 1.65s;
}

.sticker-melody-main {
  right: clamp(-20px, 2.2vw, 52px);
  bottom: clamp(16px, 4vh, 52px);
  width: clamp(128px, 16vw, 206px);
  aspect-ratio: 1;
  transform: rotate(-7deg);
  animation-delay: 130ms, 1.8s;
}

.sticker-melody-friends {
  top: 21%;
  left: clamp(-24px, 2.5vw, 46px);
  width: clamp(108px, 12vw, 158px);
  aspect-ratio: 1;
  transform: rotate(-8deg);
  animation-delay: 80ms, 2.1s;
}

.sticker-kuromi-mini {
  top: 5%;
  right: 8%;
  width: clamp(62px, 6.6vw, 92px);
  aspect-ratio: 1;
  opacity: 0.86;
  transform: rotate(10deg) scaleX(-1);
  animation-delay: 240ms, 1.85s;
}

.number {
  position: absolute;
  z-index: 1;
  color: rgba(129, 39, 70, 0.24);
  font-family: var(--display);
  font-size: clamp(1rem, 2.2vw, 2rem);
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 1px rgba(255, 255, 255, 0.6);
  animation: number-drift 7s ease-in-out infinite alternate;
}

.n1 { top: 10%; left: 3%; transform: rotate(-15deg); }
.n2 { top: 33%; left: 18%; transform: rotate(9deg); animation-delay: -1.3s; }
.n3 { top: 72%; left: 20%; transform: rotate(-8deg); animation-delay: -4s; }
.n4 { right: 4%; bottom: 13%; transform: rotate(13deg); animation-delay: -2.1s; }
.n5 { top: 39%; right: 19%; transform: rotate(-11deg); animation-delay: -5s; }
.n6 { top: 8%; right: 3%; transform: rotate(8deg); animation-delay: -2.8s; }
.n7 { bottom: 5%; left: 36%; transform: rotate(5deg); animation-delay: -4.6s; }
.n8 { right: 34%; bottom: 5%; transform: rotate(-8deg); animation-delay: -0.8s; }
.n9 { top: 58%; left: 6%; transform: rotate(11deg); animation-delay: -3.4s; }
.n10 { top: 59%; right: 5%; transform: rotate(-6deg); animation-delay: -5.8s; }
.n11 { top: 22%; left: 34%; transform: rotate(8deg); animation-delay: -2.7s; }
.n12 { top: 22%; right: 35%; transform: rotate(-8deg); animation-delay: -1.6s; }

.sparkle,
.heart,
.mini-bow {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.sparkle {
  color: var(--cream);
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  text-shadow: 0 4px 13px rgba(129, 39, 70, 0.12);
  animation: twinkle 2.6s ease-in-out infinite;
}

.sparkle-one { top: 16%; left: 24%; }
.sparkle-two { top: 51%; right: 18%; animation-delay: -1.2s; }
.sparkle-three { right: 28%; bottom: 13%; animation-delay: -2s; }

.heart {
  color: rgba(199, 72, 120, 0.63);
  font-size: clamp(0.85rem, 1.8vw, 1.4rem);
  animation: heart-beat 3s ease-in-out infinite;
}

.heart-one { top: 29%; left: 28%; transform: rotate(-10deg); }
.heart-two { top: 13%; right: 27%; animation-delay: -1.5s; }
.heart-three { right: 24%; bottom: 28%; animation-delay: -0.7s; }

.mini-bow {
  width: 55px;
  height: 34px;
  transform: rotate(-12deg);
}

.mini-bow::before,
.mini-bow::after {
  position: absolute;
  top: 4px;
  width: 28px;
  height: 23px;
  border: 2px solid var(--pink-wine);
  background: #fff3f7;
  content: "";
}

.mini-bow::before {
  left: 1px;
  border-radius: 70% 33% 64% 37%;
  transform: rotate(16deg);
}

.mini-bow::after {
  right: 1px;
  border-radius: 33% 70% 37% 64%;
  transform: rotate(-16deg);
}

.mini-bow i {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 18px;
  height: 17px;
  border: 2px solid var(--pink-wine);
  border-radius: 50%;
  background: #f5a3bf;
  transform: translateX(-50%);
}

.bow-one { top: 43%; left: 8%; }
.bow-two { top: 34%; right: 7%; transform: rotate(15deg) scale(0.85); }
.bow-three { right: 18%; bottom: 8%; transform: rotate(-8deg) scale(0.72); }

.letterbox {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(370px, 90vw);
  height: min(610px, 72vh);
  opacity: 0;
  transform: translate(-50%, -45%) scale(0.78) rotate(2deg);
  pointer-events: none;
}

.letterbox[hidden] {
  display: none;
}

.envelope-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 100%;
  min-height: 360px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: opacity 600ms ease, transform 800ms cubic-bezier(0.18, 0.8, 0.24, 1);
}

.envelope-button:focus-visible {
  border-radius: 28px;
  outline: 3px solid rgba(129, 39, 70, 0.55);
  outline-offset: 5px;
}

.envelope-button:not(:disabled):hover .envelope {
  transform: translateY(-6px) rotate(-1deg);
}

.envelope-button:not(:disabled):hover .letterbox-caption {
  transform: translateX(-50%) rotate(1deg) translateY(-3px);
}

.letterbox-shadow {
  position: absolute;
  top: calc(50% + 82px);
  left: 50%;
  width: 280px;
  height: 34px;
  border-radius: 50%;
  background: rgba(93, 37, 57, 0.19);
  filter: blur(12px);
  transform: translateX(-50%);
}

.envelope {
  position: relative;
  display: block;
  width: min(330px, 84vw);
  aspect-ratio: 1.45;
  overflow: hidden;
  border: 3px solid var(--pink-wine);
  border-radius: 12px;
  background: var(--cream);
  box-shadow: inset 0 0 25px rgba(199, 72, 120, 0.08), 0 24px 40px var(--shadow);
  transition: transform 320ms ease;
}

.envelope-paper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(238, 142, 178, 0.11) 0 2px, transparent 2.5px) 0 0 / 24px 24px,
    linear-gradient(145deg, #fffaf3, #ffe9f0);
}

.envelope-flap {
  position: absolute;
  top: -51%;
  left: 8%;
  width: 84%;
  aspect-ratio: 1;
  border-right: 3px solid var(--pink-wine);
  border-bottom: 3px solid var(--pink-wine);
  border-radius: 6px 18px 6px 18px;
  background: linear-gradient(135deg, #fffaf3 15%, #ffd8e5 100%);
  transform: rotate(45deg);
}

.envelope-fold {
  position: absolute;
  bottom: -55%;
  width: 75%;
  aspect-ratio: 1;
  border-top: 2px solid rgba(129, 39, 70, 0.38);
  background: #ffeff4;
}

.fold-left {
  left: -37%;
  transform: rotate(45deg);
}

.fold-right {
  right: -37%;
  transform: rotate(-45deg);
}

.wax-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 62px;
  height: 62px;
  border: 3px solid #a73560;
  border-radius: 48% 52% 45% 55%;
  color: #ffe8ef;
  background: radial-gradient(circle at 34% 28%, #ef8eb1, #bc3c6c 62%, #8f294e);
  box-shadow: 0 5px 9px rgba(93, 37, 57, 0.28), inset 0 0 0 5px rgba(255, 255, 255, 0.11);
  place-items: center;
  transform: translate(-50%, -35%) rotate(-7deg);
}

.wax-seal i {
  font-family: var(--display);
  font-size: 2rem;
  font-style: italic;
}

.envelope-address {
  position: absolute;
  right: 20px;
  bottom: 15px;
  color: var(--pink-wine);
  font-family: var(--display);
  font-size: 0.88rem;
  font-style: italic;
}

.letterbox-caption {
  position: absolute;
  bottom: 5px;
  left: 50%;
  padding: 8px 19px;
  border: 1px solid rgba(129, 39, 70, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.74);
  box-shadow: 0 9px 20px rgba(129, 39, 70, 0.08);
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  white-space: nowrap;
  transform: translateX(-50%) rotate(-1deg);
  transition: opacity 260ms ease, transform 260ms ease;
}

.birthday-letter {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(360px, 88vw);
  min-height: 552px;
  padding: 43px 38px 42px;
  overflow: hidden;
  border: 2px solid rgba(129, 39, 70, 0.72);
  border-radius: 7px 22px 9px 19px;
  opacity: 0;
  color: var(--pink-wine);
  background:
    linear-gradient(rgba(255, 252, 246, 0.93), rgba(255, 239, 245, 0.93)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(199, 72, 120, 0.08) 29px 30px);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.45),
    0 28px 54px rgba(108, 37, 66, 0.2);
  text-align: center;
  transform: translate(-50%, -20%) scale(0.76) rotate(1deg);
  transform-origin: 50% 90%;
  pointer-events: none;
}

.birthday-letter[hidden] {
  display: none;
}

.birthday-letter::before {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(199, 72, 120, 0.34);
  border-radius: 4px 15px 5px 12px;
  content: "";
  pointer-events: none;
}

.birthday-letter:focus-visible {
  outline: 3px solid white;
  outline-offset: 5px;
}

.letter-kicker {
  position: relative;
  margin: 0 0 29px;
  font-family: var(--round);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.birthday-letter blockquote {
  position: relative;
  margin: 0;
  padding: 0 7px;
}

.birthday-letter blockquote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.62rem, 4.6vw, 2.05rem);
  font-style: italic;
  line-height: 1.22;
  text-wrap: balance;
}

.birthday-letter blockquote .personal-message {
  font-size: clamp(1.24rem, 3.8vw, 1.48rem);
  line-height: 1.27;
}

.opening-quote,
.closing-quote {
  position: absolute;
  color: rgba(199, 72, 120, 0.3);
  font-family: var(--display);
  font-size: 5rem;
  font-style: italic;
  line-height: 1;
}

.opening-quote {
  top: -26px;
  left: -13px;
}

.closing-quote {
  right: -7px;
  bottom: -47px;
}

.voice-note {
  position: relative;
  margin-top: 18px;
  padding: 13px 14px 15px;
  border: 1px solid rgba(199, 72, 120, 0.28);
  border-radius: 17px 8px 15px 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 222, 236, 0.64));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.34), 0 8px 20px rgba(129, 39, 70, 0.08);
  text-align: left;
}

.voice-note-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.voice-note-heading > span:last-child {
  display: grid;
  gap: 1px;
}

.voice-note-heading small {
  font-family: var(--round);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.voice-note-heading strong {
  font-family: var(--display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
}

.voice-note-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, var(--pink-ribbon), var(--pink-berry));
  box-shadow: 0 5px 12px rgba(199, 72, 120, 0.22);
  font-family: var(--round);
  place-items: center;
}

.voice-note-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.voice-note-button {
  display: inline-flex;
  min-width: 0;
  padding: 7px 11px;
  border: 1px solid rgba(129, 39, 70, 0.28);
  border-radius: 999px;
  color: var(--pink-wine);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 10px rgba(129, 39, 70, 0.08);
  cursor: pointer;
  align-items: center;
  gap: 7px;
  font-family: var(--round);
  font-size: 0.66rem;
  font-weight: 750;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 360ms ease, opacity 260ms ease;
}

.voice-note-button:not(:disabled):hover {
  box-shadow: 0 7px 16px rgba(129, 39, 70, 0.15);
  transform: translateY(-2px) scale(1.015);
}

.voice-note-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.voice-play-symbol {
  color: var(--pink-berry);
  font-size: 0.64rem;
}

.voice-duration {
  margin-left: auto;
  font-family: var(--round);
  font-size: 0.61rem;
  font-weight: 700;
  opacity: 0.68;
}

.voice-track {
  display: block;
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(199, 72, 120, 0.16);
}

.voice-track i {
  display: block;
  width: var(--voice-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink-ribbon), var(--pink-berry));
  transition: width 180ms linear;
}

.letter-flourish {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--pink-berry);
  font-size: 1.15rem;
}

.letter-flourish i {
  width: 38px;
  height: 1px;
  background: rgba(199, 72, 120, 0.32);
}

.letter-sparkle {
  position: absolute;
  color: var(--pink-ribbon);
  font-size: 1.2rem;
}

.letter-sparkle-one {
  top: 23px;
  left: 27px;
}

.letter-sparkle-two {
  right: 27px;
  bottom: 23px;
}

.more-button {
  position: absolute;
  top: -22px;
  left: 50%;
  z-index: 14;
  min-width: 218px;
  padding: 10px 24px 11px;
  border: 2px solid rgba(129, 39, 70, 0.62);
  border-radius: 14px 26px 15px 24px;
  opacity: 0;
  color: var(--pink-wine);
  background:
    linear-gradient(rgba(255, 250, 243, 0.94), rgba(255, 231, 240, 0.96)),
    var(--cream);
  box-shadow:
    0 12px 25px rgba(108, 37, 66, 0.2),
    inset 0 0 0 4px rgba(255, 255, 255, 0.48);
  cursor: pointer;
  pointer-events: none;
  transform: translate(-50%, 13px) rotate(-2deg) scale(0.88);
  transition:
    translate 620ms cubic-bezier(0.22, 1, 0.36, 1),
    rotate 620ms cubic-bezier(0.22, 1, 0.36, 1),
    scale 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.more-button[hidden] {
  display: none;
}

.more-button::before,
.more-button::after {
  position: absolute;
  color: var(--pink-ribbon);
  content: "✦";
  font-size: 0.72rem;
}

.more-button::before {
  top: 9px;
  left: 12px;
}

.more-button::after {
  right: 12px;
  bottom: 9px;
  content: "♡";
}

.more-button span,
.more-button strong {
  display: block;
}

.more-button span {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.more-button strong {
  margin-top: 1px;
  font-family: var(--display);
  font-size: 1.28rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
}

.letterbox[data-more-state="visible"] .more-button {
  pointer-events: auto;
  animation: more-button-arrival 760ms cubic-bezier(0.16, 1, 0.3, 1.14) both;
}

@media (hover: hover) and (pointer: fine) {
  .more-button:hover {
    box-shadow:
      0 17px 30px rgba(108, 37, 66, 0.24),
      inset 0 0 0 4px rgba(255, 255, 255, 0.62);
    translate: 0 -4px;
    rotate: 2deg;
  }
}

.more-button:active {
  scale: 0.975;
  transition-duration: 180ms;
}

.more-button:focus-visible,
.answer-option:focus-visible {
  outline: 4px solid white;
  outline-offset: 5px;
}

.final-question {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  padding: clamp(26px, 6vw, 78px);
  opacity: 0;
  pointer-events: none;
  place-items: center;
}

.final-question[hidden] {
  display: none;
}

.final-question[data-question-state="visible"] {
  pointer-events: auto;
  animation: final-question-reveal 700ms 1250ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fireworks-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(255, 250, 243, 0.72));
  mix-blend-mode: normal;
  pointer-events: none;
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.experience[data-answer="yes"] .fireworks-layer {
  opacity: 0.94;
}

.question-card {
  position: relative;
  z-index: 3;
  width: min(760px, 92vw);
  color: var(--pink-wine);
  text-align: center;
  transform-origin: 50% 70%;
  animation: question-card-pop 760ms 1260ms cubic-bezier(0.16, 1, 0.3, 1.12) both;
}

.experience[data-answer="yes"] .question-card {
  pointer-events: none;
  animation: question-card-yank 820ms cubic-bezier(0.72, -0.12, 0.91, 0.44) both !important;
}

.question-card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(680px, 90vw);
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 250, 243, 0.92), rgba(255, 231, 240, 0.36) 58%, transparent 73%);
  content: "";
  filter: blur(4px);
  transform: translate(-50%, -50%);
}

.question-bow {
  display: block;
  margin-bottom: 10px;
  color: var(--pink-berry);
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 0.7;
}

.question-kicker {
  margin: 0 0 11px;
  font-size: clamp(0.62rem, 1.5vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.question-card h2 {
  max-width: 760px;
  margin: 0 auto clamp(28px, 5vh, 42px);
  font-family: var(--display);
  font-size: clamp(2.25rem, 6.4vw, 5.6rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.56);
}

.answer-option {
  min-width: 112px;
  padding: 13px 27px 14px;
  border: 2px solid var(--pink-wine);
  border-radius: 13px 25px 14px 23px;
  color: var(--pink-wine);
  background: rgba(255, 250, 243, 0.95);
  box-shadow: 6px 8px 0 rgba(129, 39, 70, 0.14);
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 650;
}

.yes-option {
  transition:
    color 420ms ease,
    background 420ms ease,
    box-shadow 520ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.yes-option:hover,
.experience[data-answer="yes"] .yes-option {
  color: white;
  background: var(--pink-berry);
  box-shadow: 8px 12px 0 rgba(129, 39, 70, 0.16);
  translate: 0 -4px;
}

.no-option {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 52;
  min-width: 82px;
  padding-inline: 21px;
  translate: var(--no-x, calc(50vw + 58px)) var(--no-y, calc(50vh + 92px));
  rotate: var(--no-tilt, -2deg);
  transition:
    translate 180ms cubic-bezier(0.72, 0, 1, 0.72),
    rotate 180ms cubic-bezier(0.72, 0, 1, 0.72);
  backface-visibility: hidden;
}

.celebration-message {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  width: min(1120px, 94vw);
  margin: auto;
  padding: clamp(26px, 6vw, 76px);
  opacity: 0;
  color: var(--pink-wine);
  text-align: center;
  pointer-events: none;
  transform-origin: 50% 60%;
}

.celebration-message[hidden] {
  display: none;
}

.celebration-message::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(960px, 96vw);
  height: min(480px, 58vh);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 250, 243, 0.94), rgba(255, 221, 235, 0.58) 54%, transparent 76%);
  content: "";
  filter: blur(6px);
  transform: translate(-50%, -50%);
}

.experience[data-answer="yes"] .celebration-message {
  animation: celebration-message-arrival 920ms 520ms cubic-bezier(0.16, 1, 0.3, 1.12) both;
}

.celebration-heart {
  display: block;
  margin-bottom: clamp(8px, 2vh, 16px);
  color: var(--pink-berry);
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.72;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.55);
}

.celebration-message h2 {
  max-width: 100%;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 6.2vw, 6.4rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.92;
  overflow-wrap: anywhere;
  text-shadow:
    0 4px 0 rgba(255, 255, 255, 0.62),
    0 18px 45px rgba(129, 39, 70, 0.18);
}

.celebration-message h2 span {
  display: block;
}

.celebration-lets {
  margin-bottom: 0.08em;
}

.celebration-go {
  white-space: nowrap;
}

.celebration-message p {
  max-width: 920px;
  margin: clamp(22px, 5vh, 42px) auto 0;
  font-family: "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", Tahoma, serif;
  font-size: clamp(1.15rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.8;
  text-wrap: balance;
}

.celebration-message:focus-visible {
  outline: none;
}

.experience[data-state="question-transition"] > :not(.final-question):not(audio):not(.sr-only) {
  pointer-events: none !important;
}

.experience[data-state="question-transition"] .crate-button {
  visibility: hidden;
}

.experience[data-state="question-transition"] .letterbox {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(-1deg);
}

.experience[data-state="question-transition"] .title-card {
  animation: cartoon-title-exit 880ms cubic-bezier(0.7, -0.2, 0.9, 0.45) both !important;
}

.experience[data-state="question-transition"] .center-stage {
  animation: cartoon-stage-exit 1120ms 80ms cubic-bezier(0.7, -0.1, 0.9, 0.5) both !important;
}

.experience[data-state="question-transition"] .paper-glow {
  animation: cartoon-glow-pop 760ms 330ms ease-in both !important;
}

.experience[data-state="question-transition"] .sticker-anya-full,
.experience[data-state="question-transition"] .sticker-melody-friends,
.experience[data-state="question-transition"] .sticker-kuromi-main {
  animation: cartoon-sticker-left 920ms 110ms cubic-bezier(0.68, -0.25, 0.9, 0.52) both !important;
}

.experience[data-state="question-transition"] .sticker-melody-main,
.experience[data-state="question-transition"] .sticker-anya-face,
.experience[data-state="question-transition"] .sticker-kuromi-mini {
  animation: cartoon-sticker-right 920ms 180ms cubic-bezier(0.68, -0.25, 0.9, 0.52) both !important;
}

.experience[data-state="question-transition"] .number {
  animation: cartoon-trinket-exit 720ms var(--exit-delay, 190ms) cubic-bezier(0.65, -0.2, 0.88, 0.48) both !important;
}

.experience[data-state="question-transition"] .trinkets > * {
  animation: cartoon-trinket-exit 680ms var(--exit-delay, 260ms) cubic-bezier(0.65, -0.2, 0.88, 0.48) both !important;
}

.number:nth-child(3n + 1),
.trinkets > :nth-child(3n + 1) { --exit-x: -38vw; --exit-y: -24vh; --exit-turn: -320deg; }
.number:nth-child(3n + 2),
.trinkets > :nth-child(3n + 2) { --exit-x: 42vw; --exit-y: -12vh; --exit-turn: 390deg; --exit-delay: 310ms; }
.number:nth-child(3n),
.trinkets > :nth-child(3n) { --exit-x: 18vw; --exit-y: 45vh; --exit-turn: 280deg; --exit-delay: 410ms; }

.experience[data-state="question-transition"] .audio-replay {
  animation: cartoon-button-drop 620ms ease-in both !important;
}

.experience[data-state="question-transition"] .confetti-layer {
  display: none;
}

.experience[data-state="question"] > :not(.final-question):not(audio):not(.sr-only) {
  visibility: hidden;
  pointer-events: none !important;
}

.audio-replay {
  position: absolute;
  right: 50%;
  bottom: 24px;
  z-index: 15;
  padding: 10px 16px;
  border: 1px solid var(--pink-wine);
  border-radius: 999px;
  color: var(--pink-wine);
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 8px 18px var(--shadow);
  cursor: pointer;
  transform: translateX(50%);
}

.audio-replay:hover {
  color: white;
  background: var(--pink-wine);
}

.audio-replay:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

.audio-replay[hidden] {
  display: none;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  background: var(--confetti-color);
  animation: confetti-pop 1.45s cubic-bezier(0.12, 0.73, 0.32, 1) forwards;
}

.experience[data-state="opening"] .cinematic-dim,
.experience[data-state="revealing"] .cinematic-dim {
  visibility: visible;
  animation: cinematic-dim-in-out 3200ms linear both;
}

.experience[data-state="opening"] .center-stage,
.experience[data-state="revealing"] .center-stage {
  position: fixed;
  inset: 0;
  z-index: 31;
  width: 100%;
  min-height: 100%;
  margin: 0;
  pointer-events: none;
}

.experience[data-state="opening"] .crate-button,
.experience[data-state="revealing"] .crate-button {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 0;
  perspective: 1300px;
  place-items: center;
}

.experience[data-state="opening"] .crate,
.experience[data-state="revealing"] .crate {
  top: 50%;
  left: 50%;
  width: min(720px, 92vw);
  filter: saturate(1.12) contrast(1.05) brightness(0.92);
  animation: crate-breach-sequence 2850ms cubic-bezier(0.2, 0.78, 0.24, 1) both;
}

.experience[data-state="opening"] .crate-shell,
.experience[data-state="revealing"] .crate-shell {
  animation: crate-cinematic-shake 1850ms cubic-bezier(0.2, 0.82, 0.24, 1) both;
}

.experience[data-state="opening"] .crate-aura,
.experience[data-state="revealing"] .crate-aura {
  background: radial-gradient(ellipse, rgba(255, 17, 55, 0.82) 0 16%, rgba(165, 0, 31, 0.36) 42%, transparent 72%);
  animation: crate-glow-open 2750ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.experience[data-state="opening"] .crate-seam-glow,
.experience[data-state="revealing"] .crate-seam-glow {
  animation: crate-seam-charge 2100ms 420ms cubic-bezier(0.2, 0.82, 0.24, 1) both;
}

.experience[data-state="opening"] .crate-lid-slice,
.experience[data-state="revealing"] .crate-lid-slice {
  animation: crate-lid-breach 1650ms 1050ms cubic-bezier(0.16, 0.82, 0.22, 1) both;
}

.experience[data-state="opening"] .crate-body-slice,
.experience[data-state="revealing"] .crate-body-slice {
  animation: crate-body-settle 2800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.experience[data-state="opening"] .crate-latches i,
.experience[data-state="revealing"] .crate-latches i {
  animation: crate-latch-release 620ms var(--latch-delay) cubic-bezier(0.3, 0.76, 0.26, 1) both;
}

.experience[data-state="opening"] .crate-leds i,
.experience[data-state="revealing"] .crate-leds i {
  animation: crate-led-alert 900ms 300ms ease-in-out 2 both;
}

.experience[data-state="opening"] .crate-shockwave,
.experience[data-state="revealing"] .crate-shockwave {
  animation: crate-shockwave 820ms 1450ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.experience[data-state="opening"] .crate-smoke,
.experience[data-state="revealing"] .crate-smoke {
  animation: crate-smoke-burst 1300ms 1350ms ease-out both;
}

.experience[data-state="opening"] .crate-smoke-right,
.experience[data-state="revealing"] .crate-smoke-right {
  animation-delay: 1420ms;
}

.experience[data-state="opening"] .crate-embers i,
.experience[data-state="revealing"] .crate-embers i {
  animation: crate-ember-spark 920ms var(--ember-delay) cubic-bezier(0.12, 0.74, 0.28, 1) both;
}

.experience[data-state="opening"] .crate-label,
.experience[data-state="opening"] .title-card,
.experience[data-state="revealing"] .crate-label,
.experience[data-state="revealing"] .title-card,
.experience[data-state="opened"] .crate-label,
.experience[data-state="opened"] .title-card {
  animation: fade-away 350ms ease forwards;
}

.experience[data-state="opened"] .crate-button {
  visibility: hidden;
  pointer-events: none;
}

.experience[data-state="revealing"] .letterbox,
.experience[data-state="opened"] .letterbox {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(-1deg);
  transition:
    opacity 540ms cubic-bezier(0.16, 0.84, 0.24, 1),
    transform 720ms cubic-bezier(0.16, 0.9, 0.24, 1.08);
}

.experience[data-state="revealing"] .letterbox {
  pointer-events: none;
}

.experience[data-state="opened"] .letterbox {
  pointer-events: auto;
}

.letterbox[data-letter-state="opening"] .envelope-flap,
.letterbox[data-letter-state="opened"] .envelope-flap {
  animation: envelope-flap-open 720ms cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

.letterbox[data-letter-state="opening"] .wax-seal,
.letterbox[data-letter-state="opened"] .wax-seal {
  animation: seal-break 460ms ease forwards;
}

.letterbox[data-letter-state="opening"] .birthday-letter {
  display: block;
  animation: letter-rise 920ms cubic-bezier(0.17, 0.9, 0.25, 1.08) forwards;
}

.letterbox[data-letter-state="opened"] .birthday-letter {
  z-index: 8;
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(-0.6deg);
  pointer-events: auto;
}

.letterbox[data-letter-state="opening"] .envelope-button,
.letterbox[data-letter-state="opened"] .envelope-button {
  opacity: 0.42;
  transform: translate(-50%, 25%) scale(0.76) rotate(2deg);
  pointer-events: none;
}

.letterbox[data-letter-state="opening"] .letterbox-caption,
.letterbox[data-letter-state="opened"] .letterbox-caption {
  opacity: 0;
}

.experience[data-state="opened"] .sticker {
  filter: drop-shadow(0 10px 9px rgba(93, 37, 57, 0.15)) drop-shadow(0 0 2px white) saturate(0.9);
}

.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 title-arrival {
  from { opacity: 0; transform: translate(-50%, -18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes crate-arrival {
  0% { opacity: 0; transform: translateX(-50%) translateY(-52px) scale(0.72); }
  58% { opacity: 1; transform: translateX(-50%) translateY(10px) scale(1.025, 0.97); }
  76% { transform: translateX(-50%) translateY(-5px) scale(0.992, 1.012); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes crate-idle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

@keyframes crate-glow-breathe {
  0%, 100% { opacity: 0.48; transform: scale(0.9); }
  50% { opacity: 0.78; transform: scale(1.035); }
}

@keyframes crate-label-arrival {
  from { opacity: 0; transform: skewX(-4deg) translateY(16px) scale(0.94); }
  to { opacity: 1; transform: skewX(-4deg) translateY(0) scale(1); }
}

@keyframes crate-status-blink {
  0%, 100% { opacity: 0.38; scale: 0.82; }
  50% { opacity: 1; scale: 1.12; }
}

@keyframes crate-led-pulse {
  0%, 100% { opacity: 0.68; filter: brightness(0.86); }
  50% { opacity: 1; filter: brightness(1.42); }
}

@keyframes sticker-arrival {
  from { opacity: 0; scale: 0.72; }
  to { opacity: 1; scale: 1; }
}

@keyframes sticker-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes number-drift {
  from { translate: 0 -3px; }
  to { translate: 4px 5px; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(12deg); }
}

@keyframes heart-beat {
  0%, 100% { scale: 0.9; }
  50% { scale: 1.15; }
}

@keyframes cinematic-dim-in-out {
  0% { opacity: 0; }
  11% { opacity: 0.88; }
  68% { opacity: 0.88; }
  84% { opacity: 0.58; }
  100% { opacity: 0; }
}

@keyframes reduced-crate-open {
  0%, 82% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
}

@keyframes reduced-crate-rumble {
  0%, 18%, 70%, 100% { transform: translate3d(0, 0, 0); }
  28% { transform: translate3d(-1px, 0, 0); }
  38% { transform: translate3d(2px, -1px, 0); }
  48% { transform: translate3d(-2px, 1px, 0); }
  58% { transform: translate3d(1px, 0, 0); }
}

@keyframes reduced-seam-charge {
  0% { opacity: 0; transform: translate(-50%, -50%) scaleX(0.6); }
  28% { opacity: 0.5; }
  58% { opacity: 1; transform: translate(-50%, -50%) scaleX(1); filter: blur(2px) brightness(1.8); }
  82% { opacity: 0.92; transform: translate(-50%, -55%) scale(1.04, 1.7); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1.1, 2.3); }
}

@keyframes reduced-lid-open {
  0%, 24% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0); }
  52% { transform: translate3d(0, -24px, 24px) rotateX(-8deg); filter: brightness(1.45); }
  82% { opacity: 1; transform: translate3d(6px, -76px, 55px) rotateX(-20deg); }
  100% { opacity: 0; transform: translate3d(18px, -112px, 70px) rotateX(-26deg); }
}

@keyframes reduced-body-out {
  0%, 84% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes crate-breach-sequence {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.9); }
  12% { transform: translate(-50%, -50%) scale(1.015); }
  22% { transform: translate(-50%, -50%) scale(0.99); }
  42% { transform: translate(-50%, -50%) scale(1.025); }
  72% { transform: translate(-50%, -52%) scale(1.015); }
  88% { opacity: 1; transform: translate(-50%, -53%) scale(0.99); }
  100% { opacity: 0; transform: translate(-50%, -47%) scale(0.82); }
}

@keyframes crate-cinematic-shake {
  0%, 13% { transform: translate3d(0, 0, 0) rotateZ(0) scale(1); }
  19% { transform: translate3d(-1px, 0, 0) rotateZ(-0.08deg); }
  24% { transform: translate3d(2px, -1px, 0) rotateZ(0.12deg); }
  29% { transform: translate3d(-3px, 1px, 0) rotateZ(-0.18deg); }
  34% { transform: translate3d(4px, -1px, 0) rotateZ(0.24deg); }
  39% { transform: translate3d(-6px, 2px, 0) rotateZ(-0.34deg) scale(1.006); }
  44% { transform: translate3d(8px, -2px, 0) rotateZ(0.42deg) scale(0.994, 1.008); }
  49% { transform: translate3d(-10px, 3px, 0) rotateZ(-0.5deg) scale(1.008, 0.992); }
  54% { transform: translate3d(9px, -2px, 0) rotateZ(0.46deg); }
  59% { transform: translate3d(-6px, 1px, 0) rotateZ(-0.3deg); }
  65%, 100% { transform: translate3d(0, 0, 0) rotateZ(0) scale(1); }
}

@keyframes crate-glow-open {
  0% { opacity: 0.16; transform: scale(0.72); }
  24% { opacity: 0.46; transform: scale(0.92); }
  58% { opacity: 1; transform: scale(1.16); }
  82% { opacity: 0.92; transform: scale(1.34); }
  100% { opacity: 0; transform: scale(1.62); }
}

@keyframes crate-seam-charge {
  0% { opacity: 0; transform: translate(-50%, -50%) scaleX(0.48); filter: blur(4px) brightness(0.7); }
  16% { opacity: 0.34; transform: translate(-50%, -50%) scaleX(0.68); }
  25% { opacity: 0.78; filter: blur(3px) brightness(1.25); }
  34% { opacity: 0.42; }
  44% { opacity: 0.94; transform: translate(-50%, -50%) scaleX(0.88); filter: blur(2px) brightness(1.55); }
  54% { opacity: 0.58; }
  66% { opacity: 1; transform: translate(-50%, -50%) scaleX(1); filter: blur(1px) brightness(2.1); }
  78% { opacity: 1; transform: translate(-50%, -56%) scale(1.1, 2.4); filter: blur(3px) brightness(2.7); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(1.28, 5); filter: blur(8px) brightness(1.6); }
}

@keyframes crate-lid-breach {
  0%, 18% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0) rotateZ(0) scale(1); filter: brightness(1); }
  27% { transform: translate3d(0, 7px, 0) rotateX(-2deg) scale(1.015, 0.98); filter: brightness(1.8); }
  42% { transform: translate3d(-3px, -28px, 45px) rotateX(-14deg) rotateZ(-0.8deg) scale(1.01); filter: brightness(1.35); }
  68% { opacity: 1; transform: translate3d(10px, -112px, 90px) rotateX(-32deg) rotateZ(3deg) scale(0.98); }
  86% { opacity: 1; transform: translate3d(42px, -190px, 120px) rotateX(-46deg) rotateZ(9deg) scale(0.91); }
  100% { opacity: 0; transform: translate3d(105px, -280px, 150px) rotateX(-58deg) rotateZ(18deg) scale(0.78); filter: brightness(0.72); }
}

@keyframes crate-body-settle {
  0%, 38% { opacity: 1; transform: translateY(0) scale(1); }
  46% { transform: translateY(8px) scale(1.015, 0.975); }
  58% { transform: translateY(2px) scale(0.995, 1.008); }
  76% { transform: translateY(8px) scale(0.984); }
  84% { opacity: 1; transform: translateY(11px) scale(0.97); }
  100% { opacity: 0; transform: translateY(28px) scale(0.86); }
}

@keyframes crate-latch-release {
  0% { opacity: 1; transform: rotateX(0) translateY(0); filter: brightness(1); }
  28% { transform: rotateX(-28deg) translateY(-2px); filter: brightness(1.7); }
  62% { opacity: 1; transform: rotateX(-74deg) translateY(8px); }
  100% { opacity: 0; transform: rotateX(-116deg) translateY(22px); }
}

@keyframes crate-led-alert {
  0%, 100% { opacity: 0.58; filter: brightness(0.8); }
  50% { opacity: 1; filter: brightness(2); }
}

@keyframes crate-shockwave {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.45); border-width: 1px; }
}

@keyframes crate-smoke-burst {
  0% { opacity: 0; transform: translateY(18px) scale(0.42); }
  20% { opacity: 0.74; }
  100% { opacity: 0; transform: translateY(-92px) scale(1.75); }
}

@keyframes crate-ember-spark {
  0% { opacity: 0; transform: translate(-50%, -20%) rotate(0deg) scale(0.7); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--ember-x), var(--ember-y)) rotate(320deg) scale(0.15); }
}

@keyframes fade-away {
  to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

@keyframes confetti-pop {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--confetti-x)), calc(-50% + var(--confetti-y))) rotate(var(--confetti-spin)); }
}

@keyframes envelope-flap-open {
  0% { transform: rotate(45deg) scaleY(1); opacity: 1; }
  55% { transform: translateY(-20px) rotate(45deg) scaleY(0.18); opacity: 0.85; }
  100% { transform: translateY(-34px) rotate(45deg) scaleY(-0.62); opacity: 0.42; }
}

@keyframes seal-break {
  0% { opacity: 1; transform: translate(-50%, -35%) rotate(-7deg) scale(1); }
  45% { transform: translate(-50%, -35%) rotate(8deg) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, 25%) rotate(18deg) scale(0.35); }
}

@keyframes letter-rise {
  0% { z-index: 2; opacity: 0; transform: translate(-50%, -9%) scale(0.72) rotate(1deg); }
  42% { z-index: 2; opacity: 1; transform: translate(-50%, -38%) scale(0.8) rotate(-1deg); }
  43% { z-index: 8; }
  100% { z-index: 8; opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-0.6deg); }
}

@keyframes more-button-arrival {
  0% { opacity: 0; transform: translate(-50%, 13px) rotate(-2deg) scale(0.88); }
  58% { opacity: 1; transform: translate(-50%, -5px) rotate(1.2deg) scale(1.04); }
  76% { transform: translate(-50%, 2px) rotate(-0.8deg) scale(0.985); }
  100% { opacity: 1; transform: translate(-50%, 0) rotate(-1deg) scale(1); }
}

@keyframes cartoon-title-exit {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) rotate(0) scale(1); }
  16% { transform: translateX(-50%) translateY(13px) rotate(-2deg) scale(1.04, 0.93); }
  31% { transform: translateX(-50%) translateY(-5px) rotate(2deg) scale(0.97, 1.04); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-72vh) rotate(-13deg) scale(0.72); }
}

@keyframes cartoon-stage-exit {
  0% { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; }
  12% { translate: 0 -8px; rotate: -1deg; scale: 1.04 0.94; }
  26% { translate: 0 16px; rotate: 1.5deg; scale: 0.92 1.07; }
  42% { translate: 0 9px; rotate: -2deg; scale: 1.06 0.88; }
  100% { opacity: 0; translate: 10vw 78vh; rotate: 22deg; scale: 0.46; }
}

@keyframes cartoon-sticker-left {
  0% { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; }
  14% { translate: 22px 2px; rotate: 4deg; scale: 1.05 0.95; }
  28% { translate: 3px -5px; rotate: -5deg; scale: 0.96 1.04; }
  100% { opacity: 0; translate: -62vw 18vh; rotate: -38deg; scale: 0.72; }
}

@keyframes cartoon-sticker-right {
  0% { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; }
  14% { translate: -22px 2px; rotate: -4deg; scale: 1.05 0.95; }
  28% { translate: -3px -5px; rotate: 5deg; scale: 0.96 1.04; }
  100% { opacity: 0; translate: 62vw 18vh; rotate: 38deg; scale: 0.72; }
}

@keyframes cartoon-trinket-exit {
  0% { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; }
  22% { opacity: 1; translate: 0 8px; rotate: -12deg; scale: 1.22 0.78; }
  100% { opacity: 0; translate: var(--exit-x, 34vw) var(--exit-y, -30vh); rotate: var(--exit-turn, 320deg); scale: 0.2; }
}

@keyframes cartoon-glow-pop {
  0% { opacity: 1; transform: translate(-50%, -47%) scale(1); }
  38% { opacity: 0.9; transform: translate(-50%, -47%) scale(1.18, 0.82); }
  62% { opacity: 0.72; transform: translate(-50%, -47%) scale(0.82, 1.16); }
  100% { opacity: 0; transform: translate(-50%, -47%) scale(0.02); }
}

@keyframes cartoon-button-drop {
  0% { opacity: 1; transform: translateX(50%) translateY(0) rotate(0); }
  28% { transform: translateX(50%) translateY(-12px) rotate(-4deg); }
  100% { opacity: 0; transform: translateX(50%) translateY(38vh) rotate(19deg); }
}

@keyframes final-question-reveal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes question-card-pop {
  0% { opacity: 0; transform: translateY(28px) rotate(-2deg) scale(0.72); }
  62% { opacity: 1; transform: translateY(-6px) rotate(0.8deg) scale(1.035); }
  78% { transform: translateY(3px) rotate(-0.35deg) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes question-card-yank {
  0% { opacity: 1; transform: translateX(0) translateY(0) rotate(0) skewX(0) scale(1); }
  12% { transform: translateX(-25px) translateY(2px) rotate(-2deg) skewX(-4deg) scale(1.04, 0.96); }
  24% { transform: translateX(18px) translateY(-3px) rotate(1deg) skewX(5deg) scale(0.96, 1.04); }
  38% { opacity: 1; transform: translateX(-8px) translateY(0) rotate(-1deg) skewX(-8deg) scale(1.1, 0.9); }
  100% { opacity: 0; transform: translateX(118vw) translateY(-16vh) rotate(17deg) skewX(-16deg) scale(0.62, 0.82); }
}

@keyframes celebration-message-arrival {
  0% { opacity: 0; transform: translateY(36px) rotate(-2deg) scale(0.68); }
  52% { opacity: 1; transform: translateY(-8px) rotate(0.7deg) scale(1.045); }
  72% { transform: translateY(4px) rotate(-0.35deg) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@media (max-width: 760px) {
  .experience::before {
    inset: 8px;
    border-radius: 20px;
  }

  .title-card {
    top: 34px;
  }

  .center-stage {
    width: 94vw;
    min-height: 430px;
    margin-top: 92px;
  }

  .crate-button {
    width: 100%;
    min-height: 410px;
  }

  .crate {
    top: 58px;
    width: min(430px, 100vw);
  }

  .crate-label {
    bottom: 0;
    min-height: 70px;
  }

  .sticker-anya-full {
    bottom: -54px;
    left: -17px;
    height: 280px;
  }

  .sticker-melody-main {
    right: -16px;
    bottom: 40px;
    width: 136px;
  }

  .sticker-melody-friends {
    top: 36%;
    left: -30px;
    width: 112px;
    opacity: 0.86;
  }

  .sticker-anya-face {
    top: 25%;
    right: -20px;
    width: 100px;
    opacity: 0.82;
  }

  .sticker-kuromi-main {
    top: 18%;
    left: -14px;
    width: 94px;
    opacity: 0.9;
  }

  .sticker-kuromi-mini,
  .n11,
  .n12,
  .bow-three {
    display: none;
  }

  .bow-one { top: 19%; left: 3%; transform: rotate(-12deg) scale(0.78); }
  .bow-two { top: 15%; right: 3%; transform: rotate(15deg) scale(0.7); }
  .letterbox {
    width: min(360px, 92vw);
    height: min(570px, 70vh);
  }

  .envelope-button {
    min-height: 350px;
  }

  .letterbox-caption { bottom: 16px; }

  .birthday-letter {
    width: min(344px, 88vw);
    min-height: 535px;
    padding: 38px 28px 40px;
  }

  .birthday-letter blockquote p {
    font-size: clamp(1.48rem, 7vw, 1.8rem);
  }

  .celebration-message {
    padding-inline: 14px;
  }

  .celebration-message h2 {
    font-size: clamp(1.4rem, 5.75vw, 2.6rem);
    overflow-wrap: normal;
  }

  .celebration-lets {
    font-size: 1.32em;
  }
}

@media (max-height: 710px) {
  .title-card {
    top: 22px;
  }

  .title-card h1 {
    font-size: clamp(3.5rem, 10vh, 5.2rem);
  }

  .birthday-line {
    margin-top: 6px;
  }

  .center-stage {
    min-height: 360px;
    margin-top: 94px;
    scale: 0.9;
  }

  .crate-button {
    min-height: 370px;
  }

  .crate {
    top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .experience[data-state="closed"] .crate,
  .experience[data-state="closed"] .crate-aura,
  .experience[data-state="closed"] .crate-leds i,
  .experience[data-state="closed"] .crate-label-status i,
  .sticker,
  .number,
  .sparkle,
  .heart {
    animation: none !important;
  }

  .confetti-layer {
    display: none;
  }

  .experience[data-state="opening"] .crate,
  .experience[data-state="revealing"] .crate {
    animation: reduced-crate-open 3200ms ease both !important;
  }

  .experience[data-state="opening"] .crate-lid-slice,
  .experience[data-state="revealing"] .crate-lid-slice {
    animation: reduced-lid-open 1650ms 1050ms ease-out both !important;
  }

  .experience[data-state="opening"] .crate-body-slice,
  .experience[data-state="revealing"] .crate-body-slice {
    animation: reduced-body-out 2800ms ease both !important;
  }

  .experience[data-state="opening"] .crate-shell,
  .experience[data-state="revealing"] .crate-shell {
    animation: reduced-crate-rumble 1850ms ease both !important;
  }

  .experience[data-state="opening"] .crate-latches i,
  .experience[data-state="revealing"] .crate-latches i {
    animation: crate-latch-release 620ms var(--latch-delay) ease-out both !important;
  }

  .experience[data-state="opening"] .crate-seam-glow,
  .experience[data-state="revealing"] .crate-seam-glow {
    animation: reduced-seam-charge 2100ms 420ms ease both !important;
  }

  .experience[data-state="opening"] .crate-shockwave,
  .experience[data-state="revealing"] .crate-shockwave,
  .experience[data-state="opening"] .crate-smoke,
  .experience[data-state="revealing"] .crate-smoke,
  .experience[data-state="opening"] .crate-embers i,
  .experience[data-state="revealing"] .crate-embers i {
    animation: none !important;
  }
}
