:root {
    /* Variables are injected via JS from config.js */
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    /* Grid Pattern */
    background-image: linear-gradient(rgba(45, 49, 56, 0.5) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(45, 49, 56, 0.5) 1px, transparent 1px);
    background-size: 35px 35px;
    overflow: hidden;
}

.font-orbitron { font-family: 'Orbitron', sans-serif; }
.font-mono { font-family: 'Roboto Mono', monospace; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ANIMATIONS */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
.shake-anim { animation: shake 0.5s; }

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.scanline::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(255, 111, 0, 0.1), transparent);
    animation: scanline 4s linear infinite; pointer-events: none;
}

.wr-prop {
  color: rgba(255,255,255,0.85);
  fill: rgba(255,255,255,0.10);
  stroke: rgba(255,255,255,0.35);
  stroke-width: 1;
}

.wr-entry {
  color: rgba(255,255,255,0.95);
  fill: rgba(255,255,255,0.05);
  stroke: rgba(255,255,255,0.55);
  stroke-width: 1.2;
}

.wr-entry--locked { color: rgba(255,80,80,0.95); }
.wr-entry--closed { color: rgba(200,200,200,0.85); }

/* --- MOBILE COMPATIBILITY ADDS --- */

/* Prevents the browser from handling gestures (scrolling/zooming) on the map container */
.touch-none {
    touch-action: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-orbitron { 
        letter-spacing: 0.05em; /* Tighter spacing on mobile */
    }
    
    /* Disable heavy animations on mobile for performance */
    .scanline::after { 
        animation: none; 
        background: none;
    }
    
    /* Ensure modals don't overflow screen height */
    .modal-content {
        max-height: 85vh;
    }
}