/* ═══════════ Welcome Screen ═══════════ */

/* Corner ornaments */
.welcome-ornament {
    position: fixed;
    width: 120px; height: 120px;
    pointer-events: none;
    opacity: 0;
}
.welcome-ornament-tl {
    top: 30px; left: 30px;
    border-top: 1px solid rgba(232, 168, 124, 0.2);
    border-left: 1px solid rgba(232, 168, 124, 0.2);
    border-radius: 2px 0 0 0;
}
.welcome-ornament-br {
    bottom: 30px; right: 30px;
    border-bottom: 1px solid rgba(232, 168, 124, 0.2);
    border-right: 1px solid rgba(232, 168, 124, 0.2);
    border-radius: 0 0 2px 0;
}
#screen-welcome.active .welcome-ornament {
    animation: ornamentFade 2s var(--ease-out-expo) 0.5s both;
}
@keyframes ornamentFade {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

.welcome-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--celestial);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    opacity: 0;
}

.welcome-title {
    font-family: var(--font-script);
    font-size: 7rem;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--amber-bright), var(--amber), var(--rose-gold), var(--amber-bright));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(232, 168, 124, 0.3))
            drop-shadow(0 0 80px rgba(232, 168, 124, 0.1));
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.welcome-tagline {
    font-family: var(--font-heading);
    font-weight: 400;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--cream-muted);
    margin-bottom: 0.5rem;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    border-right: 2px solid var(--amber);
}

/* Decorative divider line */
.welcome-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    margin-bottom: 2.5rem;
    opacity: 0;
}

.welcome-btn {
    opacity: 0;
}

/* ═══════ Welcome entrance animations ═══════ */
#screen-welcome.active .welcome-subtitle {
    animation: welcomeSubEnter 1.2s var(--ease-out-expo) 0.3s both;
}
#screen-welcome.active .welcome-title {
    animation: welcomeTitleEnter 1.8s var(--ease-out-expo) 0.7s both, gradientShift 6s ease-in-out infinite;
}
#screen-welcome.active .welcome-tagline {
    animation: typewriter 2.5s steps(38, end) 1.5s both, blinkCursor 0.6s step-end infinite 1.5s;
}
#screen-welcome.active .welcome-divider {
    animation: dividerEnter 1s var(--ease-out-expo) 3.8s both;
}
#screen-welcome.active .welcome-btn {
    animation: welcomeBtnEnter 1s var(--ease-out-expo) 4.2s both,
               btnBreathe 3.5s ease-in-out infinite 5.2s;
}

@keyframes welcomeSubEnter {
    from { opacity: 0; letter-spacing: 3px; filter: blur(4px); }
    to { opacity: 0.9; letter-spacing: 8px; filter: blur(0); }
}

@keyframes welcomeTitleEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.85);
        filter: blur(12px) drop-shadow(0 0 0 transparent);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) drop-shadow(0 0 40px rgba(232, 168, 124, 0.3)) drop-shadow(0 0 80px rgba(232, 168, 124, 0.1));
    }
}

@keyframes typewriter {
    from { width: 0; opacity: 1; }
    to { width: 38ch; opacity: 1; }
}

@keyframes blinkCursor {
    50% { border-color: transparent; }
}

@keyframes dividerEnter {
    from { opacity: 0; width: 0; }
    to { opacity: 0.6; width: 80px; }
}

@keyframes welcomeBtnEnter {
    from { opacity: 0; transform: translateY(15px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes btnBreathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 168, 124, 0.15); }
    50% { box-shadow: 0 0 40px 6px rgba(232, 168, 124, 0.12); }
}

/* ═══════════ Love Gate Screen ═══════════ */
.lovegate-question {
    font-family: var(--font-heading);
    font-weight: 600;
    font-style: italic;
    font-size: 3rem;
    color: var(--cream);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    text-shadow: 0 0 50px rgba(232, 168, 124, 0.15);
}

.lovegate-buttons {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.lovegate-yes {
    transition: all 0.4s var(--ease-out-expo);
}
.lovegate-yes:hover {
    box-shadow:
        0 0 40px rgba(232, 168, 124, 0.25),
        0 0 80px rgba(232, 168, 124, 0.1) !important;
}

.lovegate-no {
    position: relative;
    transition: all 0.6s var(--ease-out-expo);
    border-color: rgba(212, 160, 160, 0.3);
    color: var(--rose-gold);
    background: rgba(212, 160, 160, 0.04);
}
.lovegate-no:hover {
    border-color: rgba(212, 160, 160, 0.5);
}
.lovegate-no.shrink {
    transform: scale(0) rotate(30deg);
    opacity: 0;
    filter: blur(8px);
}

.lovegate-result {
    margin-top: 3rem;
    text-align: center;
}

.lovegate-message {
    font-family: var(--font-script);
    font-size: 3rem;
    background: linear-gradient(135deg, var(--amber-bright), var(--rose-gold-soft), var(--amber));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lovegateReveal 1.2s var(--ease-out-expo) both, gradientShift 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(232, 168, 124, 0.25));
}

@keyframes lovegateReveal {
    from {
        opacity: 0;
        transform: scale(0.7);
        filter: blur(12px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0) drop-shadow(0 0 30px rgba(232, 168, 124, 0.25));
    }
}

/* ═══════ Mobile ═══════ */
@media (max-width: 768px) {
    .welcome-ornament { width: 60px; height: 60px; }
    .lovegate-question { font-size: 2rem !important; }
    .lovegate-message { font-size: 2rem; }
    .welcome-tagline { font-size: 1rem; }
}
@media (max-width: 480px) {
    .welcome-ornament { display: none; }
    .lovegate-buttons { gap: 1.5rem; }
}
