:root {
    --primary: #ff0055;
    --secondary: #6c5ce7;
    --bg: #0f0c29;
    --glass: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: white;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* --- FONDO ANIMADO --- */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: moveStars 100s linear infinite;
    z-index: -1;
}

@keyframes moveStars {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-1000px);
    }
}

/* --- CONTENEDOR PRINCIPAL --- */
.interface {
    width: 90%;
    max-width: 400px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 30px 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: all 0.5s ease;
}

h1 {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
}

p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* --- ELEMENTOS DE UI --- */
.btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 0, 85, 0.3);
    transition: transform 0.2s;
    width: 100%;
    margin-top: 15px;
}

.btn:active {
    transform: scale(0.95);
}

input {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    font-family: inherit;
    margin: 10px 0;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

/* --- UTILIDADES --- */
.hidden {
    display: none;
}

.photo-frame {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

/* --- MINIJUEGO --- */
.heart-btn {
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* --- MUSIC PLAYER --- */
.music-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.music-control {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.music-control:hover {
    background: rgba(255, 0, 85, 0.3);
    transform: scale(1.1);
}

.music-legend {
    font-size: 0.75rem;
    color: #ff0055;
    margin: 0;
    text-align: center;
    max-width: 80px;
    line-height: 1.3;
    font-weight: 600;
}

/* --- BARRA DE PROGRESO DEL ESCÁNER --- */
.scanner-line {
    height: 4px;
    background: var(--primary);
    width: 0%;
    border-radius: 2px;
    margin: 20px 0;
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.1s;

}

#scan-msg {
    font-weight: 600;
    color: #fab1a0;
    /* Un color suave */
    min-height: 50px;
    /* Espacio reservado para que no salte la pantalla */
    transition: opacity 0.3s;
    margin-bottom: 10px;
    font-size: 1rem;
}

#btnNo {
    position: relative;
    width: auto;
    background: #444;
}