/* ═══════════════════════════════════════════════════════════════
   YELLOW NET — FUTURISTIC 3D HALFTONE NETWORK PRELOADER
   ═══════════════════════════════════════════════════════════════ */

#yellownet-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999;
    background: radial-gradient(circle at center, #0e1220 0%, #06070c 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

#yellownet-preloader.fade-out {
    opacity: 0 !important;
    transform: scale(1.03) !important;
    pointer-events: none !important;
}

/* Background Cyber Grid */
.yn-preloader-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(234, 179, 8, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 179, 8, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    background-position: center center;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* Canvas Container */
.yn-preloader-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .yn-preloader-canvas-wrap {
        max-width: 94vw;
        height: 360px;
    }
}

#yn-network-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Preloader HUD Interface */
.yn-preloader-hud {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    width: 90%;
    max-width: 360px;
}

/* Brand Title */
.yn-preloader-brand {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #94A3B8;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
}

.yn-preloader-brand .brand-highlight {
    color: #EAB308;
    text-shadow: 0 0 16px rgba(234, 179, 8, 0.6);
}

.yn-preloader-brand .brand-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #EAB308;
    box-shadow: 0 0 8px #EAB308;
}

/* Progress Track & Bar */
.yn-preloader-bar-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yn-preloader-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.yn-preloader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #CA8A04 0%, #EAB308 50%, #FDE047 100%);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.8), 0 0 4px #FDE047;
    border-radius: 99px;
    transition: width 0.06s linear;
    will-change: width;
}

/* Meta Data Line: Status & Counter */
.yn-preloader-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: 'Inter', monospace, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.yn-preloader-status {
    color: #64748B;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yn-preloader-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #EAB308;
    animation: ynPreloaderPulse 1s infinite alternate;
}

@keyframes ynPreloaderPulse {
    0% { opacity: 0.4; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 8px #EAB308; }
}

.yn-preloader-counter {
    color: #FACC15;
    font-weight: 700;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}
