/* ============================================
   WELCOME SCREEN - PREMIUM DESIGN
   ============================================ */

#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%);
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

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

/* ---- Background Effects ---- */
.welcome-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.welcome-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,107,0,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 70%, rgba(255,107,0,0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 80% 30%, rgba(255,140,51,0.06) 0%, transparent 50%);
}

.welcome-particles {
    position: absolute;
    inset: 0;
}

.welcome-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255,107,0,0.3);
    border-radius: 50%;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
    50% { transform: translateY(-60px) scale(1.8); opacity: 0.6; }
}

/* ---- Grid Lines ---- */
.welcome-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,107,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ---- Content ---- */
.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

/* ---- Top Badge ---- */
.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,107,0,0.1);
    border: 1px solid rgba(255,107,0,0.2);
    border-radius: 50px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
}

.welcome-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.welcome-badge-dot {
    width: 8px;
    height: 8px;
    background: #ff6b00;
    border-radius: 50%;
    animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.welcome-badge-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #ff8c33;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---- Main Text ---- */
.welcome-text-group {
    margin-bottom: 2.5rem;
}

.welcome-line-1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.welcome-line-1.visible {
    opacity: 1;
    transform: translateY(0);
}

.welcome-line-2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
}

.welcome-line-2.visible {
    opacity: 1;
    transform: translateY(0);
}

.welcome-line-2 .white {
    color: #ffffff;
}

.welcome-line-2 .gold {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c33 50%, #ffaa66 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Divider ---- */
.welcome-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b00, #ff8c33);
    margin: 0 auto 2rem;
    border-radius: 3px;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.6s ease 0.4s;
}

.welcome-divider.visible {
    opacity: 1;
    transform: scaleX(1);
}

/* ---- Loading Section ---- */
.welcome-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.6s;
}

.welcome-loading.visible {
    opacity: 1;
    transform: translateY(0);
}

.welcome-loading-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-loading-dots {
    display: flex;
    gap: 4px;
}

.welcome-loading-dot {
    width: 5px;
    height: 5px;
    background: #ff6b00;
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out;
}

.welcome-loading-dot:nth-child(1) { animation-delay: 0s; }
.welcome-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.welcome-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ---- Progress Bar ---- */
.welcome-progress {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.welcome-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff6b00, #ff8c33, #ffaa66);
    border-radius: 2px;
    transition: width 0.1s linear;
    position: relative;
}

.welcome-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #ff6b00;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255,107,0,0.6);
}

/* ---- Skip Button ---- */
.welcome-skip {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.3);
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.welcome-skip.visible {
    opacity: 1;
}

.welcome-skip:hover {
    color: #ff6b00;
    border-color: rgba(255,107,0,0.3);
}

/* ---- Corner Accents ---- */
.welcome-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.welcome-corner.visible {
    opacity: 1;
}

.welcome-corner--tl {
    top: 2rem;
    left: 2rem;
    border-top: 2px solid rgba(255,107,0,0.3);
    border-left: 2px solid rgba(255,107,0,0.3);
}

.welcome-corner--tr {
    top: 2rem;
    right: 2rem;
    border-top: 2px solid rgba(255,107,0,0.3);
    border-right: 2px solid rgba(255,107,0,0.3);
}

.welcome-corner--bl {
    bottom: 2rem;
    left: 2rem;
    border-bottom: 2px solid rgba(255,107,0,0.3);
    border-left: 2px solid rgba(255,107,0,0.3);
}

.welcome-corner--br {
    bottom: 2rem;
    right: 2rem;
    border-bottom: 2px solid rgba(255,107,0,0.3);
    border-right: 2px solid rgba(255,107,0,0.3);
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .welcome-corner {
        width: 25px;
        height: 25px;
    }

    .welcome-corner--tl,
    .welcome-corner--tr {
        top: 1rem;
    }

    .welcome-corner--bl,
    .welcome-corner--br {
        bottom: 1rem;
    }

    .welcome-corner--tl,
    .welcome-corner--bl {
        left: 1rem;
    }

    .welcome-corner--tr,
    .welcome-corner--br {
        right: 1rem;
    }

    .welcome-skip {
        bottom: 1rem;
        right: 1rem;
    }

    .welcome-badge {
        margin-bottom: 1.5rem;
    }

    .welcome-text-group {
        margin-bottom: 2rem;
    }
}
