body { 
    margin: 0; 
    overflow: hidden; 
    background-color: #050205; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

#overlay {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 5, 10, 0.9); 
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; 
    color: #ffccdd; /* Texto rosado suave */
    z-index: 10;
}

button {
    padding: 15px 30px; font-size: 18px; cursor: pointer; border: none;
    border-radius: 30px; background: #ff6699; color: white; font-weight: bold;
    transition: background 0.3s, transform 0.2s; margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 102, 153, 0.4);
}

button:hover { 
    background: #ff3377; 
    transform: scale(1.05);
}

/* NUEVO: Estilo de la transición */
#transitionOverlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Un degradado radial que simula niebla rosada/violeta */
    background: radial-gradient(circle, rgba(40,10,30,1) 0%, rgba(10,2,8,1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffb3d9;
    z-index: 5;
    
    /* Magia de la animación: empieza invisible y sin bloquear clics */
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out; 
}

#transitionText {
    font-weight: 300;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

/* Pequeña animación para que el texto respire */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
/* --- NUEVO: ESTILOS DE LA NOTA ESCRITA A MANO --- */

#noteOverlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 2, 6, 0.7); /* Fondo oscuro semitransparente */
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 20; /* Tiene que estar por encima de todo */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.paper-note {
    background: #fdf8e3; /* Color de papel envejecido/crema */
    padding: 40px 50px;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    max-width: 80%;
    text-align: center;
    
    /* Aplicamos la fuente cursiva */
    font-family: 'Caveat', cursive; 
    color: #2c1a22; /* Tinta oscura, casi negra/marrón */
    font-size: 32px;
    line-height: 1.4;
    
    transform: rotate(-2deg); /* Ligera inclinación para que parezca natural */
    cursor: pointer;
    transition: transform 0.3s;
    
    /* Permite que los saltos de línea (\n) del código se respeten en pantalla */
    white-space: pre-wrap; 
}

.paper-note:hover {
    transform: rotate(0deg) scale(1.02); /* Se endereza ligeramente al pasar el dedo/cursor */
}

.click-to-continue {
    font-family: sans-serif;
    font-size: 14px;
    color: #997a8d;
    margin-top: 30px;
    animation: pulse 2s infinite;
    letter-spacing: 1px;
}
