/* Pantalla de inicio de HackLife: dragón, fuego azul y título animado */
.sp { position: fixed; inset: 0; z-index: 9999; background: #020308; display: grid; place-items: center; overflow: hidden; color: #e8eef8; transition: opacity .7s ease, transform .9s cubic-bezier(.6,0,.2,1), filter .7s; }
.sp.out { opacity: 0; transform: scale(1.06); filter: blur(6px); pointer-events: none; }
.sp::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 45%, #0a2a66 0%, #04102a 45%, #020308 80%); opacity: 0; animation: spBg 2.4s .2s ease forwards; }
.sp-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 2vh, 18px); padding: 0 16px; text-align: center; }
.sp-dragon { position: relative; width: min(46vw, 330px, 40vh); aspect-ratio: 378 / 374; opacity: 0; transform: scale(.7); filter: blur(14px) brightness(.4); animation: spDragon 1.5s .5s cubic-bezier(.2,.8,.2,1) forwards; }
.sp-dragon img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.sp-eye { position: absolute; left: 78%; top: 29%; width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fff 0%, #8fd0ff 25%, rgba(31,139,255,.55) 50%, transparent 70%); mix-blend-mode: screen; opacity: 0; animation: spEye 3.2s 1.3s ease-in-out infinite; }
.sp-title { margin: 0; font: 900 clamp(40px, 11vw, 104px)/1 "Orbitron", "Eurostile", "Segoe UI", system-ui, sans-serif; letter-spacing: .06em; display: flex; }
.sp-title .ch { display: inline-block; opacity: 0; transform: translateY(-34px) scale(1.3); filter: blur(10px); animation: spCh .7s cubic-bezier(.2,.9,.2,1) forwards; }
.sp-title .hk .ch { background: linear-gradient(180deg, #fff 10%, #b9c4d4 55%, #7e8aa0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-title .lf .ch { background: linear-gradient(180deg, #7cc4ff 0%, #1f8bff 55%, #0a55d6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(31,139,255,.85)); }
.sp-title::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 250% 100%; background-position: 160% 0; mix-blend-mode: overlay; animation: spShine 1.3s 2.9s ease forwards; pointer-events: none; }
.sp-title { position: relative; }
.sp-by { display: flex; align-items: center; gap: 14px; opacity: 0; font: 600 clamp(13px, 3.4vw, 22px)/1 system-ui, sans-serif; letter-spacing: .5em; color: #d5dded; text-transform: none; animation: spBy 1.2s 3s ease forwards; }
.sp-by i { display: block; height: 2px; width: 0; background: linear-gradient(90deg, transparent, #1f8bff); box-shadow: 0 0 10px #1f8bff; animation: spLine 1s 3.2s ease forwards; }
.sp-by i:last-child { background: linear-gradient(270deg, transparent, #1f8bff); }
.sp-skip { position: absolute; z-index: 3; right: 14px; bottom: 14px; background: none; border: 1px solid #ffffff22; color: #ffffff88; border-radius: 999px; padding: 6px 14px; font: 12px system-ui; cursor: pointer; }
.sp-skip:hover { color: #fff; border-color: #ffffff66; }
.sp.quick .sp-dragon { animation-duration: .8s; animation-delay: .1s; }
.sp.quick .sp-title .ch { animation-duration: .45s; }
.sp.quick .sp-title::after { animation-delay: 1.1s; }
.sp.quick .sp-by { animation-delay: 1.1s; animation-duration: .7s; }
.sp.quick .sp-by i { animation-delay: 1.2s; animation-duration: .6s; }
@keyframes spBg { to { opacity: 1; } }
@keyframes spDragon { to { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); } }
@keyframes spEye { 0%, 100% { opacity: .15; transform: translate(-50%, -50%) scale(.8); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.35); } }
@keyframes spCh { to { opacity: 1; transform: none; filter: none; } }
@keyframes spShine { to { background-position: -60% 0; } }
@keyframes spBy { from { opacity: 0; letter-spacing: 1.1em; } to { opacity: 1; letter-spacing: .5em; } }
@keyframes spLine { to { width: clamp(30px, 9vw, 120px); } }
@media (prefers-reduced-motion: reduce) {
  .sp-dragon, .sp-title .ch, .sp-by, .sp::before { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .sp-eye, .sp-title::after { display: none; }
  .sp-by i { animation: none !important; width: 40px; }
}
