/* polish.css — versión 5: logo, menú en celular, redes, QR, sonidos,
   mapa con progreso, explorador a pantalla completa en celular y footer.
   Se carga al final: sus reglas ajustan las de los archivos anteriores. */

/* ───── Utilidades ───── */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: none;
  vertical-align: -0.2em;
}
.icon-small {
  width: 0.85em;
  height: 0.85em;
}
.primary {
  gap: 9px;
}
.text-button .icon {
  margin-left: 6px;
}

/* ───── Logo CRISLUE LAB ───── */
.brand {
  font-family: "DM Sans", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}
/* Marca original de CRISLUE LAB (pirámide con ojo), recortada de logo_crislue.png del juego. */
.brand-tile {
  display: grid;
  place-items: center;
  flex: none;
}
.brand-tile img {
  width: 50px;
  height: auto;
  filter: drop-shadow(2px 2px 0 #100c1d);
}

/* ───── Encabezado ───── */
.site-menu {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 24px;
  margin-left: 40px;
}
.site-menu nav {
  margin: 0 auto;
}
.header-tools {
  display: flex;
  gap: 10px;
}
.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  color: #dfd3e2;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.tool-button:hover {
  border-color: var(--lime);
  color: var(--fg);
}
#sound-toggle .icon-mute,
#sound-toggle.muted .icon-sound {
  display: none;
}
#sound-toggle.muted .icon-mute {
  display: inline;
}
.menu-button {
  display: none;
}
@media (min-width: 751px) and (max-width: 1199px) {
  .site-menu {
    margin-left: 24px;
  }
  /* Solo ícono en pantallas medianas; el texto sigue disponible para lectores de pantalla. */
  .header .tool-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  nav {
    gap: 22px;
  }
}

/* ───── Portada ───── */
.cover-button {
  display: block;
  padding: 0;
  cursor: pointer;
  background: none;
}
.cover-window img {
  width: 100%;
  left: 0;
  object-fit: cover;
}
.hero-what {
  max-width: 520px;
  margin: -6px 0 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.hero-what strong {
  color: var(--fg);
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
}
.hero-note a {
  color: var(--lime);
  border-bottom: 1px solid #d5e04b66;
}

/* ───── Mapa: progreso, candados y caminos nuevos ───── */
.valley-progress {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 6px 14px;
  border: 1px solid #d5e04b80;
  border-radius: 30px;
  background: #201a33e6;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--lime);
}
.valley-place.locked {
  border-style: dashed;
  opacity: 0.85;
}
.place-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.place-state .icon {
  width: 12px;
  height: 12px;
}
.valley-place.just-opened {
  animation: place-open 1.4s ease-out 3;
}
@keyframes place-open {
  0% {
    box-shadow:
      5px 5px 0 #100c1d,
      0 0 0 0 #d5e04bcc;
  }
  100% {
    box-shadow:
      5px 5px 0 #100c1d,
      0 0 0 22px #d5e04b00;
  }
}
.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.progress {
  max-width: 320px;
  height: 6px;
  margin-top: 12px;
  border-radius: 6px;
  background: #faf1da1f;
  overflow: hidden;
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--yellow));
  transition: width 0.6s;
}

/* ───── Las obras: miniatura y estado ───── */
.work-row {
  grid-template-columns: 60px 76px 1fr 190px 28px;
}
.work-thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 2px solid #241b35;
  border-radius: 6px;
  background: #201a33;
  box-shadow: 3px 3px 0 #241b35;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-who {
  background: var(--lime);
  color: #201a33;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 24px;
  font-weight: 900;
}
.work-type {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.status {
  width: fit-content;
  padding: 3px 10px;
  border-radius: 30px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.status-live {
  background: #201a33;
  color: var(--lime);
}
.status-dev {
  background: #fff3d9;
  color: #573c94;
  border: 1px solid #573c9466;
}

/* ───── Comunidad ───── */
.community-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 6px 0;
  border-bottom: 2px solid #201a33;
  color: #201a33;
  font-weight: 700;
}
.community-link:hover {
  color: #573c94;
  border-color: #573c94;
}

/* ───── Redes oficiales ───── */
.social {
  background: #181425;
  border-top: 1px solid #9c78eb33;
}
.social-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 40px;
}
.social-heading .eyebrow {
  margin-bottom: 16px;
}
.social-heading > p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.social-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 2px solid #0f0b1a;
  border-radius: 6px;
  background: #241c37;
  box-shadow: 6px 6px 0 #100c1d;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.social-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 #100c1d;
  border-color: var(--lime);
}
.sc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #dfd3e2;
}
.sc-top .icon {
  width: 24px;
  height: 24px;
}
.sc-facebook .sc-top .icon {
  color: #6aa6ff;
}
.sc-youtube .sc-top .icon {
  color: #ff5a5a;
}
.sc-tiktok .sc-top .icon {
  color: #5ef2ec;
}
.sc-instagram .sc-top .icon {
  color: #ff76b5;
}
.social-card strong {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
}
.sc-handle {
  font-size: 14px;
  color: #dfd3e2;
  overflow-wrap: anywhere;
}
.sc-meta {
  font-size: 13px;
  color: var(--muted);
}
.sc-qr {
  width: 124px;
  height: 124px;
  margin: 18px 0 4px;
  border: 2px solid #0f0b1a;
  border-radius: 6px;
  background: #fff8e7;
}
.sc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
}
.social-extra {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid #d5e04b88;
  color: var(--fg);
  font-size: 17px;
  font-weight: 700;
}
.contact-link:hover {
  color: var(--lime);
}

/* ───── Autor ───── */
.author-photo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 5px 5px 0 #100c1d;
}
.dialog-photo {
  width: 96px;
  height: 96px;
  margin: 0 0 22px;
}

/* ───── Diálogos: compra del libro y redes ───── */
.buy-box {
  margin: 26px 0;
  padding: 22px;
  border: 2px solid #0f0b1a;
  border-radius: 6px;
  background: #2d2342;
  box-shadow: 5px 5px 0 #100c1d;
}
.buy-box .eyebrow {
  margin-bottom: 14px;
}
.buy-links {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.buy-links a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  line-height: 1.25;
}
.buy-links small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}
.buy-alt {
  padding: 12px 18px;
  border: 1px solid #9c78eb;
  border-radius: 4px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 700;
}
.buy-alt:hover {
  border-color: var(--lime);
}
.dialog-inner .buy-note {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
.buy-note a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dialog-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 28px;
}
.dialog-cta .buy-note {
  width: 100%;
  margin: 0;
}
.dialog-social-title {
  margin-top: 26px;
}
.dialog-social,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dialog-social a,
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #faf1da33;
  border-radius: 50%;
  color: #dfd3e2;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.dialog-social a:hover,
.footer-social a:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: #201a33;
}
.dialog-social .icon,
.footer-social .icon {
  width: 19px;
  height: 19px;
}

/* ───── Explorador ───── */
.explorer-inner {
  padding-top: 26px;
}
.explorer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.explorer-inner .explorer-top .eyebrow {
  margin: 0;
}
.explorer-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.explorer-top .close {
  position: static;
  padding: 4px 10px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid #9c78eb80;
  border-radius: 30px;
  color: var(--fg);
  font-size: 13px;
}
.icon-button:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.explorer-share-status {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--lime);
}
.explorer-share-status:empty {
  display: none;
}
details.explorer-context summary {
  width: fit-content;
  cursor: pointer;
  color: var(--lime);
  font-size: 14px;
}
details.explorer-context p {
  margin: 10px 0 0;
}

/* ───── Footer ───── */
.site-footer {
  display: grid;
  grid-template-columns: 1.3fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 44px var(--px);
  background: #181425;
  border-top: 1px solid var(--line);
}
.footer-brand p {
  max-width: 340px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.footer-meta a:hover {
  color: var(--lime);
}

/* ───── Tablet ───── */
@media (max-width: 1000px) {
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-row {
    grid-template-columns: 44px 70px 1fr 160px 24px;
  }
}

/* ───── QR solo donde sirven: pantallas grandes con mouse ───── */
@media (max-width: 750px), (pointer: coarse) {
  .sc-qr,
  .qr-hint {
    display: none;
  }
}

/* ───── Celular ───── */
@media (max-width: 750px) {
  .brand-tile img {
    width: 42px;
  }
  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #faf1da40;
    border-radius: 4px;
    color: var(--fg);
    font-size: 15px;
  }
  .menu-button .icon-close,
  .menu-open .menu-button .icon-open {
    display: none;
  }
  .menu-open .menu-button .icon-close {
    display: inline;
  }
  .site-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px var(--px) 22px;
    background: #1b1530;
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 30px 60px #0009;
  }
  .menu-open .site-menu {
    display: flex;
  }
  .header .site-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
  }
  .header .site-menu nav a,
  .header .site-menu nav button {
    display: block;
    padding: 15px 2px;
    border-bottom: 1px solid #faf1da1f;
    color: var(--fg);
    font-size: 18px;
    text-align: left;
  }
  .header-tools {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }
  .header .tool-button {
    justify-content: flex-start;
    width: 100%;
    padding: 13px 14px;
    font-size: 15px;
  }
  .header .tool-label,
  .header .motion-label {
    display: inline;
  }
  .hero-what {
    font-size: 15px;
  }
  .hero-actions .primary {
    width: 100%;
  }
  .social-heading {
    display: block;
  }
  .social-heading > p {
    margin-top: 18px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-meta {
    align-items: flex-start;
  }
}

@media (max-width: 650px) {
  /* Las obras */
  .work-row {
    grid-template-columns: 22px 54px 1fr 22px;
    gap: 6px 12px;
  }
  .work-num {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .work-thumb {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 54px;
    height: 54px;
  }
  .work-name {
    grid-column: 3;
  }
  .work-type {
    grid-column: 3;
    grid-row: 2;
    margin-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .work-plus {
    grid-column: 4;
    grid-row: 1;
  }

  /* Redes en tarjetas compactas */
  .social-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .social-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "top cta"
      "name cta"
      "handle cta";
    align-items: center;
    gap: 2px 14px;
    padding: 18px 20px;
  }
  .sc-top {
    grid-area: top;
    margin-bottom: 4px;
  }
  .social-card strong {
    grid-area: name;
    font-size: 21px;
  }
  .sc-handle {
    grid-area: handle;
  }
  .sc-meta {
    display: none;
  }
  .sc-cta {
    grid-area: cta;
    margin: 0;
    padding: 0;
    font-size: 0;
  }
  .sc-cta .icon {
    width: 22px;
    height: 22px;
  }

  /* Explorador a pantalla completa, con barra superior y acciones fijas */
  #explorer,
  #detail {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  #explorer::before {
    background-image: url("assets/valle-movil.webp");
  }
  .explorer-inner {
    padding: 0 20px 40px;
  }
  .explorer-top {
    position: sticky;
    top: 0;
    z-index: 4;
    margin: 0 -20px 12px;
    padding: 10px 14px 10px 20px;
    background: #211a33f2;
    border-bottom: 1px solid #9c78eb40;
  }
  .explorer-inner .explorer-top .eyebrow {
    font-size: 11px;
    letter-spacing: 1.2px;
  }
  .icon-button {
    padding: 9px;
  }
  .icon-button span {
    display: none;
  }
  .explorer-inner h2 {
    font-size: 27px;
  }
  .explorer-world-bar {
    margin-top: 14px;
  }
  .explorer-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 18px 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .explorer-steps .step-num {
    display: none;
  }
  .explorer-steps button {
    padding: 7px 0;
    border-bottom: 2px solid #9c78eb40;
    font-size: 12.5px;
    text-align: center;
  }
  .explorer-steps button[aria-current] {
    border-bottom-color: var(--lime);
  }
  .explorer-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 20px -20px 0;
    padding: 18px 20px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #241c3700, #241c37 26%);
  }
  .perspective-grid {
    margin-top: 14px;
  }
  .perspective {
    padding: 20px;
  }

  /* Detalle (libro, juego, autor) a pantalla completa */
  .dialog-inner {
    padding: 14px 22px 40px;
  }
  .dialog-inner .close {
    position: sticky;
    top: 8px;
    z-index: 3;
    float: right;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0 -8px 0 12px;
    padding: 0;
    border-radius: 50%;
    background: #241c37e6;
  }
  #detail-category {
    padding-top: 12px;
  }
  .buy-links a {
    width: 100%;
  }
}

/* Las reglas antiguas ocultan el primer enlace de cualquier <nav> en celular;
   en las redes del footer deben verse todos. */
.site-footer .footer-social a {
  display: grid;
}

/* adelantos.css — libro que se hojea (#adelanto) y tráiler del juego (#juego). */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lora-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lora-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/lora-latin-700-normal.woff2") format("woff2");
}

/* ───── Encabezados de las dos secciones ───── */
.pv-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 40px;
}
.pv-heading .eyebrow {
  margin-bottom: 16px;
}
.pv-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ───── Libro ───── */
.preview-book {
  background:
    radial-gradient(ellipse at 50% 60%, #7650d22e, transparent 60%),
    #1b1530;
  border-top: 1px solid #9c78eb33;
  overflow: hidden;
}
.fb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fb-stage {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  outline: none;
  filter: drop-shadow(0 30px 40px #0008);
}
.fb-stage:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 10px;
}
.fb-page {
  --s: 1;
  background: #fbf5e6;
  color: #2a2233;
  overflow: hidden;
}
.fb-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(30px * var(--s)) calc(32px * var(--s)) calc(22px * var(--s));
  background:
    linear-gradient(90deg, #0000 92%, #6b4e2a14),
    radial-gradient(ellipse at 50% 0%, #fffdf6, #fbf5e6 70%);
}
.stf__item.--left .fb-inner,
.fb-page.--left .fb-inner {
  background:
    linear-gradient(270deg, #0000 92%, #6b4e2a14),
    radial-gradient(ellipse at 50% 0%, #fffdf6, #fbf5e6 70%);
}
.fb-head,
.fb-foot {
  flex: none;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: calc(11.5px * var(--s));
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8d7a66;
  text-align: center;
}
.fb-head {
  padding-bottom: calc(10px * var(--s));
  border-bottom: 1px solid #d9ccb3;
  margin-bottom: calc(14px * var(--s));
}
.fb-foot {
  padding-top: calc(10px * var(--s));
}
.fb-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  font-family: "Lora", Georgia, serif;
  font-size: max(13px, calc(14.6px * var(--s)));
  line-height: 1.58;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.fb-p {
  margin: 0;
  text-align: justify;
  text-indent: 1.4em;
}
.fb-p.cont {
  text-indent: 0;
}
.fb-p.split {
  text-align-last: justify;
}
.fb-chap {
  margin: calc(4px * var(--s)) 0 calc(14px * var(--s));
  text-align: center;
}
.fb-chap span {
  display: block;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: calc(13px * var(--s));
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7650d2;
}
.fb-chap h3 {
  margin: calc(4px * var(--s)) 0 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: calc(30px * var(--s));
  letter-spacing: -0.5px;
  color: #201a33;
}
.fb-epi {
  margin: 0 calc(8px * var(--s)) calc(4px * var(--s));
  font-style: italic;
  font-size: 0.92em;
  line-height: 1.5;
  color: #4a3d52;
  text-align: center;
}
.fb-cite {
  margin: 0 0 calc(14px * var(--s));
  font-size: 0.8em;
  color: #8d7a66;
  text-align: center;
}
.fb-sub {
  margin: calc(12px * var(--s)) 0 calc(6px * var(--s));
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 1.02em;
  color: #201a33;
  text-align: left;
}
.fb-ex {
  text-indent: 0;
  margin-bottom: 0.45em;
}
.fb-ex strong {
  color: #7650d2;
}

/* Hojas especiales */
.fb-hard {
  background: #201a33;
}
.fb-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fb-back {
  background: radial-gradient(ellipse at 50% 40%, #3a2c5e, #201a33 70%);
}
.fb-back-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: 100%;
}
.fb-back-in img {
  display: block;
  width: 55%;
  height: auto;
}
.fb-back p {
  margin: 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: calc(18px * var(--s));
  letter-spacing: 3px;
  color: var(--lime);
}
.fb-intro .fb-inner,
.fb-end .fb-inner,
.fb-blank .fb-inner {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: calc(10px * var(--s));
}
.fb-mark {
  width: calc(60px * var(--s));
  height: auto;
  margin-bottom: calc(10px * var(--s));
  filter: drop-shadow(0 2px 0 #201a3355);
}
.fb-kicker {
  margin: 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: calc(13px * var(--s));
  letter-spacing: 3px;
  color: #7650d2;
}
.fb-title {
  margin: 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 800;
  font-size: calc(32px * var(--s));
  line-height: 1.1;
  color: #201a33;
}
.fb-title-sm {
  font-size: calc(28px * var(--s));
}
.fb-by {
  margin: 0 0 calc(18px * var(--s));
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: calc(16px * var(--s));
  color: #6b5a70;
}
.fb-note {
  max-width: 26em;
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: max(13px, calc(14.5px * var(--s)));
  line-height: 1.55;
  color: #4a3d52;
}
.fb-quote {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: calc(20px * var(--s));
  line-height: 1.45;
  color: #4a3d52;
}
.fb-quote span {
  display: block;
  margin-top: 12px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-style: normal;
  font-size: calc(12px * var(--s));
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8d7a66;
}
.fb-buy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(10px * var(--s));
  width: min(100%, 250px);
  margin-top: calc(16px * var(--s));
}
.fb-buy .primary {
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.fb-buy .primary small {
  font-size: 11px;
  font-weight: 500;
}
.fb-alt {
  padding: 10px 14px;
  border: 2px solid #201a33;
  border-radius: 4px;
  color: #201a33;
  font-weight: 700;
  font-size: 14px;
}
.fb-alt:hover {
  background: #201a33;
  color: #fbf5e6;
}

/* Controles */
.fb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}
.fb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  font-size: 20px;
  transition:
    background 0.2s,
    color 0.2s,
    opacity 0.2s;
}
.fb-btn:hover:not(:disabled) {
  background: var(--lime);
  color: #201a33;
}
.fb-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
#fb-count {
  min-width: 170px;
  text-align: center;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.fb-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.fb-plain {
  width: min(100%, 720px);
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 14px;
}
.fb-plain summary {
  width: fit-content;
  margin: 0 auto;
  cursor: pointer;
  color: var(--lime);
}
.fb-plain article {
  margin-top: 20px;
  padding: 28px;
  border-radius: 6px;
  background: #fbf5e6;
  color: #2a2233;
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
}
.fb-plain .fb-p {
  margin-bottom: 0.2em;
}

/* ───── Tráiler del juego ───── */
.preview-game {
  background: #201a33;
  border-top: 1px solid #9c78eb33;
}
.gm-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  align-items: start;
}
.gm-video {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 3px solid #0f0c18;
  border-radius: 7px;
  box-shadow: 8px 8px 0 #100c1d;
  background: #000;
}
.gm-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  image-rendering: pixelated;
}
.gm-toggle {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 7px 12px;
  border: 1px solid #faf1da55;
  border-radius: 30px;
  background: #201a33d9;
  color: var(--fg);
  font-size: 13px;
}
.gm-toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.gm-video figcaption {
  padding: 8px 12px;
  background: #151022;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--lime);
}
.gm-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gm-shots figure {
  margin: 0;
}
.gm-shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 2px solid #0f0c18;
  border-radius: 5px;
  box-shadow: 4px 4px 0 #100c1d;
  image-rendering: pixelated;
}
.gm-shots figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.gm-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 34px;
}
.gm-cta span {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .gm-grid {
    grid-template-columns: 1fr;
  }
  .gm-shots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 750px) {
  .pv-heading {
    display: block;
  }
  .pv-heading > p {
    margin-top: 18px;
  }
  .gm-shots {
    grid-template-columns: 1fr 1fr;
  }
  .gm-cta .primary {
    width: 100%;
  }
  .fb-nav {
    margin-top: 22px;
  }
}
