/* Los colores son los de la app (src/constants/tema.ts): noche de estadio y amarillo de focos. */

@font-face { font-family: Fredoka; src: url(/fuentes/Fredoka_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Fredoka; src: url(/fuentes/Fredoka_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Fredoka; src: url(/fuentes/Fredoka_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --texto: #ffffff;
  --texto-suave: #aeb6e0;
  --fondo: #0b1030;
  --elemento: #172055;
  --borde: #2a3577;
  --acento: #ffd23f;
  --sobre-acento: #0c1130;
  --cesped: #3fce5a;
  --radio: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* Las secciones y el botón tienen display propio: sin esto, hidden no los escondería. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% 0%, #1d2a66 0%, transparent 60%),
    linear-gradient(to bottom, transparent 70%, rgba(63, 206, 90, 0.12) 100%),
    var(--fondo);
  color: var(--texto);
  font-family: Fredoka, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
}

main {
  max-width: 440px;
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

header { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* El icono de la app: el árbitro señalando el punto. Entra con un pitido, como en la app. */
.icono {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  animation: pitido 0.5s 0.2s ease-out both;
}

@keyframes pitido {
  0% { transform: scale(0.9); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

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

h1 {
  margin: 0;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--acento);
  letter-spacing: -0.5px;
}

section { display: flex; flex-direction: column; gap: 20px; }

.entradilla { margin: 0; text-align: center; font-size: 20px; font-weight: 600; text-wrap: balance; }

.tarjeta {
  background: var(--elemento);
  border: 2px solid var(--borde);
  border-radius: var(--radio);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.etiqueta {
  margin: 0;
  color: var(--texto-suave);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.codigo {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 10px;
  /* Que la última letra no quede descentrada por el espaciado. */
  padding-left: 10px;
  font-variant-numeric: tabular-nums;
}

.copiar {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--acento);
  background: none;
  border: 0;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.copiar:hover { background: rgba(255, 210, 63, 0.1); }

.boton {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--acento);
  color: var(--sobre-acento);
  font-size: 20px;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: var(--radio);
  box-shadow: 0 6px 0 #c99e14;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.boton:active { transform: translateY(4px); box-shadow: 0 2px 0 #c99e14; }

.pasos { margin: 0; padding-left: 24px; color: var(--texto-suave); display: flex; flex-direction: column; gap: 6px; }
.pasos strong { color: var(--texto); font-weight: 600; }

.nota { margin: 0; text-align: center; color: var(--texto-suave); font-size: 15px; }
.nota a { color: var(--acento); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }

/* Privacidad y condiciones: texto largo, alineado a la izquierda y más junto. */
.legal { gap: 12px; }
.legal h1 { font-size: 40px; }
.legal h2 { margin: 16px 0 0; font-size: 21px; font-weight: 600; color: var(--acento); }
.legal p, .legal ul { margin: 0; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal strong { font-weight: 600; }
.legal a, .pie a { color: var(--acento); }
.legal .nota { text-align: left; }

.pie { margin: 0; text-align: center; font-size: 14px; color: var(--texto-suave); }
