/* VN 2026-10-23: cielo nocturno de fondo, aura del puntero, chispas, botones magnéticos y aparición al bajar (js/cielo.js). */

/* ---------- cielo (detrás de todo, nunca tapa ni recibe clics) ---------- */
.fx-cielo { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0; animation: fx-cielo-in 1.6s ease .2s forwards; }
@keyframes fx-cielo-in { to { opacity: 1; } }
:root[data-theme="light"] .fx-cielo { display: none; }
html.sin-fx .fx-cielo, html.alto-contraste .fx-cielo, html.sin-fx .fx-aura, html.sin-fx .fx-estrellas { display: none !important; }
html.sin-fx body::before { animation: none; }

/* ---------- aura del puntero (el cursor normal sigue igual) ---------- */
.fx-aura { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid rgba(160, 175, 255, .55); background: radial-gradient(circle, rgba(91, 107, 255, .16), transparent 70%);
  opacity: 0; transition: opacity .3s, width .25s, height .25s, margin .25s, border-color .25s, background .25s; will-change: transform; }
.fx-aura.ver { opacity: 1; }
.fx-aura.sobre { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: rgba(255, 210, 31, .75); background: radial-gradient(circle, rgba(255, 210, 31, .14), transparent 70%); }
:root[data-theme="light"] .fx-aura { border-color: rgba(51, 70, 255, .45); }

/* ---------- chispas al hacer clic ---------- */
.fx-chispa { position: fixed; z-index: 9999; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; pointer-events: none;
  background: #ffd21f; box-shadow: 0 0 6px #ffd21f; animation: fx-chispa .55s ease-out forwards; }
.fx-chispa:nth-child(3n) { background: #8f9bff; box-shadow: 0 0 6px #8f9bff; }
.fx-chispa:nth-child(3n+1) { background: #ff5a74; box-shadow: 0 0 6px #ff5a74; }
@keyframes fx-chispa { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* ---------- botones magnéticos ---------- */
.fx-iman { transition: translate .25s cubic-bezier(.2, .8, .2, 1), transform .12s, background .15s, border-color .15s; }

/* ---------- aparición al bajar ---------- */
.fx-oculto { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.fx-oculto.fx-visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { .fx-cielo { opacity: 1; } .fx-aura, .fx-chispa { display: none; } .fx-oculto { opacity: 1; transform: none; } }

/* ---------- banderas en Windows (no dibuja los emojis de bandera): fuente solo para esos caracteres ---------- */
@font-face { font-family: "Banderas VN"; src: url("/static/fonts/banderas.woff2") format("woff2"); unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; font-display: swap; }
:root { --cuerpo: "Banderas VN", "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; --mono: "Banderas VN", "JetBrains Mono", Consolas, "Courier New", monospace; }
