/**
 * Стили для тренажёра "Логические цепочки"
 */

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

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

.logic-top { margin-bottom: 20px; }

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

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

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

.logic-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Цепочка */
.chain-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 15px;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chain-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    font-size: 2.2rem;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chain-item.question {
    background: linear-gradient(135deg, #5846cd, #764ba2);
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Варианты ответов */
.chain-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.chain-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
    background: white;
    border: 3px solid #ddd;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chain-opt:hover:not(:disabled) {
    border-color: #5846cd;
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(88, 70, 205, 0.3);
}

.chain-opt:disabled {
    cursor: default;
    transform: none;
}

.chain-opt.ok {
    border-color: #27ae60;
    background: #d4edda;
}

.chain-opt.err {
    border-color: #e74c3c;
    background: #f8d7da;
}

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

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

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

.logic-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;
}

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

.logic-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;
}

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

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

/* Responsive */
@media (max-width: 480px) {
    .chain-item { width: 45px; height: 45px; font-size: 1.8rem; }
    .chain-opt { width: 60px; height: 60px; font-size: 2rem; }
    .logic-question { font-size: 1rem; }
}