/* ==================== SIMON DICE - ESTILOS ==================== */

.simon-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 30px;
    color: white;
    text-align: center;
}

/* Header */
.simon-header {
    margin-bottom: 20px;
}

.simon-stage-title {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.simon-round-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Mensaje principal */
.simon-message {
    font-size: 1.3rem;
    color: white;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.simon-welcome {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 10px;
}

.simon-instruction {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.simon-observing {
    color: #74b9ff;
}

.simon-your-turn {
    color: #00ff88;
    animation: pulse-green 1s ease infinite;
}

@keyframes pulse-green {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
    50% { text-shadow: 0 0 20px rgba(0, 255, 136, 0.8); }
}

/* Contenedor de botones - Rueda */
.simon-buttons-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

/* SVG Wheel */
.simon-wheel {
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

/* Segmentos del círculo */
.simon-segment {
    cursor: pointer;
    opacity: 0.75;
    transition: all 0.15s ease;
    filter: brightness(1);
    stroke: rgba(0, 0, 0, 0.3);
    stroke-width: 1;
}

.simon-segment:hover {
    opacity: 0.9;
    filter: brightness(1.1);
    transform-origin: center;
}

.simon-segment.simon-active {
    opacity: 1;
    filter: brightness(1.5) drop-shadow(0 0 20px currentColor);
    transform-origin: center;
    animation: segment-pulse 0.3s ease;
}

.simon-segment.simon-pressed {
    opacity: 1;
    filter: brightness(1.3);
}

@keyframes segment-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Barra de progreso */
.simon-progress {
    width: 100%;
    max-width: 300px;
    margin-top: 30px;
}

.simon-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.simon-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #ff69b4);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.simon-progress-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Mensajes motivacionales */
.simon-motivational {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #ffd700;
    min-height: 40px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.simon-motivational.simon-show {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de éxito */
.simon-success {
    color: #00ff88;
    font-size: 1.5rem;
}

.simon-success-animation {
    animation: success-bounce 0.5s ease;
}

@keyframes success-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Error suave */
.simon-gentle-error {
    color: #ffb3ba;
}

.simon-try-again {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.simon-error {
    animation: gentle-shake 0.3s ease;
}

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

/* Mensaje de broma */
.simon-joke-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.simon-joke-emoji {
    font-size: 4rem;
    animation: joke-bounce 1s ease infinite;
}

@keyframes joke-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.simon-joke-text {
    font-size: 2rem;
    color: #ffd700;
}

.simon-joke-message {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 105, 180, 0.1));
    padding: 20px;
    border-radius: 15px;
}

.simon-final-message {
    font-size: 1.3rem;
    color: #ff69b4;
    animation: final-glow 2s ease infinite;
}

@keyframes final-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 105, 180, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 105, 180, 0.8); }
}

/* Transición de etapa */
.simon-stage-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    animation: fade-in 0.5s ease;
}

.simon-transition-content {
    text-align: center;
    padding: 40px;
}

.simon-transition-title {
    font-size: 2rem;
    color: #00ff88;
    margin-bottom: 20px;
}

.simon-transition-next {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.simon-transition-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.simon-continue-btn {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #1a1a2e;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.simon-continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* Pantalla de completado */
.simon-complete {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    animation: fade-in 0.5s ease;
}

.simon-complete-content {
    text-align: center;
    padding: 40px;
}

.simon-complete-stars {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: stars-float 2s ease infinite;
}

@keyframes stars-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.simon-complete-title {
    font-size: 2.5rem;
    color: #00ff88;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.simon-complete-message {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 30px;
}

.simon-final-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.4);
}

.simon-final-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(255, 105, 180, 0.5);
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
    .simon-wheel {
        width: 250px;
        height: 250px;
    }
    
    .simon-stage-title {
        font-size: 1.4rem;
    }
    
    .simon-message {
        font-size: 1.1rem;
    }
}