:root {
    --bg-dark: #0A2224;
    --tender-green: #21FF7D;
    --tender-yellow: #FFF700;
    --tender-red: #FF2D2D;
    --text-dim: #94b2b5;
    --nav-height: 84px;
    --tender-muted: #5c7a7a;
}

*::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }
  
body {
    font-family: 'Host Grotesk', sans-serif;
    background-color: #030e0f;
    margin: 0;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    height: 100vh;
    letter-spacing: 0.015em;
}

#app-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#app-shell {
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    background-color: #0A2224;
    background-image: 
        linear-gradient(to bottom, rgba(10, 34, 36, 0.4), rgba(3, 14, 15, 0.95)),
        radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: cover, 24px 24px;
    background-blend-mode: normal;
    position: relative;
    box-shadow: 0 0 100px rgba(0,0,0,0.8);
    color: white;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#view-container {
    flex: 1;
    overflow-y: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.serif { font-family: 'Host Grotesk', sans-serif; font-weight: 400; }
.fjalla { font-family: 'Fjalla One', sans-serif; }
.mono { font-family: 'Chivo Mono', monospace; }

.gauge-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 8; }
.circle-progress {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.circle-glow {
    fill: none;
    stroke-width: 16;
    stroke-linecap: round;
    filter: blur(16px);
    transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    opacity: 0.5;
}

.btn-primary { background-color: var(--tender-green); color: var(--bg-dark); font-weight: 400; border-radius: 24px; transition: all 0.2s; }
.btn-primary:active { transform: scale(0.96); }

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--tender-green);
    font-weight: 400;
    border-radius: 20px;
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.12);
}

.species-icon { color: rgba(255,255,255,0.1); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; flex: 1; cursor: pointer; }
.species-icon.active { color: var(--tender-green); transform: scale(1.1); }
.species-icon svg { width: 32px; height: 32px; fill: currentColor; }

.view-section { display: none; width: 100%; height: 0;}

.view-section.active { 
    display: flex; 
    flex-direction: column; 
    height: auto;
    animation: fadeIn 0.1s ease-out;
}

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

.nav-item { color: var(--tender-muted); transition: all 0.3s; }
.nav-item.active { color: var(--tender-green); }
.nav-icon { transition: transform 0.2s; }

.dir-card * {
    pointer-events: none;
}

.dir-card, .btn-secondary, nav, #modal-manual > div {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px;
    transition: transform 0.2s ease; 
    transform: translateZ(0); 
}

nav {
    border-radius: 28px 28px 0 0 !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

#tooltip {
    position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%);
    background: #1a3d3d; color: white; padding: 12px 24px; border-radius: 100px;
    font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1); opacity: 0; pointer-events: none;
    transition: all 0.3s; z-index: 1000;
}
#tooltip.active { opacity: 1; transform: translateX(-50%) translateY(-10px); }

.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.08); color: var(--tender-green);
    backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}

.flag-badge {
    height: 16px; 
    width: 24px;  
    object-fit: cover;
    border-radius: 4px; 
    flex-shrink: 0;
    display: block;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    filter: blur(100px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
    mix-blend-mode: screen;
}

.blob-1 { top: -150px; left: -150px; background: var(--tender-green); }
.blob-2 { bottom: -100px; right: -150px; background: var(--tender-green); }

/* Container background */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background-color: #0A2224 !important;
    color: white !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

/* Adjust the internal padding so it doesn't look cramped */
.leaflet-popup-content {
    margin: 8px 12px !important;
    pointer-events: all !important;
}


/* Optional: Soft blur for the "vague" map markers */
.vague-glow {
    filter: blur(5px);
}