#loader {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #00c6ff; font-size: 20px; font-weight: bold; z-index: 200;
    text-transform: uppercase; letter-spacing: 5px; animation: blink 1s infinite;
    pointer-events: none; font-family: 'Courier New', monospace;
}
@keyframes blink { 50% { opacity: 0.5; } }

/* 2. ГЛАВНЫЙ БЛОК */
html, body {
    width: 100%; height: 100%; margin: 0; padding: 0;
    overflow: hidden; position: fixed; top: 0; left: 0; bottom: 0; right: 0;
    background-color: #000; font-family: 'Courier New', monospace;
    touch-action: none; overscroll-behavior: none; -webkit-overflow-scrolling: auto;
}
#globeViz { width: 100%; height: 100%; position: absolute; z-index: 1; }

/* 3. ЛЕВЫЙ HUD */
#hud {
    position: absolute; top: 20px; left: 20px; z-index: 100;
    min-width: 140px;
    color: #fff; background: rgba(0,0,0,0.6); 
    padding: 15px; border-radius: 12px; border: 1px solid #333; 
    backdrop-filter: blur(5px); display: flex; flex-direction: column;
    touch-action: manipulation;
}
h1 { margin: 0 0 5px 0; font-size: 14px; color: #00c6ff; text-transform: uppercase; letter-spacing: 1px; }
.sub-text { font-size: 9px; color: #aaa; margin: 0 0 10px 0; }

/* 4. ПРАВЫЙ БЛОК */
#controls-right {
    position: absolute; top: 20px; right: 20px; z-index: 100;
    display: flex; gap: 10px;
}
.btn-icon {
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.6); border: 1px solid #333;
    border-radius: 10px; color: white; font-size: 18px;
    cursor: pointer; backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.btn-icon:active { transform: scale(0.95); background: #444; }

/* Обычные кнопки */
.btn {
    display: none; background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white; text-decoration: none; padding: 8px 15px;
    border-radius: 8px; font-weight: bold; font-size: 11px;
    margin-top: 5px; border: none; cursor: pointer; text-align: center;
    text-transform: uppercase; box-shadow: 0 4px 10px rgba(0, 114, 255, 0.3);
}
.btn:active { opacity: 0.8; transform: scale(0.98); }
#btn-filter { display: inline-block !important; }

/* 🔥 5. СЧЕТЧИК (ВНИЗУ ПО ЦЕНТРУ) 🔥 */
#bottom-panel {
    position: absolute; 
    bottom: 50px; /* Отступ снизу (над футером) */
    left: 50%; 
    transform: translateX(-50%); /* Центрирование */
    z-index: 100;
    
    background: rgba(0,0,0,0.7); 
    padding: 5px 20px; 
    border-radius: 50px; 
    border: 1px solid #333; 
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
    pointer-events: none; /* Чтобы сквозь него можно было крутить глобус */
}

#counter { 
    font-size: 12px; 
    color: #00ff00; 
    font-weight: bold; 
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* 6. ФУТЕР (Ссылки в самом низу) */
#footer {
    position: absolute; bottom: 20px; left: 0; width: 100%;
    text-align: center; z-index: 100; pointer-events: none;
}
#footer a {
    color: #aaa; font-size: 10px; text-decoration: none;
    text-transform: uppercase; letter-spacing: 1px;
    pointer-events: auto; transition: color 0.3s;
    background: rgba(0,0,0,0.5); padding: 3px 6px; border-radius: 4px;
}
#footer a:hover { color: #00c6ff; text-shadow: 0 0 5px #00c6ff; }
.sep { color: #444; font-size: 10px; margin: 0 5px; }

/* 7. Полароиды */
.marker-card {
    background: #fff; padding: 5px; padding-bottom: 8px; border-radius: 3px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8); cursor: pointer;
    transition: transform 0.2s; width: 80px; 
    display: flex; flex-direction: column; align-items: center; transform-origin: center bottom;
}
.marker-card:hover, .marker-card:active {
    transform: scale(2.0); z-index: 9999; box-shadow: 0 10px 30px rgba(0,0,0,1);
}
.marker-img { width: 80px; height: 80px; object-fit: cover; display: block; }
.marker-caption {
    color: #000; font-size: 9px; font-weight: bold; margin-top: 5px;
    text-align: center; width: 100%; word-wrap: break-word;
}
/* Кнопка ссылки на карточках с фото */
.marker-link-btn {
    margin-top: 5px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #fff;
    font-size: 8px;
    font-weight: bold;
    padding: 4px 0;
    width: 100%;
    text-align: center;
    border-radius: 3px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 114, 255, 0.4);
    pointer-events: none; /* Чтобы клик срабатывал по всей карточке, а не только по кнопке */
}