/**
 * Стили для тренажёра "Угадай эмоцию"
 */

.emotion-game .game-title { color: #9c27b0; }

/* Top bar */
.emotion-top {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Players Grid */
.emotion-players {
    display: grid;
    gap: 10px;
}

.emotion-players.players-1 { grid-template-columns: 1fr; }
.emotion-players.players-2 { grid-template-columns: repeat(2, 1fr); }
.emotion-players.players-3 { grid-template-columns: repeat(3, 1fr); }
.emotion-players.players-4 { grid-template-columns: repeat(2, 1fr); }

/* Player Container */
.emotion-player {
    background: white;
    border: 2px solid #9c27b0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.emotion-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #9c27b0, #e91e63);
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.emotion-player-content {
    padding: 15px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Question */
.emotion-question {
    text-align: center;
    width: 100%;
}

.emotion-instruction {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.emotion-big-emoji {
    font-size: 4rem;
    line-height: 1;
    animation: emoPulse 2s ease-in-out infinite;
}

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

.emotion-word {
    font-size: 1.6rem;
    font-weight: 700;
    color: #9c27b0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.emotion-situation {
    background: #f8f9fa;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
}

/* Options */
.emotion-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.emotion-opt-btn {
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: 3px solid #ddd;
    border-radius: var(--radius-lg);
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.15s;
}

.emotion-opt-btn:hover:not(:disabled) {
    border-color: #9c27b0;
    background: #f3e5f5;
}

.emotion-opt-btn.correct {
    border-color: #27ae60;
    background: #d4edda;
    color: #155724;
}

.emotion-opt-btn.incorrect {
    border-color: #e74c3c;
    background: #f8d7da;
    color: #721c24;
}

.emotion-opt-btn.highlight {
    border-color: #f0ad4e;
    background: #fff3cd;
}

/* Emoji buttons */
.emotion-options.emoji-options {
    gap: 10px;
}

.emotion-emoji-btn {
    width: 65px;
    height: 65px;
    font-size: 2.2rem;
    border: 3px solid #ddd;
    border-radius: var(--radius-lg);
    background: white;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emotion-emoji-btn:hover:not(:disabled) {
    border-color: #9c27b0;
    background: #f3e5f5;
    transform: scale(1.05);
}

.emotion-emoji-btn.correct {
    border-color: #27ae60;
    background: #d4edda;
}

.emotion-emoji-btn.incorrect {
    border-color: #e74c3c;
    background: #f8d7da;
}

.emotion-emoji-btn.highlight {
    border-color: #f0ad4e;
    background: #fff3cd;
}

/* Timer */
.emotion-timer-bar {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.emotion-timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.1s linear;
}

.emotion-timer-fill.warning {
    background: linear-gradient(90deg, #f39c12, #e74c3c);
}

/* Result */
.emotion-result {
    margin-top: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.emotion-result.correct { color: #27ae60; }
.emotion-result.incorrect { color: #e74c3c; }

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

.emotion-results .res-icon { font-size: 60px; margin-bottom: 10px; }
.emotion-results h2 { font-size: 22px; color: var(--text-primary); margin-bottom: 20px; }

.emotion-results .res-stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.emotion-results .res-stat {
    background: white;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.emotion-results .res-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #9c27b0;
    margin-bottom: 3px;
}

.emotion-results .res-value {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

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

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

.emotion-results .res-btns button:first-child {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
    color: white;
}

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

/* Responsive */
@media (max-width: 768px) {
    .emotion-players.players-2,
    .emotion-players.players-3,
    .emotion-players.players-4 {
        grid-template-columns: 1fr;
    }
    
    .emotion-big-emoji { font-size: 3rem; }
    .emotion-emoji-btn { width: 55px; height: 55px; font-size: 1.8rem; }
}