/* Otra Ronda — barra de después: papel cálido sobre aubergine, rosa fresa y limón. */

:root {
  --tinta: #1b0f22;
  --tinta-2: #2a1834;
  --tinta-3: #3a2144;
  --papel: #f5ebd9;
  --fresa: #ff3e6c;
  --limon: #f4e04d;
  --menta: #7de3c1;
  --texto: #f4e9d7;
  --tenue: #b49fbc;
  --borde: rgba(245, 235, 217, 0.14);
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-texto: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--f-texto);
  color: var(--texto);
  background-color: var(--tinta);
  background-image: radial-gradient(60% 38% at 82% -8%, rgba(255, 62, 108, 0.22), transparent 70%),
    radial-gradient(52% 40% at -12% 8%, rgba(185, 166, 255, 0.12), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(245, 235, 217, 0.055) 1px, transparent 0);
  background-size: auto, auto, 20px 20px;
  background-attachment: fixed;
}

::selection {
  background: var(--fresa);
  color: var(--tinta);
}

#app {
  min-height: 100dvh;
}

/* ---------- estructura ---------- */

.pantalla {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.1rem 1.15rem 3rem;
  padding-top: max(1.1rem, env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.pantalla--juego {
  gap: 0.9rem;
}

.pantalla--carga {
  min-height: 60vh;
  align-items: center;
  justify-content: center;
}

.bloque {
  display: flex;
  flex-direction: column;
}

/* ---------- marca ---------- */

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.marca__icono {
  width: 22px;
  height: 22px;
  color: var(--fresa);
  display: inline-flex;
}

.marca__icono svg {
  width: 100%;
  height: 100%;
}

.marca__texto {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.hero__marca .marca__icono {
  width: 26px;
  height: 26px;
}

.hero__marca .marca__texto {
  font-size: 1.28rem;
}

/* ---------- cabecera y barra superior ---------- */

.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0 0.3rem;
}

.cabecera__marca {
  display: inline-flex;
}

.cabecera__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  text-align: right;
}

.cabecera__juego {
  font-size: 0.82rem;
  font-weight: 700;
}

.cabecera__ronda {
  font-size: 0.75rem;
  color: var(--tenue);
}

.enlace {
  appearance: none;
  background: none;
  border: none;
  color: var(--tenue);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
}

.enlace:hover {
  color: var(--texto);
}

.enlace:focus-visible {
  outline: 2px solid var(--limon);
  outline-offset: 2px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 0.6rem 0 0.2rem;
}

.hero__titulo {
  margin: 0.8rem 0 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 13vw, 4.9rem);
  line-height: 0.93;
  letter-spacing: -0.035em;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
}

.hero__titulo em {
  font-style: italic;
  color: var(--fresa);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}

.hero__sub {
  margin: 1.1rem 0 0;
  max-width: 36ch;
  color: var(--tenue);
  font-size: 1rem;
  line-height: 1.5;
}

.sello {
  position: absolute;
  top: -0.2rem;
  right: 0.1rem;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--fresa);
  border: 2px solid var(--fresa);
  box-shadow: inset 0 0 0 3px var(--tinta), inset 0 0 0 5px var(--fresa);
  transform: rotate(8deg);
  pointer-events: none;
}

/* ---------- panel y formularios ---------- */

.panel {
  background: var(--tinta-2);
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.campo > span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tenue);
}

input,
textarea {
  font: inherit;
  width: 100%;
  color: var(--texto);
  background: var(--tinta);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  min-height: 48px;
}

input::placeholder,
textarea::placeholder {
  color: #7f6a8a;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--limon);
  outline-offset: 1px;
}

.fila {
  display: flex;
  gap: 0.6rem;
}

.campo-codigo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
  padding-left: calc(1rem + 0.28em);
}

.divisor {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--tenue);
  font-size: 0.8rem;
  font-style: italic;
}

.divisor::before,
.divisor::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--borde);
}

/* ---------- botones ---------- */

.boton {
  appearance: none;
  border: 1px solid var(--borde);
  background: var(--tinta-3);
  color: var(--texto);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  min-height: 48px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.boton:hover {
  transform: translateY(-1px);
}

.boton:active {
  transform: translateY(0) scale(0.99);
}

.boton:focus-visible {
  outline: 2px solid var(--limon);
  outline-offset: 2px;
}

.boton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.boton--ancho {
  width: 100%;
}

.boton--primario {
  background: var(--fresa);
  color: var(--tinta);
  border-color: transparent;
}

.boton--primario:hover {
  background: #ff547e;
}

.boton--oscuro {
  background: var(--tinta);
  color: var(--papel);
  border-color: transparent;
}

.boton--fantasma {
  background: transparent;
  border-color: var(--borde);
}

/* ---------- inicio: lista de juegos ---------- */

.lista-juegos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.juego-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.juego-item__icono {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--tinta-2);
  border: 1px solid var(--borde);
  color: var(--fresa);
}

.juego-item__icono svg {
  width: 21px;
  height: 21px;
}

.juego-item strong {
  font-size: 0.98rem;
}

.juego-item p {
  margin: 0.15rem 0 0;
  color: var(--tenue);
  font-size: 0.87rem;
  line-height: 1.45;
}

.pie-inicio {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.pie {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--tenue);
  text-align: center;
}

/* ---------- títulos de sección ---------- */

.titulo-seccion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.titulo-seccion__num {
  font-family: var(--f-texto);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tenue);
  background: var(--tinta-2);
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

/* ---------- lobby ---------- */

.boleto {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.3rem 1.1rem;
  background: var(--papel);
  color: var(--tinta);
  border-radius: 18px;
}

.boleto::before,
.boleto::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tinta);
  transform: translateY(-50%);
}

.boleto::before {
  left: -11px;
}

.boleto::after {
  right: -11px;
}

.boleto__codigo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 14vw, 3.6rem);
  letter-spacing: 0.14em;
  line-height: 1;
  padding-left: 0.14em;
}

.boleto__nota {
  margin: 0;
  font-size: 0.82rem;
  color: #6b5a74;
  text-align: center;
}

.etiqueta {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  color: #6b5a74;
}

.etiqueta--fresa {
  color: #d81e4e;
}

.jugadores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jugador {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  background: var(--tinta-2);
  border: 1px solid var(--borde);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.jugador__punto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}

.jugador__corona {
  color: var(--limon);
  font-size: 0.8rem;
}

.jugador--fuera {
  opacity: 0.5;
}

.juegos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.juego-tarjeta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 104px;
  padding: 0.9rem;
  text-align: left;
  color: var(--texto);
  background: var(--tinta-2);
  border: 1px solid var(--borde);
  border-radius: 16px;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.juego-tarjeta:hover {
  transform: translateY(-1px);
}

.juego-tarjeta:focus-visible {
  outline: 2px solid var(--limon);
  outline-offset: 2px;
}

.juego-tarjeta__icono {
  width: 24px;
  height: 24px;
  color: var(--fresa);
  margin-bottom: 0.25rem;
}

.juego-tarjeta__icono svg {
  width: 100%;
  height: 100%;
}

.juego-tarjeta__nombre {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.15;
}

.juego-tarjeta__lema {
  font-size: 0.78rem;
  color: var(--tenue);
}

.juego-tarjeta--activa {
  background: var(--papel);
  color: var(--tinta);
  border-color: transparent;
}

.juego-tarjeta--activa .juego-tarjeta__lema {
  color: #6b5a74;
}

.juego-tarjeta[aria-disabled='true'] {
  cursor: default;
}

.juego-tarjeta[aria-disabled='true']:hover {
  transform: none;
}

.pie-acciones {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.agua {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  font-size: 0.85rem;
  color: var(--tenue);
  cursor: pointer;
}

.agua input {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--menta);
}

/* ---------- progreso ---------- */

.progreso {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.progreso__barra {
  flex: 1;
  height: 6px;
  background: var(--tinta-2);
  border-radius: 999px;
  overflow: hidden;
}

.progreso__barra span {
  display: block;
  height: 100%;
  background: var(--limon);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progreso__texto {
  font-size: 0.74rem;
  color: var(--tenue);
  white-space: nowrap;
}

/* ---------- tarjeta de pregunta ---------- */

.papel {
  background: var(--papel);
  color: var(--tinta);
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
}

.papel .tenue {
  color: #6b5a74;
}

.pregunta-papel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: golpe 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pregunta {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 5.6vw, 2.05rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.pregunta--media {
  font-size: clamp(1.3rem, 4.7vw, 1.7rem);
}

.instruccion {
  margin: 0;
  color: var(--tenue);
  font-size: 0.95rem;
  line-height: 1.5;
}

.instruccion--centro {
  text-align: center;
}

.estado {
  margin: 0;
  color: var(--menta);
  font-size: 0.9rem;
}

@keyframes golpe {
  from {
    opacity: 0;
    transform: scale(0.97) rotate(-0.5deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- opciones (yo nunca) ---------- */

.opciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.opcion {
  min-height: 66px;
  padding: 1rem 0.7rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--texto);
  background: var(--tinta-2);
  border: 1px solid var(--borde);
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.opcion:hover {
  transform: translateY(-1px);
}

.opcion:focus-visible {
  outline: 2px solid var(--limon);
  outline-offset: 2px;
}

.opcion--activa {
  background: var(--fresa);
  color: var(--tinta);
  border-color: transparent;
}

/* ---------- fichas (quién es más probable) ---------- */

.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}

.ficha {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 0.9rem;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--texto);
  background: var(--tinta-2);
  border: 1px solid var(--borde);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ficha:hover {
  background: var(--tinta-3);
}

.ficha:focus-visible {
  outline: 2px solid var(--limon);
  outline-offset: 2px;
}

.ficha__punto {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--c);
}

.ficha--activa {
  background: rgba(244, 224, 77, 0.14);
  border-color: var(--limon);
}

/* ---------- duelo (qué prefieres) ---------- */

.duelo {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
}

.duelo__lado {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  min-height: 72px;
  padding: 1.05rem 1.1rem;
  text-align: left;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  color: var(--texto);
  background: var(--tinta-2);
  border: 1px solid var(--borde);
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.duelo__lado:hover {
  background: var(--tinta-3);
}

.duelo__lado:focus-visible {
  outline: 2px solid var(--limon);
  outline-offset: 2px;
}

.duelo__letra {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--fresa);
}

.duelo__lado--activa {
  background: var(--papel);
  color: var(--tinta);
  border-color: transparent;
}

.duelo__o {
  text-align: center;
  font-family: var(--f-display);
  font-style: italic;
  color: var(--tenue);
}

/* ---------- redacción (confesiones) ---------- */

.redaccion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.redaccion textarea {
  min-height: 96px;
  background: var(--tinta-2);
  line-height: 1.45;
  resize: vertical;
}

.redaccion__pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.contador {
  font-size: 0.8rem;
  color: var(--tenue);
  font-variant-numeric: tabular-nums;
}

/* ---------- respuestas anónimas (votación) ---------- */

.respuestas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.respuesta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--texto);
  background: var(--tinta-2);
  border: 1px solid var(--borde);
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.respuesta:hover {
  transform: translateY(-1px);
}

.respuesta:focus-visible {
  outline: 2px solid var(--limon);
  outline-offset: 2px;
}

.respuesta__etiqueta {
  align-self: flex-start;
  font-size: 0.74rem;
  font-style: italic;
  color: var(--tenue);
}

.respuesta--elegida {
  background: rgba(255, 62, 108, 0.15);
  border-color: var(--fresa);
}

.respuesta:disabled {
  cursor: default;
  opacity: 0.55;
}

.respuesta:disabled:hover {
  transform: none;
}

/* ---------- resultados ---------- */

.resultado-papel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cifra {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 17vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.cifra span {
  font-family: var(--f-texto);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #6b5a74;
}

.cifra__pie {
  margin: 0;
  font-size: 1rem;
  color: #5a4a63;
}

.barra-zona {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.barra {
  height: 12px;
  background: var(--tinta-2);
  border-radius: 999px;
  overflow: hidden;
}

.barra span {
  display: block;
  height: 100%;
  background: var(--fresa);
  border-radius: 999px;
}

.barra-leyenda {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--tenue);
  font-variant-numeric: tabular-nums;
}

.ranking {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.rank {
  display: grid;
  grid-template-columns: minmax(90px, 36%) 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.rank__nombre {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank__nombre i {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--c);
}

.rank__barra {
  display: block;
  height: 12px;
  background: var(--tinta-2);
  border-radius: 999px;
  overflow: hidden;
}

.rank__barra span {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 999px;
}

.rank__num {
  font-size: 0.85rem;
  color: var(--tenue);
  font-variant-numeric: tabular-nums;
}

.duelo-resultado {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.duelo-res {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  background: var(--tinta-2);
  border: 1px solid var(--borde);
  border-radius: 16px;
}

.duelo-res--gana {
  background: var(--papel);
  color: var(--tinta);
  border-color: transparent;
}

.duelo-res--gana .tenue {
  color: #6b5a74;
}

.duelo-res__letra {
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--fresa);
}

.duelo-res__texto {
  flex: 1;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.duelo-res__cifra {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}

.respuestas-res {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.respuesta-res {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--tinta-2);
  border: 1px solid var(--borde);
  border-radius: 14px;
}

.respuesta-res p {
  margin: 0;
  line-height: 1.35;
}

.respuesta-res__votos {
  font-size: 0.85rem;
  color: var(--tenue);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.respuesta-res--gana {
  background: var(--papel);
  color: var(--tinta);
  border-color: transparent;
}

.respuesta-res--gana .respuesta-res__votos {
  color: #6b5a74;
}

.marcador ol {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.marcador li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.2rem;
  border-bottom: 1px dashed var(--borde);
}

.marcador li:last-child {
  border-bottom: none;
}

.marcador__puesto {
  width: 1.4rem;
  color: var(--tenue);
  font-variant-numeric: tabular-nums;
}

.marcador__nombre {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marcador strong {
  margin-left: auto;
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--limon);
}

/* ---------- acciones y espera ---------- */

.acciones {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.espera {
  margin: 0;
  padding: 0.9rem 0;
  text-align: center;
  color: var(--tenue);
  font-size: 0.9rem;
}

.regla {
  margin: 0.1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--tenue);
}

/* ---------- carga y avisos ---------- */

.cargando {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--tenue);
  font-size: 0.95rem;
}

.cargando__punto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fresa);
  animation: pulso 1s ease-in-out infinite;
}

@keyframes pulso {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 50;
  max-width: 90vw;
  padding: 0.75rem 1.1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tinta);
  background: var(--papel);
  border-radius: 999px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, 1rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- inicio: entrada ---------- */

.hero > * {
  animation: entrada 0.5s ease both;
}

.hero > *:nth-child(2) {
  animation-delay: 0.06s;
}

.hero > *:nth-child(3) {
  animation-delay: 0.12s;
}

.hero > *:nth-child(4) {
  animation-delay: 0.18s;
}

@keyframes entrada {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- móvil muy estrecho ---------- */

@media (max-width: 360px) {
  .pantalla {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .juegos {
    grid-template-columns: 1fr;
  }

  .juego-tarjeta {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
