/* ════════════════════════════════════════════════════════════════════
   anuncios.css — el video con premio, una fila de «Recompensa diaria»
   (js/anuncios.js, filaVideo). Vive dentro de la hoja del cofre diario
   (js/hoy.js, css/lobby-hoy.css) desde el 2026-11-01: sin tecla propia
   arriba ni cofre propio. La hoja es oscura siempre, como diario.css.
   ════════════════════════════════════════════════════════════════════ */

/* ── La fila: icono, lo que da y cuántos van, y una tecla secundaria ── */
.hoy-sec--video { padding: 12px 14px; }
.an-fila { display: flex; align-items: center; gap: 12px; }
.an-fila-ic {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; color: #C4A6FF; background: rgba(139, 92, 246, .16);
}
.an-fila-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.an-fila-t { font-size: 15px; font-weight: 900; line-height: 1.25; }
.an-fila-s { display: inline-block; justify-self: start; font-size: 13px; font-weight: 700; color: rgba(246, 238, 255, .66); font-variant-numeric: tabular-nums; }
.an-fila-s:empty { display: none; }
.an-pie:empty { display: none; }
/* La tecla secundaria (la principal de la hoja es «Cobrar»): gris relleno, sin contorno. */
.an-ver {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 14px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 900;
  color: #F6EEFF; background: rgba(255, 255, 255, .12);
  transition: transform 90ms ease, background .2s ease;
}
.an-ver:hover:not(:disabled) { background: rgba(255, 255, 255, .2); }
.an-ver:active:not(:disabled) { transform: scale(.96); }
.an-ver:disabled { cursor: default; opacity: .6; }
.an-ver:focus { outline: none; }
.an-ver:focus-visible { outline: 2px solid #FFD9A8; outline-offset: 3px; }
.an-aviso { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; text-align: center; font-size: 13.5px; font-weight: 700; color: #FFD9A8; background: rgba(255, 138, 0, .1); animation: dr-sube .35s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── El video de prueba (y el «cargando» de Google) ── */
.an-video { margin-top: 12px; }
.an-video[hidden] { display: none; }
.hoy-sec--video.is-video .an-fila { display: none; }
/* Mientras corre el video, una sola X: la del video (la de la hoja no hacía nada). */
.hoy-velo:has(.hoy-sec--video.is-video) .dr-x { visibility: hidden; }
.an-pantalla {
  position: relative; display: grid; place-items: center; align-content: center; gap: 8px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 16px; background: #0E0820; border: 1px solid rgba(196, 166, 255, .25); text-align: center;
  animation: dr-sube .35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.an-pantalla-et { position: absolute; top: 10px; left: 12px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: #1A0F2E; background: #FFE27A; }
.an-pantalla-pio { font-size: 56px; color: #C4A6FF; animation: an-flota 1.6s ease-in-out infinite alternate; }
@keyframes an-flota { to { transform: translateY(-6px) rotate(-3deg); } }
.an-pantalla-sub { font-size: 13px; font-weight: 700; color: rgba(246, 238, 255, .7); }
.an-video-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 16px; color: #fff; background: rgba(255, 255, 255, .12); cursor: pointer; }
.an-video-x:hover { background: rgba(255, 255, 255, .22); }
.an-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .1); }
.an-barra i { display: block; height: 100%; width: 100%; background: #C4A6FF; transform-origin: 0 50%; animation: an-barra linear both; }
@keyframes an-barra { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.an-cargando { margin: 0; padding: 18px; text-align: center; font-size: 14px; font-weight: 800; color: rgba(246, 238, 255, .75); }

@media (prefers-reduced-motion: reduce) {
  .an-aviso, .an-pantalla, .an-pantalla-pio { animation: none !important; transition: none !important; }
  /* La barra sí avanza (dice cuánto falta), pero sin moverse nada más. */
}
