/*/assets/css/main.css*/
/* ═══════════ RESET & BASE ═══════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
@font-face {
    font-family: 'Noto Color Emoji Flags';
    src: url('https://cdn.jsdelivr.net/npm/noto-color-emoji-flags/dist/noto-color-emoji-flags.woff2') format('woff2');
    font-display: swap;
}
:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #131836;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --accent-purple: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-amber: #f59e0b;
    
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: 0.2s ease;
}

html, body {
    height: 100%;
    font-family: 'Manrope', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ═══════════ BACKGROUND EFFECTS ═══════════ */
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
}

.bg-stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(2px 2px at 80% 10%, white, transparent),
        radial-gradient(1px 1px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    opacity: 0.3;
    animation: twinkle 10s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ═══════════ HEADER ═══════════ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10, 14, 39, 0.7);
    border-bottom: 1px solid var(--border-glass);
    width: 100vw;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-accent {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--bg-glass);
    color: var(--accent-cyan);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}
.user-menu-wrapper {
    position: relative;
}
.user-menu {
    position: relative;
}
.user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--bg-glass-hover);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-level {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.header-inner {
    width: 100vw;
    margin: 0;
    padding: 1rem 2rem; /* Увеличенный правый отступ */
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: 240px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-glass);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

/* Если экран узкий, меню не будет вылезать за пределы */
@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
    }
    .user-dropdown {
        right: -1rem; /* Компенсация отступа на мобильных */
        min-width: 200px;
    }
}
.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--bg-glass);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-glass);
    margin: 0.5rem 0;
}

/* ═══════════ MAIN ═══════════ */
.main {
    min-height: calc(100vh - 80px);
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-fade-out {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.page-fade-in {
    opacity: 1;
    transition: opacity 0.15s ease;
}

/* ═══════════ КНОПКИ ═══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-ghost {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

.btn-ghost:hover {
    background: var(--bg-glass-hover);
}

.btn-outline {
    background: transparent;
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-outline:hover {
    background: var(--accent-cyan);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ═══════════ HERO ═══════════ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
    padding: 4rem 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: 15px!important;
    left: 15px!important;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-left: 15px!important;
    left: 15px!important;
}

/* ═══════════ SECTIONS ═══════════ */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* ═══════════ MODES GRID ═══════════ */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mode-card {
    padding: 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mode-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ═══════════ STEPS ═══════════ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.step {
    padding: 2rem;
    text-align: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ═══════════ STATS ═══════════ */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ═══════════ TOAST ═══════════ */
.toast-container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    min-width: 300px;
    max-width: 400px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-warning { border-left: 4px solid var(--accent-amber); }
.toast-info { border-left: 4px solid var(--accent-cyan); }

.toast-close {
    margin-left: auto;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: var(--transition);
}

.toast-close:hover {
    opacity: 1;
}

/* ═══════════ LOADER ═══════════ */
.page-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.page-loader-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════ ERROR PAGE ═══════════ */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .page-container {
        padding: 1rem;
    }
}
/* ═══════════ GLASSMORPHISM COMPONENTS ═══════════ */
.glass-card {
    background: rgba(19, 24, 54, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-container {
    max-width: 440px;
    margin: 4rem auto;
    padding: 2.5rem;
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Стеклянные инпуты */
.input-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-glass {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.input-glass::placeholder {
    color: var(--text-muted);
}

.input-glass:focus {
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-cyan);
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

/* ═══════════ ИГРОВОЙ ЭКРАН ═══════════ */
.game-screen {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
}

.panorama-container {
    flex: 1;
    width: 100%;
    background: #000;
}


.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hud-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.hud-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.minimap-wrapper {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 560px;
    max-width: calc(100vw - 4rem);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: none; 
}

.minimap {
    width: 100%;
    height: 320px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-glass);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    position: relative;
    background: #0a0e27;
}

.minimap-confirm {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.minimap-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* ═══════════ ПРОФИЛЬ / DASHBOARD ═══════════ */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    border: 3px solid rgba(255,255,255,0.1);
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.xp-bar-container {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
}

.stat-card .value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-card .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.daily-city-badge strong {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .daily-city-badge {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}/* ═══════════ FIX: Тёмные выпадающие списки ═══════════ */
select.input-glass {
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    cursor: pointer;
    /* Убираем стандартную стрелку ОС и добавляем свою */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

select.input-glass:focus {
    border-color: var(--accent-purple);
    outline: none;
    background-color: rgba(124, 58, 237, 0.05);
}

/* Принудительно красим сами опции внутри списка */
select.input-glass option {
    background-color: #131836; /* Тёмный фон */
    color: #ffffff;            /* Белый текст */
    padding: 10px;
}

/* Для браузеров на движке WebKit (Chrome, Safari, Яндекс) */
select.input-glass::-webkit-scrollbar {
    width: 8px;
}
select.input-glass::-webkit-scrollbar-track {
    background: #131836;
}
select.input-glass::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}
/* ═══════════ STREAK WIDGET ═══════════ */
.streak-widget {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.streak-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.streak-info {
    flex: 1;
}

.streak-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-orange, #ff6b35);
    margin-bottom: 0.25rem;
}

.streak-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.streak-best {
    text-align: right;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.streak-best-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-amber, #f59e0b);
    margin-bottom: 0.25rem;
}

.streak-best-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .streak-widget {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .streak-best {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
    }
}
/* ═══════════ DAILY REWARDS ═══════════ */
#daily-rewards-widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.daily-rewards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.daily-rewards-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.rewards-progress {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.reward-day {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem 0.5rem;
    text-align: center;
    transition: var(--transition);
}

.reward-day.claimed {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    opacity: 0.7;
}

.reward-day.available {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    border-color: var(--accent-purple);
    animation: pulse 2s ease-in-out infinite;
}

.reward-day.current {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

.reward-day.locked {
    opacity: 0.4;
}

.day-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.reward-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.reward-amount {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.xp-amount {
    color: var(--accent-amber);
    font-weight: 600;
}

.coins-amount {
    color: var(--accent-cyan);
    font-weight: 600;
}

.claimed-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    font-weight: 700;
}

.claim-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
}

@media (max-width: 768px) {
    .rewards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.feedback-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.feedback-tab.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.feedback-tab:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

.feedback-ticket-item {
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.feedback-ticket-item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(4px);
}

.feedback-ticket-item.unread {
    border-left: 3px solid var(--accent-cyan);
}
.notif-bell-wrapper {
    position: relative;
}

.notif-bell-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.notif-bell-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.notif-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.notif-read-all {
    background: none;
    border: none;
    color: var(--accent-cyan);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.notif-read-all:hover {
    background: rgba(6, 182, 212, 0.1);
}

.notif-list {
    overflow-y: auto;
    flex: 1;
    max-height: 400px;
}

.notif-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
    background: rgba(6, 182, 212, 0.05);
    border-left: 3px solid var(--accent-cyan);
}

.notif-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notif-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .notif-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
}
/* ═══════════ DAILY QUESTS ═══════════ */
#daily-quests-widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quests-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.quests-stats {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-completed {
    font-weight: 700;
    color: var(--accent-cyan);
}

.quests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quest-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
}

.quest-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.quest-item.completed {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.quest-item.claimed {
    opacity: 0.6;
}

.quest-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.quest-content {
    flex: 1;
    min-width: 0;
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.quest-name {
    font-weight: 600;
    font-size: 1rem;
}

.quest-difficulty {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.quest-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.quest-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.quest-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.quest-progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quest-rewards {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    font-size: 0.85rem;
    font-weight: 600;
}

.reward-coins {
    color: var(--accent-amber);
}

.reward-xp {
    color: var(--accent-cyan);
}

.btn-claim {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.quest-claimed-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

@media (max-width: 768px) {
    .quest-item {
        flex-wrap: wrap;
    }
    
    .quest-rewards {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

.panorama-container {
    flex: 1;
    width: 100%;
    min-height: 0;
    background: #000;
}
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;   /* <-- ВЫШЕ, чем .game-container (у него 50) */
}

.hidden {
    display: none;
}
.minimap-wrapper {
    width: 350px;
    height: 350px;
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 60;
}

.minimap-wrapper.zoomed {
    width: 45vw;   /* 350 * 1.5 */
    height: auto;
    z-index: 100;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
/* ═══════════ HERO BACKGROUND FULL-WIDTH FIX ═══════════ */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* Фон на всю ширину через псевдоэлемент */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    /* Затемняющий градиент поверх картинки */
    filter: brightness(0.35);
    z-index: 0;
    pointer-events: none;
}

/* Контент поверх фона */
.hero > * {
    position: relative;
    z-index: 1;
}

/* Если нет картинки — оставляем как было */
.hero:not([style*="--hero-bg"])::before {
    display: none;
}

/* Обёртка виджетов */
.home-widgets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.daily-city-badge {           /* замените на реальный класс элемента */
  position: absolute;
  top: 16px;                   /* отступ сверху */
  right: 16px;                 /* отступ справа */
  z-index: 2;
  text-align: right;
}
.hero-title {
    margin-left: 35px!important;
    left: 35px!important;
}
.city-card.daily-city {
    position: relative;
    border: 2px solid #ffd700;
    box-shadow: 
        0 0 0 2px rgba(255, 215, 0, 0.25),
        0 0 30px rgba(255, 215, 0, 0.45),
        0 12px 32px rgba(0, 0, 0, 0.5);
    animation: dailyCityPulse 3s ease-in-out infinite;
}

@keyframes dailyCityPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 2px rgba(255, 215, 0, 0.25),
            0 0 30px rgba(255, 215, 0, 0.45),
            0 12px 32px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 
            0 0 0 2px rgba(255, 215, 0, 0.6),
            0 0 55px rgba(255, 215, 0, 0.8),
            0 12px 32px rgba(0, 0, 0, 0.5);
    }
}

.daily-city-badge-card {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 3;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
    display: inline-block;
}

.city-card.daily-city .city-card-badge {
    top: 3.5rem;
}
/* ═══════════ PUBLIC CITY PAGE ═══════════ */

/* Топ игроков */
.player-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.player-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.player-row:last-child {
    margin-bottom: 0;
}

.player-rank {
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.player-rank.gold   { color: #ffd700; }
.player-rank.silver { color: #c0c0c0; }
.player-rank.bronze { color: #cd7f32; }

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.player-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-amber);
    flex-shrink: 0;
}

/* Последние игры */
.game-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.game-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.game-row:last-child {
    margin-bottom: 0;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.game-player {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.game-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .player-score,
    .game-score {
        font-size: 1.1rem;
    }
    
    .player-name {
        font-size: 1rem;
    }
}
/* ═══════════════════════════════════════════════════════════
   СКРЫТИЕ МЕТОК (синие иконки домов) НА ПАНОРАМЕ ЯНДЕКСА
   ═══════════════════════════════════════════════════════════ */

/* Метки-подсказки (названия улиц и номера домов) */
.ymaps-panorama-marker,
.ymaps-panorama-markers,
.ymaps-panorama-marker__content,
[class*="panorama-marker"],
[class*="PanoramaMarker"],
[class*="panorama__marker"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Стрелки перехода на соседние панорамы (можно оставить, если нужны) */
/* Если хочешь скрыть и их — раскомментируй: */
/*
[class*="panorama-arrow"],
[class*="panorama__arrow"],
[class*="PanoramaArrow"] {
    display: none !important;
}
*/

/* На всякий случай — скрываем любые элементы с data-marker */
#panorama-container [data-marker],
#panorama-container [data-markers] {
    display: none !important;
}

/* ═══════════════ MINIMAP ═══════════════ */
:root {
    --minimap-base-w: 320px;
    --minimap-base-h: 240px;
    --minimap-hover-w: min(850px, 90vw);
    --minimap-hover-h: min(650px, 85vh);
}

.minimap-wrapper {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: var(--minimap-base-w);
    height: var(--minimap-base-h);
    z-index: 60;
    transition: width 0.3s ease, height 0.3s ease;
    display: flex;
    flex-direction: column;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.minimap-wrapper:hover,
.minimap-wrapper.zoomed {
    width: var(--minimap-hover-w);
    height: var(--minimap-hover-h);
}

.minimap {
    flex: 1;
    width: 100%;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    background: var(--bg-secondary);
    transition: border-color 0.15s ease;
    position: relative;
}

.minimap-wrapper:hover .minimap,
.minimap-wrapper.zoomed .minimap {
    border-color: var(--accent-cyan, #06b6d4);
}

.minimap-confirm {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.minimap-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Мобилка */
@media (max-width: 768px) {
    :root {
        --minimap-base-w: 150px;
        --minimap-base-h: 120px;
        --minimap-hover-w: 90vw;
        --minimap-hover-h: 50vh;
    }

    .minimap-wrapper {
        bottom: 1rem;
        right: 1rem;
    }
}
/* ═══════════════ GAME HUD ═══════════════ */

.game-hud > * {
    pointer-events: auto;
}
.game-hud {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 50;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hud-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;           /* ← было 1rem */
    padding: 0.6rem 1rem;   /* ← было 0.75rem 1.25rem */
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;    /* ← предотвращает перенос */
    width: fit-content;     /* ← не растягивается */
}

.round-indicator {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
}

.round-current {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-purple, #7c3aed), var(--accent-cyan, #06b6d4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.round-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    font-weight: 600;
}

.round-total {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.hud-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 1.2rem;
    user-select: none;
}

.game-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-icon {
    font-size: 1.1rem;
}

.timer-value {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    color: #fff;
    min-width: 62px;
    display: inline-block;
    text-align: center;
}

.timer-value.warning {
    color: var(--accent-amber, #f59e0b);
}

.timer-value.danger {
    color: var(--accent-pink, #ec4899);
    animation: timer-pulse 1s ease-in-out infinite;
}

@keyframes timer-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.score-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-icon {
    font-size: 1.1rem;
}

.score-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-amber, #f59e0b);
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease;
}

.score-value.bump {
    animation: score-bump 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes score-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: var(--accent-cyan, #06b6d4); }
    100% { transform: scale(1); }
}

/* ═══════════════ ЛЕВЫЕ КНОПКИ ДЕЙСТВИЙ ═══════════════ */
.panorama-actions-bottom-left {
    position: absolute;
    bottom: 80px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    pointer-events: auto;
}

.pano-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.pano-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.pano-action-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.pano-action-btn.pano-action-surrender:hover {
    background: rgba(245, 87, 108, 0.2);
    border-color: rgba(245, 87, 108, 0.5);
    color: #fca5a5;
}

/* ═══════════════ КОМПАС ═══════════════ */
.compass-radial-container {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 50px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 50;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.compass-radial-tape {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    margin-left: 160px;
    will-change: transform;
    padding-bottom: 10px;
    transition: transform 0.15s ease-out;
}

.compass-mark {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

.mark-line {
    width: 1.5px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
}

.compass-mark.has-label .mark-line {
    height: 12px;
    width: 2px;
    background: rgba(255, 255, 255, 0.7);
}

.mark-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.compass-mark.is-north .mark-label {
    color: #ff4d4d;
    font-weight: 900;
    font-size: 13px;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.4), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.compass-mark.is-north .mark-line {
    background: #ff4d4d;
    box-shadow: 0 0 6px rgba(255, 77, 77, 0.5);
}

.compass-center-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 77, 77, 0.3) 30%, #ff4d4d 100%);
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.6);
    z-index: 2;
}

.compass-center-indicator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ff4d4d;
    filter: drop-shadow(0 0 4px rgba(255, 77, 77, 0.8));
}

/* ═══════════════ СКРЫТИЕ КНОПОК ЯНДЕКСА ═══════════════ */
.ymaps-2-1-79-controls__control_toolbar,
.ymaps-2-1-79-zoom,
.ymaps-2-1-79-zoom__plus,
.ymaps-2-1-79-zoom__minus,
.ymaps-2-1-79-panorama-zoom,
[class*="zoomControl"],
[class*="zoom-control"],
[class*="panorama-gotoymaps"],
[class*="panorama-open-map"],
[class*="map-copyrights-promo"],
[class*="copyrights-promo"],
[class*="copyrights__link_color_dark"] {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Мобилка */
@media (max-width: 768px) {
    .game-hud {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.5rem;
    }

    .hud-group {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .round-current {
        font-size: 1.2rem;
    }

    .timer-value, .score-value {
        font-size: 1rem;
    }

    .compass-radial-container {
        width: 220px;
        height: 40px;
    }

    .panorama-actions-bottom-left {
        bottom: 60px;
        left: 15px;
        gap: 8px;
    }

    .pano-action-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
/* ═══════════════ СКРЫТИЕ ВСЕГО ЛИШНЕГО ОТ ЯНДЕКСА ═══════════════ */

/* Кнопки зума на панораме */
.ymaps-2-1-79-panorama-control__zoom,
.ymaps-2-1-79-panorama-control__zoom-in,
.ymaps-2-1-79-panorama-control__zoom-out,
.ymaps-2-1-79-islets_round-button[title="Увеличить"],
.ymaps-2-1-79-islets_round-button[title="Уменьшить"],
.ymaps-2-1-79-islets_round-button[title="В полноэкранный режим"],
[class*="panorama-control__zoom"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Кнопка "Открыть в Яндекс Картах" на панораме */
.ymaps-2-1-79-panorama-gotoymaps,
[class*="panorama-gotoymaps"],
[class*="panorama-open-map"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Кнопка "Открыть в Яндекс Картах" на миникарте */
.ymaps-2-1-79-map-copyrights-promo,
.ymaps-2-1-79-gotoymaps,
.ymaps-2-1-79-gototaxi,
.ymaps-2-1-79-gototech,
[class*="map-copyrights-promo"],
[class*="gotoymaps"],
[class*="gototaxi"],
[class*="gototech"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Тулбар на миникарте (кнопки зума, полноэкранный режим) */
.ymaps-2-1-79-controls-pane,
.ymaps-2-1-79-controls__toolbar,
.ymaps-2-1-79-controls__toolbar_left,
.ymaps-2-1-79-controls__toolbar_right,
.ymaps-2-1-79-controls__control_toolbar,
.ymaps-2-1-79-controls__bottom,
[class*="controls__toolbar"],
[class*="controls-pane"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Копирайты (можно оставить, но если мешают — скрыть) */
.ymaps-2-1-79-copyrights-pane,
.ymaps-2-1-79-copyright,
[class*="copyrights-pane"] {
    display: none !important;
}
/* Скрытие header */
.header.hidden {
    display: none !important;
}

/* Main без padding когда header скрыт */
.main.main-fullscreen {
    min-height: 100vh;
    padding: 0;
}

.main.main-fullscreen .page-container {
    padding: 0;
    max-width: none;
}
/* ═══════════════ ФИНАЛЬНЫЙ ЭКРАН ИГРЫ ═══════════════ */
.final-modal-content {
    max-width: 1100px;
    width: 95vw;
    max-height: 92vh;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.final-header {
    text-align: center;
}

.final-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.final-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.final-map-wrapper {
    width: 100%;
    height: 550px;         /* было 400px */
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
}

#final-map {
    width: 100%;
    height: 100%;
}

.final-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.final-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.final-stat:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.final-stat-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.final-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.25rem;
}

.final-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.final-rounds {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.final-rounds-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.final-round-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.final-round-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.final-round-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-align: center;
}

.final-round-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.final-round-detail strong {
    color: var(--text-primary);
    font-weight: 600;
}

.final-round-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-amber);
    min-width: 60px;
    text-align: right;
}

.final-round-perfect {
    font-size: 1rem;
}

.final-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Адаптив */
@media (max-width: 768px) {
    .final-modal-content {
        padding: 1rem;
        gap: 1rem;
    }

    .final-title {
        font-size: 1.5rem;
    }

    .final-map-wrapper {
        height: 280px;
    }

    .final-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .final-round-row {
        grid-template-columns: 30px 1fr auto;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .final-round-detail {
        display: none;
    }

    .final-actions {
        flex-direction: column;
    }

    .final-actions .btn {
        width: 100%;
    }
}
/* /assets/css/friends.css */

.user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.user-card.clickable {
    cursor: pointer;
}

.user-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-level {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.user-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    margin-right: 0.35rem;
    vertical-align: middle;
}

.user-status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

@media (max-width: 600px) {
    .user-card {
        flex-wrap: wrap;
    }
    .user-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}
/* /assets/css/multiplayer.css */

.multiplayer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.lobby-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
}

.lobby-row:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.lobby-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.lobby-info {
    flex: 1;
    min-width: 0;
}

.lobby-host-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lobby-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lobby-code-badge {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    background: rgba(79, 172, 254, 0.15);
    border: 1px solid rgba(79, 172, 254, 0.4);
    color: #4facfe;
    border-radius: 6px;
    letter-spacing: 0.15em;
}

.lobby-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.lobby-empty-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

/* Season widget */
.season-timer-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.season-timer-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.season-timer-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.season-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: center;
}

.season-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 0.25rem;
}

.season-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
    .multiplayer-grid {
        grid-template-columns: 1fr;
    }
}
/* ═══════════ USER AVATAR / BADGE / TITLE ═══════════ */
.user-avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-initial {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
}

.user-avatar-emoji {
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.6em;
    line-height: 1;
}

.user-avatar-sm { width: 36px; height: 36px; font-size: 1rem; }
.user-avatar-md { width: 48px; height: 48px; font-size: 1.25rem; }
.user-avatar-lg { width: 80px; height: 80px; font-size: 2rem; }
.user-avatar-xl { width: 100px; height: 100px; font-size: 2.5rem; }

.user-name-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.user-name-text {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-badge {
    font-size: 1.1em;
    line-height: 1;
    flex-shrink: 0;
}

.user-title {
    font-size: 0.7em;
    font-weight: 600;
    padding: 0.15em 0.55em;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════ HINT BUTTONS (в игре) ═══════════ */
.hint-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.hint-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.hint-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.hint-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

.hint-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-amber);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

.region-hint-overlay {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-cyan);
    border-radius: 12px;
    padding: 1rem 2rem;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.4);
    animation: hintFadeIn 0.4s ease;
    pointer-events: none;
}

.region-hint-overlay .hint-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.region-hint-overlay .hint-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

@keyframes hintFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.lobby-container {
    max-width: 800px;
    margin: 0 auto;
}

.lobby-header {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
}

.lobby-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.lobby-code-block {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(79, 172, 254, 0.1);
    border: 2px solid rgba(79, 172, 254, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.code-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.code-value {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #4facfe;
    letter-spacing: 0.5rem;
}

.btn-copy-code {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-copy-code:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.lobby-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Players Section */
.players-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.player-slot {
    flex: 1;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s ease;
}

.player-slot.filled {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.player-slot-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.player-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1rem;
    transition: all 0.5s ease;
}

.player-avatar-large.waiting {
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
}

.player-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.player-level {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.player-status {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.player-status.ready {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* VS Divider */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-amber);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

/* Actions */
.lobby-actions {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.waiting-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.waiting-dots {
    display: flex;
    gap: 0.5rem;
}

.waiting-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-cyan);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.waiting-dots span:nth-child(2) { animation-delay: 0.2s; }
.waiting-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* Player join animation */
@keyframes playerJoin {
    0% { transform: scale(0.5) translateY(20px); opacity: 0; }
    60% { transform: scale(1.1) translateY(-5px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.player-slot.just-joined {
    animation: playerJoin 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (max-width: 768px) {
    .players-section {
        flex-direction: column;
    }
    
    .vs-divider {
        transform: rotate(90deg);
    }
    
    .player-slot {
        max-width: 100%;
    }
    
    .code-value {
        font-size: 1.5rem;
    }
}
/* ═══════════ DUEL HUD ═══════════ */
.hud-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}

.hud-player.player1 {
    border-color: rgba(79, 172, 254, 0.3);
}

.hud-player.player2 {
    border-color: rgba(239, 68, 68, 0.3);
}

.hud-player .player-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.hud-player .player-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-amber);
}

.hud-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hud-center .round-indicator {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.hud-center .game-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hud-center .timer-icon {
    font-size: 1.1rem;
}

.hud-center .timer-value {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    color: #fff;
    min-width: 62px;
    display: inline-block;
    text-align: center;
}

.hud-center .timer-value.warning {
    color: var(--accent-amber);
}

.hud-center .timer-value.danger {
    color: var(--accent-pink);
    animation: timer-pulse 1s ease-in-out infinite;
}

/* ═══════════ MINIMAP FIX ═══════════ */
.minimap-wrapper {
    display: flex;
    flex-direction: column;
}

.minimap-wrapper .minimap {
    flex: 1;
    min-height: 0;
}

.minimap-wrapper:hover .minimap,
.minimap-wrapper.zoomed .minimap {
    flex: 1;
}

/* ═══════════ DUEL CONTROLS ═══════════ */
.duel-controls {
    position: absolute;
    bottom: 80px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    pointer-events: auto;
}
/* ═══════════ QUICK RESPONSE OVERLAY ═══════════ */
.quick-response-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn 0.3s ease;
}

.quick-response-overlay.hidden {
    display: none !important;
}

.quick-response-content {
    text-align: center;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.quick-response-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.quick-response-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.quick-response-timer {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}
/* ═══════════ QUICK TIMER (дуэль) ═══════════ */
.quick-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    margin-top: 0.5rem;
    animation: quickTimerPulse 1s ease-in-out infinite;
}

.quick-timer.hidden {
    display: none;
}

.quick-timer-label {
    font-size: 0.85rem;
    color: var(--accent-amber);
    font-weight: 600;
}

.quick-timer-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-amber);
}

.quick-timer.warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
}

.quick-timer.warning .quick-timer-label,
.quick-timer.warning .quick-timer-value {
    color: #ef4444;
}

@keyframes quickTimerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

.quick-timer.warning {
    animation: quickTimerWarning 0.5s ease-in-out infinite;
}

@keyframes quickTimerWarning {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }
}
/* ═══════════ QUICK TIMER (дуэль) ═══════════ */
.quick-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    margin-top: 0.5rem;
    animation: quickTimerPulse 1s ease-in-out infinite;
}

.quick-timer.hidden {
    display: none;
}

.quick-timer-label {
    font-size: 0.85rem;
    color: var(--accent-amber);
    font-weight: 600;
}

.quick-timer-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-amber);
}

.quick-timer.warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
}

.quick-timer.warning .quick-timer-label,
.quick-timer.warning .quick-timer-value {
    color: #ef4444;
}

@keyframes quickTimerPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

.quick-timer.warning {
    animation: quickTimerWarning 0.5s ease-in-out infinite;
}

@keyframes quickTimerWarning {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }
}
/* ═══════════ QUICK RESPONSE IN TIMER ═══════════ */
.timer-value.quick-response {
    color: #f59e0b !important;
    animation: quickTimerPulse 1s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.timer-value.quick-response.danger {
    color: #ef4444 !important;
    animation: quickTimerWarning 0.5s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

@keyframes quickTimerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes quickTimerWarning {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.mode-bar, .score-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mode-label, .score-label {
    min-width: 110px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mode-progress, .score-progress {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.mode-fill, .score-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.mode-value, .score-value {
    min-width: 40px;
    text-align: right;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mode-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mode-label {
    min-width: 100px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mode-progress {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.mode-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 12px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.score-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-label {
    min-width: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.score-progress {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.recent-game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.recent-game-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.game-mode {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.game-city {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.game-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-amber);
}

.game-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .stats-overview > div {
        grid-template-columns: repeat(2, 1fr);
    }
    
    div[style*="grid-template-columns: 2fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr;
    }
}

.season-header {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.season-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.season-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.season-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.season-timer {
    display: inline-block;
    background: rgba(0,0,0,0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-cyan);
    position: relative;
    z-index: 1;
}

.my-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.leaderboard-section {
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.leaderboard-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.leaderboard-item:hover {
    background: rgba(255,255,255,0.05);
}

.leaderboard-item.top-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.leaderboard-item.top-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.05));
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.leaderboard-item.top-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.05));
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.leaderboard-item.is-me {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.rank-badge {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.player-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.player-elo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-amber);
}

.rewards-section {
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.reward-tier {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.reward-rank {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-amber);
    min-width: 80px;
}

.reward-details {
    flex: 1;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.shop-filter.active {
    background: var(--accent-purple) !important;
    color: white !important;
}

.shop-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.shop-card.owned {
    border-color: rgba(16, 185, 129, 0.3);
}

.shop-card.equipped {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.rarity-common { border-left: 4px solid #9ca3af; }
.rarity-rare { border-left: 4px solid #3b82f6; }
.rarity-epic { border-left: 4px solid #a855f7; }
.rarity-legendary { border-left: 4px solid #f59e0b; }

.owned-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.equipped-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(124, 58, 237, 0.9);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.admin-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}

.key-card {
    transition: var(--transition);
}

.key-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

.city-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    height: 280px;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.city-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.city-card:hover .city-card-bg {
    transform: scale(1.05);
}

.city-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}

.city-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    z-index: 1;
}

.city-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.city-card-region {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
}

.city-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

.city-card-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.city-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.city-card-badge.no-panoramas {
    background: rgba(239, 68, 68, 0.9);
}

@media (max-width: 768px) {
    #cities-grid {
        grid-template-columns: 1fr;
    }
}
.division-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.division-card.current {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.division-card.locked {
    opacity: 0.5;
}

.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.match-result {
    font-weight: 700;
    font-size: 1.1rem;
}

.match-result.win { color: #10b981; }
.match-result.loss { color: #ef4444; }
.match-result.draw { color: #f59e0b; }

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
}
.toggle-switch input {
    display: none;
}
.slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}
.slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}
input:checked + .slider {
    background: var(--accent-purple);
}
input:checked + .slider::before {
    transform: translateX(20px);
}
.toggle-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.shop-filter.active {
    background: var(--accent-purple) !important;
    color: white !important;
    border-color: var(--accent-purple) !important;
}

.shop-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    padding: 1.5rem;
    text-align: center;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.shop-card.owned {
    border-color: rgba(16, 185, 129, 0.3);
}

.shop-card.equipped {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.rarity-common { border-left: 4px solid #9ca3af; }
.rarity-rare { border-left: 4px solid #3b82f6; }
.rarity-epic { border-left: 4px solid #a855f7; }
.rarity-legendary { 
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), transparent);
}

.shop-item-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.owned-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.equipped-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(124, 58, 237, 0.9);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.shop-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.shop-item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    min-height: 40px;
}

.shop-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.inventory-section {
    margin-bottom: 2rem;
}

.inventory-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.inventory-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.inventory-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.inventory-item.equipped {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.inventory-item-icon {
    font-size: 2rem;
    min-width: 48px;
    text-align: center;
}

.inventory-item-info {
    flex: 1;
}

.inventory-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.inventory-item-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    #shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .shop-header > div:first-child {
        flex-direction: column;
        align-items: flex-start;
    }
}
.mode-btn.active {
    background: var(--accent-purple) !important;
    color: white !important;
    border-color: var(--accent-purple) !important;
}
.mode-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#btn-ready.is-ready {
    background: #10b981 !important;
    border-color: #10b981 !important;
}
.player-status.ready {
    color: #10b981;
    font-weight: 700;
}
.player-status.not-ready {
    color: var(--text-muted);
}

/* Карточки городов */
.duel-city-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    height: 120px;
    border: 2px solid transparent;
}
.duel-city-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-cyan);
}
.duel-city-card.selected {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}
.duel-city-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}
.duel-city-card:hover .duel-city-card-bg {
    transform: scale(1.08);
}
.duel-city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
}
.duel-city-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    color: white;
    z-index: 1;
}
.duel-city-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.duel-city-card-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
}
.game-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.game-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.game-mode-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.game-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.game-detail {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.game-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.game-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-amber);
}

.game-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.game-perfect {
    font-size: 0.85rem;
    color: var(--accent-green);
}

@media (max-width: 768px) {
    .game-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-stats {
        align-items: flex-start;
    }
}
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.leaderboard-item.current-user {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.rank-badge {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #000; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #e8a87c); color: #000; }

.player-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.player-details {
    flex: 1;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.player-level {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.player-stats {
    display: flex;
    gap: 1.5rem;
    text-align: right;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-amber);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.top-3-card {
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.top-3-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.top-3-card.gold::before { background: linear-gradient(90deg, #ffd700, #ffed4e); }
.top-3-card.silver::before { background: linear-gradient(90deg, #c0c0c0, #e8e8e8); }
.top-3-card.bronze::before { background: linear-gradient(90deg, #cd7f32, #e8a87c); }

.top-3-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.top-3-medal {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    #top-3-container {
        grid-template-columns: 1fr;
    }
    
    .player-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}
.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.notification-item.unread {
    background: rgba(6, 182, 212, 0.08);
    border-left-color: var(--accent-cyan);
}

.notification-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.notification-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.notification-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.referral-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.referral-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.referral-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.referral-info {
    flex: 1;
}

.referral-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.referral-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.referral-reward {
    text-align: right;
    font-size: 0.9rem;
}

.reward-coins {
    color: var(--accent-amber);
    font-weight: 600;
}

.reward-xp {
    color: var(--accent-cyan);
    font-weight: 600;
}
.suggestion-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.suggestion-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    flex: 1;
}

.suggestion-category {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.category-feature { color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.category-improvement { color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.category-bug { color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.category-other { color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }

.suggestion-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.suggestion-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vote-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.vote-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vote-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.vote-btn.active-up {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.vote-btn.active-down {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.status-pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.status-under_review { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-approved { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status-rejected { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.status-implemented { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
#feedback-modal .modal-content {
    display: flex;
    flex-direction: column;
    height: 50vh;
    max-height: 50vh;
    overflow: hidden;
    padding: 0;
    max-width: 700px;
    width: 100%;
}

.feedback-messages-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
}

.feedback-messages-scroll::-webkit-scrollbar {
    width: 6px;
}
.feedback-messages-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.feedback-messages-scroll::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.4);
    border-radius: 3px;
}
.feedback-messages-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.7);
}

.feedback-message {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.feedback-message.from-admin {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.3);
}

.feedback-message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.feedback-message-author {
    font-weight: 600;
    color: var(--accent-cyan);
}
.feedback-message.from-admin .feedback-message-author {
    color: var(--accent-purple);
}
.feedback-message-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}
.feedback-message-body {
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.feedback-message-image {
    max-width: 220px;
    margin-top: 0.5rem;
    border-radius: 6px;
    display: block;
}

.feedback-reply-bar {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
}
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    max-width: 360px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: var(--bg-card, #141832);
    border: 1px solid var(--border, #2a2f4a);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    animation: toastIn .3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

/* ============================================================
   MAPS PAGE — список карт с пагинацией/поиском/фильтром
   ============================================================ */
.maps-page { padding: 24px 0 60px; }

.maps-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.maps-search {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.maps-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-card, #141832);
    border: 1px solid var(--border, #2a2f4a);
    border-radius: 12px;
    color: var(--text, #e8eaf6);
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
}
.maps-search input:focus { border-color: var(--accent, #6c5ce7); }
.maps-search::before {
    content: '🔍';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .6;
    font-size: 14px;
}

.maps-filter {
    padding: 12px 16px;
    background: var(--bg-card, #141832);
    border: 1px solid var(--border, #2a2f4a);
    border-radius: 12px;
    color: var(--text, #e8eaf6);
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

.maps-sort {
    padding: 12px 16px;
    background: var(--bg-card, #141832);
    border: 1px solid var(--border, #2a2f4a);
    border-radius: 12px;
    color: var(--text, #e8eaf6);
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.map-card {
    background: var(--bg-card, #141832);
    border: 1px solid var(--border, #2a2f4a);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.map-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent, #6c5ce7);
    box-shadow: 0 12px 32px rgba(108,92,231,.2);
}

.map-card-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(108,92,231,.15);
    color: var(--accent, #6c5ce7);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.map-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text, #e8eaf6);
}

.map-card-subtitle {
    font-size: 13px;
    color: var(--text-muted, #8b90b0);
    margin-bottom: 12px;
}

.map-card-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted, #8b90b0);
    border-top: 1px solid var(--border, #2a2f4a);
    padding-top: 12px;
    margin-top: 12px;
}

.map-card-stat b {
    color: var(--text, #e8eaf6);
    font-weight: 600;
}

.maps-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.maps-pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card, #141832);
    border: 1px solid var(--border, #2a2f4a);
    border-radius: 10px;
    color: var(--text, #e8eaf6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.maps-pagination button:hover:not(:disabled) {
    border-color: var(--accent, #6c5ce7);
}
.maps-pagination button.active {
    background: var(--accent, #6c5ce7);
    border-color: var(--accent, #6c5ce7);
    color: #fff;
}
.maps-pagination button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.maps-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted, #8b90b0);
    font-size: 16px;
}

/* ============================================================
   HINTS — панель подсказок в игре
   ============================================================ */
.hints-panel {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-card, #141832);
    border: 1px solid var(--border, #2a2f4a);
    border-radius: 16px;
}

.hint-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(108,92,231,.08);
    border: 1px solid rgba(108,92,231,.25);
    border-radius: 12px;
    color: var(--text, #e8eaf6);
    cursor: pointer;
    transition: all .2s;
    text-align: left;
    font-size: 13px;
}
.hint-btn:hover:not(:disabled) {
    background: rgba(108,92,231,.18);
    border-color: var(--accent, #6c5ce7);
    transform: translateY(-2px);
}
.hint-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.hint-btn.used {
    background: rgba(46,213,115,.1);
    border-color: rgba(46,213,115,.4);
    opacity: 1;
    cursor: default;
}
.hint-btn-icon { font-size: 20px; }
.hint-btn-body { flex: 1; }
.hint-btn-title { font-weight: 600; margin-bottom: 2px; }
.hint-btn-price { font-size: 11px; color: #fdcb6e; font-weight: 600; }
.hint-btn-price.paid { color: #2ed573; }

/* ============================================================
   LEADERBOARD — вкладки
   ============================================================ */
.lb-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lb-tab {
    padding: 10px 20px;
    background: var(--bg-card, #141832);
    border: 1px solid var(--border, #2a2f4a);
    border-radius: 12px;
    color: var(--text-muted, #8b90b0);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.lb-tab:hover { color: var(--text, #e8eaf6); }
.lb-tab.active {
    background: var(--accent, #6c5ce7);
    border-color: var(--accent, #6c5ce7);
    color: #fff;
}

.lb-map-select {
    padding: 12px 16px;
    background: var(--bg-card, #141832);
    border: 1px solid var(--border, #2a2f4a);
    border-radius: 12px;
    color: var(--text, #e8eaf6);
    font-size: 15px;
    outline: none;
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card, #141832);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border, #2a2f4a);
}

.lb-table th,
.lb-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border, #2a2f4a);
    font-size: 14px;
}

.lb-table th {
    background: rgba(108,92,231,.08);
    font-weight: 600;
    color: var(--text-muted, #8b90b0);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.lb-table tr:last-child td { border-bottom: none; }
.lb-table tr:hover td { background: rgba(108,92,231,.05); }

.lb-rank {
    font-weight: 700;
    font-size: 16px;
    width: 60px;
}
.lb-rank.gold   { color: #fdcb6e; }
.lb-rank.silver { color: #b2bec3; }
.lb-rank.bronze { color: #e17055; }

.lb-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent, #6c5ce7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.lb-value {
    font-weight: 700;
    color: var(--accent, #6c5ce7);
    font-size: 15px;
}

.lb-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted, #8b90b0);
}
/* ═══════════════ GAME TOP BAR ═══════════════ */
.game-container {
    display: flex;
    flex-direction: column;
}


/* HUD внутри topbar — без абсолютного позиционирования */



/* Плашка задания */



/* Карта занимает всё оставшееся место */
.panorama-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
    background: #000;
}

.task-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.task-sub {
    font-size: 0.7rem;
    color: var(--accent-amber);
    margin-top: 0.1rem;
}
/* ═══════════════ GAME TOP BAR ═══════════════ */
.game-container {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    z-index: 50;
    background: var(--bg-primary);
}

.game-topbar {
    flex: 0 0 auto;
    height: 64px;
    display: grid;
    /* подсказки | HUD (центр) | задание */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 60;
    position: relative;
}

/* Подсказки — левая колонка */
.game-topbar .hint-buttons {
    grid-column: 1;
    justify-self: start;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    border-right: none;
    flex-shrink: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.game-topbar .hint-buttons::-webkit-scrollbar { display: none; }

/* HUD — строго по центру */
.game-topbar .game-hud {
    grid-column: 3;
    justify-self: end;
    position: static;
    top: auto;
    right: auto;
    pointer-events: auto;
}

.game-topbar .hud-group {
    padding: 0.4rem 0.85rem;
    gap: 0.6rem;
}

/* Задание — правая колонка */
.game-topbar .task-bar {
    grid-column: 2;
    justify-self: center;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 0;
    text-align: right;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    max-width: 100%;
    min-width: 0;
    line-height: 1.2;
}

.task-target {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}
/* ═══════════════ КЛИК-МЕТКА (название района в точке клика) ═══════════════ */
.click-label {
    position: fixed;
    z-index: 500;
    pointer-events: none;
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(239, 68, 68, 0.2);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: 'Manrope', sans-serif;
}

.click-label.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.click-label.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Небольшая стрелочка вниз, указывающая на точку клика */
.click-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(10, 10, 15, 0.95);
}

.click-label.wrong::after {
    border-top-color: rgba(10, 10, 15, 0.95);
}

.bg-effects, .bg-stars, .bg-gradient, .bg-grid, 
.hero::before, .gradient-text, .country-card::before {
    animation: none !important;
}

/* 3. УБИВАЕМ HUD, ТАЙМЕРЫ И КНОПКИ (Пульсации, скачки очков, ховеры) */
.timer-value, .score-value, .quick-timer, .attempt-dot, 
.pano-action-btn, .hint-btn, .game-card-play, .minimap-wrapper {
    animation: none !important;
    transition: none !important;
}

/* 4. ОБЕЗВРЕЖИВАЕМ ТЯЖЕЛЫЕ @keyframes (Делаем их бесполезными, чтобы не удалять вручную) */
@keyframes twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.3; } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 0% 50%; } }
@keyframes timer-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 1; } }
@keyframes score-bump { 0%, 50%, 100% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1); } }
@keyframes quickTimerPulse { 0%, 100% { box-shadow: none; } 50% { box-shadow: none; } }
@keyframes quickTimerWarning { 0%, 100% { transform: scale(1); } 50% { transform: scale(1); } }
@keyframes dailyCityPulse { 0%, 100% { box-shadow: none; } 50% { box-shadow: none; } }
/* ═══════════════ LEAFLET MAP ═══════════════ */
.panorama-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
    background: #0a0e27;
    cursor: default;
}

#map-container {
    width: 100%;
    height: 100%;
}

.leaflet-container {
    width: 100%;
    height: 100%;
    background: #0a0e27;
    font-family: 'Manrope', sans-serif;
    outline: none;
}

/* Скрываем дефолтную атрибуцию Leaflet (OSM требует указывать, но у нас маленькая карта) */
.leaflet-control-attribution {
    background: rgba(10, 10, 15, 0.7) !important;
    color: rgba(255,255,255,0.5) !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 6px 0 0 0;
}
.leaflet-control-attribution a {
    color: rgba(255,255,255,0.7) !important;
}

/* Тултип-название района при неверном клике */
.leaflet-click-label {
    background: rgba(10, 10, 15, 0.95);
    color: #fff;
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(239, 68, 68, 0.2);
    white-space: nowrap;
}
.leaflet-click-label::before {
    border-top-color: rgba(10, 10, 15, 0.95) !important;
}

/* Зум-кнопки */
.zoom-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 500;
}

.maplibregl-popup-content {
    background: rgba(10, 10, 15, 0.95) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(239, 68, 68, 0.2) !important;
    font-family: 'Manrope', sans-serif !important;
}
.maplibregl-popup-tip {
    border-top-color: rgba(10, 10, 15, 0.95) !important;
}
.maplibregl-popup.rg-label-wrong .maplibregl-popup-content {
    border: 1px solid rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(239, 68, 68, 0.25) !important;
}
.maplibregl-popup.rg-label-wrong .maplibregl-popup-tip {
    border-top-color: rgba(10, 10, 15, 0.95) !important;
}
/* ─────────── Поиск в каталоге ─────────── */
.catalog-search {
    position: relative;
    margin-top: 1.5rem;
    max-width: 520px;
}

.catalog-search input {
    width: 100%;
    padding: 0.95rem 3rem 0.95rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.catalog-search input::placeholder {
    color: var(--text-muted);
}

.catalog-search input:focus {
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.catalog-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.catalog-search-clear:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.catalog-search-clear.hidden {
    display: none;
}