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

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* Map dark theme */
#map { background: #0a0a0f; }

/* Glass morphism panel */
.glass-panel {
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}

/* Logo */
.conquest-logo {
    background: rgba(10,10,20,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,165,0,0.3);
    border-radius: 8px;
    padding: 6px 12px;
}

/* Nav buttons */
.nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,20,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    color: white;
}
.nav-btn:hover { border-color: rgba(255,165,0,0.5); background: rgba(20,20,40,0.9); }

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(10,10,20,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Main capture button */
.main-capture-btn {
    background: linear-gradient(135deg, #FF6B35, #FF4500);
    border: none;
    border-radius: 50px;
    padding: 16px 36px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(255,107,53,0.4);
    transition: all 0.2s;
    min-width: 180px;
}
.main-capture-btn:hover { transform: scale(1.03); box-shadow: 0 6px 28px rgba(255,107,53,0.6); }
.main-capture-btn.active {
    background: linear-gradient(135deg, #1a936f, #0d6e52);
    box-shadow: 0 4px 24px rgba(26,147,111,0.4);
    animation: pulse-glow 2s infinite;
}
.main-capture-btn.active:hover { box-shadow: 0 6px 28px rgba(26,147,111,0.6); }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 24px rgba(26,147,111,0.4); }
    50% { box-shadow: 0 4px 32px rgba(26,147,111,0.8); }
}

/* Secondary button */
.secondary-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,20,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.secondary-btn:hover { border-color: rgba(255,165,0,0.5); }

/* Form inputs */
.form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus { border-color: rgba(255,107,53,0.6); background: rgba(255,255,255,0.08); }
.form-input::placeholder { color: rgba(255,255,255,0.3); }

/* Auth tabs */
.auth-tab {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}
.auth-tab.active { background: rgba(255,107,53,0.2); color: #FF6B35; }

/* Capture button active state */
.capture-btn-active {
    background: linear-gradient(135deg, #FF6B35, #FF4500);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}
.capture-btn-active:hover { opacity: 0.9; }

/* Color swatches */
.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}
.color-swatch:hover, .color-swatch.active { border-color: white; transform: scale(1.1); }

/* Leaflet overrides */
.leaflet-control-attribution { display: none; }
.leaflet-control-zoom { border: none !important; }
.leaflet-control-zoom a {
    background: rgba(10,10,20,0.85) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: white !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
}
.leaflet-control-zoom a:hover { background: rgba(30,30,50,0.95) !important; }

/* Popup styles */
.conquest-popup .leaflet-popup-content-wrapper {
    background: rgba(10,10,20,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.conquest-popup .leaflet-popup-tip { background: rgba(10,10,20,0.95); }

/* Toast */
#toast { transition: all 0.3s; }

/* Animate pulse */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Pulsing player markers (Blink-like) */
.player-dot-wrap { position: relative; width: 20px; height: 20px; }

.player-dot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.8);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    z-index: 2;
}

.player-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0;
    animation: player-ring 2s ease-out infinite;
    z-index: 1;
}

@keyframes player-ring {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.player-label {
    position: absolute;
    top: 18px; left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}
