/* Mobile v2 remains the layout foundation. */
.invitation .site-header{gap:6px}
.invitation .brand{min-width:0;flex-wrap:nowrap}
.invitation .brand span{font-size:13px;line-height:1.35}
.invitation .brand img{width:23px;flex:none}
.sfx-button{border:1px solid #b7cba8;background:#f6f8e9;border-radius:20px;color:#416646;font:600 11px inherit;min-height:44px;padding:0 9px;white-space:nowrap;cursor:pointer}
.invitation .music-button{flex-shrink:0;min-width:44px;min-height:44px}
.invitation .hero-copy{position:relative}.welcome-animal{display:block;object-fit:contain;margin:10px auto 0;height:66px;width:60px;animation:animal-sway 4s ease-in-out infinite}
.invitation .hero-hint{margin-top:3px}.invitation .hero{min-height:810px}
.animal-row{display:flex;align-items:center;justify-content:center;gap:15px;margin:-5px auto 10px}.animal-row img,.animal-gathering img,.desk-animal{object-fit:contain;animation:animal-sway 5s ease-in-out infinite}.animal-row span{font-size:12px;color:#6b785d}
.animal-gathering{display:flex;justify-content:space-around;align-items:end;margin:0 auto -12px;max-width:320px}.animal-gathering img:nth-child(2){animation-delay:-2s}.animal-gathering img:nth-child(3){animation-delay:-3s}
.desk-animal{display:block;margin:12px auto 0}.invitation .rsvp-mini-ticket{margin-top:4px}
.invitation .passport{background-color:#e5edd4;background-image:repeating-radial-gradient(ellipse at 0 0,transparent 0 7px,#f6f5da88 8px 9px,transparent 10px 15px);background-size:47px 49px;border:8px solid #f5f1d8;border-radius:26px;box-shadow:0 6px 0 #d8dcc280,0 15px 30px #53683e0c}
.invitation .passport-header{background:#f7f4dfd9;color:#68836a;border-bottom:1px solid #d7dfbe}.invitation .passport-body{background:#e6edd59c;gap:15px;padding:16px 12px}.invitation .passport-body>div:last-child{min-width:0}.invitation .passport h3{font-size:25px;margin:5px 0 10px}.invitation .passport-body small{color:#59765b;font-weight:700}
.invitation .portrait{width:112px;height:151px;flex:0 0 112px;background:#eff3de;border:5px solid #faf5da;border-radius:30px;overflow:hidden}.invitation .portrait img{width:100%;height:100%;object-fit:contain}.invitation .passport footer{font-size:10px;background:#faf5dae3;padding:13px 10px}.invitation .resident-role{border:1px dashed #7f986e;background:#faf5da9c;transform:rotate(-2deg);font-size:11px}
.invitation .memory-photo{background:#fff;height:auto;min-height:0;aspect-ratio:auto;padding:7px 7px 0}.invitation .gallery-image{position:relative;width:100%;height:auto;max-height:none;object-fit:contain;display:block;border-radius:14px}.invitation .photo-caption{position:relative;bottom:auto;left:auto;right:auto;transform:none;color:#68715b;font-size:10px;background:#fff;padding:12px 2px;margin:0}
.invitation #photo-dialog{max-width:96vw;max-height:94dvh;padding:9px}.invitation #large-photo{max-height:83dvh;width:auto;max-width:100%;object-fit:contain}
.invitation .timeline{padding-left:0}.invitation .timeline li{grid-template-columns:65px minmax(0,1fr);gap:12px}.invitation .timeline time{font-size:11px;line-height:1.6;word-break:keep-all}.invitation .timeline li:last-child time{color:#ba694e;font-size:20px;font-weight:800}.timeline-art{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:13px;margin:12px 0 5px;background:#e5ecd7}
.invitation .timeline li:last-child{padding-top:13px;border-top:1px dashed #b7c5a2}.invitation .notice-board{padding-left:18px;padding-right:18px}
.invitation .letter-paper:not([hidden]){animation:unfold .5s ease-out}.invitation #accepted-stamp:not([hidden]){animation:stamp-drop .3s ease-out}.candy-confetti{position:fixed;pointer-events:none;z-index:100;color:#df9976;animation:candy-fall 1.3s ease-out both;font-size:15px}
@keyframes animal-sway{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}@keyframes unfold{from{opacity:0;transform:translateY(18px) scaleY(.93)}to{opacity:1;transform:none}}@keyframes stamp-drop{from{opacity:0;transform:scale(1.7) rotate(-16deg)}to{opacity:1;transform:scale(1) rotate(-12deg)}}@keyframes candy-fall{from{opacity:0;transform:translateY(-12px)}20%{opacity:1}to{opacity:0;transform:translate(var(--drift),100px) rotate(100deg)}}
@media(max-width:350px){.invitation .portrait{width:85px;flex-basis:85px;height:132px}.invitation .passport h3{font-size:23px}.invitation .passport-body{gap:9px}.sfx-button{padding:0 6px;font-size:10px}.invitation .hero{min-height:850px}}
@media(prefers-reduced-motion:reduce){.invitation *, .invitation *::before,.invitation *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.candy-confetti{display:none}}
.invitation .passport{background-image:url("./assets/passport-pattern.svg");background-size:72px 72px}.invitation .passport-body{background:#e6edd54a}.sfx-button{font-family:inherit;font-size:11px;font-weight:600}
.invitation .timeline li{display:block;border-left:1px solid #dce5c9;padding:0 0 26px 16px;margin-left:7px}.invitation .timeline li::before{left:-4px;top:10px}.invitation .timeline time{display:inline-block;margin:0 0 8px;padding:3px 9px;border-radius:12px;background:#eaf0dd}.invitation .timeline-art{width:100%;margin-top:12px}.invitation .timeline li:last-child{border-top:0;padding-top:0}.invitation .timeline li:last-child time{background:#f8ede2}.invitation .timeline li:last-child{border-left-color:#dbaf94}
