/* ============================================
   RESET & TOKENS
   ============================================ */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

:root {
    --teal:       #5BA899;
    --teal-lt:    #8ECABD;
    --teal-dk:    #3D8474;
    --cream:      #FBF4E8;
    --cream-dk:   #EDD9C0;
    --brown:      #A96E3C;
    --brown-dk:   #6B4422;
    --gold:       #C49535;
    --gold-lt:    #DFBE5E;
    --blue-p:     #D8E6F0;
    --sage:       #B5CCBF;
    --sage-lt:    #D4E4DA;
    --rose:       #E8C4B8;
    --white:      #FFFFFF;
    --txt:        #2E2924;
    --txt-m:      #5C5248;
    --shadow:     rgba(70,60,50,0.10);
}

html { height:100%; scroll-behavior:smooth; }
body {
    min-height:100%; font-family:'Poppins',sans-serif;
    background: url('assets/watercolor_bg.png') center/cover fixed,
                linear-gradient(170deg, var(--sage-lt) 0%, var(--cream) 25%, #FFF9F0 50%, var(--cream) 75%, var(--blue-p) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* ============================================
   PAGE
   ============================================ */
.page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

/* ============================================
   PARTICLES
   ============================================ */
.particles { position:fixed; inset:0; pointer-events:none; z-index:0; }
.particle {
    position:absolute; border-radius:50%; opacity:0;
    animation: pFloat 10s infinite ease-in-out;
}
@keyframes pFloat {
    0%   { transform:translateY(100vh) scale(0); opacity:0; }
    10%  { opacity:.4; }
    90%  { opacity:.4; }
    100% { transform:translateY(-10vh) scale(1); opacity:0; }
}

/* ============================================
   STARS & HEARTS
   ============================================ */
.star {
    position:fixed; color:var(--gold); z-index:1; opacity:0;
    animation: tw 3.5s infinite ease-in-out;
}
.s1{top:5%;left:6%;font-size:.8rem;animation-delay:0s}
.s2{top:15%;right:8%;font-size:.6rem;animation-delay:.7s}
.s3{top:30%;left:3%;font-size:.7rem;animation-delay:1.4s}
.s4{top:8%;right:25%;font-size:.55rem;animation-delay:1.9s}
.s5{bottom:15%;right:4%;font-size:.75rem;animation-delay:.4s}
.s6{bottom:30%;left:5%;font-size:.5rem;animation-delay:1.1s}

@keyframes tw {
    0%,100%{opacity:.1;transform:scale(.7) rotate(0)}
    50%{opacity:.9;transform:scale(1.3) rotate(180deg)}
}

.heart{position:fixed;z-index:1;opacity:.15}
.h1{top:10%;left:2%;color:var(--teal-lt);font-size:1.2rem;animation:hf 6s infinite ease-in-out}
.h2{top:5%;right:4%;color:var(--cream-dk);font-size:.8rem;animation:hf 5s infinite ease-in-out 2s}
.h3{bottom:20%;right:6%;color:var(--teal);font-size:1rem;animation:hf 7s infinite ease-in-out 1s}

@keyframes hf {
    0%,100%{transform:translateY(0) rotate(-8deg);opacity:.12}
    50%{transform:translateY(-18px) rotate(8deg);opacity:.45}
}

/* ============================================
   INVITATION WRAPPER
   ============================================ */
.invitation {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
}

/* ============================================
   HERO — Osito + Título superpuestos
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
    min-height: 55vh;
}

/* ============================================
   PORTADA DE APERTURA (COVER GATE)
   ============================================ */
.cover-gate {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(163,213,203,.28) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 10%, rgba(201,160,78,.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 85%, rgba(163,213,203,.22) 0%, transparent 50%),
        linear-gradient(180deg, #EDF4F2 0%, var(--cream) 50%, #F5EFEB 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}

.cover-gate.opened {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    visibility: hidden;
}

.cover-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(163, 213, 203, 0.5);
    border-radius: 32px;
    box-shadow: 0 16px 45px rgba(91, 168, 153, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    text-align: center;
    padding: 38px 28px 34px;
    max-width: 380px;
    width: 90%;
    animation: coverCardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes coverCardIn {
    0%   { opacity: 0; transform: translateY(25px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.cover-envelope-wrap {
    width: 104px;
    height: 104px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163,213,203,0.35) 0%, rgba(255,255,255,0.9) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(91, 168, 153, 0.25), 0 0 0 3px rgba(163, 213, 203, 0.3);
    position: relative;
}

.envelope-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFFFFF 0%, #F4FAF8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(91, 168, 153, 0.2);
    animation: coverEnvelopeFloat 2.8s infinite ease-in-out;
}

.envelope-icon {
    font-size: 2.4rem;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(91, 168, 153, 0.3));
}

@keyframes coverEnvelopeFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-5px) scale(1.04); }
}

.cover-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: var(--txt-lt);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.cover-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--teal);
    line-height: 1.1;
    margin: 2px 0;
    text-shadow: 0 2px 8px rgba(109, 181, 166, 0.25);
}

.cover-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 12px;
}

.cover-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 22px;
    opacity: 0.8;
}

.cover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--teal) 0%, #44897B 100%);
    color: #FFFFFF;
    font-family: 'DM Sans', 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 28px rgba(91, 168, 153, 0.45), 0 0 0 4px rgba(163, 213, 203, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: coverBtnPulse 2.2s infinite ease-in-out;
}

.cover-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 34px rgba(91, 168, 153, 0.6), 0 0 0 6px rgba(163, 213, 203, 0.4);
}

@keyframes coverBtnPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 28px rgba(91, 168, 153, 0.45), 0 0 0 4px rgba(163, 213, 203, 0.3);
    }
    50% {
        transform: scale(1.035);
        box-shadow: 0 14px 36px rgba(91, 168, 153, 0.65), 0 0 0 7px rgba(163, 213, 203, 0.45);
    }
}

.cover-btn-icon {
    font-size: 1.25rem;
}

.cover-btn-sparkle {
    font-size: 1.1rem;
}

.cover-hint {
    font-family: 'Poppins', sans-serif;
    font-size: 0.76rem;
    color: var(--txt-lt);
    margin-top: 10px;
    letter-spacing: 0.04em;
}

/* --- INTRO OVERLAY: pure CSS botanical --- */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 10% 5%, rgba(163,213,203,.18) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 5%, rgba(163,213,203,.14) 0%, transparent 38%),
        radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.6) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(201,160,78,.06) 0%, transparent 35%),
        radial-gradient(ellipse at 85% 85%, rgba(163,213,203,.1) 0%, transparent 35%),
        linear-gradient(180deg, #e8ece8 0%, var(--cream) 15%, var(--white) 40%, var(--white) 60%, var(--cream) 85%, #eae5dd 100%);
    pointer-events: none;
    overflow: hidden;
}

.intro-overlay.active {
    display: flex;
    animation: introFadeOut 1s ease-in 10.5s forwards;
}

/* Watercolor texture overlay */
.intro-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(163,213,203,.08) 0%, transparent 30%),
        radial-gradient(circle at 80% 15%, rgba(163,213,203,.06) 0%, transparent 25%),
        radial-gradient(circle at 50% 90%, rgba(201,160,78,.04) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

@keyframes introFadeOut {
    0%   { opacity: 1; }
    100% { opacity: 0; pointer-events: none; visibility: hidden; }
}

/* SVG Leaves */
.leaf-svg {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: leafFadeIn 1.2s ease-out forwards;
}
.leaf-tl {
    top: 0; left: 0;
    width: clamp(100px, 25vw, 160px);
    animation-delay: .3s;
}
.leaf-tr {
    top: 0; right: 0;
    width: clamp(100px, 25vw, 160px);
    animation-delay: .6s;
}
.leaf-br {
    bottom: 5%; right: 0;
    width: clamp(80px, 18vw, 120px);
    animation-delay: .9s;
}

@keyframes leafFadeIn {
    0%   { opacity: 0; transform: scale(.7); }
    100% { opacity: 1; transform: scale(1); }
}

/* Mini floating decorations */
.mini-deco {
    position: absolute;
    font-size: .6rem;
    color: var(--gold-lt);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    animation: miniFloat 4s ease-in-out infinite;
}
@keyframes miniFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(.6); }
    50%      { opacity: .4; transform: translateY(-8px) scale(1); }
}

/* Bear image — inline in flow after closing text */
.intro-bear-img {
    width: clamp(160px, 40vw, 240px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(163,213,203,.2));
    margin-top: 8px;
}

.intro-content {
    max-width: 520px;
    width: 92%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 10vh 20px 6vh;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    z-index: 2;
}

.intro-p {
    opacity: 0;
    transform: translateY(18px);
    animation: introReveal .9s ease-out forwards;
}

/* Heart + branch divider */
.intro-heart-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}
.branch-deco {
    font-size: .8rem;
    color: var(--brown);
    letter-spacing: 2px;
    opacity: .5;
}
.heart-big {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 8px rgba(100,140,180,.2));
    animation: heartPulse 2s ease-in-out infinite 2s;
}
@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}

.intro-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.6rem, 9vw, 3.6rem);
    color: var(--brown-dk);
    font-weight: 700;
    line-height: 1.15;
    text-shadow:
        0 1px 12px rgba(255,255,255,.8),
        0 0 30px rgba(253,248,240,.9);
    animation-delay: .5s;
}

.intro-body {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 3.2vw, 1.15rem);
    color: var(--txt);
    font-weight: 400;
    line-height: 1.8;
    text-shadow:
        0 0 12px rgba(253,248,240,.9),
        0 0 24px rgba(253,248,240,.8),
        0 1px 3px rgba(255,255,255,.6);
    max-width: 90%;
}
.intro-body:nth-child(4) { animation-delay: 2s; }
.intro-body:nth-child(5) { animation-delay: 4s; }

.intro-closing {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: var(--brown);
    font-weight: 600;
    line-height: 1.3;
    text-shadow:
        0 1px 10px rgba(253,248,240,.95),
        0 0 25px rgba(253,248,240,.9),
        0 0 40px rgba(253,248,240,.7);
    animation-delay: 6s;
}

@keyframes introReveal {
    0%   { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- TITLE LAYER: container for absolute positioned words --- */
.title-layer {
    position: absolute;
    inset: 0;
    z-index: 10; /* BEHIND the bear */
    pointer-events: none;
}

/* "BABY" — left side of the bear */
.t-baby {
    position: absolute;
    left: 2%;
    top: 44%;
    transform: translateY(-50%);
    font-family: 'Playfair Display SC', serif;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 6px;
    background: linear-gradient(175deg, var(--teal-dk) 10%, var(--teal) 55%, var(--teal-lt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 3px 4px rgba(77,149,133,.15));
    opacity: 0;
}

/* "Shower" — right side of the bear */
.t-shower {
    position: absolute;
    right: 2%;
    top: 52%;
    transform: translateY(-50%);
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    color: var(--brown);
    font-weight: 400;
    opacity: 0;
}

.started .t-baby {
    animation: slideFromLeft 1s cubic-bezier(.22,1,.36,1) 10.5s forwards;
}

.started .t-shower {
    animation: slideFromRight 1s cubic-bezier(.22,1,.36,1) 10.8s forwards;
}

@keyframes slideFromLeft {
    0%   { opacity: 0; transform: translateY(-50%) translateX(-100px); }
    100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}
@keyframes slideFromRight {
    0%   { opacity: 0; transform: translateY(-50%) translateX(100px); }
    100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* --- BEAR LAYER: on top of title --- */
.bear-layer {
    position: relative;
    z-index: 20; /* ABOVE the title */
    margin-top: -10px;
    opacity: 0;
}

.started .bear-layer {
    animation: bearAppear 1.2s cubic-bezier(.22,1,.36,1) 11.2s forwards;
}

.bear-img {
    width: clamp(280px, 55vw, 420px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 28px rgba(60,50,40,.12));
    animation: bearFloat 7s infinite ease-in-out 13s;
    transition: transform .3s ease;
}

@keyframes bearAppear {
    0%   { opacity: 0; transform: translateY(-25px) scale(0.85); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bearFloat {
    0%   { transform: translateY(0) rotate(0); }
    20%  { transform: translateY(-10px) rotate(.5deg); }
    40%  { transform: translateY(-3px) rotate(-.3deg); }
    60%  { transform: translateY(-14px) rotate(.7deg); }
    80%  { transform: translateY(-5px) rotate(-.4deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* Glows */
.glow {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: 5;
    animation: glowPulse 4s infinite ease-in-out;
}
.glow-1 {
    width: 100px; height: 100px; top: 5%; left: 5%;
    background: radial-gradient(circle, rgba(163,213,203,.25), transparent 70%);
}
.glow-2 {
    width: 80px; height: 80px; top: 3%; right: 8%;
    background: radial-gradient(circle, rgba(232,205,126,.2), transparent 70%);
    animation-delay: 1.5s;
}
.glow-3 {
    width: 90px; height: 90px; bottom: 10%; left: 12%;
    background: radial-gradient(circle, rgba(184,125,74,.15), transparent 70%);
    animation-delay: 3s;
}

@keyframes glowPulse {
    0%,100% { transform: scale(1); opacity: .5; }
    50%     { transform: scale(1.6); opacity: 1; }
}

/* ============================================
   DETAILS SECTION — frosted glass card
   ============================================ */
.details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 34px 28px 40px;
    gap: 18px;
    margin-top: -90px;
    width: 92%;
    max-width: 520px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0.52) 100%);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-radius: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 20px 60px rgba(93, 80, 65, 0.12),
        0 4px 18px rgba(93, 80, 65, 0.06),
        inset 0 1px 3px rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(91, 168, 153, 0.15);
    position: relative;
    overflow: hidden;
}

/* Decorative corner flourishes */
.details::before,
.details::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: .12;
    pointer-events: none;
}
.details::before {
    top: -2px; left: -2px;
    border-top: 2.5px solid var(--gold);
    border-left: 2.5px solid var(--gold);
    border-radius: 28px 0 0 0;
}
.details::after {
    bottom: -2px; right: -2px;
    border-bottom: 2.5px solid var(--gold);
    border-right: 2.5px solid var(--gold);
    border-radius: 0 0 28px 0;
}

/* ============================================
   ORNAMENT
   ============================================ */
.ornament {
    display: flex; align-items: center; gap: 12px;
    width: 100%; max-width: 250px;
}
.orn-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
}
.orn-dot { font-size: 1.1rem; animation: tw 3.5s infinite ease-in-out 1.2s; }

/* ============================================
   NAME
   ============================================ */
.name-section { text-align: center; }

.name-pre {
    font-size: clamp(.85rem, 2.2vw, 1rem);
    color: var(--txt-m);
    letter-spacing: 3px; text-transform: lowercase;
    font-weight: 300; display: block; margin-bottom: 2px;
}

.baby-name {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.6rem, 8vw, 4.2rem);
    color: var(--brown-dk);
    font-weight: 700;
    line-height: 1.15;
    position: relative;
    text-shadow: 0 1px 3px rgba(107, 68, 34, .08);
}

.gold-line {
    width: 100px; height: 2px; margin: 4px auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: glLine 3s infinite ease-in-out;
}
@keyframes glLine {
    0%,100% { opacity: .35; width: 80px; }
    50%     { opacity: 1; width: 150px; }
}

.baby-last {
    font-size: clamp(.9rem, 2.5vw, 1.1rem);
    color: var(--teal-dk);
    font-weight: 600;
    letter-spacing: 6px; text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(61, 132, 116, .08);
}

/* Shimmer on name */
.baby-name::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201,160,78,.12), transparent);
    animation: nameShimmer 5s infinite ease-in-out 5s;
}
@keyframes nameShimmer { 0% { left: -100%; } 100% { left: 200%; } }

/* ============================================
   DATE STRIP — prominent, grand & elegant layout
   ============================================ */
.date-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 440px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(240, 248, 246, 0.5) 100%);
    border: 1.5px solid rgba(163, 213, 203, 0.4);
    border-radius: 24px;
    box-shadow: 
        0 8px 24px rgba(91, 168, 153, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    position: relative;
    margin: 4px 0;
}

.ds-side {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-line-h {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(91, 168, 153, 0.4), var(--teal));
}

.ds-side-right .ds-line-h {
    background: linear-gradient(90deg, var(--teal), rgba(91, 168, 153, 0.4), transparent);
}

.ds-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(163, 213, 203, 0.35);
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(91, 168, 153, 0.08);
}

.ds-label {
    font-size: clamp(.88rem, 2.4vw, 1.05rem);
    color: var(--txt);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ds-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
    position: relative;
}

.ds-number-wrap {
    position: relative;
}

.ds-number {
    font-family: 'Playfair Display SC', serif;
    font-size: clamp(2.8rem, 7.5vw, 3.6rem);
    font-weight: 900;
    color: var(--teal-dk);
    line-height: 1;
    background: linear-gradient(145deg, #FFFFFF 0%, rgba(181, 224, 215, 0.35) 100%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2.5px solid var(--teal);
    box-shadow: 
        0 6px 20px rgba(91, 168, 153, 0.22),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(61, 132, 116, 0.2);
}

.ds-month {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    color: var(--brown-dk);
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(107, 68, 34, 0.08);
}

/* ============================================
   LOCATION ROW
   ============================================ */
.location-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.loc-icon {
    font-size: 1.3rem;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, rgba(91,168,153,.12), rgba(212,228,218,.18));
    border-radius: 50%;
    border: 1.5px solid rgba(91,168,153,.22);
    box-shadow: 0 2px 8px rgba(91,168,153,.08);
}

.loc-info {
    display: flex; flex-direction: column; align-items: center;
}
.loc-main {
    font-size: clamp(.82rem, 2.2vw, .95rem);
    color: var(--txt);
    font-weight: 500;
    letter-spacing: .3px;
}
.loc-sub {
    font-size: clamp(.68rem, 1.8vw, .78rem);
    color: var(--txt-m);
    font-weight: 300;
    font-style: italic;
}

.loc-link {
    font-size: clamp(.7rem, 1.8vw, .8rem);
    color: var(--teal-dk);
    font-weight: 500;
    margin-top: 4px;
    transition: color .2s ease, letter-spacing .2s ease;
}

.location-row:hover .loc-link {
    color: var(--teal);
    letter-spacing: .5px;
}

.location-row:hover .loc-icon {
    transform: scale(1.12);
}

.loc-icon {
    transition: transform .2s ease;
}

/* ============================================
   GUEST GREETING (personalized invitation)
   ============================================ */
.guest-greeting {
    text-align: center;
    margin-bottom: 8px;
}

.greeting-pre {
    font-size: clamp(.85rem, 2.2vw, 1rem);
    color: var(--txt-m);
    letter-spacing: 2px;
    text-transform: lowercase;
    font-weight: 300;
    display: block;
    margin-bottom: 2px;
}

.greeting-name {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--teal-dk);
    font-weight: 600;
    line-height: 1.2;
}

.greeting-subtitle {
    font-size: clamp(.78rem, 2vw, .88rem);
    color: var(--teal);
    font-weight: 400;
    font-style: italic;
    margin-top: 4px;
    letter-spacing: .5px;
    opacity: .85;
}

.greeting-passes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 18px;
    background: rgba(201, 160, 78, .08);
    border: 1px solid rgba(201, 160, 78, .15);
    border-radius: 50px;
    font-size: clamp(.78rem, 2vw, .88rem);
    color: var(--brown);
    font-weight: 500;
}

.passes-icon {
    font-size: 1rem;
}

/* Confirmed banner */
.confirmed-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(39, 174, 96, .08);
    border: 1px solid rgba(39, 174, 96, .15);
    border-radius: 14px;
    margin-top: 8px;
    animation: aUp .8s ease-out forwards;
}

.confirmed-icon {
    font-size: 1.3rem;
}

.confirmed-text {
    font-size: clamp(.85rem, 2.2vw, .95rem);
    color: #27AE60;
    font-weight: 600;
}

/* CTA confirmed state */
.cta-btn.btn-confirmed {
    background: linear-gradient(135deg, #27AE60, #1E8449);
    cursor: default;
    animation: none;
    pointer-events: none;
}

/* ============================================
   CTA
   ============================================ */
.cta-wrap {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Decline link — discrete, text-only */
.decline-link {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(.72rem, 1.8vw, .8rem);
    color: var(--txt-m);
    font-weight: 400;
    cursor: pointer;
    padding: 4px 8px;
    opacity: .6;
    transition: opacity .2s ease, color .2s ease;
    letter-spacing: .3px;
}

.decline-link:hover {
    opacity: 1;
    color: var(--txt);
}

/* Declined state */
.cta-btn.btn-declined {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    cursor: default;
    animation: none;
    pointer-events: none;
}

.declined-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(158, 158, 158, .08);
    border: 1px solid rgba(158, 158, 158, .15);
    border-radius: 14px;
    margin-top: 4px;
    animation: aUp .8s ease-out forwards;
}

.declined-text {
    font-size: clamp(.82rem, 2.2vw, .92rem);
    color: var(--txt-m);
    font-weight: 500;
}

.cta-btn {
    font-family: 'Poppins', sans-serif;
    font-size: .92rem; font-weight: 600; letter-spacing: 1.2px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dk) 100%);
    border: none; padding: 15px 38px; border-radius: 50px;
    cursor: pointer; display: flex; align-items: center; gap: 10px;
    box-shadow:
        0 6px 24px rgba(91,168,153,.35),
        0 2px 6px rgba(91,168,153,.15);
    animation: pulse 2.8s infinite ease-in-out 5.5s;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative; overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,.12);
}

.cta-btn::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    animation: btnShimmer 3s infinite ease-in-out 6s;
}
@keyframes btnShimmer { 0% { left: -100%; } 100% { left: 200%; } }

.cta-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 30px rgba(91,168,153,.5);
}

.cta-arrow { transition: transform .3s ease; }
.cta-btn:hover .cta-arrow { transform: translateX(4px); }

@keyframes pulse {
    0%,100% { box-shadow: 0 4px 18px rgba(109,181,166,.3), 0 0 0 0 rgba(109,181,166,.4); }
    50%     { box-shadow: 0 6px 22px rgba(109,181,166,.5), 0 0 0 12px rgba(109,181,166,0); }
}

/* ============================================
   TOAST OVERLAY
   ============================================ */
.toast-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 28, 26, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    opacity: 0;
    transition: all .5s cubic-bezier(.22,1,.36,1);
}

.toast-overlay.active {
    background: rgba(30, 28, 26, .35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: all;
    opacity: 1;
}

.toast-card {
    position: relative;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 24px;
    padding: 38px 32px 32px;
    max-width: 500px;
    width: 92%;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(60, 50, 40, .15),
        0 0 0 1px rgba(163, 213, 203, .1);
    transform: translateY(40px) scale(.92);
    opacity: 0;
    transition: all .6s cubic-bezier(.22, 1, .36, 1) .15s;
    overflow: hidden;
}

/* Envelope watermark */
.toast-card::before {
    content: '✉';
    position: absolute;
    bottom: -50px;
    left: -50px;
    transform: rotate(-40deg);
    font-size: 18rem;
    opacity: .10;
    pointer-events: none;
    z-index: 0;
    color: var(--teal-dk);
}

/* Dollar sign watermark — bottom right */
.toast-card::after {
    content: '$';
    position: absolute;
    bottom: -30px;
    right: -20px;
    transform: rotate(15deg);
    font-size: 14rem;
    opacity: .07;
    pointer-events: none;
    z-index: 0;
    color: var(--gold);
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
}

.toast-overlay.active .toast-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast-close {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(109,181,166,.08);
    border: 1px solid rgba(163,213,203,.2);
    color: var(--txt-m);
    font-size: .8rem;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s ease;
}
.toast-close:hover {
    background: rgba(109,181,166,.18);
    color: var(--teal-dk);
    transform: rotate(90deg);
}

.toast-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    animation: toastIconBounce .6s cubic-bezier(.34,1.56,.64,1) .5s both;
}
@keyframes toastIconBounce {
    0%   { transform: scale(0) rotate(-20deg); }
    100% { transform: scale(1) rotate(0); }
}

.toast-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--txt);
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.toast-text:first-of-type {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--brown-dk);
    font-weight: 600;
    line-height: 1.6;
}

.toast-text-sm {
    font-size: clamp(.95rem, 2.5vw, 1.05rem);
    color: var(--txt-m);
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.toast-text-sm strong {
    color: var(--teal-dk);
    font-weight: 600;
}

.toast-divider {
    width: 60px;
    height: 1.5px;
    margin: 8px auto;
    background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
}

.toast-thanks {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--brown);
    margin-top: 6px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* ============================================
   STAGGERED ENTRANCE
   ============================================ */
.anim-up {
    opacity: 0;
    transform: translateY(18px);
}

.started .anim-up {
    animation: aUp .8s ease-out forwards;
    animation-delay: var(--d, 0s);
}

@keyframes aUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 1200px) {
    .invitation { max-width: 660px; }
    .bear-img { width: 480px; }
    .t-baby { font-size: 7.5rem; }
    .t-shower { font-size: 5.5rem; }
    .baby-name { font-size: 4.5rem; }
    .hero { min-height: 58vh; }
    .details { max-width: 560px; }
}

@media (max-width: 768px) {
    .details {
        padding: 26px 22px 32px;
        gap: 14px;
        width: 94%;
        margin-top: -80px;
        border-radius: 24px;
    }
    .bear-img { width: clamp(250px, 60vw, 370px); }
    .hero { min-height: 48vh; }

    /* Intro overlay — mobile */
    .intro-content {
        width: 94%;
        gap: 16px;
        padding: 8vh 16px 4vh;
    }
    .intro-title {
        font-size: clamp(2.2rem, 8vw, 2.8rem);
    }
    .intro-body {
        font-size: clamp(.95rem, 3.5vw, 1.05rem);
        line-height: 1.7;
    }
    .intro-closing {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
    }
}

@media (max-width: 480px) {
    .details {
        padding: 24px 18px 28px;
        gap: 12px;
        width: 96%;
        margin-top: -60px;
        border-radius: 22px;
    }
    .bear-img { width: clamp(240px, 68vw, 320px); }
    .t-baby { letter-spacing: 3px; font-size: 3rem; left: 4%; }
    .t-shower { font-size: 2rem; right: 4%; }
    .baby-name { font-size: clamp(2.2rem, 9vw, 3rem); }
    .baby-last { letter-spacing: 4px; font-size: clamp(.8rem, 2.2vw, .95rem); }
    .cta-btn { padding: 13px 28px; font-size: .86rem; }
    .hero { min-height: 42vh; }
    .ds-number { width: 68px; height: 68px; font-size: 2.3rem; }
    .ds-month { font-size: clamp(1.2rem, 3.5vw, 1.4rem); }
    .ds-pill { padding: 6px 10px; }
    .ds-label { font-size: 0.8rem; }
    .loc-main { font-size: clamp(.78rem, 2.2vw, .9rem); }
    .name-pre { font-size: clamp(.75rem, 2vw, .9rem); }
    .ornament { max-width: 200px; }
    .date-strip { max-width: 100%; gap: 6px; padding: 10px 12px; }

    /* Intro overlay — small mobile */
    .intro-content {
        width: 95%;
        gap: 14px;
        padding: 6vh 14px 4vh;
    }
    .intro-title {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }
    .intro-body {
        font-size: clamp(.9rem, 3.8vw, 1rem);
        line-height: 1.65;
    }
    .intro-closing {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }
}

@media (max-width: 360px) {
    .details {
        padding: 20px 14px 24px;
        gap: 10px;
        margin-top: -50px;
    }
    .bear-img { width: clamp(200px, 72vw, 280px); }
    .t-baby { font-size: 2.5rem; left: 5%; }
    .t-shower { font-size: 1.8rem; right: 5%; }
    .baby-name { font-size: 2rem; }
    .cta-btn { padding: 11px 22px; font-size: .82rem; }

    /* Intro overlay — extra small */
    .intro-content {
        width: 96%;
        gap: 12px;
        padding: 5vh 12px 3vh;
    }
    .intro-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }
    .intro-body {
        font-size: clamp(.85rem, 4vw, .95rem);
        line-height: 1.6;
    }
    .intro-closing {
        font-size: clamp(1.1rem, 5vw, 1.3rem);
    }
}

@media (max-height: 700px) and (min-width: 769px) {
    .hero { min-height: 48vh; }
    .bear-img { width: clamp(200px, 38vw, 280px); }
    .t-baby { font-size: 4rem; }
    .t-shower { font-size: 2.8rem; }
    .baby-name { font-size: 2.6rem; }
    .details { gap: 10px; padding: 22px 20px 28px; }
    .cta-btn { padding: 10px 26px; font-size: .82rem; }
}

/* Short screens (landscape phones, short devices) */
@media (max-height: 600px) {
    .intro-content {
        gap: 10px;
        padding: 3vh 12px 2vh;
    }
    .intro-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .intro-body {
        font-size: clamp(.82rem, 2.5vw, .92rem);
        line-height: 1.5;
    }
    .intro-closing {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
}

/* ============================================
   FLOATING MUSIC TOGGLE BUTTON
   ============================================ */
.music-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 150;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(163, 213, 203, 0.45);
    box-shadow: 0 6px 20px rgba(91, 168, 153, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.music-toggle-btn:hover {
    transform: scale(1.1);
    background: #FFFFFF;
    border-color: var(--teal);
    box-shadow: 0 8px 26px rgba(91, 168, 153, 0.35);
}

.music-icon {
    font-size: 1.2rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.music-toggle-btn.playing .music-icon {
    animation: musicBounce 2.5s infinite ease-in-out;
}

@keyframes musicBounce {
    0%, 100% { transform: rotate(0) scale(1); }
    25%      { transform: rotate(-10deg) scale(1.08); }
    75%      { transform: rotate(10deg) scale(1.08); }
}

.music-wave {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--teal);
    opacity: 0;
    pointer-events: none;
}

.music-toggle-btn.playing .wave-1 {
    animation: musicWave 2s infinite ease-out;
}

.music-toggle-btn.playing .wave-2 {
    animation: musicWave 2s infinite ease-out 1s;
}

@keyframes musicWave {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

.music-toggle-btn.muted {
    opacity: 0.6;
    filter: grayscale(0.6);
}

@media (max-width: 480px) {
    .music-toggle-btn {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
    }
    .music-icon {
        font-size: 1.05rem;
    }
}
