@font-face {
  font-family: Barlow Condensed;
  src: url("assets/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url("assets/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0b0e1b;
  --ink: #fff8f3;
  --muted: #c9ccd9;
  --red: #b9071c;
  --green: #a6ffbb;
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; }

.landing {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100svh;
  padding: clamp(1.25rem, 5vh, 4rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 6vh, 5rem);
  gap: clamp(1rem, 3vh, 2rem);
  text-align: center;
  background:
    linear-gradient(180deg, #0b0e1b21, #0b0e1b00 50%, #0b0e1b 100%),
    url("assets/ciudad.jpg") center 66% / cover no-repeat;
}

.brand h1 { margin: 0; }
.brand img {
  display: block;
  width: min(42rem, 87vw);
  height: auto;
  filter: drop-shadow(0 .6rem 1.1rem #0a0910a8);
}

.scoreboard {
  position: relative;
  isolation: isolate;
  width: min(100%, 51rem);
  overflow: hidden;
  padding: 1.4rem clamp(.7rem, 3vw, 2rem) 1.35rem;
  border: 1px solid #81869a;
  border-top: 3px solid #ff354b;
  border-radius: clamp(1rem, 3vw, 2rem);
  background: radial-gradient(ellipse at bottom, #351727 0%, #111624 65%);
  box-shadow: 0 1.25rem 3.5rem #080811aa, inset 0 0 0 .28rem #ffffff06;
}

.broadcast {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .85rem;
  padding: .32rem .8rem;
  border: 1px solid #777e93;
  border-radius: 99rem;
  color: var(--muted);
  font-size: .93rem;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.broadcast[data-state="live"] {
  color: var(--green);
  border-color: #58ab6b;
}
.broadcast[data-state="live"]::before {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 .6rem currentColor;
  content: "";
  animation: broadcast-pulse 1.5s ease-in-out infinite;
}

@keyframes broadcast-pulse {
  50% { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
  .broadcast[data-state="live"]::before { animation: none; }
}

.scoreboard h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  letter-spacing: .08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.count {
  display: grid;
  place-items: center;
  min-height: 1em;
  font-size: clamp(3rem, 12vw, 8.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: .98;
  letter-spacing: -.025em;
  text-shadow: 0 .055em #ad142c, 0 0 .35em #ff334154;
}
.count[data-wide] { font-size: clamp(1.85rem, 7.5vw, 6rem); }

#detail { margin: .6rem 0 0; color: var(--muted); font-size: 1.06rem; }
.refresh-note { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.call-to-action { width: min(100%, 45rem); }
.slogan {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.1;
  text-shadow: 0 2px 8px #0b0e1b, 0 1px 3px #0b0e1b;
}
.slogan strong { font-weight: 800; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.button {
  display: inline-grid;
  place-items: center;
  min-height: 3.25rem;
  padding: .55rem 1.25rem .65rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  color: var(--ink);
}
.button-primary { background: var(--red); border-color: #ff6e7e; }
.button-primary:hover { background: #a3162c; }
.button-secondary { background: #171c2a; border-color: #777e93; }
.button-secondary:hover { background: #292e42; }
.button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 34rem) {
  .landing { background-position: center, center 62%; }
  .actions { display: grid; grid-template-columns: 1fr; }
}
