/* PoxiLauncher · web
   Dirección de arte en /DISENO.md. Todo el color sale de los tokens de :root. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: 'Pixelify Sans';
  src: url('/assets/fonts/pixelify-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  /* piedra */
  --bg: #0a0e08;
  --bg-2: #0d1207;
  --stone: #121a0d;
  --stone-hi: #1c2716;
  --frame: #050804;
  --line: rgba(157, 255, 63, 0.09);
  --line-2: rgba(238, 243, 228, 0.1);
  /* esmeralda */
  --em: #9dff3f;
  --em-2: #7fd82f;
  --em-deep: #2b5a0f;
  --em-shadow: #16290c;
  --em-ink: #1d330f;
  /* texto */
  --text: #eef3e4;
  --text-2: #b4c1a5;
  --muted: #8a9a7c;
  /* colores de jugador */
  --gold: #ffd25f;
  --diamond: #5fd7ff;
  --lapis: #7aa2ff;
  --red: #ff6b5f;

  --font: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --pixel: 'Pixelify Sans', 'Archivo', monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  /* Ritmo vertical: cada sección solo lleva hueco ARRIBA (--section).
     Las bandas con fondo (.band) llevan su propio relleno, más corto, arriba y abajo. */
  --section: clamp(64px, 7vw, 104px);
  --band: clamp(56px, 6vw, 88px);
  --s: 6px; /* escalón de las esquinas de píxel */

  color-scheme: dark;
}

/* ——— Base ——— */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  font-stretch: 100%;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: rgba(157, 255, 63, 0.3);
  color: var(--text);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--em);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--em);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--em);
  color: var(--frame);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}

.skip:focus {
  transform: none;
}

.wrap > *,
.wrap > * > * {
  min-width: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.em {
  color: var(--em);
}

/* Solo en móvil táctil / solo en el resto (el botón de descarga cambia de texto) */
.touch-only {
  display: none;
}

@media (pointer: coarse) and (max-width: 899px) {
  .touch-only {
    display: revert;
  }

  .desk-only {
    display: none !important;
  }
}

/* Esquinas escalonadas: el motivo de la marca */
.px {
  clip-path: polygon(
    0 calc(var(--s) * 2), var(--s) calc(var(--s) * 2), var(--s) var(--s), calc(var(--s) * 2) var(--s), calc(var(--s) * 2) 0,
    calc(100% - var(--s) * 2) 0, calc(100% - var(--s) * 2) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(var(--s) * 2), 100% calc(var(--s) * 2),
    100% calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s) * 2) calc(100% - var(--s)), calc(100% - var(--s) * 2) 100%,
    calc(var(--s) * 2) 100%, calc(var(--s) * 2) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) calc(100% - var(--s) * 2), 0 calc(100% - var(--s) * 2)
  );
}

/* Panel de piedra con relieve (como en la app) */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.14)), var(--stone);
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.08),
    inset -3px -3px 0 rgba(0, 0, 0, 0.5);
}

/* Sombra de bloque: sólida y oscura, se levanta un poco al pasar el ratón */
.lift {
  filter: drop-shadow(6px 6px 0 var(--em-shadow));
  transition:
    transform 220ms var(--ease-out),
    filter 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .lift:hover {
    transform: translate(-2px, -2px);
    filter: drop-shadow(9px 9px 0 #1f3a10);
  }
}

/* ——— Botones de píxel ——— */
.btn {
  --depth: 5px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 3px solid var(--frame);
  background: linear-gradient(180deg, #2c3b22, #1c2716);
  color: var(--text);
  font: 700 16px/1.1 var(--font);
  font-stretch: 108%;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.2),
    inset -3px -3px 0 rgba(0, 0, 0, 0.45),
    0 var(--depth) 0 var(--frame);
  transition:
    transform 120ms var(--ease-out),
    box-shadow 120ms var(--ease-out),
    filter 160ms ease;
  touch-action: manipulation;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--em {
  background: linear-gradient(180deg, var(--em), var(--em-2));
  color: var(--frame);
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.45),
    inset -3px -3px 0 rgba(0, 0, 0, 0.22),
    0 var(--depth) 0 var(--em-deep);
}

.btn--lg {
  min-height: 62px;
  padding: 0 30px;
  font-size: 18px;
}

@media (max-width: 479px) {
  .btn--lg {
    padding: 0 16px;
    font-size: 17px;
  }
}

.btn--sm {
  --depth: 4px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    filter: brightness(1.1);
  }
}

.btn:active {
  transform: translateY(var(--depth));
  box-shadow:
    inset 3px 3px 0 rgba(0, 0, 0, 0.35),
    inset -3px -3px 0 rgba(255, 255, 255, 0.12),
    0 0 0 var(--frame);
}

.btn--em:focus-visible {
  outline-color: var(--text);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover {
    color: var(--em);
  }

  .link-arrow:hover svg {
    transform: translateX(3px);
  }
}

/* ——— Cabecera ——— */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 8, 0.85);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-2);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: none;
}

/* a escala 1:1 para que los píxeles salgan nítidos */
.brand img {
  width: auto;
  height: 23px;
}

/* Pantallas muy estrechas (móvil plegable cerrado): el logotipo más pequeño para que quepa el menú */
@media (max-width: 339px) {
  .brand img {
    height: 17px;
  }
}



.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav a:not(.btn):hover {
  color: var(--text);
}

.nav .gh {
  gap: 8px;
}

.nav .gh svg {
  width: 20px;
  height: 20px;
}

.nav .btn {
  margin-left: 10px;
}

.head-dl,
.menu-btn {
  display: none;
}

.menu-btn {
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 3px solid var(--frame);
  background: var(--stone-hi);
  color: var(--text);
  cursor: pointer;
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.12),
    inset -3px -3px 0 rgba(0, 0, 0, 0.45);
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 20px;
  height: 3px;
  background: currentColor;
  transition: transform 220ms var(--ease-out), opacity 160ms ease;
}

.menu-btn span {
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -7px;
}

.menu-btn span::after {
  top: 7px;
}

.menu-btn[aria-expanded='true'] span {
  background: transparent;
}

.menu-btn[aria-expanded='true'] span::before {
  transform: translateY(7px) rotate(45deg);
  background: var(--text);
}

.menu-btn[aria-expanded='true'] span::after {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--text);
}

/* Menú plegado hasta 1079 px: con el selector de idioma, la barra completa no cabe antes */
@media (max-width: 1079px) {
  .head-dl {
    display: inline-flex;
    margin-left: auto;
  }

  .menu-btn {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 220ms var(--ease-out),
      visibility 0s linear 220ms;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 180ms ease,
      transform 220ms var(--ease-out);
  }

  .nav a:not(.btn) {
    min-height: 52px;
    padding: 0 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line-2);
  }

  /* la descarga ya está a la vista en la cabecera */
  .nav .btn {
    display: none;
  }

  .nav .lang {
    margin: 14px 0 0;
  }

  .nav .lang a {
    min-width: 64px;
    border: 2px solid var(--line-2);
  }
}

/* ——— Selector de idioma: «ES · EN», lleva a la misma página en el otro idioma ——— */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang span {
  color: var(--muted);
}

.nav .lang a,
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 0;
  transition: color 160ms ease;
}

.nav .lang a:hover,
.lang a:hover {
  color: var(--text);
}

.nav .lang a[aria-current],
.lang a[aria-current] {
  color: var(--em);
}

/* En el móvil táctil, el botón de la cabecera no baja el .exe: te lo envías al PC */
.head-dl--touch {
  display: none !important;
}

@media (pointer: coarse) and (max-width: 899px) {
  .head-dl--touch {
    display: inline-flex !important;
  }

  .head-dl--desk {
    display: none !important;
  }
}

/* Ventana estrecha con ratón: la descarga de la cabecera se queda en icono y, más estrecha aún, fuera (está en el hero) */
@media (max-width: 479px) {
  .head-dl--desk {
    width: 44px;
    padding: 0;
    font-size: 0;
  }
}

@media (max-width: 419px) {
  .head-dl--desk {
    display: none !important;
  }

  .menu-btn {
    margin-left: auto;
  }
}

/* «Envíatelo» de la cabecera: solo icono; en pantallas muy estrechas, fuera (está en el hero) */
.head-dl--touch {
  width: 44px;
  padding: 0;
}

@media (pointer: coarse) and (max-width: 389px) {
  .head-dl--touch {
    display: none !important;
  }

  .menu-btn {
    margin-left: auto;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding-top: clamp(24px, 3.6vw, 52px);
}

.hero::before {
  /* luz esmeralda muy suave detrás de la escena */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 60% at 80% 30%, rgba(157, 255, 63, 0.08), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1080px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 56px;
    align-items: center;
  }
}

/* Portátiles pequeños: la escena necesita la mitad del ancho para que el panel no se apriete */
@media (min-width: 1080px) and (max-width: 1279px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .switch-row b {
    white-space: nowrap;
    font-size: 14px;
  }
}

/* En pantallas grandes la escena crece un poco para no dejar huecos */
@media (min-width: 1600px) {
  .switch-row b {
    white-space: nowrap;
  }

  .hero .scene {
    zoom: 1.1;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 7px 12px 7px 9px;
  background: rgba(157, 255, 63, 0.08);
  border: 1px solid rgba(157, 255, 63, 0.22);
  color: var(--em);
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

.eyebrow i {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--em);
  box-shadow: 0 0 0 3px rgba(157, 255, 63, 0.18);
}

.hero h1 {
  font-size: clamp(2.5rem, 1rem + 3.4vw, 4.05rem);
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 .em {
  display: block;
}

.hero .lead {
  max-width: 34em;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.55;
}

.hero .lead strong {
  color: var(--text);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 28px;
}

.cta-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.cta-note a {
  color: var(--muted);
  font-weight: 400;
  text-decoration-color: rgba(138, 154, 124, 0.6);
}

.cta-note a:hover {
  color: var(--text-2);
}

.share {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}

@media (pointer: coarse) and (max-width: 899px) {
  .share {
    display: flex;
  }
}

.share p {
  color: var(--text-2);
  font-size: 15px;
}

.share-status {
  flex-basis: 100%;
  color: var(--em);
  font-size: 14px;
  font-weight: 600;
}

.share-status:empty {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  background: var(--frame);
  border: 2px solid var(--em);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transform: translateX(-50%);
}

.toast:empty {
  display: none;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.dl-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dl-meta li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--em-2);
}

.dl-meta .ver {
  color: var(--text-2);
  font-weight: 600;
}

/* Escena compacta para el primer pantallazo del móvil */
.mini {
  display: none;
}

@media (max-width: 639px) {
  .mini {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 22px;
  }

  .mini .slot {
    width: 44px;
    height: 44px;
  }

  .mini .wire {
    flex: 1;
    min-width: 24px;
    max-width: 64px;
  }

  .mini__friends {
    display: flex;
    gap: 6px;
  }

  .mini .avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .mini__txt {
    margin-left: 12px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
  }

  .mini__txt b {
    display: block;
    color: var(--em);
  }
}

/* Escena: tu PC → las casas de tus amigos */
.scene {
  position: relative;
  display: grid;
}

@media (min-width: 640px) {
  .scene {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

.host {
  --s: 5px;
  padding: 18px;
  z-index: 2;
}

.host__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--frame);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.slot {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  background: var(--bg-2);
  border: 3px solid var(--frame);
  box-shadow:
    inset 3px 3px 0 rgba(0, 0, 0, 0.55),
    inset -3px -3px 0 rgba(255, 255, 255, 0.06);
}

.slot img {
  width: 22px;
  height: auto;
}

.host__name {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
}

.host__sub {
  color: var(--em-2);
  font-size: 13px;
  font-weight: 700;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 3px solid var(--frame);
}

.switch-row b {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.switch-row small {
  display: block;
  color: var(--em);
  font-size: 13px;
  font-weight: 600;
}

/* Interruptor: siempre encendido */
.toggle {
  position: relative;
  flex: none;
  width: 46px;
  height: 24px;
  background: var(--em-deep);
  border: 3px solid var(--frame);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: var(--em);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}

.spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.spec div {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px 9px;
  background: rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(5, 8, 4, 0.9);
}

.spec dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.spec dd {
  margin: 0;
  color: var(--em);
  font-weight: 800;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.host .btn {
  width: 100%;
  margin-top: 14px;
  min-height: 48px;
}

.friends {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.friend {
  display: grid;
  grid-template-columns: minmax(36px, 1fr) minmax(0, 176px);
  align-items: center;
}

.wire {
  position: relative;
  height: 4px;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(157, 255, 63, 0.4) 50%, transparent 50%);
  background-size: 8px 4px;
}

.wire span {
  position: absolute;
  inset: 0;
  animation: packet 2.2s linear infinite;
}

.wire span::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 4px;
  background: var(--em);
  box-shadow: 0 0 10px 1px rgba(157, 255, 63, 0.8);
}

.friend:nth-child(2) .wire span {
  animation-delay: -0.75s;
}

.friend:nth-child(3) .wire span {
  animation-delay: -1.5s;
}

@keyframes packet {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(100% + 8px));
  }
}

.fcard {
  --s: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  background: linear-gradient(160deg, var(--em), var(--em-2));
  border: 3px solid var(--c, var(--em));
  box-shadow: 0 0 0 2px var(--frame);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.avatar::after {
  content: '';
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  background: var(--em);
  border: 2px solid var(--frame);
}

.avatar--off::after {
  background: var(--muted);
}

.fcard b {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.fcard small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.fcard small svg {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--c);
}

.fcard .in {
  color: var(--em);
  font-weight: 700;
}

.fcard .joining {
  color: var(--gold);
  font-weight: 700;
}

.bar {
  display: block;
  height: 6px;
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--frame);
}

.bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  animation: fill 3.6s var(--ease-in-out) infinite;
}

@keyframes fill {
  0% {
    transform: scaleX(0.12);
  }

  70%,
  100% {
    transform: scaleX(0.9);
  }
}

.host__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.host__foot svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--em);
}

/* Al pasar el ratón o enfocar a un amigo: su cable se ilumina y, si estaba entrando, entra */
.fcard {
  cursor: default;
  outline: none;
}

.lift:has(.fcard:focus-visible) {
  outline: 3px solid var(--em);
  outline-offset: 3px;
}

.wire {
  transition: filter 200ms var(--ease-out);
}

.friend:hover .wire,
.friend:focus-within .wire {
  filter: brightness(1.8) drop-shadow(0 0 4px rgba(157, 255, 63, 0.7));
}

.friend:hover .wire span,
.friend:focus-within .wire span {
  animation-duration: 0.9s;
}

.in--later {
  display: none;
}

.friend--joining .avatar::after {
  background: var(--gold);
  transition: background 200ms ease;
}

.friend--joining:hover .joining,
.friend--joining:focus-within .joining {
  display: none;
}

.friend--joining:hover .in--later,
.friend--joining:focus-within .in--later {
  display: inline;
}

.friend--joining:hover .avatar::after,
.friend--joining:focus-within .avatar::after {
  background: var(--em);
}

.friend--joining:hover .bar i,
.friend--joining:focus-within .bar i {
  animation: none;
  transform: scaleX(1);
  background: var(--em);
  transition: transform 500ms var(--ease-out), background 200ms ease;
}

/* En móvil: lista vertical con el cable a la izquierda */
@media (max-width: 639px) {
  .hero .scene {
    display: none;
  }

  .friends {
    margin-top: 0;
    padding: 18px 0 0 14px;
  }

  .friends::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 33px;
    width: 4px;
    background-image: linear-gradient(180deg, rgba(157, 255, 63, 0.4) 50%, transparent 50%);
    background-size: 4px 8px;
  }

  .friend {
    grid-template-columns: 26px minmax(0, 1fr);
  }

}

/* ——— Secciones ——— */
.section {
  padding-top: var(--section);
}

.band {
  margin-top: var(--section);
  padding-block: var(--band);
  border-block: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(5, 8, 4, 0.75), rgba(5, 8, 4, 0.4));
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--em);
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 17px;
}

.kicker .n {
  align-self: center;
  padding: 3px 7px 2px;
  background: var(--em);
  color: var(--frame);
  font-family: var(--font);
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.h2 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  font-stretch: 110%;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.intro {
  max-width: 38em;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.15rem);
}

/* ——— Antes / ahora ——— */
.swap .h2 {
  max-width: 24ch;
}

.swaps {
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-2);
}

@media (min-width: 900px) {
  .swaps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 5vw, 72px);
  }
}

.swaps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}

.swaps .before {
  grid-column: 2;
}

.swaps .before {
  color: var(--muted);
  font-size: 15.5px;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 107, 95, 0.6);
  text-decoration-thickness: 2px;
}

.swaps .arrow {
  width: 22px;
  height: 22px;
  color: var(--em);
}

.swaps .after {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
}


/* ——— Funciones ——— */
.feature .wrap {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 1040px) {
  .feature--split .wrap {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .feature--flip .wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .feature--flip .copy {
    order: 2;
  }
}

.points {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.points li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
}

.points li::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-top: 7px;
  background: var(--em);
  box-shadow: 4px 4px 0 var(--em-deep);
}

.points b {
  display: block;
  font-size: 17.5px;
  line-height: 1.35;
}

.points span {
  display: block;
  margin-top: 3px;
  color: var(--text-2);
  font-size: 16px;
}

/* Marco propio para los recortes de la app */
.shot {
  --s: 6px;
  position: relative;
  margin: 0;
}

.shot__in {
  padding: 6px;
  background: var(--frame);
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.shot__bar i {
  width: 8px;
  height: 8px;
  background: var(--stone-hi);
}

.shot__bar i:first-child {
  background: var(--em);
}

.shot__bar span {
  margin-left: 6px;
}

.shot img {
  width: 100%;
  background: var(--bg-2);
}

.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* Los recortes grandes solo desde 640 px; debajo van maquetas o recortes estrechos */
@media (max-width: 639px) {
  .shot--wide {
    display: none;
  }
}

.only-narrow {
  display: none;
}

@media (max-width: 639px) {
  .only-narrow {
    display: block;
  }
}

/* Maquetas de la interfaz hechas en HTML */
.mock {
  --s: 5px;
  padding: 18px;
}

.mock__head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--em);
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 15px;
}

.mock__head svg {
  width: 18px;
  height: 18px;
}

.mock__title {
  margin-top: 10px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
}

.mock__sub {
  color: var(--muted);
  font-size: 14px;
}

.diff {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.diff li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid var(--frame);
  font-size: 15px;
  font-weight: 600;
}

.diff li > span:last-child {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.diff .sign {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--frame);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
}

.diff .add .sign {
  background: var(--em);
}

.diff .del .sign {
  background: var(--red);
}

.diff .upd .sign {
  background: var(--diamond);
}

.mock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 3px solid var(--frame);
  background: linear-gradient(180deg, #2c3b22, #1c2716);
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.2),
    inset -2px -2px 0 rgba(0, 0, 0, 0.45);
  font-size: 14px;
  font-weight: 700;
}

.chip-btn--em {
  background: linear-gradient(180deg, var(--em), var(--em-2));
  color: var(--frame);
}

.chip-btn svg {
  width: 16px;
  height: 16px;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.row b {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  background: rgba(255, 210, 95, 0.1);
  border: 1px solid rgba(255, 210, 95, 0.35);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.lock svg {
  width: 16px;
  height: 16px;
}

.stack {
  display: grid;
  gap: 22px;
  align-content: start;
}

/* 02 · sincronizado: cabecera a lo ancho y dos columnas debajo */
.sync-head {
  display: grid;
  gap: 20px;
}

@media (min-width: 1040px) {
  .sync-head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 72px;
    align-items: end;
  }

  .sync-head .intro {
    margin-top: 0;
  }
}

.sync-grid {
  display: grid;
  gap: 22px;
  margin-top: clamp(32px, 4vw, 52px);
}

@media (min-width: 900px) {
  .sync-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
  }
}

.world-band {
  margin-top: 22px;
}

.world-band .mock {
  display: grid;
  gap: 14px 20px;
  align-items: center;
}

@media (min-width: 760px) {
  .world-band .mock {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 20px 24px;
  }
}

.world-band__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--bg-2);
  border: 3px solid var(--frame);
  color: var(--diamond);
}

.world-band__icon svg {
  width: 28px;
  height: 28px;
}

.world-band .mock__title {
  margin-top: 4px;
}

.world-band .lock {
  margin-top: 0;
  justify-self: start;
}

.invite {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-2);
  border: 3px solid var(--frame);
}

.invite .slot {
  width: 40px;
  height: 40px;
}

.invite b {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.console {
  margin-top: 14px;
  padding: 12px 14px;
  background: #060905;
  border: 2px solid var(--frame);
  font-family: Consolas, 'Cascadia Mono', monospace;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
  overflow: hidden;
}

.console p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console .t {
  color: var(--muted);
}

.console .ok {
  color: var(--em);
}

.warn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 210, 95, 0.08);
  border: 2px solid rgba(255, 210, 95, 0.3);
}

.warn svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--gold);
}

.warn b {
  display: block;
  font-size: 15px;
}

.warn span {
  display: block;
  color: var(--text-2);
  font-size: 14px;
}

.invite-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 3px solid var(--frame);
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
}

.invite-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-link svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--em);
}

.invite-link .chip-btn {
  margin-left: auto;
  flex: none;
}

/* 04: dos recortes escalonados */
.duo {
  display: grid;
  gap: 22px;
}

@media (min-width: 640px) {
  .duo .shot:last-child {
    width: min(100%, 524px);
    justify-self: end;
    margin-top: -40px;
  }
}

/* ——— Cómo funciona ——— */
.steps {
  display: grid;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 52px);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  --s: 5px;
  position: relative;
  height: 100%;
  padding: clamp(24px, 3vw, 34px);
}

.step__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.prog {
  display: flex;
  gap: 4px;
  padding-bottom: 6px;
}

.prog i {
  width: 12px;
  height: 12px;
  background: var(--stone-hi);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.prog .on {
  background: var(--em);
  box-shadow: 3px 3px 0 var(--em-deep);
}

.step__n {
  display: block;
  color: var(--em);
  font-family: var(--pixel);
  font-weight: 600;
  font-size: clamp(3.2rem, 2.6rem + 2.4vw, 4.6rem);
  line-height: 0.9;
}

.step h3 {
  margin-top: 22px;
  font-size: 1.4rem;
  font-stretch: 108%;
}

.step p {
  margin-top: 10px;
  color: var(--text-2);
}

/* ——— Nada se rompe ——— */
.safe {
  display: grid;
  margin-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line-2);
}

@media (min-width: 760px) {
  .safe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 5vw, 72px);
  }
}

.safe li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
}

.safe svg {
  width: 30px;
  height: 30px;
  color: var(--em);
}

.safe b {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.safe span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 16px;
}

/* ——— Amigos y chat ——— */
.social .wrap {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 1040px) {
  .social .wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .social .lift {
    justify-self: end;
    width: 100%;
    max-width: 460px;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--stone-hi);
  border: 2px solid var(--frame);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.tags li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--em);
}

.social .mock .row .mock__sub {
  font-size: 13.5px;
}

/* ——— Todo lo que incluye ——— */
.all__count {
  font-family: var(--pixel);
  font-weight: 600;
  color: var(--em);
}

.all__grid {
  display: grid;
  gap: 0 clamp(28px, 3vw, 44px);
  margin-top: clamp(28px, 4vw, 48px);
}

@media (min-width: 700px) {
  .all__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
}

@media (min-width: 1100px) {
  .all__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.grp summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 8px 0;
  border-bottom: 3px solid var(--c);
  color: var(--c);
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  cursor: pointer;
}

.grp summary::-webkit-details-marker {
  display: none;
}

.grp summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 4px no-repeat,
    linear-gradient(currentColor, currentColor) center / 4px 14px no-repeat;
  transition: transform 220ms var(--ease-out);
}

.grp[open] summary::after {
  transform: rotate(45deg);
}

.grp summary small {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
}

.grp ul {
  margin: 6px 0 18px;
}

.grp li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.45;
}

.grp li b {
  color: var(--text);
  font-weight: 600;
}

/* En PC los cuatro grupos van abiertos (site.js) y se ven 6 por grupo hasta pulsar «Ver las 48» */
@media (min-width: 700px) {
  .grp summary {
    min-height: 0;
    padding: 0 0 14px;
    pointer-events: none;
    cursor: default;
  }

  .grp summary::after,
  .grp summary small {
    display: none;
  }

  .grp ul {
    margin-bottom: 0;
  }

  .all.is-cut .grp li:nth-child(n + 7) {
    display: none;
  }

  .more:not([hidden]) {
    display: flex;
    justify-content: center;
    margin-top: 36px;
  }
}

.more {
  display: none;
}

/* ——— Preguntas ——— */
.faq .wrap {
  display: grid;
  gap: 36px;
}

@media (min-width: 1040px) {
  .faq .wrap {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 72px;
    align-items: start;
  }

  .faq .wrap > :first-child {
    position: sticky;
    top: 110px;
  }
}

.qa {
  border-top: 1px solid var(--line-2);
}

.qa details {
  border-bottom: 1px solid var(--line-2);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--em), var(--em)) center / 14px 4px no-repeat,
    linear-gradient(var(--em), var(--em)) center / 4px 14px no-repeat;
  transition: transform 220ms var(--ease-out);
}

.qa details[open] summary::after {
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .qa summary:hover {
    color: var(--em);
  }
}

.qa .a {
  max-width: 40em;
  padding: 0 0 24px;
  color: var(--text-2);
}

.qa .a p + p {
  margin-top: 10px;
}

.qa details[open] .a {
  animation: reveal 260ms var(--ease-out);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ——— CTA final: panel esmeralda dentro del contenedor ——— */
.final {
  padding-block: var(--section);
}

.final__panel {
  --s: 8px;
  position: relative;
  display: grid;
  gap: 32px;
  padding: clamp(28px, 6vw, 72px);
  background: var(--em);
  color: var(--frame);
  overflow: hidden;
}

@media (min-width: 900px) {
  .final__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.final h2 {
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4rem);
  font-stretch: 114%;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.final p {
  max-width: 32em;
  margin-top: 18px;
  color: var(--em-ink);
  font-size: 18px;
  font-weight: 500;
}

.final .cta-row {
  margin-top: 30px;
}

.final .btn {
  background: linear-gradient(180deg, #1c2716, #0d1207);
  color: var(--text);
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.14),
    inset -3px -3px 0 rgba(0, 0, 0, 0.5),
    0 var(--depth) 0 var(--em-deep);
}

.final .btn:focus-visible,
.final a:focus-visible {
  outline-color: var(--frame);
}

.final small {
  display: block;
  margin-top: 16px;
  color: var(--em-ink);
  font-size: 14px;
  font-weight: 600;
}

.final small a {
  color: var(--frame);
}

.final .share p,
.final .share-status {
  color: var(--em-ink);
}

.final__mark {
  display: none;
}

@media (min-width: 900px) {
  .final__mark {
    display: block;
    width: clamp(150px, 15vw, 200px);
    aspect-ratio: 24 / 28;
    background: var(--em-2);
    -webkit-mask: url('/assets/img/p-plana.svg') center / contain no-repeat;
    mask: url('/assets/img/p-plana.svg') center / contain no-repeat;
  }
}

.tap {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ——— Pie ——— */
.site-foot {
  padding-block: 56px 36px;
  background: var(--frame);
  color: var(--text-2);
  font-size: 15px;
}

.foot-top {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .foot-top {
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.6fr));
  }
}

.foot-top p {
  max-width: 28em;
  margin-top: 16px;
}

.foot-top h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
}

.foot-top li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
}

.foot-top li a:hover {
  color: var(--em);
}

.foot-top li a[aria-current='page'] {
  color: var(--em);
}

.mojang {
  margin-top: 40px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 14px;
}

.mojang strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mojang p + p {
  margin-top: 8px;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.foot-bottom .lang {
  margin: 0;
}

.foot-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

/* «hecho con 💚 por poxi»: a GitHub */
.foot-bottom .made-by {
  /* Enlace dentro de la frase: zona táctil grande (relleno) sin estirar el renglón */
  display: inline;
  min-height: 0;
  padding: 14px 4px;
  margin: 0 -4px;
  color: var(--em);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-bottom .made-by:hover {
  color: var(--text);
}

/* ——— Páginas legales ——— */
.legal-hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line-2);
}

.legal-hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem);
  font-stretch: 112%;
  letter-spacing: -0.03em;
}

.legal-hero p {
  max-width: 40em;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 18px;
}

.legal-hero .updated {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.legal .wrap {
  display: grid;
  gap: 40px;
  padding-block: clamp(40px, 6vw, 72px) var(--section);
}

@media (min-width: 1040px) {
  .legal .wrap {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
  }
}

.toc {
  font-size: 15px;
}

@media (min-width: 1040px) {
  .toc {
    position: sticky;
    top: 100px;
  }
}

.toc h2 {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
}

.toc ol {
  border-left: 2px solid var(--line-2);
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0 4px 16px;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.35;
}

.toc a:hover {
  color: var(--em);
}

@media (max-width: 1039px) {
  .toc {
    padding: 18px 20px;
    background: var(--stone);
    border: 2px solid var(--frame);
  }
}

.prose {
  max-width: 44em;
  color: var(--text-2);
}

.prose h2 {
  margin: 56px 0 16px;
  color: var(--text);
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem);
  font-stretch: 106%;
  letter-spacing: -0.015em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 14px;
}

.prose ul {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--em-2);
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.prose a {
  overflow-wrap: anywhere;
}

.prose .box {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--stone);
  border: 2px solid var(--frame);
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.05);
}

.prose .box p + p {
  margin-top: 8px;
}

.prose dl {
  display: grid;
  margin-top: 16px;
  border-top: 1px solid var(--line-2);
}

.prose dl div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

@media (min-width: 640px) {
  .prose dl div {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }
}

.prose dt {
  color: var(--muted);
  font-weight: 600;
}

.prose dd {
  margin: 0;
  color: var(--text);
}

/* ——— 404 ——— */
.lost {
  display: grid;
  place-items: center;
  padding-block: clamp(72px, 12vw, 160px);
  text-align: center;
}

.lost .big {
  color: var(--em);
  font-family: var(--pixel);
  font-weight: 600;
  font-size: clamp(6rem, 3rem + 14vw, 13rem);
  line-height: 0.9;
  text-shadow: 8px 8px 0 var(--em-deep);
}

.lost h1 {
  margin-top: 28px;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  font-stretch: 112%;
}

.lost p {
  max-width: 30em;
  margin: 14px auto 0;
  color: var(--text-2);
}

.lost .cta-row {
  justify-content: center;
}

/* ——— Entrada al hacer scroll: va con el propio scroll (sin JS); donde no hay soporte, se ve tal cual ——— */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

/* Sin foco o con la pestaña oculta: todo quieto */
.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

/* lo que depende del scroll no se congela */
.is-paused .reveal {
  animation-play-state: running !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}

/* Legales en inglés: aviso de traducción */
.legal-hero .translation {
  max-width: 40em;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--stone);
  border: 2px solid var(--frame);
  color: var(--text-2);
  font-size: 15px;
}

/* 404 bilingüe */
.lost__en {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}

.lost__en h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  font-stretch: 110%;
}

.lost__en {
  max-width: 34em;
  margin-inline: auto;
}

/* ——— Página de invitación (/i/<código>) ——— */
.sprite {
  position: absolute;
}

.inv [hidden] {
  display: none !important;
}

.inv {
  padding-block: clamp(32px, 6vw, 88px) var(--section);
}

.inv__wrap {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .inv__wrap {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 64px;
  }

  .inv__how {
    margin-top: 72px;
  }
}

.inv__who {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar--xl {
  width: 72px;
  height: 72px;
  border-width: 4px;
  font-size: 32px;
}

.avatar--xl::after {
  width: 16px;
  height: 16px;
}

.inv h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.inv__state > h1 {
  margin-bottom: 4px;
}

.inv__sub {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 18px;
  font-weight: 600;
}

.inv__pack {
  --s: 5px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 20px;
}

.inv__icon {
  width: 64px;
  height: 64px;
}

.inv__icon img {
  width: 40px;
  height: 40px;
  image-rendering: auto;
}

.inv__icon #icon-def {
  width: 26px;
  height: auto;
}

.inv__pack-name {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.inv__pack-info {
  margin-top: 4px;
  color: var(--em-2);
  font-size: 14.5px;
  font-weight: 700;
}

.inv__what {
  max-width: 36em;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 17.5px;
}

.inv__full {
  max-width: 36em;
  font-weight: 600;
}

.inv__full span {
  color: var(--text);
}

.inv__exp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14.5px;
}

.inv__exp svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.inv__loading {
  color: var(--text-2);
  font-size: 18px;
  font-weight: 600;
}

.inv__skel {
  background: var(--stone-hi);
  border-color: var(--stone-hi);
  animation: skel 1.2s ease-in-out infinite alternate;
}

.inv__skel::after {
  display: none;
}

@keyframes skel {
  to {
    opacity: 0.45;
  }
}

.inv__how-in {
  --s: 5px;
  padding: clamp(22px, 3vw, 30px);
}

.inv__how h2 {
  color: var(--em);
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0;
}

.inv__how ol {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.inv__how li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
}

.inv__how .n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--em);
  color: var(--frame);
  font-weight: 800;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.inv__how b {
  display: block;
  font-size: 16.5px;
  line-height: 1.3;
}

.inv__how li span:not(.n) {
  display: block;
  margin-top: 3px;
  color: var(--text-2);
  font-size: 15px;
}

/* En el móvil no hay «Abrir en PoxiLauncher»: la descarga pasa a ser el botón principal */
@media (pointer: coarse) and (max-width: 899px) {
  .inv__dl {
    background: linear-gradient(180deg, var(--em), var(--em-2));
    color: var(--frame);
    box-shadow:
      inset 3px 3px 0 rgba(255, 255, 255, 0.45),
      inset -3px -3px 0 rgba(0, 0, 0, 0.22),
      0 var(--depth) 0 var(--em-deep);
  }
}

.inv .cta-row .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

@media (max-width: 379px) {
  .inv .btn--lg {
    padding: 0 14px;
    font-size: 16px;
  }
}
