:root {
  --bg: #1f1026;
  --bg-deep: #130a18;
  --panel: rgba(255, 245, 248, 0.08);
  --panel-strong: rgba(255, 245, 248, 0.12);
  --cream: #fff8f1;
  --muted: #dcc7d5;
  --rose: #ff9fbd;
  --rose-2: #ffcad9;
  --gold: #f4d79d;
  --plum: #3f204a;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 30px 80px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 168, 195, .17), transparent 28%),
    radial-gradient(circle at 80% 25%, rgba(244, 215, 157, .12), transparent 28%),
    radial-gradient(circle at 55% 90%, rgba(188, 133, 255, .12), transparent 30%),
    var(--bg-deep);
  color: var(--cream);
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }

.app { position: relative; width: 100%; height: 100%; overflow: hidden; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.ambient { position: absolute; width: 34vw; height: 34vw; border-radius: 50%; filter: blur(45px); pointer-events: none; opacity: .22; }
.ambient-1 { background: #f177aa; left: -12vw; top: -10vw; }
.ambient-2 { background: #b47bff; right: -14vw; top: 15vh; }
.ambient-3 { background: #f4d79d; left: 35vw; bottom: -25vw; }

.screen, .story { position: absolute; inset: 0; }
.screen { display: grid; place-items: center; }
.opening-screen { z-index: 20; background: radial-gradient(circle at center, rgba(255,255,255,.035), transparent 36%); transition: opacity .8s ease, visibility .8s ease, transform .8s ease; }
.opening-screen.hidden { opacity: 0; visibility: hidden; transform: scale(1.06); }
.opening-content { text-align: center; padding: 24px; }
.mini-kicker, .eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--gold); font-weight: 700; }
.mini-kicker { margin-bottom: 22px; }
.open-hint { margin: 24px 0 6px; font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--cream); animation: pulseText 2s ease-in-out infinite; }
.open-subhint { margin: 0; color: var(--muted); font-size: .82rem; }

.gift { position: relative; width: 260px; height: 230px; margin: 0 auto; outline: none; }
.gift-glow { position: absolute; inset: 18% 12% 5%; background: radial-gradient(circle, rgba(255,175,202,.42), transparent 62%); filter: blur(18px); opacity: .8; }
.gift-aura { position: absolute; width: 330px; height: 330px; left: 50%; top: 45%; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(244,215,157,.08), transparent 65%); border: 1px solid rgba(244,215,157,.12); box-shadow: 0 0 100px rgba(244,215,157,.12); }
.gift-box { position: absolute; left: 50%; top: 45%; width: 200px; height: 150px; transform: translate(-50%,-50%); filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.gift-body { position: absolute; left: 10px; right: 10px; bottom: 0; height: 105px; border-radius: 10px 10px 16px 16px; background: linear-gradient(145deg, #d66a93, #8d3e66); box-shadow: inset 0 2px 0 rgba(255,255,255,.2); }
.gift-lid { position: absolute; left: 0; right: 0; top: 18px; height: 46px; border-radius: 10px; background: linear-gradient(145deg, #ee9bb8, #b64e7d); transform-origin: 8% 100%; z-index: 3; transition: transform 1.05s cubic-bezier(.2,.82,.2,1), top 1.05s ease; box-shadow: inset 0 2px 0 rgba(255,255,255,.25); }
.ribbon-vertical { position: absolute; left: 50%; top: 0; bottom: 0; width: 28px; transform: translateX(-50%); background: linear-gradient(90deg, #f3d394, #f8e8bd, #d9ae63); opacity: .95; }
.ribbon-horizontal { position: absolute; left: 0; right: 0; top: 38%; height: 22px; background: linear-gradient(90deg, #d9ae63, #f8e8bd, #d9ae63); }
.bow { position: absolute; width: 44px; height: 26px; top: -20px; border: 4px solid #f4d79d; background: linear-gradient(145deg,#f6dfaa,#cda15e); border-radius: 60% 40% 60% 40%; }
.bow-left { left: calc(50% - 42px); transform: rotate(-28deg); }
.bow-right { right: calc(50% - 42px); transform: rotate(28deg) scaleX(-1); }
.bow-knot { position: absolute; top: -18px; left: 50%; width: 26px; height: 26px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff2c6, #c69b58); border: 2px solid #f7e5b6; }
.gift.opened .gift-lid { transform: rotate(-24deg) translate(-8px,-14px); top: 0; }
.gift.opened .gift-box { animation: boxFloat .95s ease-out; }
.sparkle { position: absolute; color: var(--gold); opacity: .6; font-size: 1.2rem; animation: floatSparkle 3s ease-in-out infinite; }
.s1 { left: 10%; top: 22%; animation-delay: -.6s; }
.s2 { right: 8%; top: 45%; animation-delay: -1.4s; }
.s3 { right: 18%; bottom: 10%; animation-delay: -2.1s; }

.story { opacity: 0; visibility: hidden; transition: opacity .7s ease; z-index: 10; }
.story.visible { opacity: 1; visibility: visible; }
.story-stage { position: absolute; inset: 0 0 58px; }
.panel { position: absolute; inset: 0; padding: 7vh 6vw 9vh; display: grid; align-items: center; justify-items: center; gap: 28px; opacity: 0; transform: translateX(38px) scale(.985); pointer-events: none; transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.2,1); }
.panel.active { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.panel.prev { transform: translateX(-38px) scale(.985); }

.hero-panel { grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px); max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-copy { max-width: 640px; }
h1, h2, h3 { margin: 0; font-family: 'Playfair Display', serif; }
h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .95; margin: 16px 0 20px; letter-spacing: -.03em; }
h1 span, h2 span { color: var(--rose-2); text-shadow: 0 0 30px rgba(255,170,200,.2); }
.hero-subtitle { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.75; max-width: 590px; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.primary-btn, .instagram-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 999px; font-weight: 700; color: #241426; background: linear-gradient(135deg, #ffd9e5, #f5d79f); box-shadow: 0 16px 40px rgba(245, 163, 190, .24); transition: transform .2s ease, box-shadow .2s ease; }
.primary-btn:hover, .instagram-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 45px rgba(245, 163, 190, .34); }
.tiny-note { font-size: .76rem; color: #c9b2c2; }

.photo-wrap { position: relative; width: min(100%, 420px); justify-self: center; }
.photo-glow { position: absolute; inset: 10% 4% 0; background: radial-gradient(circle, rgba(255,178,204,.26), transparent 60%); filter: blur(25px); }
.photo-card { position: relative; margin: 0 auto; width: min(88vw, 390px); aspect-ratio: 4/5; padding: 12px 12px 60px; border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,242,246,.75)); transform: rotate(2.5deg); box-shadow: var(--shadow); animation: photoFloat 5s ease-in-out infinite; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; background: linear-gradient(145deg,#f4d0dc,#ead8ef); }
.photo-card img.image-missing { opacity: 0; }
.photo-placeholder { position: absolute; inset: 12px 12px 60px; border-radius: 16px; display: none; place-content: center; text-align: center; padding: 25px; color: #4a2940; background: linear-gradient(145deg,#ffe9ef,#f6e8ec); z-index: 2; }\n.photo-card img.image-missing + .photo-placeholder { display: grid; }
.photo-placeholder span { font-size: .7rem; letter-spacing: .14em; font-weight: 800; color: #ac708c; }
.photo-placeholder strong { margin-top: 8px; font-family: 'Playfair Display'; font-size: 1.25rem; }
.photo-placeholder small { margin-top: 8px; color: #7a5b6c; line-height: 1.4; }
.photo-caption { position: absolute; left: 22px; bottom: 18px; font-family: 'Great Vibes', cursive; font-size: 1.6rem; color: #613e55; }

.panel-heading { max-width: 760px; text-align: center; }
.panel-heading h2, .closing-card h2, .music-card h2, .connect-card h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.05; margin-top: 10px; }
.wish-panel { grid-template-rows: auto 1fr auto; }
.wish-card { width: min(920px, 95vw); padding: clamp(28px, 5vw, 54px); background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.05)); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(18px); position: relative; }
.wish-card p { color: #ead6e0; line-height: 1.85; font-size: clamp(.98rem, 1.7vw, 1.1rem); margin: 0 0 20px; }
.quote-mark { position: absolute; font-family: Georgia, serif; font-size: 6rem; color: rgba(255,194,213,.22); left: 18px; top: -12px; }
.signature { margin-top: 26px; color: var(--muted); font-family: 'Great Vibes', cursive; font-size: 1.7rem; }
.signature strong { font-family: Inter, sans-serif; font-size: .8rem; letter-spacing: .05em; color: var(--gold); }

.about-panel { grid-template-rows: auto 1fr auto auto; }
.about-panel .panel-heading { margin-bottom: 6px; }
.interest-grid { width: min(980px, 96vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.interest-card { min-height: 104px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.06); backdrop-filter: blur(14px); padding: 18px; display: flex; align-items: center; gap: 14px; transition: transform .25s ease, background .25s ease; }
.interest-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.interest-card.featured { background: linear-gradient(135deg, rgba(255,169,200,.16), rgba(244,215,157,.1)); }
.interest-card .icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 1.45rem; flex: 0 0 auto; }
.interest-card small { display: block; color: #bea6b4; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.interest-card h3 { margin-top: 4px; font-family: Inter, sans-serif; font-size: .98rem; color: #fff3f7; line-height: 1.3; }
.signature-quote { width: min(820px, 94vw); text-align: center; padding: 14px 18px; border: 1px dashed rgba(244,215,157,.35); border-radius: 16px; color: #f6e4ef; font-family: 'Great Vibes', cursive; font-size: 1.6rem; background: rgba(255,255,255,.04); }
.bio-line { width: min(720px, 92vw); text-align: center; color: #d9c4d1; font-size: clamp(.92rem, 1.6vw, 1.02rem); line-height: 1.7; margin: -4px 0 4px; }

.letters-panel { grid-template-rows: auto 1fr auto auto; }
.letter-tabs { display: flex; gap: 8px; }
.letter-tab { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #d9c4d1; font-weight: 700; font-size: .82rem; transition: transform .2s ease, background .2s ease, color .2s ease; }
.letter-tab:hover { transform: translateY(-2px); }
.letter-tab.active { background: linear-gradient(135deg,#ffd9e5,#f4d79d); color: #2c1730; border-color: transparent; }
.letter-stage { position: relative; width: min(720px, 94vw); min-height: 220px; }
.letter-card { position: absolute; inset: 0; padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.05)); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); text-align: left; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transition: opacity .5s ease, transform .5s ease, visibility .5s; display: flex; flex-direction: column; }
.letter-card.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.letter-kicker { font-family: Inter, sans-serif; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 700; }
.letter-card p { color: #ead6e0; line-height: 1.85; font-size: clamp(1rem, 1.8vw, 1.12rem); margin: 0; flex: 1; }
.letter-sign { margin-top: 20px; color: var(--muted); font-family: 'Great Vibes', cursive; font-size: 1.5rem; text-align: right; }
.letter-nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.letter-nav-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: #fff; font-size: 1rem; transition: transform .2s ease, background .2s ease; }
.letter-nav-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.letter-count { color: #c8b4bf; font-size: .74rem; letter-spacing: .06em; min-width: 40px; text-align: center; }

.music-panel { align-content: center; }
.music-card { width: min(540px, 92vw); padding: 32px; border-radius: 28px; text-align: center; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); position: relative; z-index: 2; }
.record-art { width: 120px; height: 120px; border-radius: 50%; margin: 18px auto 14px; display: grid; place-items: center; font-size: 2.5rem; background: radial-gradient(circle at 35% 35%, #ffe5ee, #bb668e 48%, #4b254d 49%, #251227 68%); box-shadow: 0 0 0 10px rgba(255,255,255,.04), 0 20px 45px rgba(0,0,0,.35); animation: spin 9s linear infinite; }
.music-card h3 { color: var(--rose-2); font-size: 2.2rem; margin: 2px 0 18px; }
.equalizer { display: flex; justify-content: center; align-items: end; gap: 5px; height: 28px; margin-bottom: 18px; }
.equalizer i { display: block; width: 4px; border-radius: 999px; background: linear-gradient(#ffd9e5,#f4d79d); animation: bars 1s ease-in-out infinite alternate; }
.equalizer i:nth-child(1){height:10px;animation-delay:-.2s}.equalizer i:nth-child(2){height:23px;animation-delay:-.6s}.equalizer i:nth-child(3){height:15px;animation-delay:-.1s}.equalizer i:nth-child(4){height:27px;animation-delay:-.7s}.equalizer i:nth-child(5){height:14px;animation-delay:-.35s}.equalizer i:nth-child(6){height:24px;animation-delay:-.9s}.equalizer i:nth-child(7){height:11px;animation-delay:-.45s}.equalizer i:nth-child(8){height:20px;animation-delay:-.15s}
.fake-player { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 10px; color: #c8b4bf; font-size: .68rem; }
.track { height: 5px; background: rgba(255,255,255,.11); border-radius: 999px; overflow: hidden; }
.track-fill { height: 100%; width: 34%; background: linear-gradient(90deg,#ffafc8,#f4d79d); border-radius: inherit; }
.real-player { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.music-toggle { width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: linear-gradient(145deg,#ffd7e6,#eeb0d0); color: #3f1c34; font-size: 1rem; box-shadow: 0 10px 28px rgba(232,109,158,.22); flex: 0 0 auto; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.music-toggle:hover { transform: scale(1.04); box-shadow: 0 12px 34px rgba(232,109,158,.3); }
.player-main { flex: 1; }
.player-time { display: flex; justify-content: space-between; color: #c8b4bf; font-size: .68rem; margin-bottom: 8px; }
#musicSeek { width: 100%; accent-color: #f4d79d; cursor: pointer; }
.music-note { color: #bda7b7; font-size: .72rem; margin: 14px 0 0; }
.music-orbit { position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; animation: orbit 12s linear infinite; }
.orbit-1 { transform: rotate(18deg); }.orbit-2 { width: 560px; height: 560px; opacity: .45; animation-direction: reverse; }

.connect-panel { align-content: center; }
.connect-card { width: min(680px, 92vw); text-align: center; padding: 36px; border-radius: 30px; background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.05)); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.social-orb { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; font-size: 1.8rem; color: #fff; background: radial-gradient(circle at 30% 30%, #ffd6e5, #e86d9e 40%, #6e3f7f 85%); box-shadow: 0 0 50px rgba(232,109,158,.28); }
.connect-card p { max-width: 560px; margin: 16px auto 24px; color: #d5c0cd; line-height: 1.75; }
.instagram-btn { background: linear-gradient(135deg,#ffd5e6,#e8a6cb 55%,#d4a2f2); }
.ig-icon { font-size: 1.25rem; }

.closing-panel { align-content: center; }
.closing-card { width: min(720px, 92vw); text-align: center; }
.closing-card p { margin: 20px auto; max-width: 590px; color: #d9c4d1; line-height: 1.85; }
.final-line { margin: 22px 0; font-family: 'Great Vibes', cursive; font-size: clamp(1.6rem, 3vw, 2.5rem); color: var(--rose-2); }
.celebration { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.celebration span { position: absolute; font-size: clamp(1.5rem, 4vw, 2.5rem); animation: balloonFloat 7s ease-in-out infinite; opacity: .8; }
.celebration span:nth-child(1){left:10%;top:18%;animation-delay:-.9s}.celebration span:nth-child(2){left:82%;top:18%;animation-delay:-2.1s}.celebration span:nth-child(3){left:20%;bottom:14%;animation-delay:-3.5s}.celebration span:nth-child(4){right:18%;bottom:16%;animation-delay:-1.4s}.celebration span:nth-child(5){left:46%;top:9%;animation-delay:-4.2s}

.round-next { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--line); font-size: 1.2rem; transition: transform .2s ease, background .2s ease; }
.round-next:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.story-controls { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; z-index: 15; }
.nav-arrow { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: #fff; }
.dots { display: flex; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28); transition: transform .2s ease, background .2s ease; }
.dot.active { width: 24px; border-radius: 999px; background: var(--rose); transform: translateY(-1px); }
.footer { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.36); font-size: .66rem; white-space: nowrap; z-index: 15; }
.swipe-hint { display: none; position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%); font-family: 'Great Vibes', cursive; font-size: 1.4rem; letter-spacing: .02em; color: var(--rose-2); text-shadow: 0 0 18px rgba(255,170,200,.35); z-index: 15; pointer-events: none; animation: pulseText 2.6s ease-in-out infinite; white-space: nowrap; }

.confetti-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti { position: absolute; top: 50%; left: 50%; width: 8px; height: 14px; border-radius: 2px; animation: confettiBurst 1.3s cubic-bezier(.1,.7,.1,1) forwards; }
.toast { position: absolute; left: 50%; top: 16px; transform: translate(-50%, -24px); padding: 10px 14px; border-radius: 999px; background: rgba(24,12,29,.76); border: 1px solid var(--line); color: #f9eaf1; font-size: .72rem; opacity: 0; transition: .3s ease; pointer-events: none; z-index: 60; backdrop-filter: blur(14px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes photoFloat { 0%,100%{ transform: rotate(2.5deg) translateY(0);}50%{transform:rotate(0deg) translateY(-10px);} }
@keyframes pulseText {0%,100%{opacity:.72}50%{opacity:1;text-shadow:0 0 18px rgba(255,194,213,.25)}}
@keyframes floatSparkle {0%,100%{transform:translateY(0) rotate(0);opacity:.5}50%{transform:translateY(-13px) rotate(15deg);opacity:1}}
@keyframes boxFloat {0%{transform:translateY(0)}45%{transform:translateY(-5px)}100%{transform:translateY(0)}}
@keyframes spin {to{transform:rotate(360deg)}}
@keyframes bars {from{transform:scaleY(.55);opacity:.7}to{transform:scaleY(1);opacity:1}}
@keyframes orbit {to{transform:rotate(378deg)}}
@keyframes balloonFloat {0%,100%{transform:translate(0,0) rotate(-4deg)}50%{transform:translate(8px,-25px) rotate(4deg)}}
@keyframes confettiBurst {0%{transform:translate(0,0) rotate(0);opacity:1}100%{transform:translate(var(--x),var(--y)) rotate(760deg);opacity:0}}

@media (max-width: 800px) {
  .panel { padding: 6vh 5vw 8vh; }
  .hero-panel { grid-template-columns: 1fr; grid-template-rows: auto auto; text-align: center; align-content: center; gap: 18px; }
  .hero-copy { order: 2; }
  .photo-wrap { order: 1; }
  .hero-actions { justify-content: center; }
  .hero-subtitle { margin-inline: auto; }
  .photo-wrap { width: min(72vw, 320px); }
  .nav-arrow { display: none; }
  .swipe-hint { display: block; }
  .photo-card { width: min(72vw, 320px); padding-bottom: 50px; }
  .photo-caption { font-size: 1.3rem; bottom: 14px; }
  .photo-placeholder strong { font-size: 1rem; }
  .wish-panel { grid-template-rows: auto 1fr auto; align-content: center; }
  .wish-card { max-height: 57vh; overflow: auto; }
  .interest-grid { grid-template-columns: repeat(2, 1fr); max-height: 58vh; overflow: auto; }
  .interest-card { min-height: 94px; padding: 14px; }
  .interest-card .icon { width: 40px; height: 40px; font-size: 1.25rem; }
  .interest-card h3 { font-size: .88rem; }
  .signature-quote { font-size: 1.3rem; }
  .letter-stage { min-height: 240px; }
  .letter-card { padding: 22px; border-radius: 20px; }
  .letter-tab { width: 30px; height: 30px; font-size: .74rem; }
  .footer { font-size: .58rem; }
}

@media (max-width: 520px) {
  .gift { transform: scale(.88); margin-bottom: -12px; }
  .mini-kicker { font-size: .62rem; }
  .open-hint { font-size: 1.2rem; }
  h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-panel { padding-top: 4vh; }
  .photo-wrap { width: 56vw; }
  .photo-card { width: 56vw; padding: 8px 8px 40px; border-radius: 18px; }
  .photo-placeholder { inset: 8px 8px 40px; }
  .photo-placeholder small { font-size: .62rem; }
  .photo-caption { left: 14px; bottom: 10px; font-size: 1rem; }
  .interest-grid { gap: 9px; }
  .interest-card { min-height: 82px; gap: 9px; padding: 10px; border-radius: 15px; }
  .interest-card .icon { width: 34px; height: 34px; border-radius: 10px; }
  .interest-card small { font-size: .56rem; }
  .interest-card h3 { font-size: .78rem; }
  .music-card, .connect-card { padding: 24px; }
  .story-controls { bottom: 22px; }
  .footer { bottom: 4px; }
}

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