/* Wedding splash screen */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #080808;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-bg {
    position: absolute;
    inset: 0;
    background: url('/static/images/wedding-bouquet.webp') center 40% / cover no-repeat;
    filter: brightness(0.96) saturate(0.92);
    transform: scale(1.06);
    animation: splashSlowZoom 22s ease-in-out infinite alternate;
}

.splash-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 50% 45%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.02) 32%, rgba(0, 0, 0, 0.02) 68%, rgba(0, 0, 0, 0.12) 100%);
}

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(92vw, 900px);
    padding: 0 2rem;
    text-align: center;
}

.splash-deco {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: splashFadeUp 1.2s ease forwards 0.3s;
}

.splash-deco span {
    width: clamp(54px, 9vw, 92px);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 240, 220, 0.68), transparent);
}

.splash-deco i {
    width: 8px;
    height: 8px;
    background: rgba(255, 235, 210, 0.9);
    transform: rotate(45deg);
}

.splash-title {
    margin: 0;
    color: #fff;
    font-family: 'Great Vibes', 'Cormorant Garamond', 'Times New Roman', cursive;
    font-size: clamp(5rem, 13vw, 10rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0;
    text-shadow:
        0 0 30px rgba(255, 230, 210, 0.7),
        0 0 70px rgba(255, 210, 180, 0.35),
        2px 4px 16px rgba(0, 0, 0, 0.55);
    opacity: 0;
    animation: splashFadeUp 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.6s;
}

.splash-subtitle {
    margin: -0.25rem 0 0;
    color: rgba(255, 248, 238, 0.92);
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: clamp(1.7rem, 4.6vw, 3.2rem);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    text-shadow: 0 0 18px rgba(255, 210, 170, 0.45), 1px 2px 10px rgba(0, 0, 0, 0.45);
    opacity: 0;
    animation: splashFadeUp 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards 1s;
}

.splash-heart {
    margin: 1.4rem 0 1.1rem;
    color: rgba(255, 185, 160, 0.96);
    font-size: 0.9rem;
    filter: drop-shadow(0 0 6px rgba(255, 150, 120, 0.5));
    opacity: 0;
    animation: splashFadeUp 1.2s ease forwards 1.3s, splashHeartbeat 2.8s ease-in-out infinite 2.4s;
}

.splash-copy {
    margin: 0 0 7.8rem;
    color: rgba(255, 248, 240, 0.93);
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(0.82rem, 1.6vw, 1.05rem);
    font-weight: 400;
    letter-spacing: 0.44em;
    text-indent: 0.44em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    animation: splashFadeUp 1.2s ease forwards 1.5s;
}

.splash-enter-btn {
    position: absolute;
    z-index: 3;
    bottom: max(8vh, 44px);
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 220px;
    min-height: 54px;
    padding: 1rem 3rem;
    color: #fff;
    background: linear-gradient(135deg, #d4a83a 0%, #e8c45a 30%, #c9952e 60%, #ddb84a 100%);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(180, 130, 20, 0.45), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
    cursor: pointer;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1rem, 1.9vw, 1.18rem);
    font-weight: 300;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(100, 60, 0, 0.35);
    transform: translateX(-50%);
    opacity: 0;
    animation: splashButtonAppear 1.2s ease forwards 1.8s;
    transition: filter 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
}

.splash-enter-btn::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 -100%;
    width: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
    transition: left 0.65s ease;
}

.splash-enter-btn:hover {
    filter: brightness(1.12);
    box-shadow: 0 6px 28px rgba(180, 130, 20, 0.6), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
    transform: translate(-50%, -2px);
}

.splash-enter-btn:hover::before {
    left: 100%;
}

.splash-enter-btn i,
.splash-enter-btn span {
    position: relative;
    z-index: 1;
}

.splash-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.splash-particles span {
    position: absolute;
    opacity: 0;
    animation: splashPetalFall linear infinite;
}

.splash-flare {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.splash-flare-1 {
    width: min(56vw, 600px);
    height: min(56vw, 600px);
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(255, 215, 190, 0.1) 0%, transparent 65%);
    animation: splashFlareA 14s ease-in-out infinite alternate;
}

.splash-flare-2 {
    width: min(50vw, 500px);
    height: min(50vw, 500px);
    right: -100px;
    bottom: -100px;
    background: radial-gradient(circle, rgba(190, 210, 255, 0.09) 0%, transparent 65%);
    animation: splashFlareB 18s ease-in-out infinite alternate;
}

.splash-corner {
    position: absolute;
    z-index: 2;
    width: 62px;
    height: 62px;
    border-color: rgba(255, 240, 220, 0.38);
    opacity: 0;
    animation: splashFadeIn 1.8s ease forwards 2s;
}

.splash-corner-tl {
    top: 1.8rem;
    left: 1.8rem;
    border-top: 1px solid;
    border-left: 1px solid;
}

.splash-corner-tr {
    top: 1.8rem;
    right: 1.8rem;
    border-top: 1px solid;
    border-right: 1px solid;
}

.splash-corner-bl {
    bottom: 1.8rem;
    left: 1.8rem;
    border-bottom: 1px solid;
    border-left: 1px solid;
}

.splash-corner-br {
    right: 1.8rem;
    bottom: 1.8rem;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

@keyframes splashSlowZoom {
    from { transform: scale(1.06); }
    to { transform: scale(1.14); }
}

@keyframes splashFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes splashFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes splashButtonAppear {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes splashHeartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

@keyframes splashPetalFall {
    0% { opacity: 0; transform: translateY(-30px) rotate(0deg) translateX(0); }
    8% { opacity: 0.8; }
    88% { opacity: 0.34; }
    100% { opacity: 0; transform: translateY(108vh) rotate(600deg) translateX(30px); }
}

@keyframes splashFlareA {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(70px, 50px) scale(1.1); }
}

@keyframes splashFlareB {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-60px, -40px) scale(1.08); }
}

@media (max-width: 640px) {
    .splash-copy {
        margin-bottom: 7rem;
        letter-spacing: 0.24em;
        text-indent: 0.24em;
    }

    .splash-subtitle {
        letter-spacing: 0.22em;
        text-indent: 0.22em;
    }

    .splash-enter-btn {
        min-width: 190px;
        padding-inline: 2.2rem;
    }

    .splash-corner {
        width: 44px;
        height: 44px;
    }
}
