:root { 
    --azul-oscuro: #0054A6; 
    --azul-claro: #009EE2; 
    --blanco: #FFFFFF; 
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Arial, sans-serif; 
}

body {
    background: radial-gradient(circle, #0072bc 0%, #003a70 100%);
    height: 100vh; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    color: var(--blanco);
    padding: 10px;
}

.header-container { 
    text-align: center; 
    margin-bottom: 5px; 
    z-index: 5; 
}

.header-container h2 { 
    font-size: 1.8rem; 
    font-weight: 900; 
    line-height: 1.2; 
    text-transform: uppercase; 
}

.wheel-container {
    position: relative; 
    width: 60vh; 
    height: 60vh;
    max-width: 85vw; 
    max-height: 85vw; 
    margin: 15px 0;
}

canvas { 
    width: 100%; 
    height: 100%; 
    border: 8px solid var(--blanco); 
    border-radius: 50%; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); 
}

.marker {
    position: absolute; 
    right: -10px; 
    top: 50%; 
    transform: translateY(-50%);
    width: 0; 
    height: 0; 
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent; 
    border-right: 35px solid var(--blanco); 
    z-index: 20;
}

/* CONTROLES APILADOS VERTICALMENTE */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

#spin-btn { 
    padding: 15px 80px; 
    border: none; 
    border-radius: 50px; 
    background: var(--blanco); 
    color: var(--azul-oscuro); 
    font-size: 1.8rem; 
    font-weight: 900; 
    cursor: pointer; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: transform 0.1s;
}

#spin-btn:active { transform: scale(0.95); }

#edit-btn { 
    background: rgba(255,255,255,0.15); 
    color: white; 
    border: 1px solid rgba(255,255,255,0.4); 
    padding: 8px 25px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    cursor: pointer; 
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* MENÚ DE EDICIÓN */
.menu-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.95); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 100; 
}

.menu-content { 
    width: 95%; 
    max-width: 500px; 
    background: white; 
    color: #333; 
    padding: 25px; 
    border-radius: 15px; 
    max-height: 90vh; 
    overflow-y: auto; 
}

.config-section { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.config-section label { display: block; font-size: 0.85rem; font-weight: bold; margin-top: 10px; }
.config-section input { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 5px; }

.gift-item { background: #f8f9fa; padding: 12px; border-radius: 10px; margin-bottom: 10px; border: 1px solid #eee; }
.gift-input-group { display: flex; gap: 8px; margin-bottom: 8px; }
.remove-btn { background: #ff4757; color: white; border: none; padding: 0 12px; border-radius: 5px; cursor: pointer; font-weight: bold; }
#add-gift-btn, #save-btn { width: 100%; padding: 15px; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 10px; border: none; }
#add-gift-btn { background: var(--azul-claro); color: white; }
#save-btn { background: var(--azul-oscuro); color: white; font-size: 1.1rem; }
