/* /assets/css/mode-picker.css */
/* Модалка выбора режима игры */

.mode-picker-content {
    max-width: 620px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
}

.mode-picker-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-picker-map {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.mode-picker-map-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    flex-shrink: 0;
}

.mode-picker-map-info {
    min-width: 0;
    flex: 1;
}

.mode-picker-map-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.25rem;
}

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

.mode-picker-section {
    margin-bottom: 1.25rem;
}

.mode-picker-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.mode-picker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mode-picker-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
}

.mode-picker-card:hover:not(.disabled) {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.mode-picker-card.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.12));
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2),
                0 8px 24px rgba(124, 58, 237, 0.25);
}

.mode-picker-card.active::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    font-size: 0.75rem;
}

.mode-picker-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mode-picker-card-icon {
    font-size: 1.85rem;
    margin-bottom: 0.4rem;
    line-height: 1;
}

.mode-picker-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.mode-picker-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.mode-picker-timer-settings {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
}

.mode-picker-timer-settings.hidden {
    display: none;
}

.mode-picker-timer-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mode-picker-timer-row input[type="range"] {
    flex: 1;
    accent-color: var(--accent-amber);
}

.mode-picker-timer-value {
    font-family: 'Space Grotesk', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-amber);
    min-width: 70px;
    text-align: right;
}

.mode-picker-user-stats {
    display: flex;
    gap: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mode-picker-user-stats.hidden {
    display: none;
}

.mode-picker-stat b {
    color: var(--accent-cyan);
}

.mode-picker-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 560px) {
    .mode-picker-content {
        padding: 1.25rem;
    }
    .mode-picker-grid {
        grid-template-columns: 1fr;
    }
    .mode-picker-map-title {
        font-size: 1.05rem;
    }
    .mode-picker-map-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    .mode-picker-actions {
        flex-direction: column-reverse;
    }
    .mode-picker-actions .btn {
        width: 100%;
    }
}
/* ═══════════════════════════════════════════════════════════
   Стили игровых режимов на игровом экране
   ═══════════════════════════════════════════════════════════ */

/* ─── Жизни (survival) ─── */
.lives-display {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    font-weight: 700;
    color: #ef4444;
    font-size: 1rem;
    animation: livesPulse 1.5s ease-in-out infinite;
}

@keyframes livesPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* ─── Таймер в timed-режиме ─── */
.timer-value.quick-response {
    color: #f59e0b;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.timer-value.quick-response.danger {
    color: #ef4444;
    animation: timerPulse 0.8s ease-in-out infinite;
}

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

/* ─── Бейдж «Режим обучения» ─── */
#learning-badge {
    animation: learningPulse 2s ease-in-out infinite;
}

@keyframes learningPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

/* ─── Попап обучения ─── */
.maplibregl-popup-content {
    background: rgba(10, 10, 15, 0.95) !important;
    border: 1px solid rgba(6, 182, 212, 0.5) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(6, 182, 212, 0.2) !important;
}
/* ═══════════════════════════════════════════════════════════
   Кнопка «Мульти-игра» в ModePicker
   ═══════════════════════════════════════════════════════════ */
.mode-picker-multi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(124, 58, 237, 0.15));
    border: 2px solid rgba(6, 182, 212, 0.4);
    border-radius: 12px;
    color: #22d3ee;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-picker-multi-btn:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(124, 58, 237, 0.25));
    border-color: #22d3ee;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
    color: #fff;
}

.mode-picker-multi-btn.hidden {
    display: none;
}