* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0f;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100vw;
    height: 100vh;
}

/* ============================================
   LOADER OVERLAY
   ============================================ */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #12121a 0%, #0a0a0f 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

/* ============================================
   LOADER DIALOG BOX
   ============================================ */
.loader-dialog {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px 56px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(100, 80, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    animation: dialogFloat 3s ease-in-out infinite;
    max-width: 420px;
    width: 90%;
}

@keyframes dialogFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============================================
   LOGO TEXT
   ============================================ */
.loader-logo {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
}

.logo-one {
    color: #ffffff;
}

.logo-buck {
    color: #7c5cff;
}

.logo-plug {
    color: #00e89d;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.loader-progress-container {
    margin-bottom: 20px;
}

.loader-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.loader-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7c5cff, #00e89d);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.loader-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loader-percentage {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

/* ============================================
   LOADER STATUS TEXT
   ============================================ */
.loader-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ============================================
   SPLASH SCREEN
   Shown after loading finishes. Fades in gently,
   then fades away quickly when the user clicks
   or hovers, while the spheres pop in one by one.
   ============================================ */
#splash {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    background: radial-gradient(ellipse at 30% 20%, #171527 0%, #0a0a0f 70%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash.splash-visible {
    opacity: 1;
    visibility: visible;
}

#splash.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-duration: 0.35s;
}

/* Only the center band is interactive */
#splash.splash-armed {
    cursor: pointer;
}

/* Faint growing ring that shows where the center "front door" is */
#splash.splash-armed .splash-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58vw;
    height: 58vw;
    max-width: 640px;
    max-height: 640px;
    border: 1px solid rgba(0, 232, 157, 0.30);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    background: radial-gradient(circle, rgba(0, 232, 157, 0.07) 0%, transparent 62%);
    pointer-events: none;
    animation: zonePulse 1.6s ease-out infinite;
}

@keyframes zonePulse {
    0% { transform: translate(-50%, -50%) scale(0.72); opacity: 0; }
    22% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0; }
}

/* Decorative blurred orbs drifting behind the logo */
.splash-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}

.splash-orb-1 {
    width: 340px;
    height: 340px;
    background: #7c5cff;
    top: -60px;
    left: -80px;
    animation: orbDrift 14s ease-in-out infinite;
}

.splash-orb-2 {
    width: 280px;
    height: 280px;
    background: #00e89d;
    bottom: -50px;
    right: -60px;
    animation: orbDrift 18s ease-in-out infinite reverse;
}

.splash-orb-3 {
    width: 200px;
    height: 200px;
    background: #ff5caa;
    top: 55%;
    left: 60%;
    animation: orbDrift 22s ease-in-out infinite;
}

@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -25px) scale(1.15); }
}

.splash-content {
    position: relative;
    text-align: center;
    padding: 40px;
    animation: splashPop 0.7s cubic-bezier(0.18, 1.4, 0.32, 1) both;
}

@keyframes splashPop {
    from { transform: scale(0.8) translateY(16px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.splash-logo {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    text-shadow:
        0 10px 40px rgba(124, 92, 255, 0.35),
        0 0 80px rgba(0, 232, 157, 0.15);
}

.splash-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
    margin-bottom: 44px;
}

.splash-hint {
    display: inline-block;
    padding: 12px 26px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.03em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: hintBob 2.2s ease-in-out infinite;
}

#splash.splash-armed .splash-hint {
    transform: translateY(-2px);
    border-color: rgba(0, 232, 157, 0.6);
    box-shadow: 0 8px 30px rgba(0, 232, 157, 0.25);
    animation-play-state: paused;
}

@keyframes hintBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 480px) {
    .splash-logo {
        font-size: 44px;
    }
    .splash-content {
        padding: 24px;
    }
}
