/* Debajo Roleplay — overlays para streamers (OBS / TikTok Live Studio / Streamlabs).
   Rojo de marca sobre oscuro, igual que el juego: Anton para titulares, Chakra Petch para rótulos.
   Las de juego van con fondo transparente; las de pantalla completa traen su propio fondo. */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Chakra+Petch:wght@500;600;700&display=swap');
:root {
  --rojo: #ff2c2c;
  --rojo-osc: #7a0f12;
  --fondo: #0e0e11;
  --panel: rgba(14, 14, 17, .88);
  --panel-2: #17171c;
  --borde: #2a2a31;
  --texto: #f2f2f5;
  --texto-2: #9a9aa5;
  --verde: #2ecc71;
  --titulo: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --rotulo: 'Chakra Petch', 'Segoe UI', sans-serif;
  --corte: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: transparent; color: var(--texto); font-family: var(--rotulo); -webkit-font-smoothing: antialiased; }
body.pantalla { background: var(--fondo); }
svg { display: block; }

/* ---------- piezas comunes ---------- */
.corte { clip-path: polygon(0 0, calc(100% - var(--corte)) 0, 100% var(--corte), 100% 100%, var(--corte) 100%, 0 calc(100% - var(--corte))); }
.rotulo { font: 700 14px var(--rotulo); letter-spacing: .16em; text-transform: uppercase; }
.punto { width: 10px; height: 10px; border-radius: 50%; background: var(--rojo); box-shadow: 0 0 0 0 rgba(255, 44, 44, .7); animation: latido 1.6s infinite; flex: none; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(255, 44, 44, .65); } 70% { box-shadow: 0 0 0 10px rgba(255, 44, 44, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 44, 44, 0); } }
.envivo { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; background: var(--rojo); color: #fff; font: 700 13px var(--rotulo); letter-spacing: .18em; text-transform: uppercase; }
.envivo .punto { background: #fff; width: 8px; height: 8px; animation-name: latido-blanco; }
@keyframes latido-blanco { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.icono { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Cifras en directo del servidor */
.cifras { display: flex; align-items: stretch; gap: 0; }
.cifra { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-left: 1px solid var(--borde); }
.cifra:first-child { border-left: 0; padding-left: 0; }
.cifra .icono { color: var(--rojo); font-size: 22px; }
.cifra b { font: 400 30px/1 var(--titulo); letter-spacing: .02em; }
.cifra b small { font-size: .62em; color: var(--texto-2); }
.cifra > span:last-child { font: 600 12px/1.15 var(--rotulo); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.cifra.oculta { display: none; }
.estado-srv { display: inline-flex; align-items: center; gap: 8px; font: 700 13px var(--rotulo); letter-spacing: .16em; text-transform: uppercase; color: var(--verde); }
.estado-srv i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.estado-srv.apagado { color: var(--texto-2); }

/* Mensajes que van rotando */
.ticker { position: relative; overflow: hidden; height: 1.5em; }
.ticker .msg { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .55s; }
.ticker .msg.activo { transform: none; opacity: 1; }
.ticker .msg.sale { transform: translateY(-110%); opacity: 0; }
.ticker .msg .icono { color: var(--rojo); }
.ticker .msg em { font-style: normal; color: var(--rojo); }

/* Redes del streamer */
.redes { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.red { display: inline-flex; align-items: center; gap: 9px; font: 600 18px var(--rotulo); letter-spacing: .04em; }
.red .icono { font-size: 1.1em; color: var(--rojo); }

/* ---------- fondo de las pantallas completas ---------- */
.fondo { position: fixed; inset: 0; overflow: hidden; z-index: 0; background:
  radial-gradient(60% 55% at 50% 42%, rgba(255, 44, 44, .17), transparent 70%),
  radial-gradient(120% 90% at 50% 120%, rgba(122, 15, 18, .55), transparent 60%),
  linear-gradient(180deg, #121216, #0b0b0d); }
.fondo .filas { position: absolute; inset: -10% -20%; display: flex; flex-direction: column; justify-content: space-around; transform: rotate(-8deg); opacity: .09; }
.fondo .fila { white-space: nowrap; font: 400 190px/1 var(--titulo); letter-spacing: .04em; color: transparent; -webkit-text-stroke: 2px var(--texto); animation: deriva 90s linear infinite; }
.fondo .fila:nth-child(even) { animation-direction: reverse; -webkit-text-stroke-color: var(--rojo); }
@keyframes deriva { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fondo .triangulo { position: absolute; left: 50%; top: 44%; width: 1100px; height: 960px; transform: translate(-50%, -50%); opacity: .5; }
.fondo .triangulo polygon { fill: none; stroke: var(--rojo); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fondo .triangulo .t2 { stroke-opacity: .45; animation: respira 6s ease-in-out infinite; transform-origin: 50% 40%; }
.fondo .triangulo .t3 { stroke-opacity: .2; animation: respira 6s ease-in-out infinite reverse; transform-origin: 50% 40%; }
@keyframes respira { 50% { transform: scale(1.04); } }
.fondo::before { content: ''; position: absolute; inset: 0; z-index: 2; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grano .9s steps(3) infinite; }
@keyframes grano { 33% { transform: translate(-8px, 5px); } 66% { transform: translate(6px, -7px); } }
.fondo::after { content: ''; position: absolute; inset: 0; z-index: 3; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 5px), radial-gradient(90% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, .75)); }
.barrido { position: fixed; left: 0; right: 0; height: 180px; z-index: 4; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255, 44, 44, .06), transparent); animation: barrido 7s linear infinite; }
@keyframes barrido { from { top: -200px; } to { top: 100%; } }

/* ---------- pantallas completas: empezando / pausa / final ---------- */
.escena { position: relative; z-index: 5; width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 46px 64px 40px; }
.arriba { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.arriba .marca { display: flex; align-items: center; gap: 14px; font: 700 15px var(--rotulo); letter-spacing: .3em; text-transform: uppercase; color: var(--texto-2); }
.arriba .marca b { color: var(--texto); }
.arriba .reloj { font: 600 22px var(--rotulo); letter-spacing: .12em; color: var(--texto-2); }
.centro { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.logo-grande { width: 430px; max-width: 70vw; filter: drop-shadow(0 18px 50px rgba(255, 44, 44, .35)); animation: flota 6s ease-in-out infinite; }
@keyframes flota { 50% { transform: translateY(-12px); } }
.antetitulo { font: 700 22px var(--rotulo); letter-spacing: .5em; text-transform: uppercase; color: var(--rojo); margin-top: 14px; padding-left: .5em; }
.titulo { font: 400 128px/1 var(--titulo); text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 6px 0 rgba(0, 0, 0, .5); }
.titulo .rojo { color: var(--rojo); }
.cuenta { font: 400 150px/1 var(--titulo); letter-spacing: .03em; font-variant-numeric: tabular-nums; color: var(--texto); }
.cuenta .sep { color: var(--rojo); animation: parpadeo 1s steps(2) infinite; }
@keyframes parpadeo { 50% { opacity: .25; } }
.subtitulo { font: 600 24px var(--rotulo); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.subtitulo b { color: var(--texto); }
.lema { margin-top: 10px; font: 500 20px var(--rotulo); letter-spacing: .06em; color: var(--texto-2); font-style: italic; }
.puntos::after { content: ''; animation: puntos 1.6s steps(4) infinite; }
@keyframes puntos { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.abajo { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; padding: 18px 24px; background: var(--panel); border-top: 2px solid var(--rojo); }
.abajo .ticker { font: 600 22px var(--rotulo); letter-spacing: .04em; }
.redes-pie { margin-top: 18px; justify-content: center; }
.pasos { display: flex; gap: 18px; margin-top: 28px; }
.paso { width: 290px; padding: 18px 20px 20px; background: var(--panel); border: 1px solid var(--borde); text-align: left; }
.paso .n { font: 400 46px/1 var(--titulo); color: var(--rojo); }
.paso h3 { font: 700 18px var(--rotulo); letter-spacing: .12em; text-transform: uppercase; margin: 8px 0 4px; }
.paso p { font: 500 17px/1.35 var(--rotulo); color: var(--texto-2); }
.paso p b { color: var(--texto); }
.entrada { animation: entra .9s cubic-bezier(.2, .8, .2, 1) both; }
.entrada.d1 { animation-delay: .15s; } .entrada.d2 { animation-delay: .3s; } .entrada.d3 { animation-delay: .45s; } .entrada.d4 { animation-delay: .6s; }
@keyframes entra { from { opacity: 0; transform: translateY(26px); } }

/* Vertical (TikTok): misma escena apilada dentro de la zona que TikTok no tapa
   (arriba ~240 px su barra de perfil, abajo ~560 px los comentarios y regalos) */
@media (orientation: portrait) {
  .escena { padding: 250px 60px 560px; overflow: hidden; }
  .arriba { flex-direction: column; gap: 8px; }
  .arriba .marca { font-size: 14px; }
  .logo-grande { width: 400px !important; }
  .titulo { font-size: 104px; }
  .cuenta { font-size: 160px; }
  .antetitulo { font-size: 22px; margin-top: 6px; }
  .subtitulo { font-size: 24px; }
  .abajo { grid-template-columns: 1fr; gap: 12px; padding: 16px 20px; }
  .abajo .cifras { justify-content: center; }
  .abajo .ticker { font-size: 22px; height: 2.7em; }
  .abajo .ticker .msg { justify-content: center; text-align: center; white-space: normal; line-height: 1.3; }
  .pasos { gap: 12px; margin-top: 18px; }
  .paso { width: 312px; padding: 14px 14px 16px; }
  .paso .n { font-size: 38px; }
  .paso h3 { font-size: 15px; }
  .paso p { font-size: 15px; }
  .redes { justify-content: center; gap: 8px 18px; }
  .red { font-size: 19px; }
  .carga { width: 360px; }
  .fondo .triangulo { width: 1300px; height: 1140px; top: 40%; }
  .fondo .fila { font-size: 260px; }
}
/* ---------- marco de cámara ---------- */
.camara { position: absolute; display: flex; flex-direction: column; }
.camara .ventana { position: relative; flex: 1; }
.camara .ventana::before { content: ''; position: absolute; inset: 0; border: 3px solid var(--rojo); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px), 0 0, 3px 3px, 3px calc(100% - 23px), 23px calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 23px, calc(100% - 23px) 3px, 3px 3px); }
.camara .esquina { position: absolute; width: 34px; height: 34px; border: 0 solid var(--texto); }
.camara .esquina.a { top: -8px; left: -8px; border-top-width: 4px; border-left-width: 4px; }
.camara .esquina.b { bottom: -8px; right: -8px; border-bottom-width: 4px; border-right-width: 4px; }
.camara .brillo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.camara .brillo::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .08), transparent); animation: brillo 9s ease-in-out infinite; }
@keyframes brillo { 0%, 80% { left: -40%; } 100% { left: 120%; } }
.placa { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 0; background: var(--panel); height: 52px; margin-top: 8px; }
.placa img { height: 52px; width: 52px; object-fit: contain; padding: 4px; background: var(--rojo); }
.placa .nombre { font: 400 26px/1 var(--titulo); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.placa .donde { font: 700 11px var(--rotulo); letter-spacing: .2em; text-transform: uppercase; color: var(--texto-2); white-space: nowrap; }
.placa .donde em { font-style: normal; color: var(--rojo); }
.placa .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.placa .jug { margin-left: auto; text-align: right; font: 400 24px/1 var(--titulo); white-space: nowrap; }
.placa .jug small { display: block; font: 700 10px var(--rotulo); letter-spacing: .18em; color: var(--texto-2); margin-top: 3px; }

/* ---------- barra inferior ---------- */
.barra { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; max-height: 72px; display: flex; align-items: stretch; background: var(--panel); border-top: 2px solid var(--rojo); }
.barra .sello { display: flex; align-items: center; gap: 10px; padding: 0 20px 0 10px; background: var(--rojo); clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); }
.barra .sello img { height: 82%; }
.barra .sello b { font: 400 26px/1 var(--titulo); letter-spacing: .04em; text-transform: uppercase; color: #fff; padding-right: 10px; }
.barra .cifras { align-items: center; padding: 0 22px; }
.barra .cifra b { font-size: 26px; }
.barra .ticker { flex: 1; align-self: center; font: 600 20px var(--rotulo); letter-spacing: .03em; padding: 0 22px; border-left: 1px solid var(--borde); }
.barra .web { display: flex; align-items: center; padding: 0 22px; font: 700 16px var(--rotulo); letter-spacing: .18em; text-transform: uppercase; color: var(--texto-2); border-left: 1px solid var(--borde); }
.barra .web b { color: var(--rojo); }

/* ---------- etiqueta de juego (esquina) ---------- */
.etiqueta { position: absolute; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; background: var(--panel); border-left: 3px solid var(--rojo); }
.etiqueta img { height: 46px; }
.etiqueta .txt { display: flex; flex-direction: column; gap: 3px; }
.etiqueta b { font: 400 22px/1 var(--titulo); letter-spacing: .04em; text-transform: uppercase; }
.etiqueta .ticker { font: 600 15px var(--rotulo); width: 380px; height: 1.4em; color: var(--texto-2); }

/* ---------- TikTok vertical ---------- */
.tt-cabeza { position: absolute; left: 24px; right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px 10px 10px; background: var(--panel); border-bottom: 2px solid var(--rojo); }
.tt-cabeza .izq { display: flex; align-items: center; gap: 14px; }
.tt-cabeza img { height: 64px; }
.tt-cabeza b { font: 400 34px/1 var(--titulo); letter-spacing: .03em; text-transform: uppercase; }
.tt-cabeza span { display: block; font: 700 14px var(--rotulo); letter-spacing: .2em; text-transform: uppercase; color: var(--texto-2); margin-top: 4px; }
.tt-cabeza .jug { text-align: right; font: 400 40px/1 var(--titulo); }
.tt-cabeza .jug small { display: block; font: 700 13px var(--rotulo); letter-spacing: .18em; color: var(--texto-2); margin-top: 4px; }
.juego { position: absolute; }
.juego::before, .juego::after { content: ''; position: absolute; width: 60px; height: 60px; border: 0 solid var(--rojo); }
.juego::before { top: -6px; left: -6px; border-top-width: 5px; border-left-width: 5px; }
.juego::after { bottom: -6px; right: -6px; border-bottom-width: 5px; border-right-width: 5px; }
.juego .linea { position: absolute; inset: 0; border: 2px solid rgba(255, 44, 44, .55); }
.tt-pie { position: absolute; left: 24px; right: 24px; padding: 18px 22px; background: var(--panel); border-top: 2px solid var(--rojo); display: flex; flex-direction: column; gap: 14px; }
.tt-pie .ticker { font: 600 28px var(--rotulo); height: 1.4em; }
.tt-pie .web { font: 400 44px/1 var(--titulo); letter-spacing: .03em; text-transform: uppercase; }
.tt-pie .web em { font-style: normal; color: var(--rojo); }
.tt-pie .cifras .cifra b { font-size: 36px; }
.tt-pie .cifras .cifra span { font-size: 14px; }

/* =====================================================================
   Animaciones extra (2026-10-18). Solo transform/opacity/filter para que OBS no sufra.
   ===================================================================== */
@property --giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Chispas que suben por el fondo (las crea Ov.chispas) */
.chispas { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.chispa { position: absolute; bottom: -20px; width: var(--t, 4px); height: var(--t, 4px); border-radius: 50%; background: #ff5a3c;
  box-shadow: 0 0 8px 2px rgba(255, 60, 40, .8); opacity: 0; animation: sube var(--d, 9s) linear var(--r, 0s) infinite; }
.chispa.blanca { background: #ffd9c9; box-shadow: 0 0 6px 1px rgba(255, 200, 170, .7); }
@keyframes sube {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: var(--o, .9); }
  70% { opacity: var(--o, .9); }
  100% { transform: translate(var(--x, 40px), -115vh) scale(.3); opacity: 0; }
}

/* Rayos de luz girando detrás del logo */
.halo { position: relative; display: grid; place-items: center; isolation: isolate; }
.halo::before { content: ''; position: absolute; width: 150%; aspect-ratio: 1; left: 50%; top: 50%; margin: -75% 0 0 -75%; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 44, 44, .16) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%);
  animation: rayos 40s linear infinite; }
.halo::after { content: ''; position: absolute; width: 70%; aspect-ratio: 1; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 44, 44, .35), transparent 65%); animation: latidoHalo 3.2s ease-in-out infinite; }
@keyframes rayos { to { transform: rotate(360deg); } }
@keyframes latidoHalo { 50% { transform: scale(1.18); opacity: .6; } }

/* Glitch del logo cada pocos segundos (va en un envoltorio para no pisar el "flota") */
.glitch { position: relative; animation: glitch 7s steps(1) infinite; }
@keyframes glitch {
  0%, 89%, 100% { transform: none; filter: none; }
  90% { transform: translate(-6px, 2px) skewX(6deg); filter: drop-shadow(-7px 0 rgba(255, 0, 60, .85)) drop-shadow(7px 0 rgba(0, 230, 255, .6)); }
  91% { transform: translate(5px, -3px) skewX(-4deg); filter: drop-shadow(6px 0 rgba(255, 0, 60, .85)) drop-shadow(-6px 0 rgba(0, 230, 255, .6)); }
  92% { transform: translate(-2px, 0); filter: drop-shadow(-3px 0 rgba(255, 0, 60, .8)); }
  93% { transform: none; filter: none; }
  95% { transform: translate(3px, 1px) skewX(3deg); filter: drop-shadow(4px 0 rgba(0, 230, 255, .6)); }
  96% { transform: none; filter: none; }
}

/* Barrido de luz sobre los titulares */
.titulo { text-shadow: none; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .5)); }
.titulo, .titulo .rojo, .tt-pie .web em, .placa .nombre, .barra .sello b {
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-size: 300% 100%;
  animation: brilloTexto 6s ease-in-out infinite; }
.titulo, .placa .nombre, .barra .sello b { background-image: linear-gradient(100deg, #f2f2f5 0 40%, #fff 46%, #ffb3a8 50%, #fff 54%, #f2f2f5 60% 100%); }
.titulo .rojo, .tt-pie .web em { background-image: linear-gradient(100deg, #ff2c2c 0 40%, #ff8a7a 48%, #fff 50%, #ff8a7a 52%, #ff2c2c 60% 100%); }
@keyframes brilloTexto { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }

/* Dígitos de la cuenta atrás: cada cifra que cambia cae desde arriba */
.cuenta .dig { display: inline-block; min-width: .52em; text-align: center; }
.cuenta .dig.cae { animation: cae .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes cae { from { transform: translateY(-30%) scale(1.1); filter: blur(3px) brightness(1.6); } }   /* sin opacidad: si el render se para, la cifra se sigue viendo */
.cuenta.ultimos .dig { color: var(--rojo); }
.cuenta.ultimos { animation: tiembla .5s ease-in-out infinite; }
@keyframes tiembla { 50% { transform: scale(1.04); } }

/* Cifras: al cambiar, destello */
.cifra b.salta, .placa .jug.salta, .tt-cabeza .jug.salta { animation: salta .7s ease-out; }
@keyframes salta { 30% { transform: scale(1.25); color: var(--rojo); } }
.cifra .icono { animation: iconoLatido 4s ease-in-out infinite; }
.cifra:nth-child(2) .icono { animation-delay: 1.3s; } .cifra:nth-child(3) .icono { animation-delay: 2.6s; }
@keyframes iconoLatido { 0%, 80%, 100% { transform: none; } 88% { transform: scale(1.3) rotate(-8deg); } }

/* Mensajes rotando: el icono entra con un golpe */
.ticker .msg.activo .icono { animation: golpe .6s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
@keyframes golpe { from { transform: scale(0) rotate(-90deg); } }

/* Línea roja con una luz que la recorre (barra de abajo, pie, cabeceras) */
.abajo { position: relative; }   /* la barra y las cabeceras de TikTok ya van en absolute: no tocar su posición */
.abajo::before, .barra::before, .tt-pie::before, .tt-cabeza::after { content: ''; position: absolute; left: 0; width: 22%; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, #fff, transparent); animation: corre 4.5s linear infinite; }
.abajo::before, .barra::before, .tt-pie::before { top: -2px; }
.tt-cabeza::after { bottom: -2px; }
@keyframes corre { from { transform: translateX(-100%); } to { transform: translateX(560%); } }

/* Marco de cámara: luz que da vueltas al borde + esquinas que respiran */
.camara .ventana::after, .juego .linea::after { content: ''; position: absolute; inset: -3px; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--giro), transparent 0 70%, rgba(255, 44, 44, .9) 85%, #fff 88%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: vuelta 5s linear infinite; }
.juego .linea::after { inset: -2px; padding: 2px; }
@keyframes vuelta { to { --giro: 360deg; } }
.camara .esquina, .juego::before, .juego::after { animation: esquina 2.4s ease-in-out infinite; }
.camara .esquina.a { --dx: -5px; } .camara .esquina.b { --dx: 5px; }
.juego::before { --dx: -5px; } .juego::after { --dx: 5px; }
@keyframes esquina { 50% { transform: translate(var(--dx), var(--dx)); } }

/* Placas y sellos: el logo hace un pequeño giro de vez en cuando */
.placa img, .barra .sello img, .etiqueta img, .tt-cabeza img { animation: sello 8s ease-in-out infinite; }
@keyframes sello { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-10deg) scale(1.12); } 94% { transform: rotate(6deg) scale(1.05); } }
.placa, .etiqueta { animation: entraLado .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes entraLado { from { opacity: 0; transform: translateX(-30px); } }

/* Final: los tres pasos se van encendiendo por turnos */
.pasos .paso { position: relative; }
.pasos .paso::after { content: ''; position: absolute; inset: -1px; border: 2px solid var(--rojo); opacity: 0; pointer-events: none; animation: turno 6s ease-in-out infinite; }
.pasos .paso:nth-child(2)::after { animation-delay: 2s; } .pasos .paso:nth-child(3)::after { animation-delay: 4s; }
@keyframes turno { 0%, 40%, 100% { opacity: 0; } 8%, 30% { opacity: 1; box-shadow: 0 0 30px rgba(255, 44, 44, .35); } }
.pasos .paso .n { display: inline-block; animation: numeroPaso 6s ease-in-out infinite; }
.pasos .paso:nth-child(2) .n { animation-delay: 2s; } .pasos .paso:nth-child(3) .n { animation-delay: 4s; }
@keyframes numeroPaso { 0%, 40%, 100% { transform: none; } 10% { transform: scale(1.2) translateX(6px); } }

/* Pausa: barra de "cargando" bajo el título */
.carga { width: 420px; height: 4px; margin: 18px auto 4px; background: rgba(255, 255, 255, .08); overflow: hidden; position: relative; }
.carga i { position: absolute; top: 0; bottom: 0; width: 35%; background: linear-gradient(90deg, transparent, var(--rojo), #fff); animation: carga 1.8s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes carga { from { left: -35%; } to { left: 100%; } }

/* Redes: entran una a una y laten por turnos */
.redes .red { animation: entra .7s cubic-bezier(.2, .8, .2, 1) both; }
.redes .red .icono { animation: iconoLatido 5s ease-in-out infinite; }

/* Textos largos: con puntos suspensivos en vez de salirse */
.ticker .msg span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.placa .nombre.largo { font-size: 20px; }
.tt-info b.largo { font-size: 34px; }

/* ---------- TikTok: tarjeta de información al lado de la cámara ---------- */
.tt-info { position: absolute; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; background: var(--panel); border-top: 3px solid var(--rojo); overflow: hidden; }
.tt-info::after { content: ''; position: absolute; left: 0; top: -3px; width: 30%; height: 3px; background: linear-gradient(90deg, transparent, #fff, transparent); animation: corre 4.5s linear infinite; }
.tt-info .fila1 { display: flex; align-items: center; gap: 12px; }
.tt-info .fila1 img { height: 64px; animation: sello 8s ease-in-out infinite; }
.tt-info b { display: block; font: 400 42px/1 var(--titulo); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background-image: linear-gradient(100deg, #f2f2f5 0 40%, #fff 46%, #ffb3a8 50%, #fff 54%, #f2f2f5 60% 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-size: 300% 100%; animation: brilloTexto 6s ease-in-out infinite; }
.tt-info .donde { font: 700 13px var(--rotulo); letter-spacing: .18em; text-transform: uppercase; color: var(--texto-2); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.tt-info .cifras { gap: 0; }
.tt-info .cifras { flex-wrap: wrap; row-gap: 8px; }
.tt-info .cifra { padding: 0 12px; gap: 7px; }
.tt-info .cifra:first-child { padding-left: 0; }
.tt-info .cifra .icono { font-size: 19px; }
.tt-info .cifra b { font-size: 34px; display: inline; background: none; -webkit-text-fill-color: currentColor; animation: none; }
.tt-info .cifra > span:last-child { font-size: 11px; }
.tt-info .ticker { font: 600 19px var(--rotulo); height: 2.7em; }
.tt-info .ticker .msg { white-space: normal; line-height: 1.3; align-items: flex-start; }
.tt-info .web { margin-top: auto; font: 400 30px/1 var(--titulo); text-transform: uppercase; letter-spacing: .03em; }
.tt-info .web em { font-style: normal; color: var(--rojo); }
.tt-info.ancha { flex-direction: row; align-items: center; gap: 22px; }
.tt-info.ancha .ticker { display: none; }
.tt-info.ancha .web { margin: 0 0 0 auto; }