* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: #000; color: #fff;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
#ar { position: fixed; inset: 0; overflow: hidden; }
#ar video { object-fit: cover; }

.pantalla {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 50% 20%, #1d4f8f 0%, #0b1f3a 60%, #06111f 100%);
  transition: opacity .4s;
}
.pantalla.oculta { opacity: 0; pointer-events: none; }
.tarjeta { max-width: 380px; text-align: center; }
.icono { font-size: 72px; line-height: 1; animation: rebote 2s ease-in-out infinite; }
h1 { font-size: 1.8rem; margin: 12px 0 8px; color: #ffe27a; }
.tarjeta p { font-size: 1.1rem; line-height: 1.45; margin: 0 0 20px; color: #e8eefc; }
button {
  font: inherit; font-size: 1.2rem; font-weight: 700; color: #3b1d00; background: #ffcf3f;
  border: 0; border-radius: 999px; padding: 14px 30px; box-shadow: 0 6px 0 #c98f00; cursor: pointer;
}
button:active { transform: translateY(3px); box-shadow: 0 3px 0 #c98f00; }
.ayuda { margin-top: 18px; text-align: left; font-size: .95rem; background: #ffffff14; border-radius: 14px; padding: 12px 16px; }
.ayuda ol { margin: 6px 0 0; padding-left: 20px; } .ayuda li { margin: 4px 0; }
.cargador { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 5px solid #ffffff30; border-top-color: #ffcf3f; animation: giro 1s linear infinite; }

.buscando { position: fixed; inset: 0; z-index: 10; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.buscando .marco { width: min(62vw, 300px); aspect-ratio: 9 / 16; max-height: 62vh; border: 3px dashed #ffffffcc; border-radius: 18px; animation: latido 1.6s ease-in-out infinite; }
.buscando p { margin-top: 16px; background: #000a; padding: 8px 16px; border-radius: 999px; font-size: 1.05rem; }
[hidden] { display: none !important; }

@keyframes giro { to { transform: rotate(360deg); } }
@keyframes rebote { 50% { transform: translateY(-8px); } }
@keyframes latido { 50% { transform: scale(1.04); opacity: .6; } }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; background: #0b1f3a; z-index: 50; margin: 0; }
