.hero-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    align-items: center;
    min-height: 96vh;
    gap: 42px;
    padding: clamp(28px, 5vw, 72px);
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 248, 239, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 248, 239, 0.16) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 30%, black 55%, transparent 88%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-copy::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -30px;
    z-index: -1;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 63, 85, 0.14), transparent 68%);
    animation: heroGlow 6s ease-in-out infinite;
}

.hero-date {
    margin: 0 0 14px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: heroFadeUp 0.9s ease both;
}

.hero-title {
    position: relative;
    display: inline-block;
    max-width: 760px;
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(62px, 11vw, 132px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #671d2c 0%, #b73f55 52%, #8c4a2f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: heroFadeUp 1.1s ease 0.12s both, heroShimmer 10s ease-in-out 1.2s infinite;
}

.hero-lottie-kitten {
    position: absolute;
    bottom: -10px;
    right: -80px;
    width: 90px;
    height: 90px;
    pointer-events: none;
    filter: drop-shadow(0 4px 14px rgba(183, 63, 85, 0.18));
    z-index: 2;
}

[dir="rtl"] .hero-lottie-kitten {
    right: auto;
    left: -80px;
}

@media (max-width: 1100px) {
    .hero-stage {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding-top: 110px;
        gap: 28px;
    }

    .hero-copy {
        max-width: 100%;
        order: 2;
    }

    .envelope {
        order: 1;
        width: min(380px, 92vw);
        height: min(260px, 64vw);
    }

    .hero-lottie-kitten {
        width: 56px;
        height: 56px;
        bottom: -4px;
        right: -30px;
    }

    [dir="rtl"] .hero-lottie-kitten {
        right: auto;
        left: -30px;
    }
}

.countdown-block {
    margin: 24px 0 4px;
    animation: heroFadeUp 1s ease 0.62s both;
}

.countdown-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.countdown-label {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(22px, 3vw, 32px);
    font-style: italic;
    color: var(--wine);
    line-height: 1;
}

.countdown {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.countdown span {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(103, 29, 44, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.52);
    color: var(--muted);
    text-align: center;
}

.countdown .heartbeat {
    display: grid;
    min-width: 46px;
    width: 46px;
    height: 46px;
    flex: none;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--rose);
    color: white;
    font-size: 22px;
    box-shadow: 0 14px 34px rgba(183, 63, 85, 0.3);
    animation: heartbeat 1.1s ease-in-out infinite;
}

.countdown .heartbeat svg {
    display: block;
}

.countdown strong {
    display: block;
    color: var(--wine);
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    white-space: nowrap;
}

.envelope {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: min(560px, 88vw);
    max-width: 100%;
    height: min(370px, 58vw);
    min-height: 260px;
    border: 0;
    background: #f0a898;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(58, 23, 19, 0.28);
    cursor: pointer;
    animation: heroFadeUp 1.2s ease 0.45s both, envelopeFloat 5.5s ease-in-out 1.8s infinite;
    transition: box-shadow var(--transition);
}

.envelope:hover {
    box-shadow: 0 32px 100px rgba(58, 23, 19, 0.36);
}

.envelope-front,
.envelope-flap {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
}

.envelope-paper {
    position: absolute;
    border-radius: var(--radius);
}

.envelope-front {
    background: linear-gradient(145deg, transparent 49.6%, rgba(103, 29, 44, 0.24) 50%, transparent 50.8%),
    linear-gradient(35deg, transparent 49.4%, rgba(103, 29, 44, 0.18) 50%, transparent 50.9%),
    linear-gradient(160deg, #e78f8f, #f3b5a4 54%, #df745f);
    clip-path: polygon(0 24%, 50% 64%, 100% 24%, 100% 100%, 0 100%);
}

.envelope-flap {
    z-index: 3;
    background: linear-gradient(155deg, #c54d64, #f19b93);
    clip-path: polygon(0 0, 100% 0, 50% 64%);
    transform-origin: top;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.envelope-paper {
    inset: 24% 12% 20%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fffdf7, var(--paper-deep));
    color: var(--ink);
    text-align: center;
    transform: translateY(42%);
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s;
}

.envelope-open-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.envelope-hint-text {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(22px, 3.2vw, 34px);
    font-style: italic;
    font-weight: 700;
    color: var(--wine);
    line-height: 1.2;
    animation: hintPulse 2.5s ease-in-out infinite alternate;
}

.is-opened .envelope-open-hint {
    display: none;
}

.is-opened .envelope-flap {
    transform: rotateX(178deg);
}

.is-opened .envelope-paper {
    transform: translateY(-22%);
}

.envelope-opened-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
}

.is-opened .envelope-opened-text {
    opacity: 1;
    transform: translateY(0);
}

.envelope-opened-msg {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(14px, 2vw, 20px);
    font-style: italic;
    font-weight: 700;
    color: var(--wine);
    text-align: center;
    line-height: 1.4;
    animation: hintPulse 3s ease-in-out infinite alternate;
}

.envelope-cat {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 4px 12px rgba(183, 63, 85, 0.28));
}

.gnome-greeting-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 21, 21, 0.52);
    backdrop-filter: blur(8px);
    animation: greetingFadeIn 0.5s ease both;
    cursor: pointer;
}

.gnome-greeting-overlay.is-hiding {
    animation: greetingFadeOut 0.6s ease both;
}

.gnome-greeting-card {
    position: relative;
    padding: 36px 52px 40px;
    border-radius: 28px;
    background: linear-gradient(145deg, #fff8ef 0%, #fde8d4 55%, #f3b5a4 100%);
    border: 1.5px solid rgba(183, 63, 85, 0.22);
    box-shadow: 0 32px 100px rgba(103, 29, 44, 0.34);
    text-align: center;
    animation: cardPop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
    overflow: hidden;
    min-width: 300px;
    cursor: default;
}

.gnome-greeting-card--heart {
    width: min(320px, 84vw);
    height: min(320px, 84vw);
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-shape {
    position: absolute;
    inset: 0;
    clip-path: path("M160 300 C40 230, 0 150, 30 95 C55 50, 120 45, 160 105 C200 45, 265 50, 290 95 C320 150, 280 230, 160 300 Z");
    background: linear-gradient(160deg, #fff8ef 0%, #fde8d4 50%, #f3b5a4 100%);
    animation: heartGlowPulse 1.8s ease-in-out infinite;
}

.heart-content {
    position: relative;
    z-index: 1;
    width: 78%;
    padding-top: 6%;
    text-align: center;
}

.heart-content .greeting-lottie {
    width: 84px;
    height: 84px;
    margin: 0 auto 2px;
}

.heart-content .greeting-name {
    font-size: clamp(30px, 7vw, 44px);
    margin-bottom: 4px;
}

.heart-content .greeting-sub {
    font-size: clamp(13px, 2vw, 16px);
}

@keyframes heartGlowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 14px rgba(183, 63, 85, 0.55)) drop-shadow(0 0 4px rgba(183, 63, 85, 0.7));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(183, 63, 85, 0.85)) drop-shadow(0 0 10px rgba(216, 154, 66, 0.6));
    }
}

.gnome-greeting-card--neon {
    animation: cardPop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both, neonPulse 1.8s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 32px 100px rgba(103, 29, 44, 0.34),
        0 0 0 1.5px rgba(183, 63, 85, 0.45),
        0 0 18px 3px rgba(183, 63, 85, 0.5),
        0 0 36px 8px rgba(183, 63, 85, 0.22);
    }
    50% {
        box-shadow: 0 32px 100px rgba(103, 29, 44, 0.34),
        0 0 0 1.5px rgba(216, 154, 66, 0.6),
        0 0 28px 6px rgba(216, 154, 66, 0.65),
        0 0 50px 14px rgba(183, 63, 85, 0.35);
    }
}

.greeting-hello {
    margin: 0 0 4px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px, 7vw, 64px);
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    color: var(--wine);
}

.greeting-lottie {
    width: 120px;
    height: 120px;
    margin: 4px auto;
}

.greeting-name {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 9vw, 82px);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(120deg, #671d2c 0%, #b73f55 60%, #d89a42 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.greeting-sub {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(18px, 2.5vw, 24px);
    font-style: italic;
    font-weight: 500;
    color: var(--wine);
    opacity: 0.8;
}

.greeting-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sp {
    position: absolute;
    font-size: 16px;
    animation: sparkleFloat 2s ease-in-out infinite alternate;
}

.sp1 {
    top: 10px;
    left: 14px;
    animation-delay: 0s;
}

.sp2 {
    top: 8px;
    right: 14px;
    animation-delay: 0.3s;
}

.sp3 {
    top: 48%;
    left: 8px;
    animation-delay: 0.6s;
    font-size: 12px;
}

.sp4 {
    bottom: 10px;
    right: 14px;
    animation-delay: 0.2s;
}

.sp5 {
    top: 48%;
    right: 8px;
    animation-delay: 0.5s;
    font-size: 12px;
}

.sp6 {
    bottom: 10px;
    left: 14px;
    animation-delay: 0.4s;
}

.greeting-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ht {
    position: absolute;
    font-size: 14px;
    animation: heartRise 3s ease-in-out infinite;
}

.ht1 {
    bottom: 8px;
    left: 20px;
    animation-delay: 0s;
}

.ht2 {
    bottom: 8px;
    left: 45%;
    animation-delay: 0.8s;
    font-size: 16px;
}

.ht3 {
    bottom: 8px;
    right: 20px;
    animation-delay: 1.4s;
}

.ht4 {
    top: 8px;
    left: 45%;
    animation-delay: 0.4s;
    font-size: 11px;
}

.ht5 {
    top: 8px;
    left: 18px;
    animation-delay: 1s;
    font-size: 11px;
}