/* Specific dynamic animations & game states for Motus / Audio / Lamp */
.morse-letter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e69d00;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #2e3848;
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    min-width: 55px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.morse-letter-sm {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e69d00;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #2e3848;
    border-radius: 4px;
    padding: 0.15rem 0.5rem;
    display: inline-block;
}

/* Audio wave animation */
.audio-wave-visualizer.playing .bar {
    background-color: #e69d00;
    animation: wave 0.6s infinite ease-in-out alternate;
}
.audio-wave-visualizer.playing .bar:nth-child(2) { animation-delay: 0.1s; }
.audio-wave-visualizer.playing .bar:nth-child(3) { animation-delay: 0.2s; }
.audio-wave-visualizer.playing .bar:nth-child(4) { animation-delay: 0.3s; }
.audio-wave-visualizer.playing .bar:nth-child(5) { animation-delay: 0.15s; }

@keyframes wave {
    0% { height: 10px; }
    100% { height: 32px; }
}

/* Lamp Bulb */
.lamp-bulb.lit {
    background: #ffcc00;
    box-shadow: 0 0 25px #ffbb00;
}

/* Active tab style */
.tab-btn.active {
    border-color: #e69d00;
    background-color: #202734;
    box-shadow: inset 3px 0 0 #e69d00;
}

/* Motus Cell Custom States */
.motus-cell {
    width: 44px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid #2e3848;
    background: #0f1319;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.live-row .motus-cell.filled {
    border-color: #e69d00;
    color: #e69d00;
    box-shadow: 0 0 8px rgba(230, 157, 0, 0.2);
}

.motus-cell.correct {
    background-color: #047857;
    border-color: #10b981;
    color: #ffffff;
}

.motus-cell.present {
    background-color: #b45309;
    border-color: #f59e0b;
    color: #ffffff;
}

.motus-cell.absent {
    background-color: #1e293b;
    border-color: #334155;
    color: #64748b;
}

.motus-cell.extra {
    background-color: #7f1d1d;
    border-color: #ef4444;
    color: #ffffff;
}

.motus-cell.empty-slot {
    border: 1px dashed #2e3848;
    background-color: rgba(23, 29, 38, 0.4);
    opacity: 0.6;
}

.motus-cell.missing {
    border: 2px dashed #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.feedback-msg.success { color: #10b981; }
.feedback-msg.error { color: #ef4444; }

.motus-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.motus-row.row-match-ok {
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
    border-radius: 10px;
    padding: 0.25rem;
}

.motus-row.row-match-bad {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
    border-radius: 10px;
    padding: 0.25rem;
}
