/* ==========================================================================
   Sorteos — hoja de estilos unica.
   Sin framework, sin build, sin fuentes descargadas: la pagina tiene que
   pintar en menos de un segundo con la red de un estadio lleno.
   ========================================================================== */

:root {
  --yellow: #FFDD00;
  --yellow-dim: #E5C700;
  --black: #0A0A0A;

  --bg: #0B0B0F;
  --surface: #141418;
  --surface-2: #1C1C22;
  --border: #26262E;
  --text: #FFFFFF;
  --text-2: #9A9AA5;
  --text-3: #6C6C78;

  --danger: #FF4D4F;
  --success: #2ECC71;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;

  --pad: 20px;
  --bar-h: 132px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, "Roboto Mono", monospace;
}

/* La app respeta el modo que el usuario ya eligio en su sistema. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --surface: #F7F7F9;
    --surface-2: #EFEFF3;
    --border: #E3E3EA;
    --text: #0A0A0A;
    --text-2: #55555F;
    --text-3: #8A8A96;
  }
}

* { box-sizing: border-box; }

/* El atributo `hidden` tiene que ganarle a cualquier `display` de clase.
   Sin esto, ocultar un elemento con display:flex (como .status) no hace nada:
   la regla de la clase pisa el display:none del navegador. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--yellow); }

/* ==========================================================================
   MODO FIESTA — inauguración / clásico
   --------------------------------------------------------------------------
   Todo lo de acá es CSS puro y anima solo `transform` y `opacity`, que la
   placa de video resuelve sin tocar el procesador. Nada de librerías: en la
   red de un estadio lleno, cada kilobyte que no se descarga es una venta que
   no se pierde.
   ========================================================================== */

/* Bastones diagonales de fondo, en movimiento lento. */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: -3;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 46px,
    rgba(255, 221, 0, 0.055) 46px 92px
  );
  animation: slide-stripes 22s linear infinite;
  pointer-events: none;
}
@keyframes slide-stripes {
  to { transform: translate3d(92px, -197px, 0); }
}

/* Resplandor amarillo detrás del hero. */
body::after {
  content: "";
  position: fixed;
  top: -18%;
  left: 50%;
  width: 130vw;
  height: 60vh;
  margin-left: -65vw;
  z-index: -2;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 221, 0, 0.16) 0%,
    transparent 62%
  );
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}

/* --------------------------------------------------------------------------
   Banner de inauguración
   -------------------------------------------------------------------------- */
.kickoff {
  position: relative;
  overflow: hidden;
  margin: 4px var(--pad) 16px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--yellow) 0%, #FFC800 55%, var(--yellow) 100%);
  color: var(--black);
  text-align: center;
  box-shadow: 0 0 34px rgba(255, 221, 0, .3);
}
/* Destello que barre el banner cada 4 segundos. */
.kickoff::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent);
  animation: sweep 4s ease-in-out infinite;
}
@keyframes sweep {
  0%       { left: -50%; }
  55%, 100% { left: 115%; }
}
.kickoff__top {
  display: block;
  font-size: 10.5px; font-weight: 900; letter-spacing: 2.6px;
  opacity: .72;
}
.kickoff__main {
  display: block; margin-top: 3px;
  font-size: clamp(17px, 5vw, 21px); font-weight: 900; letter-spacing: -0.2px;
}
.kickoff__sub {
  display: block; margin-top: 2px;
  font-size: 12.5px; font-weight: 700; opacity: .78;
}

/* --------------------------------------------------------------------------
   El Clásico — escudos flotando
   --------------------------------------------------------------------------
   El local se lleva la jerarquía: más grande, opaco, con resplandor propio y
   flotando más amplio. El visitante queda atenuado y más chico. La diferencia
   de tamaño y de brillo es lo que dice quién juega en casa, sin necesidad de
   explicarlo.
   -------------------------------------------------------------------------- */
.clasico {
  display: flex;
  /* Alineados por abajo: así "LOCAL" y "VISITANTE" quedan sobre la misma
     línea aunque los escudos tengan distinto tamaño. */
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 7vw, 40px);
  margin: 4px var(--pad) 22px;
}

.crest {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 15px y no 8: el escudo flota unos pixeles hacia abajo y con menos aire
     llegaba a tocar su propia etiqueta. */
  gap: 15px;
}
.crest img { width: 100%; height: auto; }
.crest figcaption {
  font-size: 9.5px; font-weight: 900; letter-spacing: 1.8px;
}

/* --- Local: Peñarol --- */
.crest--home {
  width: clamp(78px, 24vw, 104px);
}
.crest--home img {
  filter: drop-shadow(0 0 22px rgba(255, 221, 0, .55));
  animation: float-home 5.5s ease-in-out infinite;
}
.crest--home figcaption { color: var(--yellow); }

/* --- Visitante: atenuado, y en desfase para que no floten al unísono --- */
.crest--away {
  width: clamp(52px, 16vw, 68px);
  opacity: .5;
}
.crest--away img {
  filter: grayscale(.25) drop-shadow(0 0 12px rgba(255, 255, 255, .18));
  animation: float-away 6.8s ease-in-out infinite;
  animation-delay: -2.2s;
}
.crest--away figcaption { color: var(--text-3); }

@keyframes float-home {
  0%, 100% { transform: translateY(0)     rotate(-2deg) scale(1); }
  50%      { transform: translateY(-11px) rotate(2deg)  scale(1.04); }
}
@keyframes float-away {
  0%, 100% { transform: translateY(-5px) rotate(1.5deg); }
  50%      { transform: translateY(4px)  rotate(-1.5deg); }
}

.clasico__vs {
  font-size: clamp(15px, 4.5vw, 19px);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: clamp(26px, 8vw, 38px);
}

/* --------------------------------------------------------------------------
   Premio
   -------------------------------------------------------------------------- */
.prize-name {
  text-shadow: 0 0 42px rgba(255, 221, 0, .32);
}

/* Enlace al sitio del fabricante.
   Que el visitante pueda verificar el auto en la web oficial de la marca
   construye mas confianza que cualquier adjetivo que pongamos nosotros. */
.prize-link {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 14px;
  padding: 11px 16px;
  border: 1.6px solid var(--yellow);
  border-radius: 999px;
  background: rgba(255, 221, 0, .09);
  color: var(--yellow);
  font-size: 13.5px; font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.prize-link:active { background: rgba(255, 221, 0, .18); }
.prize-link svg { flex: none; }

/* --------------------------------------------------------------------------
   Contador con más presencia
   -------------------------------------------------------------------------- */
.cd {
  position: relative;
  border-color: rgba(255, 221, 0, .28);
  background: linear-gradient(180deg, rgba(255,221,0,.07), transparent);
}
.cd__v { color: var(--yellow); text-shadow: 0 0 22px rgba(255,221,0,.4); }
/* Solo los segundos laten: si latieran los cuatro sería ruido. */
#cdS { animation: tick 1s ease-in-out infinite; }
@keyframes tick {
  0%, 100% { transform: scale(1); }
  8%       { transform: scale(1.16); }
}

/* --------------------------------------------------------------------------
   Botón principal con pulso
   -------------------------------------------------------------------------- */
.btn--primary {
  position: relative;
  overflow: hidden;
  animation: glow 2.4s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 221, 0, .55); }
  60%      { box-shadow: 0 0 0 16px rgba(255, 221, 0, 0); }
}
.btn--primary:disabled { animation: none; box-shadow: none; }
.btn--primary::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  animation: sweep 3.2s ease-in-out infinite;
}
.btn--primary:disabled::after { display: none; }

.actionbar {
  box-shadow: 0 -18px 44px rgba(0, 0, 0, .45);
}

/* --------------------------------------------------------------------------
   Papelitos de hinchada
   -------------------------------------------------------------------------- */
.confetti {
  position: fixed; inset: 0;
  /* Detras del contenido: los papelitos tienen que verse entre los elementos,
     nunca por encima de un titulo. Un adorno que estorba la lectura deja de
     ser un adorno. */
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.confetti i {
  position: absolute;
  top: -12vh;
  width: 9px; height: 15px;
  border-radius: 2px;
  opacity: .75;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(22px, 118vh, 0) rotate(720deg); }
}
.confetti i:nth-child(odd)  { background: var(--yellow); }
.confetti i:nth-child(even) { background: #16161A; box-shadow: 0 0 0 1px rgba(255,221,0,.35); }

.confetti i:nth-child(1)  { left:  4%; animation-duration: 11s; animation-delay: 0s;    }
.confetti i:nth-child(2)  { left: 14%; animation-duration:  9s; animation-delay: 2.4s;  }
.confetti i:nth-child(3)  { left: 24%; animation-duration: 13s; animation-delay: 1.1s;  }
.confetti i:nth-child(4)  { left: 33%; animation-duration: 10s; animation-delay: 4.2s;  }
.confetti i:nth-child(5)  { left: 43%; animation-duration: 12s; animation-delay: 0.6s;  }
.confetti i:nth-child(6)  { left: 52%; animation-duration:  8.5s; animation-delay: 3.3s; }
.confetti i:nth-child(7)  { left: 62%; animation-duration: 14s; animation-delay: 1.8s;  }
.confetti i:nth-child(8)  { left: 71%; animation-duration: 10.5s; animation-delay: 5.1s; }
.confetti i:nth-child(9)  { left: 81%; animation-duration: 12.5s; animation-delay: 2.9s; }
.confetti i:nth-child(10) { left: 90%; animation-duration:  9.5s; animation-delay: 0.3s; }
.confetti i:nth-child(11) { left: 96%; animation-duration: 13.5s; animation-delay: 3.9s; }
.confetti i:nth-child(12) { left:  9%; animation-duration: 15s; animation-delay: 6.2s;  }

/* --------------------------------------------------------------------------
   Reproductor de música
   -------------------------------------------------------------------------- */
.audio {
  position: fixed;
  right: 16px;
  bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom));
  z-index: 50;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--yellow); color: var(--black);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.audio svg { width: 24px; height: 24px; }
.audio .ico-pause { display: none; }
.audio[data-playing="true"] .ico-play  { display: none; }
.audio[data-playing="true"] .ico-pause { display: block; }

/* Ondas que salen del botón mientras suena. */
.audio[data-playing="true"]::before,
.audio[data-playing="true"]::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  animation: ripple 1.8s ease-out infinite;
}
.audio[data-playing="true"]::after { animation-delay: .9s; }
@keyframes ripple {
  to { transform: scale(1.9); opacity: 0; }
}

/* Quien pidió menos movimiento en su sistema, no ve nada de esto. */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .confetti,
  .kickoff::after, .btn--primary::after,
  #cdS, .btn--primary { animation: none !important; }
  .confetti { display: none; }
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--pad);
  padding-top: calc(12px + env(safe-area-inset-top));
}
.brand__shield { width: 42px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.brand__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: var(--text-3);
}
.brand__sub { font-size: 12.5px; color: var(--text-2); }
.brand__info {
  color: var(--text-2); display: flex; padding: 6px; margin: -6px;
  border-radius: 50%; text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin: 0 var(--pad);
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  max-height: 420px;
  background: var(--surface-2);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.2) 62%, rgba(0,0,0,.8) 100%);
}
.hero__badge {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--yellow); color: var(--black);
  font-size: 12px; font-weight: 900; letter-spacing: 1.4px;
  padding: 7px 12px; border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Bloques
   -------------------------------------------------------------------------- */
.block { padding: 0 var(--pad); margin-top: 32px; }

.label {
  font-size: 12px; font-weight: 800; letter-spacing: 1.8px;
  color: var(--text-3); margin: 0 0 12px;
}

.prize-name {
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.8px;
  font-weight: 800;
  margin: 0;
}
.prize-meta { margin: 12px 0 0; font-size: 14.5px; color: var(--text-2); }
.prize-meta .dot { color: var(--text-3); margin: 0 8px; }

.fineprint { font-size: 12.5px; line-height: 1.55; color: var(--text-3); margin: 12px 0 0; }
.fineprint--center { text-align: center; }

.mechanism { font-size: 14.5px; line-height: 1.65; color: var(--text-2); margin: 0; }

/* --------------------------------------------------------------------------
   Contador
   -------------------------------------------------------------------------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 4px;
  text-align: center;
}
.cd__v {
  display: block;
  font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px;
  /* Tabulares: los digitos no bailan al cambiar cada segundo. */
  font-variant-numeric: tabular-nums;
}
.cd__l {
  display: block; margin-top: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--text-3);
}
.countdown--done {
  grid-template-columns: 1fr;
  text-align: center;
  color: var(--yellow);
  font-weight: 800; letter-spacing: 1.8px; font-size: 13px;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   Paquetes
   -------------------------------------------------------------------------- */
.tiers { display: flex; flex-direction: column; gap: 12px; }

.tier {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 72px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: inherit; font: inherit; text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.tier[aria-checked="true"] {
  border-color: var(--yellow);
  border-width: 2px;
  padding: 11px 15px;
  background: color-mix(in srgb, var(--yellow) 10%, var(--surface));
}
.tier__radio {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--text-3);
  display: grid; place-items: center;
}
.tier[aria-checked="true"] .tier__radio {
  border-color: var(--yellow); background: var(--yellow); color: var(--black);
}
.tier__radio svg { display: none; }
.tier[aria-checked="true"] .tier__radio svg { display: block; }

.tier__body { flex: 1; min-width: 0; }
.tier__title {
  font-size: 16px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tier__sub { display: flex; align-items: center; gap: 6px; margin-top: 4px; min-width: 0; }
.tier__unit {
  font-size: 12.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tier__badge {
  flex: none;
  background: var(--yellow); color: var(--black);
  font-size: 9.5px; font-weight: 900; letter-spacing: .8px;
  padding: 3px 7px; border-radius: 999px;
  white-space: nowrap;
}
.tier__price {
  flex: none;
  font-size: 18px; font-weight: 800; letter-spacing: -0.3px;
}
.tier[aria-checked="true"] .tier__price { color: var(--yellow); }

/* --------------------------------------------------------------------------
   Tarjeta legal
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.links a { font-size: 13px; font-weight: 600; }
.card hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

.facts { margin: 0; display: grid; grid-template-columns: 118px 1fr; gap: 6px 8px; }
.facts dt { font-size: 12px; color: var(--text-3); }
.facts dd { margin: 0; font-size: 12px; font-weight: 600; color: var(--text-2); }

/* --------------------------------------------------------------------------
   Barra de accion fija
   -------------------------------------------------------------------------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
}
.actionbar__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.actionbar__row span {
  font-size: 13.5px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.actionbar__row strong {
  flex: none; font-size: 19px; font-weight: 800; letter-spacing: -0.3px;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px;
  border: 0; border-radius: var(--r-md);
  font: inherit; font-size: 17px; font-weight: 800; letter-spacing: .6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--yellow); color: var(--black); }
.btn--primary:disabled { background: var(--surface-2); color: var(--text-3); cursor: default; }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  min-height: 52px; font-size: 15px; font-weight: 700;
}
.btn:active:not(:disabled) { opacity: .85; }

.spinner {
  width: 20px; height: 20px; flex: none;
  border: 2.4px solid currentColor; border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Formulario (hoja inferior)
   -------------------------------------------------------------------------- */
.sheet {
  border: 0; padding: 0;
  width: 100%; max-width: 520px;
  max-height: 92dvh;
  margin: auto auto 0;
  background: var(--bg);
  color: var(--text);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.sheet::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.sheet form {
  padding: 20px var(--pad) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; max-height: 92dvh;
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.sheet__close {
  background: none; border: 0; color: var(--text-2);
  font-size: 30px; line-height: 1; padding: 4px 8px; cursor: pointer;
}

.summary {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.summary__n {
  flex: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--yellow); color: var(--black);
  display: grid; place-items: center; font-size: 18px; font-weight: 900;
}
.summary__body { flex: 1; min-width: 0; }
.summary__t { font-size: 15px; font-weight: 700; }
.summary__s {
  font-size: 12.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.summary__p { flex: none; font-size: 17px; font-weight: 800; }

.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 52px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--text);
  /* 16px o mas: por debajo de eso iOS hace zoom al enfocar el campo. */
  font: inherit; font-size: 16px;
}
.field input:focus { outline: none; border-color: var(--yellow); border-width: 1.6px; }
.field--bad input { border-color: var(--danger); }
.field__err { display: none; font-size: 12.5px; font-style: normal; color: var(--danger); margin-top: 6px; }
.field--bad .field__err { display: block; }

.consent {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 16px; font-size: 13.5px; line-height: 1.45; color: var(--text-2);
  cursor: pointer;
}
.consent input {
  flex: none; width: 22px; height: 22px; margin: 0;
  accent-color: var(--yellow);
}

.formerror {
  margin-top: 16px; padding: 12px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  border-radius: var(--r-sm);
  color: var(--danger); font-size: 13px; line-height: 1.45;
}

.sheet .btn { margin-top: 24px; }

/* --------------------------------------------------------------------------
   Comprobante
   -------------------------------------------------------------------------- */
.check {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--yellow); color: var(--black);
  display: grid; place-items: center; margin-bottom: 20px;
}
.paid {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--success); font-weight: 700; font-size: 14.5px; margin: 8px 0 0;
}
.numbers { display: flex; flex-wrap: wrap; gap: 8px; }
.number {
  background: var(--yellow); color: var(--black);
  border-radius: var(--r-sm); padding: 10px 12px;
  font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: 2px;
}
.notice {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 20px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.45; color: var(--text-2);
}
.detail { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.detail dt { font-size: 12.5px; color: var(--text-3); }
.detail dd { margin: 0; font-size: 13px; font-weight: 600; text-align: right; word-break: break-all; }

.actions { display: flex; gap: 8px; margin-top: 24px; }
.actions .btn { margin-top: 0; }

/* --------------------------------------------------------------------------
   Creditos — Vision Lab
   --------------------------------------------------------------------------
   Va al final y con su propio color de marca (violeta), no con el amarillo
   del sorteo. Asi se lee como una firma de autor y no compite con el boton
   de comprar, que es lo unico que tiene que brillar en esta pagina.
   -------------------------------------------------------------------------- */
.madeby {
  --vl: #7C4DFF;
  margin-top: 40px;
  padding: 44px var(--pad) 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.madeby__pre {
  display: block;
  font-size: 11px; font-weight: 800; letter-spacing: 2.4px;
  color: var(--text-3);
  margin-bottom: 18px;
}

.madeby__brand {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none;
}

.madeby__mark { width: 46px; height: 46px; flex: none; }

.madeby__word {
  font-size: clamp(26px, 7.5vw, 34px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
.madeby__word b { color: var(--vl); font-weight: 900; }

.madeby__tag {
  margin: 18px auto 0;
  max-width: 300px;
  font-size: 14px; line-height: 1.5;
  color: var(--text-2);
}

.madeby__social {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
}
.madeby__social:hover { color: var(--vl); border-color: var(--vl); }

/* --------------------------------------------------------------------------
   Estados
   -------------------------------------------------------------------------- */
.errorbox { padding: 56px var(--pad); text-align: center; color: var(--text-2); }
.errorbox .btn { margin-top: 20px; }

.status {
  display: flex; align-items: center; gap: 10px;
  padding: 14px var(--pad);
  background: var(--surface);
  font-size: 13px; color: var(--text-2);
}
.status--bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.status .spinner { width: 16px; height: 16px; border-width: 2px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px);
  transform: translateX(-50%);
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 18px; font-size: 14px;
  z-index: 60;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.toast--on { opacity: 1; }

/* --------------------------------------------------------------------------
   Esqueleto de carga
   -------------------------------------------------------------------------- */
.skeleton { padding: 0 var(--pad); }
.skeleton > * { background: var(--surface); border-radius: var(--r-md); }
.skeleton__hero { aspect-ratio: 16/11; max-height: 420px; border-radius: var(--r-xl); }
.skeleton__line { height: 30px; margin-top: 24px; }
.skeleton__line--lg { height: 40px; width: 72%; }
.skeleton__row { height: 72px; margin-top: 12px; }
.skeleton > * { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
