/* ============================================================
   Conti Cuenta — "Chrome" de la página (header, fondo, copy SEO,
   espacio de anuncio). Replica el look de equation-builder-web:
   fondo blanco, tipografía Inter, enlace "Ver más juegos" subrayado
   (sin píldora) y bloque de copy sobrio.

   IMPORTANTE: estos estilos están deliberadamente SEPARADOS de los
   del juego. Solo afectan elementos que rodean al juego
   (.page-header, .page-shell, .ad-slot, .game-info). NO se aplica
   tipografía ni fondo a .stage ni a su contenido: el juego conserva
   sus propios estilos inline (Fredoka / Nunito) tal cual.
   ============================================================ */

/* Fondo de la página en blanco, como equation-builder. El juego
   (.stage) mantiene su propio degradado, así que no se ve afectado. */
body {
  background: #ffffff;
}

/* Sin sombra en el contenedor del juego (anula la box-shadow inline). */
.stage {
  box-shadow: none;
}

/* ============================================================
   Header — logo + "Ver más juegos" + botones de compartir.
   Móvil: en flujo, angosto. Escritorio: sticky, ancho completo.
   ============================================================ */
.page-header {
  background: #ffffff;
  border-bottom: none;
  position: static;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.page-header__inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.page-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.page-header__brand img {
  height: 28px;
  width: auto;
  display: block;
}

/* "Ver más juegos": enlace de texto subrayado y centrado (sin píldora). */
.page-header__hub {
  margin: 0;
  text-align: center;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3d8bcd;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: none;
  border-radius: 0;
  padding: 0;
  background: none;
  transition: color 140ms;
}

.page-header__hub:hover {
  background: none;
  color: #da7256;
}

.page-header__share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: opacity 120ms, transform 80ms;
}

.share-btn:hover {
  opacity: 0.85;
  transform: none;
  filter: none;
}

.share-btn:active {
  transform: scale(0.94);
}

.share-btn--whatsapp { background: #25d366; }
.share-btn--facebook { background: #1877f2; }
.share-btn--pinterest { background: #e60023; }

/* ============================================================
   Contenedor principal. max-width holgado para NO encoger el
   juego (la .stage mide hasta 900px): queda centrada sin recorte.
   ============================================================ */
.page-shell {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12px 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   Espacio de anuncio (AdSense). Contenedor mínimo, como
   equation-builder: AdSense controla el tamaño interno. En
   desarrollo el <aside> está comentado en el HTML, así que no
   se ve nada hasta producción.
   ============================================================ */
.ad-slot {
  width: 100%;
  min-height: 90px;
  margin: 0 auto;
}

/* ============================================================
   Copy SEO debajo del juego. Inter, sobrio, como equation-builder.
   ============================================================ */
.game-info {
  max-width: 760px;
  margin: 8px auto 0;
  padding: 4px 8px 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #2c2c2c;
  line-height: 1.55;
  font-size: 15px;
}

.game-info__title {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0 0 12px;
  line-height: 1.25;
}

.game-info__lead {
  font-size: 16px;
  margin: 0 0 20px;
}

.game-info__h2 {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1c1c1c;
  margin: 22px 0 8px;
}

.game-info__list {
  margin: 0 0 16px;
  padding-left: 22px;
}

.game-info__list li {
  margin-bottom: 6px;
}

.game-info__meta {
  margin: 24px 0 0;
  padding-top: 0;
  border-top: none;
  font-size: 13px;
  color: #6b6b6b;
}

.game-info strong {
  color: #1c1c1c;
}

/* ---------- Móvil ---------- */
@media (max-width: 480px) {
  .page-header__inner {
    gap: 10px;
    padding: 10px 12px;
  }
  .page-header__brand img {
    height: 24px;
  }
  .page-header__hub {
    font-size: 13px;
  }
  .page-header__share {
    gap: 6px;
  }
  .share-btn {
    width: 30px;
    height: 30px;
  }
  .game-info {
    font-size: 14px;
    padding: 4px 4px 0;
  }
  .game-info__title {
    font-size: 19px;
  }
  .game-info__lead {
    font-size: 15px;
  }
  .game-info__h2 {
    font-size: 16px;
  }
}

/* ---------- Escritorio: header sticky a ancho completo ---------- */
@media (min-width: 800px) {
  .page-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #ececec;
  }
  .page-header__inner {
    max-width: 1200px;
    padding: 18px 32px;
    gap: 32px;
  }
  .page-header__brand img {
    height: 48px;
  }
  .page-header__hub {
    font-size: 18px;
  }
  .share-btn {
    width: 36px;
    height: 36px;
  }
  .share-btn svg {
    width: 22px;
    height: 22px;
  }
  .page-shell {
    padding: 0 24px 96px;
    gap: 24px;
    margin-top: 24px;
  }
}
