:root {
  color-scheme: light;
  --berry: #713149;
  --berry-deep: #4f2034;
  --hot-pink: #dd3f7c;
  --rose: #f489b3;
  --blush: #ffd3e2;
  --powder: #fff0f7;
  --milk: #fffafd;
  --cream: #fff7e9;
  --olive: #8e9d66;
  --ink: #522b3a;
  --border: #9a3f61;
  --shadow: 0 22px 60px rgba(113, 49, 73, 0.2);
  --display: "Cooper Black", "Arial Rounded MT Bold", ui-rounded, sans-serif;
  --body: "Trebuchet MS", ui-rounded, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(221, 63, 124, 0.07) 47px 49px),
    #ffdbe7;
  font-family: var(--body);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.floating-garden {
  position: fixed;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  pointer-events: none;
}

.floating-piece {
  position: absolute;
  display: block;
  width: var(--piece-size, 24px);
  aspect-ratio: 1;
  color: var(--piece-color, #da5b8e);
  background: currentColor;
  opacity: 0.42;
  -webkit-mask: var(--piece-icon) center / contain no-repeat;
  mask: var(--piece-icon) center / contain no-repeat;
  will-change: transform;
}

.floating-piece--flower {
  --piece-icon: url("assets/icons/flower-2.svg");
}

.floating-piece--ribbon {
  --piece-icon: url("assets/icons/ribbon.svg");
  --piece-size: 42px;
  --piece-color: #c92f70;
  top: 13%;
  right: 3.5%;
  transform: rotate(9deg);
}

.floating-piece--cake {
  --piece-icon: url("assets/icons/cake.svg");
  --piece-size: 44px;
  --piece-color: #b9517a;
  bottom: 8%;
  left: 3%;
  transform: rotate(-8deg);
  animation-delay: -1.8s !important;
}

.floating-piece--cherry {
  --piece-icon: url("assets/icons/cherry.svg");
  --piece-size: 38px;
  --piece-color: #d94676;
  right: 4.5%;
  bottom: 25%;
  transform: rotate(11deg);
  animation-delay: -3.4s !important;
}

.floating-piece--sparkles {
  --piece-icon: url("assets/icons/sparkles.svg");
  --piece-size: 32px;
  --piece-color: #c78225;
  top: 7%;
  left: 46%;
  animation-delay: -0.9s !important;
}

.floating-piece--charm {
  animation: charm-bob 5.2s ease-in-out infinite alternate;
}

.floating-piece--fall {
  top: -12vh;
  left: var(--piece-left);
  animation: blossom-fall var(--fall-speed) linear infinite;
  animation-delay: var(--fall-delay);
}

.falling-bloom--one {
  --piece-left: 7%;
  --piece-size: 26px;
  --piece-color: #da5b8e;
  --fall-speed: 15s;
  --fall-delay: -2s;
  --fall-drift: 70px;
}

.falling-bloom--two {
  --piece-left: 25%;
  --piece-size: 19px;
  --piece-color: #ef8eb6;
  --fall-speed: 18s;
  --fall-delay: -12s;
  --fall-drift: -42px;
}

.falling-bloom--three {
  --piece-left: 61%;
  --piece-size: 23px;
  --piece-color: #c83f78;
  --fall-speed: 16s;
  --fall-delay: -7s;
  --fall-drift: 58px;
}

.falling-bloom--four {
  --piece-left: 88%;
  --piece-size: 29px;
  --piece-color: #f29fbd;
  --fall-speed: 20s;
  --fall-delay: -15s;
  --fall-drift: -64px;
}

.scene-magic {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-magic__melody {
  position: absolute;
  width: clamp(78px, 8.5vw, 124px);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 10px 12px rgba(126, 39, 75, 0.2));
  image-rendering: pixelated;
  will-change: transform;
  animation: melody-drift 5.8s ease-in-out infinite alternate;
}

.scene-magic__melody--journey-a {
  top: 3.5%;
  right: 0.4%;
  --float-rotate: 3deg;
}

.scene-magic__melody--journey-b {
  top: 41%;
  left: 0.2%;
  --float-rotate: -4deg;
  animation-delay: -2.1s;
}

.scene-magic__melody--journey-c {
  right: 1.2%;
  bottom: 4%;
  --float-rotate: 5deg;
  animation-delay: -3.7s;
}

.scene-magic__melody--qualities-a {
  top: 2%;
  right: 0.2%;
  --float-rotate: 3deg;
}

.scene-magic__melody--qualities-b {
  top: 27%;
  left: 0.2%;
  --float-rotate: -5deg;
  animation-delay: -1.8s;
}

.scene-magic__melody--qualities-c {
  top: 56%;
  right: 0.1%;
  --float-rotate: 4deg;
  animation-delay: -3.2s;
}

.scene-magic__melody--qualities-d {
  bottom: 8%;
  left: 0.3%;
  --float-rotate: -3deg;
  animation-delay: -4.4s;
}

.scene-magic__twinkle {
  position: absolute;
  width: var(--twinkle-size, 28px);
  aspect-ratio: 1;
  background: url("assets/icons/sparkles.svg") center / contain no-repeat;
  opacity: 0;
  filter: sepia(0.3) saturate(1.5) drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
  animation: glitter-wake 4.8s ease-in-out infinite;
}

.scene-magic__twinkle:nth-of-type(1) { top: 7%; left: 12%; --twinkle-size: 24px; animation-delay: -0.4s; }
.scene-magic__twinkle:nth-of-type(2) { top: 18%; right: 17%; --twinkle-size: 38px; animation-delay: -2.2s; }
.scene-magic__twinkle:nth-of-type(3) { top: 34%; left: 7%; --twinkle-size: 30px; animation-delay: -3.4s; }
.scene-magic__twinkle:nth-of-type(4) { top: 47%; right: 8%; --twinkle-size: 22px; animation-delay: -1.1s; }
.scene-magic__twinkle:nth-of-type(5) { top: 61%; left: 16%; --twinkle-size: 34px; animation-delay: -2.7s; }
.scene-magic__twinkle:nth-of-type(6) { top: 72%; right: 20%; --twinkle-size: 27px; animation-delay: -4s; }
.scene-magic__twinkle:nth-of-type(7) { top: 84%; left: 6%; --twinkle-size: 20px; animation-delay: -1.6s; }
.scene-magic__twinkle:nth-of-type(8) { top: 93%; right: 9%; --twinkle-size: 36px; animation-delay: -3s; }

.melody-parade {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(620px, 92%);
  min-height: 128px;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 2.8vw, 1.6rem);
  margin: clamp(1.8rem, 4vw, 3.5rem) auto;
  overflow: hidden;
  border: 2px dashed rgba(174, 63, 106, 0.46);
  border-radius: 34px 70px 34px 70px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.88), rgba(255, 213, 231, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(232, 82, 137, 0.08) 24px 27px);
  box-shadow: 0 14px 34px rgba(122, 40, 72, 0.13);
}

.melody-parade::before {
  position: absolute;
  top: -55%;
  left: -28%;
  width: 26%;
  height: 210%;
  content: "";
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  animation: parade-shimmer 5s ease-in-out infinite;
}

.melody-parade img {
  position: relative;
  z-index: 1;
  width: clamp(82px, 12vw, 116px);
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(139, 46, 82, 0.18));
  image-rendering: pixelated;
  animation: melody-bounce 3.6s ease-in-out infinite alternate;
}

.melody-parade img:last-child {
  animation-delay: -1.8s;
}

.melody-parade__sparkle {
  width: clamp(20px, 4vw, 34px);
  aspect-ratio: 1;
  background: url("assets/icons/sparkles.svg") center / contain no-repeat;
  filter: sepia(0.25) saturate(1.8);
  animation: parade-sparkle 2.3s ease-in-out infinite;
}

.melody-parade__sparkle:nth-of-type(2) {
  animation-delay: -0.8s;
}

.melody-parade__sparkle:nth-of-type(3) {
  animation-delay: -1.6s;
}

.melody-parade--qualities {
  margin-top: clamp(2.2rem, 5vw, 4.2rem);
  margin-bottom: 0;
  transform: rotate(-0.5deg);
}

.scene {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.scene[hidden] {
  display: none;
}

.scene.is-entering {
  animation: scene-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--hot-pink);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scene--welcome {
  display: grid;
  place-items: center;
  padding: clamp(1.1rem, 3vw, 3rem);
  background:
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.95) 0 9%, transparent 9.4%),
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.72) 0 12%, transparent 12.4%),
    linear-gradient(135deg, #ffeaf2 0%, #ffc2d8 55%, #f9a8c6 100%);
}

.scene--welcome::before,
.scene--welcome::after {
  position: absolute;
  content: "";
  width: 34vw;
  height: 34vw;
  max-width: 460px;
  max-height: 460px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 46% 54% 62% 38%;
  transform: rotate(25deg);
}

.scene--welcome::before {
  top: -19vw;
  left: -11vw;
}

.scene--welcome::after {
  right: -12vw;
  bottom: -21vw;
  transform: rotate(-35deg);
}

.ribbon--top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
  border-bottom: 2px solid rgba(160, 57, 94, 0.3);
  background:
    linear-gradient(90deg, transparent 50%, rgba(195, 77, 118, 0.15) 50%),
    linear-gradient(rgba(195, 77, 118, 0.15) 50%, transparent 50%),
    #ffeef5;
  background-size: 32px 32px;
}

.welcome-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  width: min(1120px, 100%);
  min-height: min(720px, calc(100svh - 4rem));
  overflow: hidden;
  border: 2px solid rgba(113, 49, 73, 0.48);
  border-radius: 34px;
  background: rgba(255, 250, 253, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.art-panel {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-right: 2px solid rgba(113, 49, 73, 0.3);
  background: #c9ebff;
}

.art-panel__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transform: scale(1.04);
}

.art-panel::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  content: "";
  background: linear-gradient(transparent, rgba(91, 49, 66, 0.42));
}

.art-panel__label {
  position: absolute;
  z-index: 1;
  right: 1.2rem;
  bottom: 1.15rem;
  left: 1.2rem;
  color: white;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow: 0 2px 10px rgba(68, 30, 48, 0.45);
}

.welcome-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5.5rem);
}

.welcome-card h1,
.lock-card h2,
.journey-masthead h2 {
  margin: 0;
  color: var(--berry-deep);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.welcome-card h1 {
  max-width: 13ch;
  font-size: clamp(2.45rem, 5.7vw, 5.6rem);
}

.welcome-card__lead {
  max-width: 52ch;
  margin: 1.5rem 0 1.2rem;
  color: #6f4051;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.chase-zone {
  position: relative;
  height: 150px;
  margin-top: 0.6rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 0;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  position: absolute;
  top: 16px;
  left: 0;
  min-height: 58px;
  padding: 0.9rem 1.35rem;
  border: 2px solid #82334f;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--hot-pink), #b92d66);
  box-shadow: 0 8px 0 #7f294d, 0 16px 28px rgba(145, 45, 82, 0.22);
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 180ms ease;
}

.primary-button:hover {
  box-shadow: 0 6px 0 #7f294d, 0 12px 25px rgba(145, 45, 82, 0.26);
}

.primary-button:active {
  box-shadow: 0 2px 0 #7f294d;
}

.primary-button img,
.secondary-button img,
.keypad img,
.next-chapter img {
  width: 21px;
  height: 21px;
  filter: brightness(0) invert(1);
}

.banter {
  min-height: 1.5rem;
  margin: 0.25rem 0 0;
  color: #9c3a5f;
  font-family: Georgia, serif;
  font-size: 0.98rem;
  font-style: italic;
}

.tiny-signature {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.3rem;
  color: #9f7182;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tiny-signature__line {
  flex: 1;
  height: 1px;
  background: #efabc4;
}

.bakery-sticker {
  position: absolute;
  z-index: 3;
  right: -45px;
  bottom: -40px;
  width: clamp(150px, 19vw, 260px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid white;
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(84, 34, 53, 0.22);
  transform: rotate(-6deg);
}

.scene--lock {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: #fac0d1;
}

.lock-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58) 50%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.58) 50%, transparent 50%);
  background-size: 96px 96px;
}

.lock-card {
  position: relative;
  z-index: 1;
  width: min(490px, 100%);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 3px solid var(--berry-deep);
  border-radius: 34px;
  background: rgba(255, 248, 251, 0.96);
  box-shadow: 12px 14px 0 rgba(117, 43, 70, 0.18), var(--shadow);
  text-align: center;
}

.lock-card__art {
  height: 74px;
  margin: -1rem -1rem 1.5rem;
  overflow: hidden;
  border: 2px solid #ea759f;
  border-radius: 20px;
}

.lock-card__art img,
.lock-card__art video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lock-card h2 {
  font-size: clamp(2rem, 7vw, 3.5rem);
}

.lock-card__hint {
  margin: 0.9rem 0 1.4rem;
  color: #805063;
  line-height: 1.55;
}

.code-display {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
  margin: 0 auto 1.5rem;
}

.code-display span {
  display: grid;
  aspect-ratio: 0.86;
  place-items: center;
  border: 2px solid #753149;
  border-radius: 12px;
  background: white;
  color: var(--hot-pink);
  font-family: var(--display);
  font-size: 1.35rem;
  box-shadow: inset 0 -5px 0 #ffe1eb;
}

.code-display span.is-filled::after {
  content: "♥";
  font-family: Georgia, serif;
}

.code-display.is-wrong {
  animation: shake 420ms ease;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.keypad button {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 2px solid #753149;
  border-radius: 14px;
  color: white;
  background: #d95b88;
  font-size: 1.08rem;
  font-weight: 900;
  box-shadow: 0 5px 0 #9e3d60;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.keypad button:hover:not(:disabled) {
  background: #e66f99;
  transform: translateY(-1px);
}

.keypad button:active:not(:disabled) {
  box-shadow: 0 1px 0 #9e3d60;
  transform: translateY(4px);
}

.keypad button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.keypad__delete {
  background: #a7657b !important;
}

.keypad__unlock:not(:disabled) {
  background: #74834e;
  box-shadow: 0 5px 0 #536033;
}

.lock-message {
  min-height: 1.4rem;
  margin: 1.25rem 0 -0.25rem;
  color: #9c3a5f;
  font-family: Georgia, serif;
  font-style: italic;
}

.scene--journey {
  padding: clamp(1.2rem, 4vw, 4rem);
  background:
    linear-gradient(rgba(255, 248, 251, 0.88), rgba(255, 248, 251, 0.94)),
    url("assets/my-melody-spring.png") center / cover fixed;
}

.scene--journey::before {
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(170, 57, 99, 0.35);
  border-radius: 30px;
  content: "";
  pointer-events: none;
}

.journey-masthead,
.journey-layout,
.memory-chapter,
.journey-footer {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.journey-masthead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.8rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.journey-masthead h2 {
  max-width: 15ch;
  font-size: clamp(2.3rem, 5.5vw, 5rem);
}

.date-stamp {
  padding: 0.65rem 0.9rem;
  border: 1px solid #b95679;
  border-radius: 999px;
  color: #8f3659;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.journey-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.story-card {
  position: relative;
  padding: clamp(1.6rem, 4vw, 3rem);
  overflow: hidden;
  border: 2px solid rgba(113, 49, 73, 0.56);
  border-radius: 28px 28px 70px 28px;
  background: rgba(255, 250, 253, 0.94);
  box-shadow: var(--shadow);
}

.story-card__number {
  position: absolute;
  top: -0.35rem;
  right: 1rem;
  color: rgba(221, 63, 124, 0.1);
  font-family: var(--display);
  font-size: 8rem;
  line-height: 1;
}

.story-card__kicker {
  position: relative;
  margin: 0 0 0.65rem;
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-card h3 {
  position: relative;
  margin: 0 0 1.2rem;
  color: var(--berry-deep);
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.story-card p {
  position: relative;
  font-size: 1.03rem;
  line-height: 1.75;
}

.story-card blockquote {
  position: relative;
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 5px solid var(--hot-pink);
  border-radius: 0 14px 14px 0;
  color: #963c61;
  background: #ffe6ef;
  font-family: Georgia, serif;
  font-size: 1.06rem;
  font-style: italic;
  line-height: 1.6;
}

.farewell-card {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 1.4rem;
  overflow: hidden;
  border: 2px solid rgba(113, 49, 73, 0.5);
  border-radius: 28px;
  background: #fffafd;
  box-shadow: var(--shadow);
  transform: rotate(1.1deg);
}

.farewell-card__tape {
  position: absolute;
  z-index: 2;
  top: 0.35rem;
  left: 50%;
  width: 96px;
  height: 26px;
  background: rgba(255, 205, 223, 0.82);
  transform: translateX(-50%) rotate(-2deg);
}

.phone-video {
  position: relative;
  aspect-ratio: 464 / 832;
  overflow: hidden;
  border: 4px solid var(--berry-deep);
  border-radius: 24px;
  background: #1f1117;
}

.phone-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.farewell-card figcaption,
.photo-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.farewell-card figcaption {
  padding: 1rem 0.35rem 0;
  color: var(--berry-deep);
}

.farewell-card figcaption span,
.photo-card figcaption span {
  font-weight: 900;
}

.farewell-card figcaption small,
.photo-card figcaption small {
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.45;
}

.memory-chapter {
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.memory-chapter__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.35rem;
}

.memory-chapter__header h3 {
  margin: 0;
  color: var(--berry-deep);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.025em;
}

.memory-chapter__header > p {
  max-width: 24ch;
  margin: 0 0 0.35rem;
  color: #8d5268;
  font-family: Georgia, serif;
  font-style: italic;
  text-align: right;
}

.memory-gallery {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.82fr;
  grid-template-rows: repeat(2, minmax(250px, 330px));
  gap: clamp(0.8rem, 2vw, 1.25rem);
}

.photo-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 8px solid #fffafd;
  border-radius: 24px;
  background: #f4c7d7;
  box-shadow: 0 14px 35px rgba(102, 43, 65, 0.16);
}

.photo-card::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(46, 18, 29, 0.88));
  pointer-events: none;
}

.photo-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.photo-card:hover > img {
  transform: scale(1.035);
}

.photo-card figcaption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.2rem;
  color: white;
}

.photo-card--ramen {
  grid-row: 1 / span 2;
  transform: rotate(-0.6deg);
}

.photo-card--karaoke {
  grid-column: 2;
  grid-row: 1;
  transform: rotate(0.5deg);
}

.photo-card--detail {
  grid-column: 3;
  grid-row: 1;
  transform: rotate(-0.8deg);
}

.photo-card--bread {
  grid-column: 2 / span 2;
  grid-row: 2;
  transform: rotate(0.35deg);
}

.photo-card--karaoke img {
  object-position: center 42%;
}

.photo-card--bread img {
  object-position: center 63%;
}

.journey-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-bottom: 0.8rem;
}

.secondary-button {
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 1px solid #88415d;
  border-radius: 14px;
  color: #73344d;
  background: rgba(255, 255, 255, 0.82);
}

.secondary-button img {
  filter: invert(31%) sepia(25%) saturate(1499%) hue-rotate(287deg) brightness(83%);
}

.next-chapter {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #8e5067;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.next-chapter button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #db769b;
  opacity: 0.55;
}

.next-chapter button:not(:disabled) {
  opacity: 1;
  cursor: pointer;
  box-shadow: 0 5px 0 #9f4267;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.next-chapter button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #9f4267;
}

.next-chapter button:not(:disabled):active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #9f4267;
}

.scene--qualities {
  padding: clamp(1.2rem, 4vw, 4rem);
  background:
    linear-gradient(rgba(255, 244, 250, 0.9), rgba(255, 230, 241, 0.95)),
    repeating-linear-gradient(90deg, #f391b6 0 54px, #ffc5da 54px 108px);
}

.scene--qualities::before {
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(152, 48, 87, 0.35);
  border-radius: 34px;
  content: "";
  pointer-events: none;
}

.qualities-page {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.qualities-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.45fr);
  align-items: end;
  gap: clamp(1.2rem, 4vw, 3rem);
  margin: 0.8rem 0 clamp(1.5rem, 4vw, 3rem);
}

.qualities-masthead h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--berry-deep);
  font-family: var(--display);
  font-size: clamp(2.45rem, 5.4vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.qualities-masthead__copy > p {
  max-width: 64ch;
  margin: 1.4rem 0 0;
  color: #6f4051;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
}

.qualities-masthead__sticker {
  overflow: hidden;
  border: 8px solid #fffafd;
  border-radius: 28px;
  background: #ffc6db;
  box-shadow: 0 16px 40px rgba(92, 35, 57, 0.2);
  transform: rotate(2deg);
}

.qualities-masthead__sticker video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.qualities-masthead__sticker span {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--berry-deep);
  background: #fffafd;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}

.qualities-gallery {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.25fr);
  grid-template-rows: repeat(2, minmax(220px, 300px));
  gap: clamp(0.8rem, 2vw, 1.25rem);
}

.qualities-photo,
.style-photo-pair figure,
.soft-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 8px solid #fffafd;
  border-radius: 26px;
  background: #e982aa;
  box-shadow: 0 15px 38px rgba(92, 35, 57, 0.2);
}

.qualities-photo::after,
.style-photo-pair figure::after,
.soft-photo::after {
  position: absolute;
  inset: 50% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(49, 17, 30, 0.78));
  pointer-events: none;
}

.qualities-photo img,
.style-photo-pair img,
.soft-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

.qualities-photo:hover img,
.style-photo-pair figure:hover img,
.soft-photo:hover img {
  transform: scale(1.035);
}

.qualities-photo figcaption,
.style-photo-pair figcaption,
.soft-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.1rem;
  color: white;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  text-shadow: 0 2px 8px rgba(55, 20, 34, 0.42);
}

.qualities-photo--formal {
  grid-row: 1 / span 2;
  transform: rotate(-0.7deg);
}

.qualities-photo--helmet {
  grid-column: 2;
  grid-row: 1;
  transform: rotate(0.55deg);
}

.qualities-photo--pink {
  grid-column: 2;
  grid-row: 2;
  transform: rotate(-0.35deg);
}

.qualities-photo--formal img {
  object-position: center 30%;
}

.qualities-photo--pink img {
  object-position: center 62%;
}

.contradiction-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: clamp(1.5rem, 4vw, 2.8rem) 0;
}

.contradiction-strip span {
  padding: 0.75rem 1rem;
  border: 1px solid #a7476a;
  border-radius: 999px;
  color: #78364f;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 5px 0 rgba(156, 57, 94, 0.14);
}

.confession-group {
  margin-top: clamp(2.8rem, 7vw, 5.5rem);
}

.confession-group__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.confession-group__header h3,
.style-feature__copy h3,
.soft-side__copy h3 {
  margin: 0;
  color: var(--berry-deep);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.confession-group__header > span {
  color: rgba(132, 48, 79, 0.35);
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  white-space: nowrap;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.quality-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quality-note {
  position: relative;
  min-height: 190px;
  padding: 1.2rem 1.2rem 3.6rem;
  overflow: hidden;
  border: 2px dashed #ad4c71;
  border-radius: 22px 22px 40px 22px;
  color: var(--berry-deep);
  background: rgba(255, 250, 253, 0.94);
  box-shadow: 0 11px 0 rgba(159, 59, 96, 0.12), 0 18px 35px rgba(102, 43, 65, 0.1);
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.quality-note:nth-child(3n + 2) {
  background: #fff2c9;
  transform: rotate(0.5deg);
}

.quality-note:nth-child(3n) {
  background: #f1ecff;
  transform: rotate(-0.45deg);
}

.quality-note:hover,
.quality-note:focus-visible {
  z-index: 1;
  transform: translateY(-4px) rotate(0);
  box-shadow: 0 15px 0 rgba(159, 59, 96, 0.13), 0 24px 40px rgba(102, 43, 65, 0.15);
  outline: none;
}

.quality-note.is-open {
  background: #ffd4e4;
  transform: translateY(-3px) rotate(0);
}

.quality-note--heart {
  color: white;
  border-style: solid;
  border-color: #7b294b;
  background: linear-gradient(145deg, #d83d78, #a92b60) !important;
}

.quality-note--meltdown {
  grid-column: span 2;
  color: white;
  border-style: solid;
  border-color: #8f2852;
  background: linear-gradient(135deg, #ff4f98, #bd2f6d) !important;
  box-shadow: 0 14px 0 rgba(159, 59, 96, 0.2), 0 24px 42px rgba(102, 43, 65, 0.2);
}

.quality-note--meltdown .quality-note__number {
  color: #ffe2ee;
}

.quality-note--meltdown strong {
  max-width: 15ch;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.04;
}

.quality-note__number {
  display: block;
  margin-bottom: 1.2rem;
  color: #be4c79;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.quality-note--heart .quality-note__number {
  color: #ffd5e4;
}

.quality-note strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.3;
}

.quality-note__body {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  transition: max-height 380ms ease, opacity 250ms ease, margin 250ms ease;
}

.quality-note.is-open .quality-note__body {
  max-height: 12rem;
  margin-top: 0.85rem;
  opacity: 1;
}

.quality-note__toggle {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 250ms ease;
}

.quality-note.is-open .quality-note__toggle {
  transform: rotate(45deg);
}

.style-feature {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding: clamp(1.2rem, 3vw, 2.3rem);
  border: 2px solid rgba(117, 43, 70, 0.55);
  border-radius: 36px;
  background: rgba(255, 250, 253, 0.84);
  box-shadow: var(--shadow);
}

.skating-card {
  position: relative;
  margin: 0;
  padding: 0.85rem;
  border-radius: 28px;
  background: #fffafd;
  box-shadow: 0 16px 34px rgba(80, 29, 49, 0.18);
  transform: rotate(-1deg);
}

.skating-card__tape {
  position: absolute;
  z-index: 2;
  top: 0.15rem;
  left: 50%;
  width: 96px;
  height: 25px;
  background: rgba(255, 192, 215, 0.86);
  transform: translateX(-50%) rotate(2deg);
}

.skating-card video {
  display: block;
  width: 100%;
  aspect-ratio: 464 / 832;
  border: 3px solid var(--berry-deep);
  border-radius: 22px;
  background: #201018;
  object-fit: cover;
}

.skating-card figcaption {
  padding: 0.9rem 0.45rem 0.2rem;
  color: #7d3d56;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.style-feature__copy > p:not(.story-card__kicker),
.soft-side__copy > p:not(.story-card__kicker) {
  color: #744559;
  font-size: 1.02rem;
  line-height: 1.7;
}

.style-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.style-photo-pair figure {
  height: 300px;
  border-width: 6px;
}

.style-photo-pair figure:first-child img {
  object-position: center 78%;
}

.style-photo-pair figure:last-child img {
  object-position: center 32%;
}

.soft-side {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}

.soft-side__copy {
  padding: 1rem clamp(0rem, 2vw, 1.4rem) 1rem 0;
}

.soft-photo {
  height: 430px;
}

.soft-photo--snack {
  transform: rotate(-0.6deg);
}

.soft-photo--teddy {
  transform: rotate(0.7deg);
}

.soft-photo--snack img {
  object-position: center 35%;
}

.soft-photo--teddy img {
  object-position: center 42%;
}

.lovebomb-note {
  position: relative;
  margin: clamp(3rem, 8vw, 6rem) auto 0;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  border: 3px solid #742d4b;
  border-radius: 32px 92px 32px 92px;
  color: #542035;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.72) 0 11%, transparent 11.5%),
    linear-gradient(135deg, #ffc3da, #ffedf5);
  box-shadow: 14px 16px 0 rgba(134, 45, 80, 0.14), var(--shadow);
  text-align: center;
}

.lovebomb-note::before {
  position: absolute;
  top: -0.45em;
  left: 0.05em;
  color: rgba(197, 53, 109, 0.1);
  content: "25";
  font-family: var(--display);
  font-size: clamp(8rem, 28vw, 20rem);
  line-height: 1;
}

.lovebomb-note > * {
  position: relative;
}

.lovebomb-note__label {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border: 1px solid #9b3c61;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lovebomb-note p {
  max-width: 62ch;
  margin: 1.5rem auto;
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.55;
}

.lovebomb-note strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.qualities-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-bottom: 0.8rem;
}

.scene-magic__melody--wish-a {
  top: 1.5%;
  right: 0.2%;
  --float-rotate: 4deg;
}

.scene-magic__melody--wish-b {
  top: 32%;
  left: 0.1%;
  --float-rotate: -5deg;
  animation-delay: -2.2s;
}

.scene-magic__melody--wish-c {
  right: 0.2%;
  bottom: 8%;
  --float-rotate: 3deg;
  animation-delay: -3.8s;
}

.scene--wish {
  padding: clamp(1.2rem, 4vw, 4rem);
  background:
    linear-gradient(rgba(255, 248, 252, 0.9), rgba(255, 225, 239, 0.96)),
    repeating-linear-gradient(135deg, #ffc7dc 0 24px, #ffe4ef 24px 48px);
}

.scene--wish::before {
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(152, 48, 87, 0.35);
  border-radius: 34px;
  content: "";
  pointer-events: none;
}

.wish-page {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.wish-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3.4rem);
  margin: 0.8rem 0 clamp(2rem, 5vw, 4.8rem);
}

.wish-masthead__copy {
  padding: clamp(1rem, 3vw, 2.4rem) 0;
}

.wish-masthead__tiny {
  width: fit-content;
  margin: 0 0 1.2rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(167, 51, 95, 0.38);
  border-radius: 999px;
  color: #93415f;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

.wish-masthead h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.wish-masthead h2 span {
  color: #cf2f70;
}

.wish-masthead__copy > p:last-child {
  max-width: 46ch;
  margin: 1.4rem 0 0;
  color: #754155;
  font-family: Georgia, serif;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.wish-hero-photo {
  position: relative;
  margin: 0;
  padding: 0.8rem 0.8rem 3.5rem;
  border: 1px solid rgba(111, 45, 69, 0.45);
  border-radius: 8px;
  background: #fffdfd;
  box-shadow: 0 26px 58px rgba(103, 37, 63, 0.25);
  transform: rotate(2.2deg);
}

.wish-hero-photo::before {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 42%;
  height: 36px;
  background: rgba(250, 184, 208, 0.8);
  content: "";
  transform: translateX(-50%) rotate(-2deg);
}

.wish-hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.03);
}

.wish-hero-photo figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1.15rem;
  left: 1rem;
  color: #7d3852;
  font-family: Georgia, serif;
  font-size: 0.98rem;
  font-style: italic;
  text-align: center;
}

.birthday-letter {
  position: relative;
  width: min(880px, 94%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(117, 52, 77, 0.42);
  border-radius: 8px 8px 28px 8px;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(221, 63, 124, 0.18) 8% calc(8% + 1px), transparent calc(8% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(160, 76, 109, 0.09) 34px 35px),
    #fffdf9;
  box-shadow: 0 24px 70px rgba(106, 43, 68, 0.2);
  transform: rotate(-0.35deg);
}

.birthday-letter::before {
  position: absolute;
  top: -18px;
  left: 15%;
  width: 150px;
  height: 38px;
  background: rgba(251, 183, 208, 0.86);
  content: "";
  transform: rotate(-3deg);
}

.birthday-letter__stamp {
  position: absolute;
  top: 1.3rem;
  right: 1.5rem;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 2px dashed #c94a7a;
  border-radius: 50%;
  color: #c4346c;
  font-family: var(--display);
  font-size: 2rem;
  transform: rotate(8deg);
}

.birthday-letter p {
  margin: 0 0 1.35rem;
  font-family: Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.88;
}

.birthday-letter__hello {
  padding-right: 75px;
  color: #a22959;
  font-family: var(--display) !important;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  line-height: 1.1 !important;
}

.birthday-letter__promise {
  margin-top: 2rem !important;
  padding: 1.25rem;
  border: 2px dashed rgba(193, 47, 104, 0.44);
  border-radius: 18px;
  color: #7a2848;
  background: rgba(255, 219, 233, 0.62);
  font-weight: 700;
}

.birthday-letter__signoff {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  margin-top: 2.5rem;
  color: #743047;
}

.birthday-letter__signoff span {
  font-family: Georgia, serif;
  font-style: italic;
}

.birthday-letter__signoff strong {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1;
  transform: rotate(-4deg);
}

.birthday-letter__signoff small {
  margin-top: 1rem;
  font-weight: 800;
}

.melody-parade--wish {
  margin: clamp(2.5rem, 6vw, 5rem) auto;
}

.us-gallery-section,
.tiny-films,
.forever-note,
.wish-footer {
  position: relative;
  z-index: 1;
}

.us-gallery-section__header,
.tiny-films__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.7rem;
}

.us-gallery-section__header h3,
.tiny-films__header h3,
.forever-note h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.us-gallery-section__header > p,
.tiny-films__header > p {
  max-width: 36ch;
  margin: 0;
  color: #7d4359;
  font-family: Georgia, serif;
  line-height: 1.55;
  text-align: right;
}

.us-gallery {
  columns: 3 280px;
  column-gap: 1rem;
}

.us-photo {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.55rem 0.55rem 3.1rem;
  overflow: hidden;
  border: 1px solid rgba(104, 45, 68, 0.38);
  border-radius: 6px;
  background: #fffdfd;
  box-shadow: 0 12px 30px rgba(104, 38, 63, 0.17);
  break-inside: avoid;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.us-photo:hover {
  z-index: 2;
  box-shadow: 0 18px 38px rgba(104, 38, 63, 0.25);
  transform: translateY(-5px) rotate(0deg);
}

.us-photo--tilt-left {
  transform: rotate(-1.1deg);
}

.us-photo--tilt-right {
  transform: rotate(1deg);
}

.us-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 350ms ease;
}

.us-photo:hover img {
  transform: scale(1.025);
}

.us-photo figcaption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  overflow: hidden;
  color: #723449;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tiny-films {
  margin-top: clamp(3.5rem, 8vw, 7rem);
}

.tiny-films__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
}

.tiny-film {
  margin: 0;
  padding: 0.75rem;
  border: 2px solid rgba(113, 49, 73, 0.5);
  border-radius: 24px;
  background: rgba(255, 250, 253, 0.96);
  box-shadow: var(--shadow);
}

.tiny-film--wide {
  grid-column: 1 / -1;
  width: min(760px, 100%);
  justify-self: center;
}

.tiny-film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #2f1822;
  object-fit: cover;
}

.tiny-film--portrait {
  width: min(360px, 100%);
  justify-self: center;
}

.tiny-film--portrait video {
  aspect-ratio: 9 / 16;
}

.tiny-film figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 0.4rem 0.35rem;
}

.tiny-film figcaption strong {
  font-family: var(--display);
  font-size: 1.2rem;
}

.tiny-film figcaption span {
  color: #7d4359;
  font-size: 0.92rem;
  line-height: 1.45;
}

.forever-note {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding: clamp(2rem, 6vw, 5rem);
  border: 2px solid #8e3659;
  border-radius: 70px 24px 70px 24px;
  color: #fff9fc;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(135deg, #8f2c55, #d83d79);
  box-shadow: 0 24px 58px rgba(116, 35, 70, 0.28);
  text-align: center;
}

.forever-note .story-card__kicker {
  color: #ffd6e7;
}

.forever-note p:not(.story-card__kicker) {
  max-width: 66ch;
  margin: 1.5rem auto;
  font-family: Georgia, serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.7;
}

.forever-note strong {
  display: block;
  max-width: 28ch;
  margin: 0 auto;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  line-height: 1.12;
}

.wish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-bottom: 0.8rem;
}

.wish-footer__seal {
  display: grid;
  gap: 0.25rem;
  color: #81374f;
  text-align: right;
}

.wish-footer__seal span {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wish-footer__seal strong {
  font-family: Georgia, serif;
  font-style: italic;
}

@keyframes scene-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@keyframes blossom-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg) scale(0.88);
  }
  48% {
    transform: translate3d(var(--fall-drift), 53vh, 0) rotate(190deg) scale(1);
  }
  100% {
    transform: translate3d(0, 116vh, 0) rotate(380deg) scale(0.84);
  }
}

@keyframes charm-bob {
  from {
    translate: 0 -5px;
    rotate: -3deg;
    scale: 0.94;
  }
  to {
    translate: 0 7px;
    rotate: 4deg;
    scale: 1.05;
  }
}

@keyframes melody-drift {
  from {
    transform: translate3d(-5px, -10px, 0) rotate(calc(var(--float-rotate, 0deg) - 2deg)) scale(0.95);
  }
  to {
    transform: translate3d(8px, 12px, 0) rotate(calc(var(--float-rotate, 0deg) + 3deg)) scale(1.04);
  }
}

@keyframes glitter-wake {
  0%, 100% {
    opacity: 0;
    transform: translate3d(-6px, 12px, 0) rotate(-18deg) scale(0.45);
  }
  34% {
    opacity: 0.9;
    transform: translate3d(2px, 0, 0) rotate(24deg) scale(1.08);
  }
  68% {
    opacity: 0.38;
    transform: translate3d(9px, -18px, 0) rotate(82deg) scale(0.72);
  }
}

@keyframes melody-bounce {
  from {
    transform: translateY(7px) rotate(-2deg) scale(0.97);
  }
  to {
    transform: translateY(-8px) rotate(2deg) scale(1.04);
  }
}

@keyframes parade-sparkle {
  0%, 100% {
    opacity: 0.28;
    transform: rotate(-12deg) scale(0.72);
  }
  50% {
    opacity: 1;
    transform: rotate(28deg) scale(1.16);
  }
}

@keyframes parade-shimmer {
  0%, 16% {
    left: -30%;
    opacity: 0;
  }
  40% {
    opacity: 0.8;
  }
  72%, 100% {
    left: 112%;
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .scene-magic__melody {
    width: 84px;
    opacity: 0.82;
  }

  .scene-magic__melody--journey-a,
  .scene-magic__melody--qualities-a,
  .scene-magic__melody--qualities-c,
  .scene-magic__melody--wish-a,
  .scene-magic__melody--wish-c {
    right: -26px;
  }

  .scene-magic__melody--journey-b,
  .scene-magic__melody--qualities-b,
  .scene-magic__melody--qualities-d,
  .scene-magic__melody--wish-b {
    left: -28px;
  }

  .melody-parade {
    width: 100%;
    min-height: 116px;
    border-radius: 26px 48px 26px 48px;
  }

  .scene--welcome {
    align-items: start;
    padding: 1rem;
    padding-top: 2.4rem;
  }

  .welcome-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 26px;
  }

  .art-panel {
    min-height: 240px;
    border-right: 0;
    border-bottom: 2px solid rgba(113, 49, 73, 0.3);
  }

  .art-panel__image {
    object-position: center 43%;
  }

  .welcome-card {
    min-height: 480px;
    padding: 2rem 1.4rem 2.4rem;
  }

  .welcome-card h1 {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }

  .bakery-sticker {
    display: none;
  }

  .journey-masthead {
    align-items: start;
    flex-direction: column;
  }

  .journey-layout {
    grid-template-columns: 1fr;
  }

  .farewell-card {
    width: min(340px, 92%);
    transform: rotate(0.5deg);
  }

  .memory-chapter__header {
    align-items: start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .memory-chapter__header > p {
    max-width: none;
    text-align: left;
  }

  .memory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(260px, 350px));
  }

  .photo-card--ramen {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .photo-card--karaoke {
    grid-column: 2;
    grid-row: 1;
  }

  .photo-card--detail {
    grid-column: 2;
    grid-row: 2;
  }

  .photo-card--bread {
    grid-column: 1 / span 2;
    grid-row: 3;
  }

  .qualities-masthead {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .qualities-masthead__sticker {
    width: min(320px, 100%);
    justify-self: end;
  }

  .quality-grid,
  .quality-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-feature {
    grid-template-columns: 1fr;
  }

  .skating-card {
    width: min(360px, 92%);
    justify-self: center;
  }

  .soft-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .soft-side__copy {
    grid-column: 1 / -1;
  }

  .wish-masthead {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .wish-hero-photo {
    width: min(430px, 92%);
    justify-self: end;
  }

  .us-gallery-section__header,
  .tiny-films__header {
    align-items: start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .us-gallery-section__header > p,
  .tiny-films__header > p {
    max-width: 52ch;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .scene-magic__melody {
    width: 70px;
    opacity: 0.74;
  }

  .scene-magic__melody--journey-c,
  .scene-magic__melody--qualities-d,
  .scene-magic__melody--wish-c {
    display: none;
  }

  .scene-magic__twinkle:nth-of-type(even) {
    --twinkle-size: 22px;
  }

  .melody-parade {
    min-height: 104px;
    gap: 0.35rem;
    margin-top: 1.5rem;
    margin-bottom: 1.8rem;
  }

  .melody-parade img {
    width: 78px;
  }

  .floating-piece--ribbon,
  .floating-piece--cake,
  .falling-bloom--two {
    display: none;
  }

  .floating-piece {
    opacity: 0.34;
  }

  .scene--lock {
    align-items: start;
    padding: 1rem;
    padding-top: 1.5rem;
  }

  .lock-card {
    padding: 1.35rem;
    border-radius: 26px;
  }

  .lock-card__art {
    margin: -0.35rem -0.35rem 1.3rem;
  }

  .memory-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .photo-card--ramen,
  .photo-card--karaoke,
  .photo-card--detail,
  .photo-card--bread {
    grid-column: auto;
    grid-row: auto;
    min-height: 440px;
    transform: none;
  }

  .photo-card--bread {
    min-height: 380px;
  }

  .journey-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .scene--qualities {
    padding: 1rem;
    padding-top: 2rem;
  }

  .scene--qualities::before {
    inset: 8px;
    border-radius: 24px;
  }

  .qualities-masthead h2 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .qualities-masthead__sticker {
    width: 100%;
    transform: rotate(0.5deg);
  }

  .qualities-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .qualities-photo--formal,
  .qualities-photo--helmet,
  .qualities-photo--pink {
    grid-column: auto;
    grid-row: auto;
    transform: none;
  }

  .qualities-photo--formal {
    height: 500px;
  }

  .qualities-photo--helmet,
  .qualities-photo--pink {
    height: 260px;
  }

  .contradiction-strip {
    justify-content: flex-start;
  }

  .confession-group__header {
    align-items: start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .quality-grid,
  .quality-grid--three {
    grid-template-columns: 1fr;
  }

  .quality-note {
    min-height: 165px;
  }

  .quality-note--meltdown {
    grid-column: auto;
  }

  .style-feature {
    padding: 1rem;
    border-radius: 26px;
  }

  .style-photo-pair {
    grid-template-columns: 1fr;
  }

  .style-photo-pair figure {
    height: 390px;
  }

  .soft-side {
    grid-template-columns: 1fr;
  }

  .soft-side__copy {
    grid-column: auto;
  }

  .soft-photo {
    height: 450px;
  }

  .lovebomb-note {
    padding: 2rem 1.35rem;
    border-radius: 24px 52px 24px 52px;
  }

  .qualities-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .next-chapter {
    justify-content: space-between;
    padding: 0.8rem 0;
  }

  .scene--wish {
    padding: 1rem;
    padding-top: 2rem;
  }

  .scene--wish::before {
    inset: 8px;
    border-radius: 24px;
  }

  .wish-masthead h2 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  .wish-masthead__tiny {
    border-radius: 18px;
  }

  .wish-hero-photo {
    width: 100%;
    justify-self: stretch;
    transform: rotate(0.7deg);
  }

  .birthday-letter {
    width: 100%;
    padding: 4.8rem 1.25rem 1.75rem;
    transform: none;
  }

  .birthday-letter::before {
    left: 7%;
    width: 120px;
  }

  .birthday-letter__stamp {
    top: 0.9rem;
    right: 1rem;
    width: 58px;
    height: 58px;
    font-size: 1.6rem;
  }

  .birthday-letter__hello {
    padding-right: 0;
  }

  .birthday-letter p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .birthday-letter__promise {
    padding: 1rem;
  }

  .us-gallery {
    columns: 1;
  }

  .us-photo,
  .us-photo--tilt-left,
  .us-photo--tilt-right {
    transform: none;
  }

  .us-photo figcaption {
    white-space: normal;
  }

  .tiny-films__grid {
    grid-template-columns: 1fr;
  }

  .tiny-film,
  .tiny-film--portrait,
  .tiny-film--wide {
    grid-column: auto;
    width: 100%;
  }

  .tiny-film--portrait video {
    max-height: 72svh;
    object-fit: contain;
  }

  .forever-note {
    padding: 2rem 1.25rem;
    border-radius: 24px 52px 24px 52px;
  }

  .wish-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .wish-footer__seal {
    padding: 0.8rem 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-magic__melody,
  .scene-magic__twinkle,
  .melody-parade img,
  .melody-parade__sparkle,
  .melody-parade::before {
    animation-duration: 8s;
  }
}

