/* Riddle Widget Styles */
.riddle-widget {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    position: relative;
}

.riddle-question {
    font-family: 'Mogra', cursive, sans-serif;
    font-weight: 400;
    font-size: clamp(1.3rem, 4vw, 2rem);
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.6;
}

.riddle-answer-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.riddle-letter-boxes {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.riddle-letter-box {
    width: 60px;
    height: 60px;
    border: 3px solid #ffffff;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Mogra', cursive, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.2),
        inset 0 2px 5px rgba(255,255,255,0.1);
}

.riddle-letter-box:focus {
    border-color: #00ff88;
    background: rgba(0,255,136,0.1);
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0,255,136,0.3),
        inset 0 2px 5px rgba(255,255,255,0.2);
}

.riddle-letter-box.filled {
    background: rgba(255,255,255,0.1);
    border-color: #ffffff;
    animation: letterPop 0.3s ease;
}

.riddle-letter-box.correct {
    border-color: #00ff88;
    background: rgba(0,255,136,0.2);
    animation: correctPulse 0.6s ease;
}

.riddle-letter-box.incorrect {
    border-color: #ff4444;
    background: rgba(255,68,68,0.2);
    animation: shake 0.5s ease;
}

.riddle-result-message {
    text-align: center;
    font-family: 'Mogra', cursive, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.riddle-result-message.show {
    opacity: 1;
}

.riddle-result-message.success {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0,255,136,0.5);
}

.riddle-result-message.error {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255,68,68,0.5);
}

@keyframes letterPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); border-color: #00ff88; }
    50% { transform: scale(1.1); border-color: #ffffff; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
