/* La Voz de la Calle: visor a pantalla completa, un solo mundo visual oscuro. */
:root {
  --void: #020306;
  --ember: #ff8300;
  --ember-dim: #6b3400;
  --ice: #e9eef5;
  --font-hud: "Chakra Petch", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: var(--void);
  color: var(--ice);
  font-family: var(--font-hud);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.stage { position: fixed; inset: 0; cursor: none; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#globe { z-index: 1; opacity: 0; }
#veil { z-index: 2; pointer-events: none; }
#hud { z-index: 3; pointer-events: none; }

/* Viñeta y líneas de barrido del visor */
.visor {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.5) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 3px);
}

.cards {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.card {
  grid-area: 1 / 1; position: relative; max-width: min(84vw, 980px);
  text-align: center; opacity: 0; will-change: opacity, filter, transform;
}
.card p { margin: 0; }
.eyebrow {
  font-size: clamp(11px, 1.25vw, 16px); font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--ember); margin-bottom: 1.2em !important;
}
.line {
  font-size: clamp(22px, 3.5vw, 52px); font-weight: 500; line-height: 1.2; text-wrap: balance;
  text-shadow: 0 0 28px rgba(2, 3, 6, 0.95), 0 0 8px rgba(2, 3, 6, 0.9);
}
.line em { font-style: normal; color: var(--ember); text-shadow: 0 0 22px rgba(255, 131, 0, 0.55); }
.sub {
  margin-top: 0.9em !important; font-size: clamp(14px, 1.6vw, 24px); letter-spacing: 0.06em;
  color: rgba(233, 238, 245, 0.72); text-shadow: 0 0 18px rgba(2, 3, 6, 0.95);
}
/* La primera frase entra con el velo, arriba de la Tierra */
#card1 { align-self: start; margin-top: max(3.5vh, env(safe-area-inset-top, 0px)); max-width: min(92vw, 1200px); }
#card1 .eyebrow { margin-bottom: 0.7em !important; }
#card1 .line { font-size: clamp(18px, 2.3vw, 38px); }
@media (max-aspect-ratio: 3/4) { #card1 { margin-top: 9vh; } #card1 .line { font-size: clamp(20px, 5.6vw, 30px); } }
/* El texto de cierre cae sobre el mapa satelital: se oscurece solo detrás de él */
.card-dim::before {
  content: ""; position: absolute; inset: -18vh -12vw; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(2, 3, 6, 0.84) 0%, rgba(2, 3, 6, 0.55) 45%, transparent 72%);
}

.start {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center;
  background: var(--void); cursor: pointer; transition: opacity 0.6s ease;
}
.start.out { opacity: 0; pointer-events: none; }
.start i {
  width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ember);
  box-shadow: 0 0 18px var(--ember); animation: breathe 2.4s ease-in-out infinite;
}
.start.loading i { border-color: var(--ember-dim); box-shadow: none; }
.start:focus-visible i { outline: 2px solid var(--ice); outline-offset: 10px; }
@keyframes breathe {
  0%, 100% { transform: scale(0.8); opacity: 0.45; }
  50% { transform: scale(1.25); opacity: 1; }
}

.credit {
  position: absolute; z-index: 5; right: max(10px, env(safe-area-inset-right, 0px));
  bottom: max(6px, env(safe-area-inset-bottom, 0px));
  font-size: 10px; letter-spacing: 0.06em; color: rgba(233, 238, 245, 0.42); text-decoration: none;
}
.error {
  position: absolute; z-index: 7; inset: auto 16px 24px; margin: 0; text-align: center;
  color: var(--ice); font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .start i { animation: none; }
}
