/* ---------- Cinemáticas (public/js/cine.js · contenido en public/js/cinematicas.js) ---------- */
.cine { position: fixed; inset: 0; z-index: 9900; background: #000; overflow: hidden; cursor: pointer; animation: cineIn .4s ease-out; user-select: none; -webkit-user-select: none; }
.cine.closing { animation: cineOut .35s ease-in forwards; }
@keyframes cineIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cineOut { to { opacity: 0; } }
.cine-stage, .cine-slide { position: absolute; inset: 0; }
.cine-slide { animation: cineIn .6s ease-out; }
.cine-slide.out { animation: cineOut .6s ease-in forwards; }
.cine-skip { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 3; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; font: 700 13px 'Segoe UI', system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; }
.cine-hint { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); z-index: 3; color: rgba(255,255,255,.55); font: 12px 'Segoe UI', sans-serif; opacity: 0; transition: opacity .3s; }
.cine.waiting .cine-hint { opacity: 1; animation: cineBlink 1.2s steps(2) infinite; }
@keyframes cineBlink { 50% { opacity: .25; } }
/* texto que se escribe: verde de terminal (MOTHER / Super Metroid) o blanco */
.cine-text { display: flex; align-items: center; justify-content: center; padding: 6vh 8vw; }
.cine-lines { white-space: pre-wrap; max-width: 900px; width: 100%; font-size: clamp(14px, 3.6vh, 26px); line-height: 1.55; }
.cine-text.term { background: radial-gradient(ellipse at center, #031a08 0%, #000 75%); }
.cine-text.term .cine-lines { font-family: 'Consolas', 'Lucida Console', 'Courier New', monospace; color: #3dff6e; text-shadow: 0 0 6px rgba(61,255,110,.7), 0 0 18px rgba(61,255,110,.25); letter-spacing: .04em; }
.cine-text.term::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 2px, transparent 2px 4px); }
.cine-text.white .cine-lines { text-align: center; font: 800 clamp(20px, 6vh, 42px)/1.35 'Segoe UI', system-ui, sans-serif; color: #fff; text-shadow: 0 0 20px rgba(120,180,255,.5); }
.cine-caret { display: inline-block; width: .6em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: cineBlink .9s steps(2) infinite; }
/* imagen / video con su subtítulo */
.cine-pic img, .cine-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-pic img { animation-timing-function: linear; animation-fill-mode: forwards; }
.cine-pic img.fx-zoom { animation-name: cineZoom; } .cine-pic img.fx-alejar { animation-name: cineAway; }
.cine-pic img.fx-izquierda { animation-name: cinePanL; } .cine-pic img.fx-derecha { animation-name: cinePanR; }
.cine-pic img.fx-fijo { animation: none; }
@keyframes cineZoom { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes cineAway { from { transform: scale(1.16); } to { transform: scale(1); } }
@keyframes cinePanL { from { transform: scale(1.15) translateX(4%); } to { transform: scale(1.15) translateX(-4%); } }
@keyframes cinePanR { from { transform: scale(1.15) translateX(-4%); } to { transform: scale(1.15) translateX(4%); } }
.cine-pic::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, rgba(0,0,0,.88)); pointer-events: none; }
.cine-cap { position: absolute; z-index: 2; left: 6vw; right: 6vw; bottom: max(7vh, 34px); white-space: pre-wrap; text-align: center; color: #fff; font: 600 clamp(14px, 4vh, 24px)/1.4 'Segoe UI', system-ui, sans-serif; text-shadow: 0 2px 8px #000; }
.cine-cap:empty { display: none; }
/* consejo */
.cine-tip { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #0d1a44 0%, #000 80%); padding: 4vh 6vw; }
.cine-tipcard { max-width: 640px; text-align: center; padding: clamp(14px, 4vh, 28px) clamp(16px, 4vw, 34px); border-radius: 18px; background: rgba(15,26,58,.92); border: 2px solid #ffd257; box-shadow: 0 0 40px rgba(255,210,87,.25); }
.cine-tipcard img { max-height: 28vh; margin: 0 auto 10px; border-radius: 10px; }
.cine-tipcard small { display: block; color: #ffd257; font: 900 12px 'Segoe UI', sans-serif; letter-spacing: .16em; }
.cine-tipcard b { display: block; margin: 4px 0 8px; color: #fff; font: 900 clamp(18px, 5vh, 30px) 'Segoe UI', system-ui, sans-serif; }
.cine-tipcard p { margin: 0; color: #d6e2ff; font: 500 clamp(14px, 3.6vh, 20px)/1.45 'Segoe UI', system-ui, sans-serif; white-space: pre-wrap; }
.cine-pic img.fit { object-fit: contain; background: radial-gradient(ellipse at center, #16224f 0%, #000 75%); }
