<!
DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Pantalla Didáctica Amorosa</title>
<style>
body {
margin: 0;
overflow: hidden;
background: linear-gradient(to bottom, #000011, #1a0033);
font-family: 'Segoe UI', sans-serif;
touch-action: none;
}
.corazon, .texto {
position: absolute;
user-select: none;
pointer-events: none;
animation: flotar 1.5s ease-out forwards;
white-space: nowrap;
}
@keyframes flotar {
0% {
transform: scale(0.5) translateY(0);
opacity: 1;
}
100% {
transform: scale(1.5) translateY(-100px);
opacity: 0;
}
}
.central {
position: absolute;
top: 40%;
width: 100%;
text-align: center;
font-size: 3rem;
font-weight: bold;
color: #ff66cc;
text-shadow: 0 0 10px #ff99cc, 0 0 20px #ff33cc;
z-index: 100;
}
</style>
</head>
<body>
<div class="central">Mi niña 💖</div>
<script>
const frases = ['❤', '💖', 'I LOVE', 'MI NIÑA'];
document.addEventListener("pointerdown", (e) => {
const el = document.createElement('div');
el.className = Math.random() > 0.5 ? 'corazon' : 'texto';
el.textContent = frases[Math.floor(Math.random() * frases.length)];
el.style.left = e.clientX + 'px';
el.style.top = e.clientY + 'px';
el.style.color = ['#ff66cc', '#ff3399', '#ff4d4d'][Math.floor(Math.ran-
dom() * 3)];
el.style.fontSize = (Math.random() * 20 + 20) + 'px';
document.body.appendChild(el);
setTimeout(() => {
el.remove();
}, 1500);
});
</script>
</body>
</html>