.anniversary-welcome[hidden] {
    display: none;
}

.anniversary-welcome {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(2, 4, 7, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

.anniversary-welcome.is-visible {
    opacity: 1;
    visibility: visible;
}

.anniversary-welcome__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    width: min(880px, calc(100vw - 48px));
    min-height: 460px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 44%, rgba(255, 190, 67, 0.15), transparent 31%),
        radial-gradient(circle at 20% 20%, rgba(57, 171, 111, 0.1), transparent 38%),
        linear-gradient(145deg, #111720 0%, #090d13 58%, #08090d 100%);
    border: 1px solid rgba(255, 211, 120, 0.54);
    border-radius: 24px;
    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.78),
        0 0 54px rgba(226, 158, 39, 0.14),
        inset 0 1px rgba(255, 255, 255, 0.08);
    outline: none;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.anniversary-welcome__panel::before {
    content: '';
    position: absolute;
    inset: 8px;
    z-index: 3;
    border: 1px solid rgba(255, 224, 154, 0.12);
    border-radius: 18px;
    pointer-events: none;
}

.anniversary-welcome.is-visible .anniversary-welcome__panel {
    transform: translateY(0) scale(1);
}

.anniversary-welcome__content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 18px 54px 56px;
}

.anniversary-welcome__eyebrow {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    min-height: 29px;
    margin-bottom: 18px;
    padding: 0 13px;
    color: #ffd979;
    background: rgba(221, 163, 50, 0.1);
    border: 1px solid rgba(255, 210, 117, 0.34);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.anniversary-welcome__title {
    max-width: 520px;
    margin: 0 0 18px;
    color: #fff8e8;
    font-family: 'Cinzel', serif;
    font-size: clamp(34px, 4.3vw, 48px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.68);
}

.anniversary-welcome__lead {
    max-width: 500px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.62;
}

.anniversary-welcome__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 500px;
    margin-bottom: 30px;
    padding: 12px 14px;
    color: #d9deea;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.anniversary-welcome__notice-dot {
    width: 7px;
    height: 7px;
    margin-top: 5px;
    flex: 0 0 7px;
    background: #f5c757;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(245, 199, 87, 0.82);
}

.anniversary-welcome__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.anniversary-welcome__primary,
.anniversary-welcome__later {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 9px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.anniversary-welcome__primary {
    gap: 11px;
    padding: 0 22px;
    color: #251400;
    background: linear-gradient(145deg, #fff0a1, #ffc64a 48%, #dd8a0d);
    border: 1px solid #ffe5a0;
    box-shadow: 0 9px 25px rgba(224, 147, 23, 0.25), inset 0 1px rgba(255, 255, 255, 0.72);
}

.anniversary-welcome__primary:hover,
.anniversary-welcome__primary:focus-visible {
    color: #1e1000;
    background: linear-gradient(145deg, #fff8c6, #ffd76a 48%, #eea022);
    box-shadow: 0 12px 30px rgba(236, 166, 47, 0.36), inset 0 1px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.anniversary-welcome__later {
    padding: 0 17px;
    color: rgba(255, 255, 255, 0.62);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.anniversary-welcome__later:hover,
.anniversary-welcome__later:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.24);
}

.anniversary-welcome__primary:focus-visible,
.anniversary-welcome__later:focus-visible,
.anniversary-welcome__close:focus-visible {
    outline: 2px solid #ffe390;
    outline-offset: 3px;
}

.anniversary-welcome__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 8;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(2, 4, 7, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    font: 300 25px/1 'Inter', sans-serif;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.anniversary-welcome__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(6deg);
}

.anniversary-welcome__art {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 0;
    overflow: hidden;
    background:
        linear-gradient(90deg, transparent, rgba(255, 190, 65, 0.035)),
        radial-gradient(circle at 50% 50%, rgba(255, 204, 94, 0.13), transparent 58%);
}

.anniversary-welcome__art::before,
.anniversary-welcome__art::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 216, 128, 0.13);
    border-radius: 50%;
}

.anniversary-welcome__art::before {
    width: 330px;
    height: 330px;
}

.anniversary-welcome__art::after {
    width: 250px;
    height: 250px;
    box-shadow: 0 0 70px rgba(244, 176, 54, 0.08);
}

.anniversary-welcome__art img {
    position: relative;
    z-index: 3;
    width: min(210px, 68%);
    height: auto;
    margin-top: 115px;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 22px rgba(255, 190, 57, 0.18));
    animation: anniversaryWelcomeGift 3.8s ease-in-out infinite;
}

.anniversary-welcome__seven {
    position: absolute;
    top: 20px;
    z-index: 1;
    color: rgba(255, 224, 149, 0.12);
    font-family: 'Cinzel', serif;
    font-size: 250px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 35px rgba(255, 192, 65, 0.09);
}

.anniversary-welcome__years {
    position: absolute;
    right: 0;
    bottom: 34px;
    left: 0;
    z-index: 4;
    color: #f7d57f;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.anniversary-welcome__spark {
    position: absolute;
    z-index: 4;
    width: 5px;
    height: 5px;
    background: #ffe79c;
    border-radius: 50%;
    box-shadow: 0 0 12px #ffc94e;
    animation: anniversaryWelcomeSpark 2.5s ease-in-out infinite;
}

.anniversary-welcome__spark--one { top: 25%; left: 18%; }
.anniversary-welcome__spark--two { top: 44%; right: 14%; animation-delay: -0.8s; }
.anniversary-welcome__spark--three { right: 28%; bottom: 18%; animation-delay: -1.55s; }

body.anniversary-welcome-open {
    overflow: hidden;
}

@keyframes anniversaryWelcomeGift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes anniversaryWelcomeSpark {
    0%, 100% { opacity: 0.25; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.25); }
}

@media (max-width: 720px) {
    .anniversary-welcome {
        place-items: start center;
        padding: 16px;
    }

    .anniversary-welcome__panel {
        grid-template-columns: 1fr;
        width: min(520px, calc(100vw - 32px));
        min-height: 0;
        margin: auto 0;
    }

    .anniversary-welcome__content {
        order: 2;
        padding: 28px 26px 30px;
        text-align: center;
    }

    .anniversary-welcome__eyebrow {
        align-self: center;
        margin-bottom: 13px;
    }

    .anniversary-welcome__title {
        margin-right: auto;
        margin-left: auto;
        font-size: clamp(29px, 8vw, 38px);
    }

    .anniversary-welcome__lead,
    .anniversary-welcome__notice {
        margin-right: auto;
        margin-left: auto;
    }

    .anniversary-welcome__notice {
        text-align: left;
    }

    .anniversary-welcome__actions {
        justify-content: center;
    }

    .anniversary-welcome__art {
        order: 1;
        height: 175px;
        min-height: 175px;
    }

    .anniversary-welcome__art img {
        width: 128px;
        margin-top: 38px;
    }

    .anniversary-welcome__seven {
        top: -29px;
        font-size: 190px;
    }

    .anniversary-welcome__years {
        bottom: 13px;
    }
}

@media (max-width: 440px) {
    .anniversary-welcome__content {
        padding: 24px 18px 25px;
    }

    .anniversary-welcome__lead {
        font-size: 14px;
    }

    .anniversary-welcome__notice {
        margin-bottom: 22px;
        padding: 10px 11px;
        font-size: 11px;
    }

    .anniversary-welcome__actions {
        flex-direction: column;
    }

    .anniversary-welcome__primary,
    .anniversary-welcome__later {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anniversary-welcome,
    .anniversary-welcome__panel,
    .anniversary-welcome__art img,
    .anniversary-welcome__spark {
        animation: none;
        transition: none;
    }
}
