/* PLAYABLE LAND - ESTILOS COMPARTIDOS (cartel de redes e imagenes pixeladas).
   Toma los colores (--card, --bd, --tx, --mut, --bg, --c, --p) de cada pagina. */

.pix {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* CARTEL DE REDES */
.vd-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 3, 12, 0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
  z-index: 60;
}
.vd-modal.show {
  opacity: 1;
  visibility: visible;
}
.vd-box {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px 22px 20px;
  background: var(--card);
  border: 2px solid var(--bd);
  border-radius: 16px;
  box-shadow: 0 24px 60px #0009;
  transform: translateY(14px) scale(0.95);
  transition: transform 0.25s;
}
.vd-modal.show .vd-box {
  transform: none;
}
.vd-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--net-bar);
}
.vd-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.vd-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--net);
}
.vd-ico svg {
  width: 26px;
  height: 26px;
}
.vd-head h2 {
  flex: 1;
  margin: 0;
  text-transform: uppercase;
  font:
    15px/1.3 "Press Start 2P",
    monospace;
  color: var(--tx);
}
.vd-x {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid var(--bd);
  border-radius: 10px;
  color: var(--tx);
  cursor: pointer;
  transition: border-color 0.3s;
}
.vd-x:hover {
  border-color: var(--p);
}
.vd-x svg {
  width: 18px;
  height: 18px;
}
.vd-x:focus-visible,
.vd-go:focus-visible {
  outline: 3px solid var(--p);
  outline-offset: 3px;
}
.vd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.vd-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: 12px;
}
.vd-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c), var(--p));
}
/* el logo de Playable Land es redondo: sin fondo de color atras */
.vd-thumb.is-logo {
  background: none;
}
.vd-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vd-name {
  flex: 1;
  min-width: 0;
  font:
    600 16px/1.35 Inter,
    system-ui,
    sans-serif;
  color: var(--tx);
}
/* BOTON "INGRESAR": con el mouse encima no se mueve, solo se ilumina */
.vd-go {
  flex: none;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--net);
  color: #fff;
  font:
    600 14px Inter,
    system-ui,
    sans-serif;
  text-decoration: none;
  transition: box-shadow 0.25s;
}
a.vd-go:hover {
  box-shadow: 0 0 0 2px var(--net-glow), 0 6px 22px var(--net-glow);
}
.vd-modal[data-net="discord"] {
  --net: #5662f6;
  --net-bar: #5662f6;
  --net-glow: #5662f6aa;
}
.vd-modal[data-net="youtube"] {
  --net: #ff0000;
  --net-bar: #ff0000;
  --net-glow: #ff0000aa;
}
.vd-modal[data-net="instagram"] {
  --net: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 40%, #d6249f 65%, #285aeb 100%);
  --net-bar: linear-gradient(90deg, #fd5949, #d6249f, #285aeb);
  --net-glow: #d6249faa;
}
.vd-modal[data-net="tiktok"] {
  --net: #000;
  --net-bar: linear-gradient(90deg, #25f4ee, #fe2c55);
}
.vd-modal[data-net="tiktok"] a.vd-go {
  box-shadow: inset 0 0 0 1px #ffffff40;
}
/* TikTok: brillo celeste y rosa (como su logo), asi se nota sobre fondo oscuro */
.vd-modal[data-net="tiktok"] a.vd-go:hover {
  box-shadow:
    inset 0 0 0 1px #ffffff66,
    -5px 3px 16px #25f4eecc,
    5px 3px 16px #fe2c55cc;
}
@media (max-width: 420px) {
  .vd-box {
    padding: 22px 14px 14px;
  }
  .vd-row {
    gap: 10px;
  }
  .vd-thumb {
    width: 44px;
    height: 44px;
  }
  .vd-name {
    font-size: 15px;
  }
  .vd-go {
    padding: 9px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vd-modal,
  .vd-box {
    transition: none;
  }
}
