/**
 * Стили для тренажёра "Арифметика"
 */

.math-game .game-title { color: #5846cd; }

.math-game-area {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 25px;
    text-align: center;
}

.math-top { margin-bottom: 25px; }

.math-bar-wrap {
    height: 6px;
    background: rgba(88, 70, 205, 0.15);
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    overflow: hidden;
}

.math-bar {
    height: 100%;
    background: linear-gradient(90deg, #5846cd, #764ba2);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.math-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.math-timer {
    color: #5846cd;
    background: rgba(88, 70, 205, 0.1);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.math-expression {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.math-input-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.math-input {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    width: 140px;
    padding: 12px 15px;
    border: 3px solid #5846cd;
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s ease;
}

.math-input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 15px rgba(88, 70, 205, 0.3);
}

.math-input.ok {
    border-color: #27ae60;
    background: #d4edda;
}

.math-input.err {
    border-color: #e74c3c;
    background: #f8d7da;
}

.math-submit {
    background: linear-gradient(135deg, #5846cd, #764ba2);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.math-submit:hover:not(:disabled) {
    transform: scale(1.05);
}

.math-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.math-fb { min-height: 60px; }

/* Results */
.math-results {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

.math-results .res-icon { font-size: 60px; margin-bottom: 10px; }
.math-results h2 { font-size: 22px; color: var(--text-primary); margin-bottom: 15px; }
.math-results .res-score { font-size: 48px; font-weight: 900; color: #5846cd; }
.math-results .res-score small { font-size: 20px; color: var(--text-muted); }
.math-results .res-pct { font-size: 18px; color: var(--text-secondary); margin-bottom: 10px; }

.math-results .res-time {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.math-results .res-reward {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.math-results .res-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.math-results .res-btns button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.math-results .res-btns button:first-child {
    background: linear-gradient(135deg, #5846cd, #764ba2);
    color: white;
}

.math-results .res-btns button:last-child {
    background: #f0f0f0;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 480px) {
    .math-expression { font-size: 2rem; }
    .math-input { width: 110px; font-size: 1.4rem; padding: 10px; }
    .math-submit { padding: 12px 20px; font-size: 1rem; }
}