:root {
    --violeta: #8e44ad;
    --fucsia: #e91e63;
    --turquesa: #00bcd4;
    --oro: #f1c40f;
    --perla: #f4f4f9; /* Tono blanco perla */
    --gris-oscuro: #2c3e50;
}

body {
    margin: 0;
    background: #f4f4f9 !important; /* Forzamos el color perla */
    background-image: radial-gradient(circle, #ffffff 0%, #e6e6f0 100%) !important;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
}

.app-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado horizontal */
    justify-content: center; /* Centrado vertical si sobra espacio */
    padding: 20px;
    text-align: center;
}

.logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    /* Sombra suave para que el logo "flote" sobre el fondo claro */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.wheel-wrapper {
    position: relative;
    margin: 10px 0;
}

#canvas {
    max-width: 90vw;
    height: auto;
    border-radius: 50%;
    /* Borde blanco grueso para separar la rueda del fondo */
    border: 10px solid #ffffff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

#pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid var(--fucsia);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

#spin-btn {
    display: block;
    margin: 30px auto; /* Centrado automático */
    background: var(--fucsia);
    border: none;
    padding: 18px 40px;
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
    cursor: pointer;
    width: 80%; /* Ocupa buen espacio en móvil */
    max-width: 300px;
}

#spin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.5);
}

#spin-btn:active {
    transform: translateY(1px);
}

#spin-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* Estilos del Modal (Popup) */
#modal {
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(44, 62, 80, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(5px); /* Efecto de desenfoque al fondo */
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    color: var(--gris-oscuro);
    width: 90%; 
    max-width: 450px;
    padding: 35px; 
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp { 
    from { transform: scale(0.7); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}

#modal-title {
    color: var(--violeta);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.option-btn {
    display: block; 
    width: 100%; 
    margin: 12px 0;
    padding: 14px; 
    border: 2px solid var(--turquesa);
    border-radius: 12px; 
    background: #fff; 
    font-weight: 700;
    color: var(--gris-oscuro);
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: var(--turquesa);
    color: #fff;
}

.dev-box {
    background: #fdf2f7; 
    padding: 20px;
    border-radius: 15px;
    border-left: 6px solid var(--fucsia); 
    margin: 20px 0;
    font-style: italic;
    line-height: 1.5;
}

.close-btn {
    background: var(--gris-oscuro);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.prize-icon {
    font-size: 5rem;
    margin: 20px 0;
    display: block;
}

.hidden { display: none !important; }