:root {
  color-scheme: light;
  --cream: #fff8f6;
  --paper: #fffdfb;
  --rose: #d98fa8;
  --rose-dark: #a95f7c;
  --rose-pale: #f7e4ea;
  --lilac: #dcd4f5;
  --lilac-dark: #8977b5;
  --peach: #f6e1d6;
  --ink: #594453;
  --muted: #927d8c;
  --line: #eee3e9;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Poppins", "Segoe UI", sans-serif;
  --script: "Dancing Script", cursive;
  --shadow: 0 24px 70px rgb(101 66 91 / 12%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  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='.8' 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: "";
  opacity: .14;
  pointer-events: none;
}
button, input { color: inherit; font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgb(169 95 124 / 48%);
  outline-offset: 4px;
}
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.sky-glow {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 9%, rgb(245 217 229 / 43%), transparent 31rem),
    radial-gradient(ellipse at 91% 72%, rgb(222 216 248 / 37%), transparent 34rem),
    var(--cream);
  pointer-events: none;
}
.particle-field, .celebration-layer { position: fixed; z-index: 25; inset: 0; overflow: hidden; pointer-events: none; }
.floating-particle, .celebration-heart {
  position: absolute;
  bottom: -30px;
  color: #d98fa8;
  opacity: 0;
  animation: float-away var(--float-time, 12s) linear forwards;
}
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow {
  margin: 0;
  color: var(--rose-dark);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 1.65;
  text-transform: uppercase;
}
.handwritten { color: var(--rose-dark); font-family: var(--script); font-size: 1.4rem; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--rose-dark); box-shadow: 0 10px 24px rgb(169 95 124 / 22%); color: white; }
.button-primary:hover { background: #954d6b; box-shadow: 0 14px 28px rgb(169 95 124 / 28%); }
.button-light { border-color: rgb(255 255 255 / 54%); background: rgb(255 255 255 / 13%); color: #fff; backdrop-filter: blur(12px); }
.button-light:hover { background: rgb(255 255 255 / 22%); }
.page { min-height: calc(100svh - 160px); padding: 42px 32px 88px; animation: page-in .56s both; }
.page-intro { max-width: 720px; margin: 35px auto 50px; text-align: center; }
.page-intro h1, .section-heading h2 {
  margin: 12px 0 14px;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.page-intro h1 em, .section-heading h2 em { color: var(--rose-dark); font-weight: 500; }
.page-intro > p:last-child { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: .9rem; line-height: 1.9; }
.page-note { margin: 56px 0 0; text-align: center; font-size: 1.65rem; }

/* Opening */
.intro-screen, .age-screen {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 34%, rgb(103 76 121 / 68%), transparent 37%),
    radial-gradient(ellipse at 16% 90%, rgb(187 119 156 / 29%), transparent 35%),
    linear-gradient(155deg, #211d36, #3c2c50 52%, #66415f);
  color: white;
  text-align: center;
  transition: opacity .8s ease, visibility .8s ease;
}
.intro-screen::before, .age-screen::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 14% 25%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 80% 17%, #fff 50%, transparent 100%),
    radial-gradient(2px 2px at 72% 77%, #f9dbe8 50%, transparent 100%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 91% 49%, #fff 50%, transparent 100%);
  background-size: 180px 180px, 220px 200px, 250px 250px, 190px 190px, 140px 160px;
  content: "";
  opacity: .8;
  pointer-events: none;
}
.intro-screen.is-gone { visibility: hidden; opacity: 0; pointer-events: none; }
.intro-screen > * { position: relative; z-index: 1; }
.intro-moon {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  background: rgb(255 255 255 / 9%);
  box-shadow: 0 0 54px rgb(238 190 222 / 25%);
  color: #f4c9d6;
  font-size: 2rem;
  animation: moon-glow 3.2s ease-in-out infinite;
}
.intro-eyebrow { color: #e8c5d6; }
.intro-screen h1 {
  margin: 19px 0 16px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.intro-screen h1 em { color: #f4c9d6; font-weight: 500; }
.intro-copy { margin: 0 0 30px; color: #e8dce9; font-size: .95rem; }
.intro-button { min-width: 220px; animation: button-pulse 2.4s ease-in-out infinite; }
.intro-footnote { margin: 38px 0 0; color: rgb(255 255 255 / 57%); font-family: var(--script); font-size: 1.18rem; }
.age-screen { z-index: 29; visibility: hidden; opacity: 0; transition: opacity .7s ease, visibility .7s ease; }
.age-screen.is-active { visibility: visible; opacity: 1; }
.age-stars { position: absolute; top: 16%; color: #f4c9d6; font-size: 1.6rem; letter-spacing: 1rem; animation: twinkle 2s infinite; }
.age-screen .eyebrow { color: #e8c5d6; }
.age-number { margin: 8px 0 -7px; color: #ffe6ef; font-family: var(--serif); font-size: clamp(11rem, 27vw, 19rem); line-height: 1; text-shadow: 0 0 36px rgb(255 219 236 / 60%); }
.age-number.is-transforming { animation: number-transform .7s ease both; }
.age-caption { min-height: 28px; margin: 4px 0; color: #f1dce9; font-family: var(--serif); font-size: clamp(1.05rem, 3vw, 1.45rem); font-style: italic; }
.age-title { margin: 14px 0 0; color: #f4c9d6; font-family: var(--script); font-size: clamp(2rem, 5vw, 3.2rem); opacity: 0; transform: translateY(12px); transition: .7s ease; }
.age-title.is-visible { opacity: 1; transform: translateY(0); }
.age-continue { margin-top: 21px; opacity: 0; transition: opacity .6s ease, background .2s ease; pointer-events: none; }
.age-continue.is-visible { opacity: 1; pointer-events: auto; }

/* Header and birthday home */
.site-shell { position: relative; z-index: 1; }
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(28px, 7vw, 110px);
  border-bottom: 1px solid rgb(238 227 233 / 75%);
  background: rgb(255 248 246 / 88%);
  backdrop-filter: blur(18px);
}
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; text-decoration: none; }
.brand-flower { color: var(--rose-dark); font-size: 1.85rem; }
.brand-name { font-family: var(--serif); font-size: 1.02rem; font-style: italic; line-height: 1.2; }
.brand-name small { display: block; margin-top: 3px; color: var(--muted); font-family: var(--sans); font-size: .56rem; font-style: normal; letter-spacing: .13em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.desktop-nav a { position: relative; padding: 8px 0; color: var(--muted); font-size: .73rem; text-decoration: none; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a.is-current { color: var(--rose-dark); }
.desktop-nav a.is-current::after { position: absolute; right: 0; bottom: 1px; left: 0; height: 1px; background: var(--rose-dark); content: ""; }
.music-pill { display: inline-flex; min-height: 40px; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--rose-dark); font-size: .7rem; white-space: nowrap; }
.music-pill:hover { border-color: var(--rose); }
.music-equalizer { display: flex; height: 14px; align-items: center; gap: 2px; }
.music-equalizer i { width: 2px; height: 4px; border-radius: 3px; background: currentColor; }
.music-pill.is-playing .music-equalizer i { animation: equalize .8s ease-in-out infinite alternate; }
.music-pill.is-playing .music-equalizer i:nth-child(2) { animation-delay: .2s; }
.music-pill.is-playing .music-equalizer i:nth-child(3) { animation-delay: .4s; }
.hero-wrap {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 80px));
  min-height: min(750px, calc(100svh - 78px));
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 5%;
  margin: 0 auto;
  padding: 54px 0 78px;
}
.hero-copy { position: relative; z-index: 2; animation: page-in .8s both; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-star { color: var(--rose); font-size: 1rem; }
.hero-copy h1 { margin: 26px 0 20px; font-family: var(--serif); font-size: clamp(3.75rem, 7vw, 6.7rem); font-weight: 500; letter-spacing: -.075em; line-height: .96; }
.hero-copy h1 em { color: var(--rose-dark); font-weight: 500; }
.hero-description { max-width: 470px; margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 29px; }
.hero-actions .handwritten { font-size: 1.25rem; }
.hero-signature { margin-top: 39px; color: #a68e9e; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-signature span { margin-right: 7px; color: var(--rose); font-size: 1rem; }
.hero-visual { position: relative; display: grid; min-height: 550px; place-items: center; animation: page-in .95s .1s both; }
.hero-halo { position: absolute; width: min(470px, 94%); aspect-ratio: 1; border: 1px solid rgb(217 143 168 / 27%); border-radius: 50%; box-shadow: 0 0 0 38px rgb(217 143 168 / 4%), 0 0 0 76px rgb(220 212 245 / 16%); }
.hero-halo::before, .hero-halo::after { position: absolute; inset: 10%; border: 1px dashed rgb(169 95 124 / 20%); border-radius: 50%; content: ""; }
.hero-halo::after { inset: -14%; border-color: rgb(169 95 124 / 12%); }
.hero-polaroid { position: relative; z-index: 1; width: min(330px, 68%); margin: 0; padding: 12px 12px 54px; transform: rotate(4deg); background: #fff; box-shadow: 0 27px 70px rgb(78 47 67 / 21%); transition: transform .4s ease; }
.hero-polaroid:hover { transform: rotate(0) translateY(-5px); }
.hero-polaroid::before { position: absolute; z-index: 2; top: -12px; left: 50%; width: 83px; height: 23px; transform: translateX(-50%) rotate(-4deg); background: rgb(242 223 214 / 85%); content: ""; }
.hero-polaroid img { display: block; width: 100%; height: 350px; object-fit: cover; background: var(--rose-pale); }
.hero-polaroid figcaption { position: absolute; right: 12px; bottom: 17px; left: 12px; color: #786575; font-family: var(--script); font-size: 1.48rem; text-align: center; }
.hero-polaroid figcaption span { color: var(--rose-dark); }
.hero-flower, .hero-sparkle { position: absolute; z-index: 2; color: var(--rose-dark); animation: gentle-float 5s ease-in-out infinite; }
.flower-one { top: 11%; left: 11%; color: #c97f9c; font-size: 2.5rem; }
.flower-two { right: 10%; bottom: 14%; color: #9c88c3; font-size: 3rem; animation-delay: -2s; }
.sparkle-one { top: 20%; right: 11%; font-size: 2rem; }
.sparkle-two { bottom: 25%; left: 8%; color: #b99576; font-size: 1.8rem; animation-delay: -1s; }
.photo-sticker { position: absolute; z-index: 3; right: 1%; bottom: 13%; display: grid; width: 84px; height: 84px; align-content: center; justify-items: center; transform: rotate(10deg); border: 1px solid rgb(255 255 255 / 70%); border-radius: 50%; background: #e6dff7; color: #766195; font-family: var(--serif); font-size: 1.75rem; line-height: .95; box-shadow: 0 12px 30px rgb(87 59 109 / 12%); }
.photo-sticker small { margin-top: 5px; font-family: var(--script); font-size: .82rem; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; display: grid; width: 34px; height: 45px; place-items: center; border: 1px solid #dfcbd6; border-radius: 99px; color: var(--rose-dark); font-size: 1.05rem; text-decoration: none; animation: nudge 1.8s ease-in-out infinite; }
.home-cards-section { padding: 90px max(32px, calc((100% - 1160px) / 2)) 105px; background: linear-gradient(180deg, #fbf0f3, #f8f3fb 70%, transparent); }
.section-heading { max-width: 660px; margin: 0 auto 42px; text-align: center; }
.section-heading h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.door-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px; }
.door-card { position: relative; display: flex; min-height: 190px; flex-direction: column; align-items: flex-start; justify-content: flex-end; overflow: hidden; padding: 23px; border: 1px solid rgb(255 255 255 / 78%); border-radius: 21px; text-align: left; transition: transform .3s ease, box-shadow .3s ease; }
.door-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.door-rose { background: linear-gradient(145deg, #f8e7ed, #f2dce7); }
.door-lilac { background: linear-gradient(145deg, #ede9f9, #ded8f1); }
.door-peach { background: linear-gradient(145deg, #faece3, #f5ded5); }
.door-cream { background: linear-gradient(145deg, #fbf1e7, #f7e7e2); }
.door-icon { position: absolute; top: 17px; right: 19px; color: rgb(169 95 124 / 68%); font-size: 1.65rem; }
.door-number { margin-bottom: 8px; color: var(--muted); font-size: .56rem; letter-spacing: .12em; }
.door-card strong { font-family: var(--serif); font-size: clamp(1.08rem, 1.8vw, 1.45rem); font-weight: 500; }
.door-arrow { position: absolute; right: 20px; bottom: 18px; color: var(--rose-dark); font-size: 1.1rem; }
.final-link { display: block; margin: 35px auto 0; padding: 10px; border: 0; background: transparent; color: var(--muted); font-family: var(--script); font-size: 1.45rem; }
.final-link span { color: var(--rose-dark); }

/* Arcade */
.arcade-intro { margin-bottom: 24px; }
.arcade-lobby { width: min(1100px, 100%); margin: 0 auto; }
.arcade-topbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.arcade-status-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border: 1px solid rgb(255 255 255 / 84%); border-radius: 22px; background: rgb(255 255 255 / 72%); box-shadow: 0 12px 32px rgb(104 69 91 / 8%);
}
.arcade-status-card .eyebrow { font-size: .56rem; letter-spacing: .12em; }
.arcade-status-card strong {
  color: var(--rose-dark); font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500;
}
.arcade-status-card small { color: var(--muted); font-family: var(--sans); font-size: .7rem; }
.arcade-meter-wrap { display: grid; gap: 8px; margin-bottom: 22px; }
.arcade-meter { position: relative; height: 12px; overflow: hidden; border-radius: 999px; background: rgb(231 225 237 / 90%); }
.arcade-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), #9a8fd1); transition: width .4s ease; }
.arcade-meter-wrap small { color: var(--muted); font-size: .68rem; }
.arcade-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 26px; padding: 20px 22px; border: 1px solid rgb(255 255 255 / 84%); border-radius: 20px; background: linear-gradient(140deg, rgb(255 255 255 / 80%), rgb(245 234 247 / 70%));
}
.arcade-summary h2 { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 500; }
.arcade-reset-button, .arcade-back-button { border-color: var(--line); background: rgb(255 255 255 / 84%); color: var(--ink); }
.arcade-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.arcade-badge {
  display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgb(171 154 179 / 38%); border-radius: 50%; background: rgb(255 255 255 / 64%); color: #ba97b0; font-size: 1rem; transition: transform .2s ease, box-shadow .2s ease;
}
.arcade-badge.is-earned {
  background: linear-gradient(135deg, #f8dfe7, #e8e1fa); color: var(--rose-dark); box-shadow: 0 10px 25px rgb(169 95 124 / 20%);
}
.arcade-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0 auto;
}
.arcade-game-card {
  display: flex; flex-direction: column; gap: 16px; padding: 22px 20px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 24px; background: linear-gradient(140deg, rgb(255 255 255 / 82%), rgb(250 240 244 / 82%)); box-shadow: 0 12px 32px rgb(93 67 86 / 8%); transition: transform .3s ease, box-shadow .3s ease;
}
.arcade-game-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgb(93 67 86 / 12%); }
.arcade-game-card.is-complete { border-color: rgb(217 143 168 / 45%); }
.arcade-game-number { color: var(--rose-dark); font-family: var(--serif); font-size: 1.15rem; }
.arcade-game-copy p.eyebrow { font-size: .5rem; letter-spacing: .12em; }
.arcade-game-copy h3 { margin: 8px 0 10px; font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 500; }
.arcade-game-copy p:last-child { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.arcade-game-button { width: 100%; justify-content: center; border-color: var(--line); background: rgb(255 255 255 / 84%); color: var(--ink); }
.arcade-secret {
  margin-top: 32px; padding: 24px 22px; border: 1px solid rgb(217 143 168 / 42%); border-radius: 24px; background: linear-gradient(135deg, rgb(255 250 252 / 90%), rgb(239 232 249 / 86%)); box-shadow: 0 18px 46px rgb(93 67 86 / 10%);
}
.arcade-secret h3 { margin: 10px 0 12px; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; }
.arcade-secret p { margin: 0; color: var(--muted); line-height: 1.8; }
.secret-gift-card {
  display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 18px; border-radius: 18px; background: rgb(255 255 255 / 72%);
}
.secret-gift-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #f5dde7, #e2dcff); color: var(--rose-dark); font-size: 1.5rem; }
.secret-gift-card strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.arcade-game-shell { width: min(1100px, 100%); margin: 0 auto; padding-bottom: 22px; }
.arcade-game-frame { display: grid; gap: 18px; min-height: 420px; padding: 26px 20px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 30px; background: rgb(255 255 255 / 70%); box-shadow: 0 18px 46px rgb(93 67 86 / 10%); }
.arcade-back-button { margin-bottom: 18px; }
.arcade-game-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.arcade-game-header h2 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; }
.arcade-game-tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid rgb(217 143 168 / 35%); border-radius: 999px; background: rgb(244 201 214 / 30%); color: var(--rose-dark); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.arcade-game-body { display: grid; gap: 18px; }
.arcade-scoreboard { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: #fbf4f5; color: var(--ink); font-size: .74rem; }
.arcade-scoreboard strong { color: var(--rose-dark); }
.arcade-game-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.arcade-level-button {
  min-height: 38px; padding: 0 16px; border: 1px solid rgb(217 143 168 / 32%); border-radius: 999px; background: rgb(255 255 255 / 82%); color: var(--ink); transition: background .2s ease, transform .2s ease;
}
.arcade-level-button:hover { background: #f8edf1; transform: translateY(-1px); }

.memory-match-board {
  display: grid; grid-template-columns: repeat(var(--memory-columns, 4), minmax(0, 1fr)); gap: 10px; width: min(560px, 100%); margin: 0 auto;
}
.memory-card-tile {
  position: relative; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: transparent; cursor: pointer; perspective: 600px;
}
.memory-card-inner {
  position: relative; display: grid; width: 100%; height: 100%; place-items: stretch; transform-style: preserve-3d; transition: transform .5s ease;
}
.memory-card-tile.is-flipped .memory-card-inner,
.memory-card-tile.is-matched .memory-card-inner { transform: rotateY(180deg); }
.memory-card-front, .memory-card-back {
  position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; border: 1px solid rgb(219 196 223 / 80%); border-radius: 16px; background: linear-gradient(140deg, #f8dfe6, #efe2f9); box-shadow: 0 10px 22px rgb(90 61 81 / 10%);
}
.memory-card-front { color: var(--rose-dark); font-size: 2rem; }
.memory-card-back {
  transform: rotateY(180deg); overflow: hidden; background: #fff; padding: 6px;
}
.memory-card-back img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.memory-card-tile.is-matched .memory-card-back { box-shadow: 0 0 0 2px rgb(217 143 168 / 80%); }

.catch-game-body { padding-top: 8px; }
.catch-field {
  position: relative; width: min(540px, 100%); height: 300px; margin: 0 auto; overflow: hidden; border: 1px solid rgb(228 214 233 / 94%); border-radius: 24px; background: linear-gradient(180deg, #fff5f8 0%, #f2ecff 100%);
}
.catch-basket {
  position: absolute; bottom: 12px; left: 140px; width: 110px; height: 20px; border-radius: 12px 12px 10px 10px; background: linear-gradient(180deg, #d98fa8, #b86a84); box-shadow: 0 12px 18px rgb(169 95 124 / 18%);
}
.catch-heart {
  position: absolute; color: var(--rose-dark); text-shadow: 0 6px 18px rgb(169 95 124 / 20%);
}
.catch-heart.is-cracked { color: #8d5a69; font-size: 1.35em; }
.catch-legend, .catch-message { margin: 0; color: var(--muted); font-size: .78rem; text-align: center; }
.catch-message { color: var(--rose-dark); font-weight: 600; }
.catch-retry { justify-self: center; min-width: 190px; min-height: 56px; padding-inline: 28px; font-size: .95rem; font-weight: 600; }

.quiz-panel {
  display: grid; gap: 18px; width: min(620px, 100%); margin: 0 auto; padding: 24px 18px; border: 1px solid rgb(243 222 231 / 90%); border-radius: 22px; background: #fffafc;
}
.quiz-progress { margin: 0; color: var(--rose-dark); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.quiz-panel h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; }
.quiz-options { display: grid; gap: 12px; }
.quiz-option {
  min-height: 52px; padding: 12px 16px; border: 1px solid rgb(219 196 223 / 80%); border-radius: 14px; background: white; text-align: left; transition: transform .2s ease, border-color .2s ease;
}
.quiz-option:hover { transform: translateY(-1px); }
.quiz-option.is-correct { border-color: rgb(107 156 109 / 70%); background: #edf9f2; }
.quiz-option.is-wrong { border-color: rgb(196 110 110 / 60%); background: #fdecec; }
.quiz-result { display: grid; gap: 14px; width: min(480px, 100%); margin: 0 auto; padding: 20px 18px; border: 1px solid rgb(243 222 231 / 86%); border-radius: 20px; background: #fffafc; text-align: center; }
.quiz-result h3 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }

.heart-maze-game { width: min(760px, 100%); margin: 0 auto; }
.heart-maze-subtitle { margin: -4px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.heart-maze-levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.heart-maze-level-button.is-selected { border-color: rgb(217 143 168 / 60%); background: linear-gradient(135deg, #f8dfe7, #e8e1fa); color: var(--rose-dark); }
.heart-maze-scoreboard { justify-content: center; gap: 8px 22px; }
.heart-maze-board-wrap { display: grid; width: 100%; justify-items: center; }
.heart-maze-board {
  display: grid; width: min(100%, 520px); grid-template-columns: repeat(var(--maze-size, 9), minmax(0, 1fr)); aspect-ratio: 1; overflow: hidden; border: 2px solid #a68bb5; border-radius: 16px; background: #fffafc; box-shadow: 0 12px 30px rgb(93 67 86 / 12%); touch-action: manipulation;
}
.heart-maze-cell {
  position: relative; display: grid; min-width: 0; aspect-ratio: 1; place-items: center; border-top: 2px solid transparent; border-left: 2px solid transparent; background: rgb(255 255 255 / 88%); transition: background .18s ease;
}
.heart-maze-cell.has-wall-top { border-top-color: #9e88b1; }
.heart-maze-cell.has-wall-left { border-left-color: #9e88b1; }
.heart-maze-cell.has-wall-right { border-right: 2px solid #9e88b1; }
.heart-maze-cell.has-wall-bottom { border-bottom: 2px solid #9e88b1; }
.heart-maze-cell.is-start { background: #fff0f4; }
.heart-maze-cell.is-exit { background: #f0ebff; }
.heart-maze-cell.is-hint-path { background: #fff2bf; }
.heart-maze-marker { position: absolute; top: 1px; left: 2px; color: var(--rose-dark); font-size: clamp(6px, 1.8vw, 10px); font-weight: 700; line-height: 1; }
.heart-maze-marker.is-exit { top: auto; right: 1px; bottom: 1px; left: auto; color: #806bb1; }
.heart-maze-player { z-index: 1; color: #d65b86; font-size: clamp(8px, 2.4vw, 16px); line-height: 1; filter: drop-shadow(0 0 4px rgb(217 143 168 / 75%)); animation: heart-maze-pulse 1.2s ease-in-out infinite; }
.heart-maze-collectible { color: #c0789b; font-size: clamp(8px, 2.3vw, 15px); line-height: 1; text-shadow: 0 0 7px rgb(217 143 168 / 50%); }
.heart-maze-float-heart { position: absolute; z-index: 2; color: var(--rose-dark); font-size: 1rem; pointer-events: none; animation: heart-maze-float .75s ease-out forwards; }
.heart-maze-status { min-height: 22px; margin: 0; color: var(--rose-dark); font-size: .76rem; text-align: center; }
.heart-maze-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.heart-maze-actions .button { min-height: 44px; }
.heart-maze-light-button { border-color: var(--line); background: rgb(255 255 255 / 84%); color: var(--ink); }
.heart-maze-pad { display: grid; grid-template: repeat(3, 48px) / repeat(3, 48px); justify-content: center; gap: 5px; }
.heart-maze-pad button { min-width: 48px; min-height: 48px; border: 1px solid rgb(217 143 168 / 42%); border-radius: 14px; background: linear-gradient(145deg, #fff, #f7e7ef); color: var(--rose-dark); font-size: 1.2rem; box-shadow: 0 5px 12px rgb(93 67 86 / 8%); touch-action: manipulation; }
.heart-maze-pad button:disabled { opacity: .48; }
.heart-maze-pad [data-direction="up"] { grid-area: 1 / 2; }
.heart-maze-pad [data-direction="left"] { grid-area: 2 / 1; }
.heart-maze-pad > span { display: grid; grid-area: 2 / 2; place-items: center; color: #c38ba8; }
.heart-maze-pad [data-direction="right"] { grid-area: 2 / 3; }
.heart-maze-pad [data-direction="down"] { grid-area: 3 / 2; }
.heart-maze-result { display: grid; justify-items: center; gap: 9px; padding: 20px 16px; border: 1px solid rgb(217 143 168 / 40%); border-radius: 20px; background: linear-gradient(140deg, #fff8fa, #f0edff); text-align: center; animation: paper-in .5s ease both; }
.heart-maze-result h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 500; }
.heart-maze-result > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.heart-maze-final-score { color: var(--rose-dark); font-family: var(--serif); font-size: 1.35rem; }
.heart-maze-bonus { max-width: 500px; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / 76%); }
.heart-maze-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 3px; }
.heart-maze-result-actions .button { min-height: 44px; }

@keyframes heart-maze-pulse { 50% { transform: scale(1.18); } }
@keyframes heart-maze-float { to { opacity: 0; transform: translateY(-18px) scale(1.5); } }

.puzzle-board {
  display: grid; grid-template-columns: repeat(var(--puzzle-size, 3), minmax(0, 1fr)); width: min(500px, 100%); margin: 0 auto; gap: 6px; padding: 10px; border: 1px solid rgb(227 212 232 / 70%); border-radius: 20px; background: #fffafc;
}
.puzzle-piece {
  aspect-ratio: 1; border: 1px solid rgb(238 224 233 / 90%); border-radius: 12px; background-color: #f8e7ef; background-repeat: no-repeat; cursor: pointer; transition: transform .2s ease;
}
.puzzle-piece:hover { transform: translateY(-1px); }
.puzzle-piece.is-empty { visibility: hidden; }

.wish-result { margin: 0; text-align: center; color: var(--muted); }

/* Memories */
.memory-grid { display: grid; width: min(1020px, 100%); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; margin: 0 auto; }
.memory-card { position: relative; padding: 10px 10px 42px; border: 0; background: #fff; box-shadow: 0 12px 35px rgb(83 55 71 / 12%); text-align: center; cursor: zoom-in; transition: transform .35s ease, box-shadow .35s ease; }
.memory-card:nth-child(4n + 1) { transform: rotate(-2.2deg); }
.memory-card:nth-child(4n + 2) { transform: translateY(13px) rotate(1.6deg); }
.memory-card:nth-child(4n + 3) { transform: rotate(-1.3deg); }
.memory-card:nth-child(4n) { transform: translateY(10px) rotate(2deg); }
.memory-card:hover { z-index: 2; transform: translateY(-7px) rotate(0); box-shadow: 0 20px 46px rgb(83 55 71 / 19%); }
.memory-card img { display: block; width: 100%; height: clamp(170px, 21vw, 250px); object-fit: cover; background: var(--rose-pale); }
.memory-card > span { position: absolute; right: 8px; bottom: 11px; left: 8px; overflow: hidden; color: #766575; font-family: var(--script); font-size: 1.15rem; text-overflow: ellipsis; white-space: nowrap; }
.page-note + .memory-grid { margin-top: 22px; }

/* 21 little things */
.discovery-row { display: grid; width: min(770px, 100%); grid-template-columns: 1fr auto; align-items: center; gap: 8px 20px; margin: 0 auto 30px; color: var(--muted); font-size: .75rem; }
.discovery-row strong { color: var(--rose-dark); font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.discovery-row strong small { color: var(--muted); font-family: var(--sans); font-size: .72rem; }
.progress-track { height: 6px; grid-column: 1 / -1; overflow: hidden; border-radius: 99px; background: #f0e5ed; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), #af91cd); transition: width .45s ease; }
.love-grid { display: grid; width: min(990px, 100%); grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 15px; margin: 0 auto; perspective: 1100px; }
.love-card { min-height: 144px; padding: 0; border: 0; background: transparent; perspective: 900px; }
.love-card-inner { position: relative; display: block; width: 100%; height: 100%; min-height: 144px; transform-style: preserve-3d; transition: transform .68s cubic-bezier(.2,.72,.2,1); }
.love-card.is-open .love-card-inner { transform: rotateY(180deg); }
.love-card-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 13px 10px; backface-visibility: hidden; border: 1px solid rgb(255 255 255 / 90%); border-radius: 17px; background: linear-gradient(150deg, #f9e9ee, #f4e3ed); box-shadow: 0 8px 21px rgb(104 69 91 / 8%); }
.love-card:nth-child(4n + 2) .love-card-face { background: linear-gradient(150deg, #eeeafa, #e5e0f6); }
.love-card:nth-child(4n + 3) .love-card-face { background: linear-gradient(150deg, #fbefe6, #f7e7df); }
.love-card:nth-child(4n) .love-card-face { background: linear-gradient(150deg, #faedf2, #f4e7f2); }
.love-card-back { transform: rotateY(180deg); background: linear-gradient(145deg, #fffdfa, #fff4f5); color: var(--ink); }
.love-number { margin-bottom: 9px; color: #a989a1; font-family: var(--serif); font-size: .86rem; }
.love-heart { color: var(--rose-dark); font-size: 1.65rem; line-height: 1; }
.love-hint { margin-top: 8px; color: var(--muted); font-size: .57rem; }
.love-message { color: var(--ink); font-family: var(--serif); font-size: .82rem; line-height: 1.5; text-align: center; }
.love-card.is-open .love-card-face { border-color: rgb(217 143 168 / 42%); }

/* Relationship timeline */
.timeline { position: relative; width: min(900px, 100%); margin: 0 auto; padding: 8px 0; }
.timeline::before { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); background: linear-gradient(var(--rose), #dcd4f5 75%, transparent); content: ""; }
.timeline-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 26px 0 54px; opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.timeline-item.is-visible { opacity: 1; transform: translateY(0); }
.timeline-item:nth-child(even) .timeline-photo { grid-column: 2; grid-row: 1; }
.timeline-item:nth-child(even) .timeline-copy { grid-column: 1; grid-row: 1; text-align: right; }
.timeline-marker { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; width: 40px; height: 40px; place-items: center; transform: translate(-50%, -50%); border: 5px solid var(--cream); border-radius: 50%; background: #e7dff5; color: #816fa8; font-size: .61rem; font-weight: 600; }
.timeline-item:nth-child(odd) .timeline-marker { background: #f6dce5; color: var(--rose-dark); }
.timeline-photo { overflow: hidden; max-width: 330px; padding: 9px 9px 12px; transform: rotate(-2deg); background: white; box-shadow: 0 13px 35px rgb(83 55 71 / 12%); }
.timeline-item:nth-child(even) .timeline-photo { justify-self: end; transform: rotate(2deg); }
.timeline-photo img { display: block; width: 100%; height: 220px; object-fit: cover; }
.timeline-copy { max-width: 340px; }
.timeline-copy .eyebrow { font-size: .59rem; }
.timeline-copy h2 { margin: 9px 0 12px; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 500; }
.timeline-copy > p:last-child { margin: 0; color: var(--muted); font-size: .81rem; line-height: 1.9; }

/* Our song */
.song-feature { display: grid; width: min(950px, 100%); grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(25px, 5vw, 65px); margin: 0 auto; padding: clamp(22px, 4vw, 42px); border: 1px solid rgb(255 255 255 / 90%); border-radius: 30px; background: rgb(255 255 255 / 72%); box-shadow: var(--shadow); }
.song-visual { position: relative; display: grid; min-height: 360px; place-items: center; overflow: hidden; border-radius: 22px; background: radial-gradient(circle, #f8e4ed, #f5eef7 70%); }
.vinyl-record { position: relative; display: grid; width: min(320px, 78%); aspect-ratio: 1; place-items: center; border: 1px solid rgb(255 255 255 / 28%); border-radius: 50%; background: repeating-radial-gradient(circle at center, #322936 0 2px, #403443 2px 3px, #251f2b 3px 6px); box-shadow: 0 18px 34px rgb(52 36 52 / 27%), inset 0 0 0 7px rgb(255 255 255 / 3%); }
.vinyl-record::before { position: absolute; inset: 12%; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; content: ""; }
.vinyl-record.is-playing { animation: vinyl-spin 7s linear infinite; }
.vinyl-label { position: relative; display: flex; width: 38%; aspect-ratio: 1; flex-direction: column; align-items: center; justify-content: center; border: 5px solid #d59ab0; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #f9dce7, #c985a1); color: #704b63; box-shadow: 0 0 0 4px rgb(28 22 32 / 72%); text-align: center; }
.vinyl-label::after { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%); border: 1px solid #f9eaf0; border-radius: 50%; background: #493543; content: ""; }
.vinyl-label span { font-family: var(--serif); font-size: clamp(1.15rem, 3vw, 1.8rem); font-weight: 600; }
.vinyl-label small { margin-top: 3px; font-family: var(--script); font-size: clamp(.72rem, 1.5vw, .95rem); }
.song-spark { position: absolute; z-index: 1; color: var(--rose-dark); animation: twinkle 2s ease-in-out infinite; }
.song-spark-one { top: 16%; left: 14%; font-size: 1.8rem; }
.song-spark-two { right: 12%; bottom: 17%; color: #a18bc6; font-size: 2rem; animation-delay: .6s; }
.song-visual-note { position: absolute; right: 17%; top: 18%; color: #b57f9f; font-size: 1.45rem; transform: rotate(12deg); }
.song-story h2 { margin: 12px 0 16px; font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.55rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.18; }
.song-story > p:not(.eyebrow) { color: var(--muted); font-size: .84rem; line-height: 1.95; }
.song-play-button { margin-top: 8px; }
.song-playback-status { min-height: 22px; margin: 12px 0 0; color: var(--rose-dark) !important; font-size: .72rem !important; }
.song-signoff { margin: 19px 0 0; font-size: 1.35rem; }

/* Letter and final surprise */
.letter-intro { margin-bottom: 35px; }
.letter-stage { display: grid; justify-items: center; }
.envelope { position: relative; width: min(340px, 84vw); height: 218px; margin: 26px auto 0; padding: 0; border: 0; background: transparent; perspective: 900px; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.envelope:hover { transform: translateY(-4px); }
.envelope-back { position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(145deg, #efcdd9, #e8c4d2); box-shadow: 0 25px 55px rgb(104 69 91 / 15%); }
.envelope-letter { position: absolute; z-index: 1; top: 19px; right: 26px; left: 26px; display: grid; height: 165px; align-content: center; justify-items: center; border-radius: 4px; background: linear-gradient(160deg, #fffdfa, #fff7f2); box-shadow: 0 5px 16px rgb(104 69 91 / 10%); color: var(--muted); font-family: var(--script); font-size: 1.25rem; transition: transform .85s cubic-bezier(.2,.8,.2,1), box-shadow .6s ease; }
.envelope-letter b { margin-top: 5px; color: var(--rose-dark); font-size: 1.8rem; font-weight: 600; }
.envelope-front { position: absolute; z-index: 2; inset: 0; overflow: hidden; border-radius: 8px; background: linear-gradient(145deg, #f4dce4, #ebcbd8); clip-path: polygon(0 0, 50% 57%, 100% 0, 100% 100%, 0 100%); transition: opacity .42s .12s ease, transform .55s .12s ease; }
.envelope-front::before, .envelope-front::after { position: absolute; inset: 0; background: #f0d3de; content: ""; }
.envelope-front::before { clip-path: polygon(0 0, 50% 57%, 0 100%); }
.envelope-front::after { background: #e9c6d3; clip-path: polygon(100% 0, 50% 57%, 100% 100%); }
.envelope-flap { position: absolute; z-index: 3; top: 0; left: 0; width: 100%; height: 64%; transform: rotateX(0); transform-origin: 50% 0; border-radius: 8px 8px 0 0; background: linear-gradient(155deg, #f7e2e8, #e8c2d1); clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; transition: transform .72s cubic-bezier(.22,.75,.22,1), filter .5s ease; }
.wax-seal { position: absolute; z-index: 4; top: 53%; left: 50%; display: grid; width: 48px; height: 48px; place-items: center; transform: translate(-50%, -50%); border: 2px solid rgb(255 255 255 / 58%); border-radius: 50%; background: #bb708d; color: white; font-family: var(--serif); font-size: 1.55rem; box-shadow: 0 5px 13px rgb(125 68 89 / 18%); transition: opacity .3s ease, transform .4s ease; }
.envelope.is-open { transform: translateY(2px); }
.envelope.is-open .envelope-letter { transform: translateY(-52px) rotate(-1.5deg) scale(1.02); box-shadow: 0 14px 28px rgb(104 69 91 / 17%); }
.envelope.is-open .envelope-front { transform: translateY(24px); opacity: 0; }
.envelope.is-open .envelope-flap { transform: rotateX(180deg); filter: brightness(.92); }
.envelope.is-open .wax-seal { transform: translate(-50%, -50%) scale(.55) rotate(-25deg); opacity: 0; }
.envelope-hint { margin: 22px 0 0; color: var(--muted); font-size: .7rem; }
.letter-paper { width: min(700px, 100%); margin: 35px auto 0; padding: clamp(26px, 5vw, 54px); border: 1px solid #f1e8e2; background: #fffdfa; box-shadow: 0 18px 60px rgb(93 68 84 / 9%); animation: paper-in .8s .18s both; }
.letter-paper h2 { margin: 12px 0 22px; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; }
.letter-paper > p:not(.eyebrow) { color: #746674; font-size: .86rem; line-height: 2; }
.letter-signoff { margin-top: 30px; font-family: var(--script); font-size: 1.5rem !important; }
.letter-signoff span { color: var(--rose-dark); }
.surprise-card { display: grid; width: min(900px, 100%); grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; margin: 0 auto; padding: 40px; border: 1px solid rgb(255 255 255 / 90%); border-radius: 30px; background: rgb(255 255 255 / 68%); box-shadow: var(--shadow); }
.cake-scene { position: relative; display: grid; min-height: 300px; place-items: center; overflow: hidden; border-radius: 24px; background: radial-gradient(ellipse at 50% 85%, #f9e3eb, #faf3f6 64%, transparent); }
.cake { position: relative; width: 230px; height: 190px; }
.cake-plate { position: absolute; bottom: 12px; left: 6px; width: 218px; height: 21px; border-radius: 50%; background: #e7d7e8; box-shadow: 0 8px 16px rgb(99 69 101 / 11%); }
.cake-body { position: absolute; display: grid; place-items: center; overflow: hidden; border: 1px solid #efcfdb; color: #a95f7c; }
.cake-lower { z-index: 1; bottom: 28px; left: 15px; width: 200px; height: 86px; border-radius: 14px 14px 22px 22px; background: repeating-linear-gradient(90deg, #f8e0e8 0 18px, #f2d2df 18px 36px); box-shadow: inset 0 7px 0 rgb(255 255 255 / 30%); font-family: var(--script); font-size: 1.3rem; }
.cake-lower::before { position: absolute; top: 14px; left: 24px; width: 5px; height: 5px; border-radius: 50%; background: #ffe5a8; box-shadow: 23px 15px #fff3f5, 48px -4px #dca4bd, 121px 8px #f1c775, 151px -2px #fff3f5; content: ""; }
.cake-body sup { font-family: var(--serif); font-size: .65rem; }
.cake-icing { position: absolute; z-index: 3; bottom: 100px; left: 12px; width: 206px; height: 22px; border-radius: 50%; background: #fff8fb; box-shadow: 0 4px 0 #f1dce5; }
.cake-icing::after { position: absolute; top: 13px; left: 8px; width: 10px; height: 12px; border-radius: 0 0 9px 9px; background: #fff8fb; box-shadow: 25px 3px #fff8fb, 50px -1px #fff8fb, 78px 2px #fff8fb, 108px -1px #fff8fb; content: ""; }
.candle { position: absolute; z-index: 4; bottom: 110px; left: 109px; width: 14px; height: 44px; border-radius: 5px 5px 1px 1px; background: repeating-linear-gradient(135deg, #d98fa8 0 5px, #fff6f7 5px 10px); }
.flame { position: absolute; top: -29px; left: 2px; display: block; width: 10px; height: 22px; transform-origin: 50% 85%; border-radius: 80% 0 80% 50%; transform: rotate(45deg); background: radial-gradient(ellipse at 50% 72%, #fff8c9 0 12%, #ffd768 32%, #ffac52 69%, #f17860 100%); box-shadow: 0 0 7px 2px rgb(255 233 163 / 84%), 0 0 20px 7px rgb(255 170 82 / 42%); animation: flicker .85s ease-in-out infinite alternate; }
.flame::before { position: absolute; bottom: 3px; left: 3px; width: 4px; height: 10px; transform: rotate(-8deg); border-radius: 50% 50% 45% 45%; background: linear-gradient(#fffde0, #fff0a1 74%, transparent); content: ""; }
.flame::after { position: absolute; bottom: 17px; left: 3px; width: 8px; height: 11px; transform: translateY(0); border-left: 2px solid rgb(160 149 164 / 75%); border-radius: 50%; content: ""; opacity: 0; }
.flame.is-blowing { animation: flame-blow-out .82s cubic-bezier(.36, 0, .8, .38) forwards; }
.flame.is-blowing::after { animation: smoke-rise .8s .34s ease-out both; }
.flame.is-out { opacity: 0; transform: rotate(45deg) scale(.1); transition: .15s ease; }
.flame.is-out::after { animation: smoke-rise .65s ease-out both; }
.flame.is-lighting { animation: flame-light .48s ease-out, flicker .85s .48s ease-in-out infinite alternate; }
.blow-wind { position: absolute; z-index: 3; top: 22%; left: calc(50% - 99px); width: 84px; height: 28px; pointer-events: none; opacity: 0; }
.blow-wind::before, .blow-wind::after { position: absolute; right: 0; left: 0; height: 8px; border: 2px solid rgb(255 255 255 / 84%); border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; content: ""; }
.blow-wind::before { top: 2px; transform: rotate(-8deg); }
.blow-wind::after { top: 14px; left: 15px; width: 48px; transform: rotate(-4deg); opacity: .7; }
.cake-scene.is-blowing .blow-wind { animation: blow-wind .82s ease-out both; }
.cake-spark { position: absolute; color: var(--rose-dark); animation: twinkle 1.9s infinite; }
.cake-spark-one { top: 18%; left: 18%; font-size: 1.7rem; }
.cake-spark-two { top: 25%; right: 18%; color: #a18bc6; font-size: 2rem; animation-delay: .7s; }
.surprise-copy h2 { margin: 14px 0; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 500; }
.surprise-copy h2 span { color: var(--rose-dark); }
.surprise-copy > p:not(.eyebrow):not(.wish-result) { margin: 0 0 24px; color: var(--muted); font-size: .83rem; line-height: 1.9; }
.wish-result { min-height: 24px; margin: 16px 0 0; color: var(--rose-dark); font-family: var(--script); font-size: 1.35rem; }

/* Birthday candle moment */
body.wish-scene-active { padding-bottom: 0; background: #211d36; }
.wish-scene-active .site-header, .wish-scene-active .site-footer, .wish-scene-active .mobile-nav,
.wish-scene-active .player-dock { display: none; }
.wish-scene-active #page-surprise {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding: 38px 32px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 34%, rgb(103 76 121 / 68%), transparent 37rem),
    radial-gradient(ellipse at 16% 90%, rgb(187 119 156 / 29%), transparent 35rem),
    linear-gradient(155deg, #211d36, #3c2c50 52%, #66415f);
  color: white;
}
.wish-scene-active #page-surprise::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 14% 25%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 80% 17%, #fff 50%, transparent 100%),
    radial-gradient(2px 2px at 72% 77%, #f9dbe8 50%, transparent 100%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 91% 49%, #fff 50%, transparent 100%);
  background-size: 180px 180px, 220px 200px, 250px 250px, 190px 190px, 140px 160px;
  content: "";
  opacity: .8;
  pointer-events: none;
}
.wish-scene-active #page-surprise > * { position: relative; z-index: 1; }
.wish-scene-active #page-surprise .page-intro { margin: 0 auto 28px; }
.wish-scene-active #page-surprise .eyebrow { color: #e8c5d6; }
.wish-scene-active #page-surprise .page-intro h1 { color: #fff; }
.wish-scene-active #page-surprise .page-intro h1 em { color: #f4c9d6; }
.wish-scene-active #page-surprise .page-intro > p:last-child { color: #e8dce9; }
.wish-scene-active #page-surprise .surprise-card {
  border-color: rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 9%);
  box-shadow: 0 24px 70px rgb(22 15 31 / 25%);
  backdrop-filter: blur(12px);
}
.wish-scene-active #page-surprise .surprise-copy h2,
.wish-scene-active #page-surprise .surprise-copy > p:not(.eyebrow):not(.wish-result) { color: #fff; }
.wish-scene-active #page-surprise .surprise-copy h2 span,
.wish-scene-active #page-surprise .wish-result { color: #f4c9d6; }
.wish-scene-active #page-surprise .final-link { color: #f1dce9; }
.wish-scene-active #page-surprise .final-link span { color: #f4c9d6; }

/* Persistent music controls */
#songFallback { display: none; }
.player-dock { position: fixed; z-index: 12; right: 25px; bottom: 22px; display: flex; width: min(500px, calc(100% - 50px)); min-height: 66px; align-items: center; gap: 11px; padding: 11px 15px; border: 1px solid rgb(255 255 255 / 85%); border-radius: 18px; background: rgb(255 253 251 / 92%); box-shadow: 0 13px 40px rgb(88 56 77 / 15%); backdrop-filter: blur(18px); }
.player-play, .player-volume { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: var(--rose-pale); color: var(--rose-dark); }
.player-play { padding-left: 3px; }
.player-volume { background: transparent; font-size: 1rem; }
.player-details { display: grid; flex: 0 0 auto; gap: 1px; }
.player-details strong { font-size: .69rem; font-weight: 600; }
.player-details span { color: var(--muted); font-size: .52rem; white-space: nowrap; }
.player-time { color: var(--muted); font-size: .54rem; font-variant-numeric: tabular-nums; }
#songProgress { width: 100%; min-width: 35px; height: 4px; accent-color: var(--rose-dark); cursor: pointer; }
#songVolume { flex: 0 1 74px; width: 74px; min-width: 45px; height: 4px; accent-color: var(--rose-dark); cursor: pointer; }
.site-footer { display: grid; justify-items: center; padding: 53px 20px 120px; color: var(--muted); text-align: center; }
.site-footer > span { color: var(--rose-dark); font-size: 1.4rem; }
.site-footer p { margin: 10px 0 5px; font-family: var(--serif); font-size: .98rem; }
.site-footer small { color: #a895a4; font-family: var(--script); font-size: 1.25rem; }
.mobile-nav { display: none; }

/* Dialog, celebration and transitions */
.photo-modal { position: fixed; width: min(720px, calc(100% - 34px)); max-width: none; max-height: min(90svh, 900px); padding: 24px; overflow: visible; border: 1px solid rgb(255 255 255 / 82%); border-radius: 22px; background: #fffdfa; box-shadow: 0 30px 100px rgb(31 18 34 / 35%); }
.photo-modal::backdrop { background: rgb(40 28 44 / 72%); backdrop-filter: blur(5px); }
.photo-modal figure { display: grid; justify-items: center; margin: 0; }
.photo-modal img { display: block; max-width: 100%; max-height: 73svh; object-fit: contain; }
.photo-modal figcaption { padding-top: 13px; color: var(--ink); font-family: var(--script); font-size: 1.45rem; }
.modal-close, .modal-arrow { position: absolute; z-index: 2; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 5px 15px rgb(60 45 58 / 12%); }
.modal-close { top: -15px; right: -15px; font-size: 1.5rem; }
.modal-arrow { top: 50%; font-size: 1.8rem; }
.modal-prev { left: -20px; }
.modal-next { right: -20px; }
.modal-count { position: absolute; right: 24px; bottom: 29px; color: var(--muted); font-size: .65rem; }
.toast { position: fixed; z-index: 50; bottom: 102px; left: 50%; max-width: calc(100% - 32px); padding: 12px 19px; transform: translate(-50%, 12px); border: 1px solid rgb(255 255 255 / 70%); border-radius: 99px; background: #594453; color: white; font-size: .76rem; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.celebration-heart { bottom: -40px; animation-name: celebrate-up; }

@keyframes page-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes paper-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gentle-float { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-12px) rotate(7deg); } }
@keyframes moon-glow { 0%, 100% { box-shadow: 0 0 35px rgb(238 190 222 / 18%); } 50% { box-shadow: 0 0 65px rgb(238 190 222 / 38%); } }
@keyframes button-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 17%); } 50% { box-shadow: 0 0 0 10px rgb(255 255 255 / 0%); } }
@keyframes number-transform { 0% { opacity: 1; filter: blur(0); transform: scale(1); } 100% { opacity: 0; filter: blur(12px); transform: scale(.7); } }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@keyframes twinkle { 0%, 100% { opacity: .65; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes equalize { from { height: 3px; } to { height: 13px; } }
@keyframes vinyl-spin { to { transform: rotate(1turn); } }
@keyframes flicker { from { transform: rotate(42deg) scale(.95); } to { transform: rotate(49deg) scale(1.06); } }
@keyframes flame-blow-out {
  0% { opacity: 1; transform: rotate(45deg) scale(1); filter: blur(0); }
  12% { transform: rotate(38deg) scale(.96, 1.08); }
  30% { transform: translateX(2px) rotate(70deg) skewX(7deg) scale(.82, 1.2); }
  53% { opacity: .88; transform: translate(6px, -1px) rotate(94deg) skewX(12deg) scale(.58, 1.12); }
  72% { opacity: .68; transform: translate(11px, -2px) rotate(112deg) skewX(9deg) scale(.35, .9); filter: blur(.5px); }
  86% { opacity: .92; transform: translate(13px, -1px) rotate(100deg) scale(.2, .65); filter: blur(0); }
  100% { opacity: 0; transform: translate(21px, 2px) rotate(120deg) scale(.04); filter: blur(3px); }
}
@keyframes smoke-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(.55) rotate(-8deg); }
  22% { opacity: .5; }
  55% { opacity: .36; transform: translate(-2px, -8px) scale(1.1) rotate(12deg); }
  100% { opacity: 0; transform: translate(5px, -22px) scale(1.55) rotate(32deg); }
}
@keyframes flame-light {
  0% { opacity: 0; transform: rotate(45deg) scale(.08); filter: blur(3px); }
  34% { opacity: .85; transform: rotate(30deg) scale(.78, 1.12); filter: blur(.7px); }
  68% { opacity: .9; transform: rotate(53deg) scale(1.08, .92); filter: blur(0); }
  100% { opacity: 1; transform: rotate(45deg) scale(1); }
}
@keyframes blow-wind {
  0% { opacity: 0; transform: translateX(-8px) scale(.65); }
  14% { opacity: .82; }
  42% { opacity: .74; transform: translateX(28px) scale(1); }
  76% { opacity: .43; transform: translateX(68px) scale(.92); }
  100% { opacity: 0; transform: translateX(88px) scale(.72); }
}
@keyframes float-away { 0% { opacity: 0; transform: translateY(0) rotate(0); } 12% { opacity: .75; } 90% { opacity: .3; } 100% { opacity: 0; transform: translateY(-110vh) rotate(45deg); } }
@keyframes celebrate-up { 0% { opacity: 0; transform: translateY(0) rotate(0) scale(.5); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateY(-105vh) rotate(55deg) scale(1.15); } }

@media (min-width: 1500px) {
  .hero-wrap { min-height: 800px; }
  .hero-polaroid { width: 350px; }
  .hero-polaroid img { height: 375px; }
}
@media (max-width: 980px) {
  .site-header { padding-inline: 28px; gap: 16px; }
  .desktop-nav { gap: 14px; }
  .desktop-nav a { font-size: .66rem; }
  .hero-wrap { width: min(100% - 54px, 900px); grid-template-columns: 1fr .9fr; gap: 2%; }
  .hero-copy h1 { font-size: clamp(3.5rem, 7.5vw, 5.8rem); }
  .hero-visual { min-height: 480px; }
  .hero-polaroid { width: min(300px, 75%); }
  .hero-polaroid img { height: 300px; }
  .door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .love-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .love-card, .love-card-inner { min-height: 136px; }
  .arcade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 700px) {
  body { padding-bottom: 72px; }
  .site-header { min-height: 62px; justify-content: center; padding: 0 15px; }
  .brand { margin-right: auto; gap: 7px; }
  .brand-flower { font-size: 1.5rem; }
  .brand-name { font-size: .88rem; }
  .brand-name small { font-size: .48rem; }
  .desktop-nav { display: none; }
  .music-pill { min-height: 37px; gap: 7px; padding: 0 12px; font-size: .64rem; }
  .hero-wrap { width: calc(100% - 38px); min-height: auto; grid-template-columns: 1fr; gap: 2px; padding: 53px 0 74px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; font-size: .57rem; letter-spacing: .12em; }
  .hero-copy h1 { margin: 20px 0 17px; font-size: clamp(3.4rem, 14vw, 5.2rem); }
  .hero-description { max-width: 420px; margin-inline: auto; font-size: .81rem; line-height: 1.85; }
  .hero-actions { flex-direction: column; gap: 12px; margin-top: 22px; }
  .hero-actions .handwritten { font-size: 1.2rem; }
  .hero-signature { margin-top: 19px; font-size: .54rem; }
  .hero-visual { min-height: clamp(330px, 92vw, 420px); margin-top: 7px; overflow: hidden; }
  .hero-halo { width: min(370px, 100%); box-shadow: 0 0 0 25px rgb(217 143 168 / 4%), 0 0 0 52px rgb(220 212 245 / 16%); }
  .hero-polaroid { width: min(255px, 67vw); padding: 9px 9px 43px; }
  .hero-polaroid img { height: clamp(220px, 65vw, 270px); }
  .hero-polaroid::before { top: -9px; width: 70px; height: 19px; }
  .hero-polaroid figcaption { bottom: 12px; font-size: 1.2rem; }
  .flower-one { top: 9%; left: 7%; font-size: 2rem; }
  .flower-two { right: 6%; bottom: 11%; font-size: 2.4rem; }
  .sparkle-one { top: 19%; right: 7%; font-size: 1.5rem; }
  .sparkle-two { bottom: 20%; left: 5%; font-size: 1.3rem; }
  .photo-sticker { right: 1%; bottom: 9%; width: 69px; height: 69px; font-size: 1.4rem; }
  .photo-sticker small { font-size: .7rem; }
  .scroll-cue { bottom: 16px; width: 29px; height: 38px; }
  .home-cards-section { padding: 65px 19px 76px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: clamp(2.25rem, 9.5vw, 3.4rem); }
  .section-heading > p:last-child { font-size: .78rem; }
  .door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .door-card { min-height: 148px; padding: 16px; border-radius: 17px; }
  .door-card strong { max-width: 130px; font-size: 1.06rem; }
  .door-number { font-size: .49rem; letter-spacing: .07em; }
  .door-icon { top: 11px; right: 14px; font-size: 1.35rem; }
  .door-arrow { right: 14px; bottom: 13px; font-size: .95rem; }
  .final-link { margin-top: 25px; font-size: 1.28rem; }
  .page { min-height: calc(100svh - 130px); padding: 30px 19px 62px; }
  .page-intro { margin: 25px auto 33px; }
  .page-intro .eyebrow { font-size: .57rem; letter-spacing: .13em; }
  .page-intro h1 { margin: 11px 0 12px; font-size: clamp(2.8rem, 12vw, 4.1rem); }
  .page-intro > p:last-child { font-size: .79rem; line-height: 1.75; }
  .page-note { margin-top: 40px; font-size: 1.35rem; }
  .arcade-intro { margin-bottom: 24px; }
  .arcade-intro h1 { font-size: clamp(2.25rem, 9.5vw, 3.2rem); }
  .arcade-topbar { gap: 10px; margin-bottom: 16px; }
  .arcade-status-card { gap: 6px; padding: 14px 12px; border-radius: 17px; }
  .arcade-status-card .eyebrow { font-size: .48rem; letter-spacing: .08em; }
  .arcade-status-card strong { font-size: 1.55rem; }
  .arcade-meter-wrap { margin-bottom: 16px; }
  .arcade-summary { flex-direction: column; align-items: stretch; gap: 15px; margin: 14px 0 20px; padding: 17px; border-radius: 17px; }
  .arcade-summary h2 { font-size: 1.55rem; line-height: 1.25; }
  .arcade-reset-button, .arcade-back-button { min-height: 44px; }
  .arcade-badges { justify-content: center; gap: 8px; margin-bottom: 20px; }
  .arcade-badge { min-width: 38px; height: 38px; }
  .arcade-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .arcade-game-card { gap: 12px; padding: 18px 17px; border-radius: 20px; }
  .arcade-game-number { font-size: 1rem; }
  .arcade-game-copy h3 { margin: 6px 0 8px; font-size: 1.55rem; }
  .arcade-game-copy p:last-child { font-size: .77rem; }
  .arcade-game-button { min-height: 46px; }
  .arcade-secret { margin-top: 22px; padding: 19px 17px; border-radius: 20px; }
  .arcade-secret h3 { font-size: 1.8rem; }
  .secret-gift-card { align-items: flex-start; gap: 12px; padding: 14px; }
  .secret-gift-icon { width: 42px; height: 42px; flex: 0 0 42px; }
  .secret-gift-card strong { font-size: 1.05rem; }
  .arcade-game-shell { padding-bottom: 12px; }
  .arcade-back-button { margin-bottom: 12px; }
  .arcade-game-frame { gap: 15px; min-height: 0; padding: 19px 14px; border-radius: 22px; }
  .arcade-game-header { align-items: flex-start; gap: 10px; }
  .arcade-game-header h2 { font-size: 1.8rem; line-height: 1.15; }
  .arcade-game-tag { min-height: 30px; padding: 0 10px; font-size: .56rem; letter-spacing: .08em; }
  .arcade-scoreboard { gap: 8px 14px; padding: 10px 12px; }
  .arcade-level-button { min-height: 42px; }
  .memory-match-board { gap: 7px; }
  .catch-field { height: 260px; border-radius: 19px; }
  .catch-basket { width: 92px; }
  .quiz-panel { gap: 14px; padding: 19px 14px; border-radius: 19px; }
  .quiz-option { min-height: 48px; }
  .heart-maze-game { gap: 12px; }
  .heart-maze-subtitle { font-size: .73rem; }
  .heart-maze-levels { gap: 7px; }
  .heart-maze-level-button { min-height: 40px; padding-inline: 9px; font-size: .64rem; }
  .heart-maze-scoreboard { gap: 8px 12px; justify-content: space-between; font-size: .66rem; }
  .heart-maze-board { border-radius: 11px; }
  .heart-maze-cell { border-top-width: 1.5px; border-left-width: 1.5px; }
  .heart-maze-cell.has-wall-right { border-right-width: 1.5px; }
  .heart-maze-cell.has-wall-bottom { border-bottom-width: 1.5px; }
  .heart-maze-pad { grid-template: repeat(3, 46px) / repeat(3, 46px); }
  .heart-maze-pad button { min-width: 46px; min-height: 46px; border-radius: 13px; }
  .heart-maze-result { padding: 18px 13px; }
  .heart-maze-result-actions { width: 100%; }
  .heart-maze-result-actions .button { flex: 1 1 130px; }
  .puzzle-board { gap: 4px; padding: 7px; border-radius: 16px; }
  .puzzle-piece { border-radius: 8px; }
  .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .memory-card { padding: 7px 7px 34px; }
  .memory-card img { height: clamp(155px, 54vw, 245px); }
  .memory-card > span { bottom: 8px; font-size: 1rem; }
  .love-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .love-card, .love-card-inner { min-height: 126px; }
  .love-card-face { padding: 10px 7px; border-radius: 14px; }
  .love-message { font-size: .72rem; }
  .love-hint { font-size: .51rem; }
  .timeline::before { left: 18px; }
  .timeline-item, .timeline-item:nth-child(even) { grid-template-columns: 37px minmax(0, 1fr); gap: 13px; padding: 18px 0 35px; }
  .timeline-marker { top: 23px; left: 18px; width: 34px; height: 34px; transform: translateX(-50%); border-width: 4px; font-size: .54rem; }
  .timeline-photo, .timeline-item:nth-child(even) .timeline-photo { max-width: 100%; grid-column: 2; grid-row: 1; justify-self: stretch; padding: 7px 7px 9px; }
  .timeline-photo img { height: clamp(160px, 51vw, 230px); }
  .timeline-copy, .timeline-item:nth-child(even) .timeline-copy { grid-column: 2; grid-row: 2; max-width: none; text-align: left; }
  .timeline-copy h2 { margin: 6px 0 8px; font-size: 1.65rem; }
  .timeline-copy > p:last-child { font-size: .76rem; }
  .timeline-copy .eyebrow { font-size: .53rem; }
  .song-feature { grid-template-columns: 1fr; gap: 22px; padding: 17px; border-radius: 22px; }
  .song-visual { min-height: clamp(260px, 78vw, 340px); }
  .vinyl-record { width: min(280px, 76%); }
  .song-story { padding: 2px 5px 8px; text-align: center; }
  .song-story .eyebrow { font-size: .56rem; }
  .song-story > p:not(.eyebrow) { font-size: .78rem; }
  .song-signoff { font-size: 1.2rem; }
  .letter-intro { margin-bottom: 22px; }
  .envelope { width: min(310px, 83vw); height: 195px; }
  .envelope-letter { height: 146px; }
  .letter-paper { margin-top: 28px; padding: 26px 22px; }
  .letter-paper h2 { font-size: 1.75rem; }
  .letter-paper > p:not(.eyebrow) { font-size: .79rem; line-height: 1.9; }
  .surprise-card { grid-template-columns: 1fr; gap: 21px; padding: 17px; border-radius: 22px; }
  .cake-scene { min-height: 300px; }
  .wish-scene-active #page-surprise { justify-content: flex-start; padding: 46px 19px 36px; }
  .wish-scene-active #page-surprise .page-intro { margin-bottom: 22px; }
  .wish-scene-active #page-surprise .surprise-card { gap: 15px; padding: 14px; }
  .surprise-copy { padding: 3px 4px 7px; text-align: center; }
  .surprise-copy .eyebrow { font-size: .56rem; }
  .surprise-copy h2 { font-size: 2rem; }
  .surprise-copy > p:not(.eyebrow):not(.wish-result) { font-size: .78rem; }
  .site-footer { padding: 38px 18px 24px; }
  .site-footer p { font-size: .82rem; }
  .site-footer small { font-size: 1.05rem; }
  .mobile-nav { position: fixed; z-index: 14; right: 0; bottom: 0; left: 0; display: grid; height: 68px; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 6px 8px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid rgb(238 227 233 / 90%); background: rgb(255 253 251 / 95%); backdrop-filter: blur(18px); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #a08d9b; font-size: .52rem; text-decoration: none; }
  .mobile-nav a.is-current { color: var(--rose-dark); }
  .mobile-nav svg { width: 17px; height: 17px; stroke-width: 1.8; }
  .player-dock { right: 9px; bottom: 77px; width: min(390px, calc(100% - 18px)); min-height: 56px; gap: 5px; padding: 8px 8px; border-radius: 16px; }
  .player-play, .player-volume { width: 32px; height: 32px; }
  .player-details span, #playerDuration { display: none; }
  #songVolume { flex-basis: 58px; width: 58px; min-width: 48px; }
  .player-details strong { font-size: .62rem; }
  .player-details span { font-size: .46rem; }
  .player-time { font-size: .49rem; }
  .site-footer { padding-bottom: 95px; }
  .toast { bottom: 154px; font-size: .68rem; }
  .photo-modal { padding: 15px; }
  .modal-close { top: -12px; right: -7px; width: 34px; height: 34px; }
  .modal-prev { left: -10px; }
  .modal-next { right: -10px; }
  .modal-arrow { width: 34px; height: 34px; }
  .photo-modal figcaption { font-size: 1.2rem; }
}
@media (max-width: 360px) {
  .hero-wrap { width: calc(100% - 28px); }
  .hero-copy h1 { font-size: 3.15rem; }
  .door-card { min-height: 136px; padding: 13px; }
  .door-card strong { font-size: .96rem; }
  .arcade-intro h1 { font-size: 2.15rem; }
  .arcade-status-card { padding-inline: 10px; }
  .arcade-game-card { padding-inline: 15px; }
  .arcade-game-header { flex-direction: column; }
  .love-grid { gap: 7px; }
  .love-card, .love-card-inner { min-height: 116px; }
  .love-message { font-size: .66rem; }
  .player-details span { max-width: 77px; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
