/* Topographic camp loader */
.loader {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9000;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 45%, rgba(106, 179, 86, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 120% 80% at 20% 80%, rgba(45, 77, 39, 0.35) 0%, transparent 50%),
        linear-gradient(165deg, #1a2e16 0%, #243d1f 38%, #1e3419 72%, #152612 100%);
}

.loader-topo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

.loader-topo .topo-layer {
    transform: none;
}

.loader-topo .topo-map-fill {
    fill: rgba(106, 179, 86, 0.08);
    stroke: none;
}

.loader-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
}

.loader-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 55% 50% at 50% 48%, transparent 0%, rgba(10, 20, 8, 0.55) 100%);
}

.loader-peak {
    position: absolute;
    top: 22%;
    left: 54%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(106, 179, 86, 0.45);
    text-transform: uppercase;
    pointer-events: none;
}

.loader-peak::before {
    content: '▲';
    display: block;
    text-align: center;
    font-size: 0.55rem;
    margin-bottom: 2px;
    color: rgba(106, 179, 86, 0.55);
}

.loader-center {
    position: relative;
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.loader-compass {
    position: absolute;
    inset: 0;
    animation: compass-spin 18s linear infinite;
}

.loader-compass svg {
    width: 100%;
    height: 100%;
}

.loader-compass-inner {
    position: absolute;
    inset: 10px;
    animation: compass-spin 12s linear infinite reverse;
}

.loader-logo-wrap {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 1px rgba(106, 179, 86, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.35);
}

.loader-logo-wrap img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.loader-foot {
    text-align: center;
    z-index: 2;
    max-width: 320px;
    padding: 0 20px;
}

.loader-foot .title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 5px;
}

.loader-foot .sub {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.42);
    margin: 0 0 18px;
}

.loader-track {
    width: 160px;
    height: 3px;
    margin: 0 auto 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loader-track span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 40%;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, #6ab356, #a3d98a, transparent);
    animation: loader-march 1.6s ease-in-out infinite;
}

.loader-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(106, 179, 86, 0.55);
    text-transform: uppercase;
}

.loader-meta .sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(106, 179, 86, 0.35);
}

.loader-meta .elev {
    opacity: 0.85;
}

@keyframes loader-march {
    0%   { left: -45%; opacity: 0.4; }
    50%  { opacity: 1; }
    100% { left: 105%; opacity: 0.4; }
}

@keyframes compass-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .loader-compass,
    .loader-compass-inner,
    .loader-track span {
        animation: none !important;
    }
    .loader-track span {
        left: 30%;
        opacity: 0.8;
    }
}

@media (max-width: 767px) {
    .loader-center { width: 112px; height: 112px; }
    .loader-logo-wrap { width: 62px; height: 62px; }
    .loader-logo-wrap img { width: 36px; height: 36px; }
    .loader-foot .title { letter-spacing: 3px; font-size: 11px; }
}
