/* ========================================
   🚀 SPLASH / LOADING SCREEN — Premium v2
   ======================================== */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(.4, 0, .2, 1), visibility 0.8s;
    overflow: hidden;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Animated Background Particles --- */
#page-loader::before,
#page-loader::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: loaderOrb 6s ease-in-out infinite alternate;
}

#page-loader::before {
    width: 300px;
    height: 300px;
    background: #667eea;
    top: -80px;
    left: -60px;
}

#page-loader::after {
    width: 250px;
    height: 250px;
    background: #f093fb;
    bottom: -60px;
    right: -40px;
    animation-delay: 3s;
}

@keyframes loaderOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 30px) scale(1.3);
    }
}

/* --- Splash Logo --- */
.splash-logo {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.splash-logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #667eea, #f093fb, #fbbf24, #22c55e, #667eea);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    letter-spacing: -1px;
    text-align: center;
}

.splash-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Icon Carousel / Slider --- */
.splash-icons-track {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 80px;
    overflow: hidden;
    margin: 24px auto 20px;
}

.splash-icons-slider {
    display: flex;
    gap: 0;
    animation: iconSlide 10s linear infinite;
    width: max-content;
}

.splash-icon-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

.splash-icon-item:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes iconSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.15) rotate(5deg);
    }
}

/* --- Flag Orbit --- */
.splash-flag-orbit {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    animation: flagOrbitSpin 12s linear infinite;
}

.splash-flag {
    position: absolute;
    font-size: 1.8rem;
    animation: flagFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.splash-flag:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.splash-flag:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.splash-flag:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.splash-flag:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

.splash-flag:nth-child(5) {
    top: 15%;
    right: 10%;
    animation-delay: 0.7s;
}

.splash-flag:nth-child(6) {
    bottom: 15%;
    left: 10%;
    animation-delay: 1.2s;
}

@keyframes flagOrbitSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes flagFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.1);
    }
}

/* --- Progress Bar --- */
.splash-progress-wrap {
    position: relative;
    z-index: 2;
    width: 220px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 14px;
}

.splash-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #f093fb);
    border-radius: 3px;
    animation: progressFill 2.5s ease-in-out forwards;
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    30% {
        width: 35%;
    }

    60% {
        width: 65%;
    }

    85% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

/* --- Loading Text Dots --- */
.splash-loading-text {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.splash-loading-text::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }
}

/* ========================================
   🎨 ANIMATED LOGO (Landing Page)
   ======================================== */
.animated-logo {
    position: relative;
    margin-bottom: 8px;
}

.logo-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #667eea;
    border-right-color: #f093fb;
    animation: logoRingSpin 3s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.logo-ring::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: #fbbf24;
    border-left-color: #22c55e;
    animation: logoRingSpin 2s linear infinite reverse;
}

@keyframes logoRingSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.logo-inner-icon {
    font-size: 2.6rem;
    z-index: 2;
    position: relative;
    animation: logoBounce 2s ease-in-out infinite;
}

@keyframes logoBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

.logo-title {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-top: 8px;
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* ========================================
   📱 LANDING QUICK-ACTION BUTTONS (Mobile)
   ======================================== */
.landing-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    width: 100%;
    max-width: 400px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    border: none;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 90px;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.quick-action-btn:active {
    transform: scale(0.95);
}

.qa-settings {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.25));
    backdrop-filter: blur(10px);
}

.qa-settings:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.55), rgba(139, 92, 246, 0.45));
}

.qa-minigames {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(239, 68, 68, 0.25));
    backdrop-filter: blur(10px);
}

.qa-minigames:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.55), rgba(239, 68, 68, 0.45));
}

.qa-stats {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(16, 185, 129, 0.25));
    backdrop-filter: blur(10px);
}

.qa-stats:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.55), rgba(16, 185, 129, 0.45));
}

.qa-social {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(168, 85, 247, 0.25));
    backdrop-filter: blur(10px);
}

.qa-social:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.55), rgba(168, 85, 247, 0.45));
}

.qa-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.qa-label {
    white-space: nowrap;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* --- Landing Info Tags --- */
.landing-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.landing-info .info-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
}

/* ========================================
   🎆 LANDING BUTTON ENTRANCE ANIMATION
   ======================================== */
.landing-content>* {
    opacity: 0;
    transform: translateY(20px);
    animation: landingFadeUp 0.6s ease forwards;
}

.landing-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.landing-content>*:nth-child(2) {
    animation-delay: 0.25s;
}

.landing-content>*:nth-child(3) {
    animation-delay: 0.4s;
}

.landing-content>*:nth-child(4) {
    animation-delay: 0.55s;
}

.landing-content>*:nth-child(5) {
    animation-delay: 0.7s;
}

.landing-content>*:nth-child(6) {
    animation-delay: 0.85s;
}

@keyframes landingFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}