/* Wii Blanquita — ajustes propios sobre el diseño original */

/* Marca */
.nsw-logo {
  text-transform: uppercase;
}

.nsw-logo .red {
  letter-spacing: -0.01em;
}

/* Modales */
.nsw-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.nsw-modal-backdrop .nsw-modal {
  width: min(32rem, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 1rem;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

/* Slider principal de la portada */
.nsw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nsw-hero-slider {
  position: relative;
  height: clamp(340px, 30vw, 400px);
  overflow: hidden;
  background: #0d0d0d;
  color: #fff;
  isolation: isolate;
}

.nsw-hero-track {
  position: absolute;
  inset: 0;
}

.nsw-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.nsw-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.nsw-hero-slide-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
}

.nsw-hero-slide-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -3px;
}

.nsw-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.045);
  transition: transform 7s ease;
}

.nsw-hero-slide.is-active .nsw-hero-img {
  transform: scale(1);
}

.nsw-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 12, 0.94) 0%, rgba(8, 10, 12, 0.7) 42%, rgba(8, 10, 12, 0.12) 78%, rgba(8, 10, 12, 0.35) 100%),
    linear-gradient(to top, rgba(8, 10, 12, 0.92) 0%, rgba(8, 10, 12, 0.25) 48%, transparent 75%);
}

.nsw-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.4rem;
}

.nsw-hero-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: end;
  gap: 2rem;
  width: 100%;
}

.nsw-hero-bg {
  filter: blur(28px) brightness(0.5) saturate(1.12);
  transform: scale(1.16);
}

.nsw-hero-slide.is-active .nsw-hero-bg {
  transform: scale(1.1);
}

.nsw-hero-cover {
  width: 190px;
  aspect-ratio: 492 / 680;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform: rotate(1.5deg);
}

.nsw-hero-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0b0d;
  transition: transform 0.35s ease;
}

.nsw-hero-slide-link:hover .nsw-hero-cover img {
  transform: scale(1.05);
}

.nsw-hero-copy {
  display: grid;
  gap: 0.7rem;
  max-width: 44rem;
}

.nsw-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nsw-hero-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.nsw-hero-copy h2 {
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nsw-hero-copy p {
  max-width: 38rem;
  color: #d1d5db;
  font-size: 0.94rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nsw-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: #9ca3af;
  font-size: 0.76rem;
  font-weight: 500;
}

.nsw-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin-top: 0.25rem;
  padding: 0.62rem 1rem;
  border-radius: 0.55rem;
  background: var(--red);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.15s ease;
}

.nsw-hero-slide-link:hover .nsw-hero-cta,
a.nsw-hero-cta:hover {
  background: var(--red-hov);
}

.nsw-hero-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  z-index: 6;
}

.nsw-hero-ui-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nsw-hero-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nsw-hero-dot {
  width: 16px;
  height: 16px;
  padding: 6px 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  background-clip: content-box;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.nsw-hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.nsw-hero-dot.is-active {
  width: 16px;
  background: var(--red);
}

.nsw-hero-side {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nsw-hero-counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nsw-hero-counter [data-slider-current] {
  color: #fff;
}

.nsw-hero-arrows {
  display: flex;
  gap: 0.4rem;
}

.nsw-hero-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(13, 13, 13, 0.4);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nsw-hero-arrow:hover {
  background: var(--red);
  border-color: var(--red);
}

@media (min-width: 901px) and (max-width: 1200px) {
  .nsw-hero-slider {
    height: 400px;
  }

  .nsw-hero-content {
    padding-bottom: 3.4rem;
  }

  .nsw-hero-cover {
    width: 190px;
  }
}

@media (max-width: 900px) {
  .nsw-hero-slider {
    height: 380px;
  }

  .nsw-hero-content {
    padding-bottom: 3.2rem;
  }

  .nsw-hero-game {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nsw-hero-cover {
    display: none;
  }

  .nsw-hero-bg {
    filter: blur(7px) brightness(0.5) saturate(1.12);
    transform: scale(1.06);
  }

  .nsw-hero-slide.is-active .nsw-hero-bg {
    transform: scale(1.02);
  }

  .nsw-hero-copy {
    max-width: 100%;
  }

  .nsw-hero-copy p {
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .nsw-hero-slider {
    height: 500px;
  }

  .nsw-hero-shade {
    background:
      linear-gradient(to top, rgba(8, 10, 12, 0.96) 0%, rgba(8, 10, 12, 0.6) 55%, rgba(8, 10, 12, 0.15) 100%);
  }

  .nsw-hero-copy h2 {
    font-size: 2rem;
    -webkit-line-clamp: 4;
  }

  .nsw-hero-copy p {
    -webkit-line-clamp: 2;
  }

  .nsw-hero-counter {
    display: none;
  }

  .nsw-hero-arrow {
    width: 34px;
    height: 34px;
  }
}

/* Estado vacío */
.nsw-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.nsw-empty h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.nsw-empty p {
  color: var(--muted);
  font-size: 0.92rem;
}

.nsw-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  text-align: center;
  padding: 2.75rem 1.5rem;
  background: var(--paper);
  border: 1px dashed #d5dde3;
  border-radius: 1rem;
}

.nsw-empty-state-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 0.15rem;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
}

.nsw-empty-state h3 {
  font-size: 1.3rem;
  color: var(--text);
}

.nsw-empty-state p {
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.nsw-empty-state .nsw-btn-red,
.nsw-empty-state .nsw-btn-outline {
  margin-top: 0.45rem;
}

/* Avisos */
.nsw-alert-error {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 600;
}

.nsw-alert-info {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Botón deshabilitado */
.nsw-btn-red.is-disabled,
.nsw-btn-red[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Contador de comentarios */
.nsw-comment {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.nsw-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.nsw-comment-head span {
  color: var(--muted);
}

.nsw-comment p {
  font-size: 0.9rem;
  color: var(--text);
}

/* Buscador del header */
.nsw-search-drawer .nsw-container form {
  margin: 0;
}

/* Ajustes móviles del logo */
@media (max-width: 480px) {
  .nsw-logo {
    font-size: 1.3rem;
  }
}

/* Skeleton sutil para imágenes que no existen */
.nsw-game-poster img,
.nsw-hb-thumb img,
.nsw-series-card img,
.nsw-guide-thumb img {
  background: #e5e7eb;
}

/* Portadas completas en las secciones del inicio (excepto Homebrew). */
.nsw-home .nsw-game-poster {
  aspect-ratio: 492 / 680;
}

.nsw-home .nsw-game-poster img {
  object-fit: cover;
}

.nsw-home .nsw-game-card {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.nsw-home .nsw-game-body {
  padding: 0.55rem 0.7rem 0.65rem;
  gap: 0.28rem;
  background: #fff;
}

.nsw-home .nsw-game-foot {
  padding-top: 0.15rem;
  border-top: 0;
}

.nsw-home .nsw-game-card:hover .nsw-game-poster img {
  transform: none;
}

.nsw-game-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.nsw-game-poster:hover::after {
  opacity: 0.13;
}

.nsw-chip-top,
.nsw-badges-bottom {
  z-index: 3;
}

/* Iconos dentro de enlaces de texto */
.nsw-footer-links a svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
}

.nsw-footer-empty {
  color: #9ca3af;
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 18rem;
}

.nsw-footer-minimal {
  padding: 1.5rem 0;
}

.nsw-footer-minimal .nsw-footer-bottom {
  padding-top: 0;
}

/* Botón flotante para volver arriba */
.nsw-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nsw-to-top:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(185, 28, 28, 0.4);
}

.nsw-to-top:focus-visible {
  outline: 3px solid #fca5a5;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .nsw-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
  }
}

/* Detalle de juego estilo ficha editorial */
.nsw-game-page {
  background: #f3f4f6;
  padding-bottom: 3.5rem;
}

.nsw-game-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  overflow: hidden;
  background: #0b0b0d;
  color: #fff;
}

.nsw-game-hero::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: 0;
  background-image: var(--game-bg);
  background-position: center;
  background-size: cover;
  filter: blur(20px) brightness(1.45) saturate(1.7);
  transform: scale(1.08);
}

.nsw-game-hero::after {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: 0;
  background-image: var(--game-cover);
  background-position: center;
  background-size: cover;
  mix-blend-mode: screen;
  opacity: 0.6;
  filter: blur(28px) saturate(2) brightness(1.25);
  transform: scale(1.12);
}

.nsw-game-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.72) 0%, rgba(7, 8, 10, 0.24) 48%, transparent 100%),
    linear-gradient(to top, rgba(7, 8, 10, 0.58) 0%, rgba(7, 8, 10, 0.05) 55%, transparent 100%);
}

.nsw-game-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.nsw-game-cover {
  width: 190px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.65rem;
  background: #111;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.nsw-game-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.nsw-game-hero-copy {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.nsw-game-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.nsw-game-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.nsw-game-breadcrumb a:hover {
  color: #fff;
}

.nsw-game-hero-copy h1 {
  max-width: 60rem;
  margin: 0.2rem 0 0;
  color: #fff;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 2.9rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.nsw-game-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.nsw-game-byline a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.nsw-game-version,
.nsw-game-exclusive {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.nsw-game-version {
  background: rgba(34, 197, 94, 0.17);
  color: #86efac;
}

.nsw-game-exclusive {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.nsw-game-rating {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fbbf24;
}

.nsw-game-stars {
  display: inline-flex;
  gap: 0.12rem;
  color: rgba(255, 255, 255, 0.22);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nsw-game-stars .is-full {
  color: #fbbf24;
}

.nsw-game-rating strong {
  color: #fff;
  font-size: 0.95rem;
}

.nsw-game-rating-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.nsw-game-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.nsw-game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.nsw-game-btn:hover {
  transform: translateY(-1px);
}

.nsw-game-btn-primary {
  background: var(--red);
  color: #fff;
}

.nsw-game-btn-primary:hover {
  background: var(--red-hov);
}

.nsw-game-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.nsw-game-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nsw-game-body {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 1.5rem;
  min-width: 0;
  padding-top: 2rem;
}

.nsw-game-body > *,
.nsw-game-panel {
  min-width: 0;
  max-width: 100%;
}

.nsw-game-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
  min-width: 0;
}

.nsw-game-info-col,
.nsw-game-info-row {
  min-width: 0;
}

#info,
#screenshots,
#about,
#downloads,
#related,
#comments {
  scroll-margin-top: 72px;
}

.nsw-comments-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.nsw-comments-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nsw-comment-as {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #f9fafb;
  color: var(--muted);
  font-size: 0.82rem;
}

.nsw-comment-as strong {
  color: var(--text);
}

.nsw-comment-thread {
  display: grid;
  gap: 0.45rem;
}

.nsw-comment-replies {
  display: grid;
  gap: 0.55rem;
  margin-left: 1.6rem;
  padding-left: 1rem;
  border-left: 2px solid #e5e7eb;
}

.nsw-comment-reply {
  background: #f9fafb;
}

.nsw-comment-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.nsw-comment-reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.nsw-comment-reply-toggle:hover {
  color: var(--red-hov);
}

.nsw-comment-reply-form {
  margin: 0.35rem 0 0.5rem 1.6rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #f9fafb;
}

#comments .nsw-form {
  margin-top: 0.5rem;
}

/* Catálogo WiiWare / Virtual Console */
.nsw-wad-page {
  padding-top: 0.4rem;
  padding-bottom: 3rem;
}

.nsw-howto-page,
.nsw-request-page {
  padding-top: 0.4rem;
}

.nsw-wad-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.nsw-wad-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nsw-wad-head h1 {
  margin: 0;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.nsw-wad-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.nsw-wad-filters {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1fr 0.9fr 1fr 1.1fr auto;
  gap: 0.7rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
}

.nsw-catalog-head-block {
  padding-top: 0.4rem;
}

.nsw-howto-page .nsw-faq-list {
  max-width: 100%;
}

.nsw-request-page .nsw-card-panel {
  max-width: 100%;
}

.nsw-request-page .nsw-form {
  max-width: 100%;
}

/* Flujo de verificación para descargas gratuitas */
.nsw-gate-page {
  padding: 2rem 1rem 3rem;
  background: #f3f4f6;
}

.nsw-gate-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.nsw-gate-head {
  margin-bottom: 1rem;
}

.nsw-gate-head h1 {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.nsw-gate-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.nsw-gate-banner,
.nsw-gate-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.85rem 0;
  text-align: center;
}

.nsw-gate-banner {
  display: grid;
  place-items: center;
  min-height: 70px;
  overflow: hidden;
  border: 1px dashed #cbd5e1;
  border-radius: 0.6rem;
  background: #fff;
  color: #94a3b8;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nsw-gate-ad {
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nsw-gate-ad img {
  display: block;
  max-width: 100%;
  height: auto;
}

.nsw-gate-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  text-align: center;
}

.nsw-gate-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.7rem;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red);
}

.nsw-gate-card h2 {
  margin: 0;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
}

.nsw-gate-meta {
  margin: 0.2rem 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.nsw-gate-card form {
  display: grid;
  gap: 0.7rem;
  max-width: 360px;
  margin: 0 auto;
}

.nsw-gate-captcha-box {
  display: grid;
  gap: 0.55rem;
}

.nsw-gate-captcha {
  display: grid;
  gap: 0.35rem;
  text-align: left;
}

.nsw-gate-captcha span {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.nsw-gate-captcha input {
  width: 100%;
  height: 42px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font: inherit;
}

.nsw-gate-card .nsw-btn-red {
  width: 100%;
  margin: 0.6rem 0 0.45rem;
  border-radius: 999px;
}

.nsw-gate-time {
  margin: 1rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.nsw-gate-time strong {
  color: var(--text);
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
}

.nsw-gate-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 100%);
  min-height: 42px;
  margin: 1rem auto 0.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.nsw-gate-download-form {
  width: min(280px, 100%);
  margin: 1.45rem auto 1.1rem;
}

.nsw-gate-download-form .nsw-gate-link {
  width: 100%;
  margin: 0;
}

.nsw-gate-link:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.nsw-gate-link[aria-disabled="true"],
.nsw-gate-link:disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
  pointer-events: none;
}

.nsw-gate-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.nsw-gate-download-form + .nsw-gate-note {
  margin-top: 1.05rem;
}

.nsw-adblock-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0.55rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #ffebeb;
  color: #d9534f;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.nsw-adblock-retry {
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: #d9534f;
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.nsw-adblock-retry:hover {
  background: #c9302c;
}

.nsw-gate-download-form + .nsw-adblock-msg {
  margin: 0.4rem auto 0.7rem;
}

.nsw-adblock-hidden {
  display: none !important;
}

.nsw-gate-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid #fca5a5;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #fff7f7, #fff);
}

.nsw-gate-premium span {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nsw-gate-premium h2 {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
}

.nsw-gate-premium p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.nsw-gate-premium .nsw-btn-red {
  flex-shrink: 0;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .nsw-gate-premium {
    flex-direction: column;
    align-items: flex-start;
  }

  .nsw-gate-premium .nsw-btn-red {
    width: 100%;
  }
}

.nsw-gate-faq {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
}

.nsw-gate-faq h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
}

.nsw-gate-faq details {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.nsw-gate-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.nsw-gate-faq p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.nsw-premium-page {
  padding-top: 0.4rem;
  padding-bottom: 3rem;
}

.nsw-premium-current {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #fde68a;
  border-radius: 0.7rem;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.86rem;
}

.nsw-premium-current a {
  margin-left: auto;
  color: var(--red);
  font-weight: 700;
}

.nsw-premium-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.nsw-premium-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
}

.nsw-premium-card:nth-child(2) {
  border-color: #fca5a5;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.12);
}

.nsw-premium-days {
  width: fit-content;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  background: #fee2e2;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nsw-premium-card h2 {
  margin: 0;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
}

.nsw-premium-price {
  color: var(--text);
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.nsw-premium-card ul {
  display: grid;
  gap: 0.25rem;
  margin: 0 0 0.35rem;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.nsw-premium-card .nsw-btn-red {
  width: 100%;
  margin-top: auto;
  border-radius: 999px;
}

.nsw-premium-help {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.nsw-premium-help h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
}

.nsw-premium-help details {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.86rem;
}

.nsw-premium-help summary {
  cursor: pointer;
  font-weight: 700;
}

.nsw-premium-help p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.nsw-premium-success {
  max-width: 620px;
}

.nsw-premium-success code {
  display: inline-block;
  margin: 0.35rem 0 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .nsw-premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nsw-premium-grid {
    grid-template-columns: 1fr;
  }
}
.nsw-account-page {
  padding-top: 0.4rem;
  padding-bottom: 3rem;
}

.nsw-reset-page {
  padding-top: 0.4rem;
  padding-bottom: 3rem;
}

.nsw-reset-card {
  max-width: 620px;
}

.nsw-reset-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
}

.nsw-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.nsw-account-card {
  padding: 1.4rem;
}

.nsw-account-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
}

.nsw-account-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nsw-account-avatar {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red);
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.nsw-account-identity h2 {
  margin: 0;
}

.nsw-account-identity p {
  margin: 0.15rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.nsw-account-role {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nsw-account-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1.2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.nsw-account-meta dt {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nsw-account-meta dd {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.nsw-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nsw-account-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.nsw-account-form {
  max-width: 100%;
}

.nsw-account-admin-card {
  border-color: #fecaca;
  background: #fff7f7;
}

.nsw-account-premium-card {
  border-color: #fde68a;
  background: #fffbeb;
}

.nsw-account-coupons {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #fde68a;
}

.nsw-account-coupons strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #92400e;
}

.nsw-account-coupons code {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.45rem;
  border-radius: 0.3rem;
  background: #fff;
  color: #92400e;
  font-size: 0.78rem;
}

.nsw-account-coupon-form {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #fde68a;
}

.nsw-account-admin-card .nsw-btn-red {
  margin-top: 0.2rem;
}

@media (max-width: 800px) {
  .nsw-account-grid {
    grid-template-columns: 1fr;
  }
}

/* Autenticación en ventana modal */
.nsw-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.nsw-auth-modal[hidden] {
  display: none !important;
}

.nsw-auth-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.nsw-auth-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.nsw-auth-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text);
  cursor: pointer;
}

.nsw-auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
  padding-right: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.nsw-auth-tabs button {
  padding: 0.55rem 0.7rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.nsw-auth-tabs button.is-active {
  border-color: var(--red);
  color: var(--red);
}

.nsw-auth-dialog h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.9rem;
}

.nsw-auth-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.nsw-auth-panel {
  display: grid;
  gap: 0.75rem;
}

.nsw-auth-panel[hidden] {
  display: none !important;
}

.nsw-auth-panel .nsw-btn-red {
  width: 100%;
  margin-top: 0.2rem;
  border-radius: 999px;
}

.nsw-auth-recover-link {
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.nsw-auth-recover-link:hover {
  text-decoration: underline;
}

.nsw-flashes {
  position: fixed;
  top: 90px;
  right: 1.25rem;
  z-index: 130;
  display: grid;
  gap: 0.4rem;
  width: min(390px, calc(100vw - 2rem));
  pointer-events: none;
}

.nsw-flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  font-size: 0.82rem;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nsw-flash.is-hiding {
  opacity: 0;
  transform: translateY(-5px);
}

.nsw-flash-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  cursor: pointer;
}

.nsw-flash-close:hover {
  background: #e2e8f0;
  color: var(--text);
}

@media (max-width: 640px) {
  .nsw-flashes {
    top: 76px;
    right: 0.75rem;
    width: calc(100vw - 1.5rem);
  }
}

/* Menú de cuenta del header */
.nsw-account {
  position: relative;
}

.nsw-account-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 70;
  width: 230px;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.nsw-account-menu[hidden] {
  display: none !important;
}

.nsw-account-head {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.25rem;
}

.nsw-account-head strong {
  color: var(--text);
  font-size: 0.85rem;
}

.nsw-account-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nsw-account-menu > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.45rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.nsw-account-menu > a:hover {
  background: #f8fafc;
  color: var(--red);
}

.nsw-account-menu > a.is-danger {
  color: var(--red);
}

.nsw-catalog-filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr auto;
  gap: 0.7rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
}

.nsw-catalog-filters > div {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.nsw-catalog-filters label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nsw-catalog-filters input,
.nsw-catalog-filters select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--text);
  font-size: 0.8rem;
}

.nsw-catalog-filters > .nsw-wad-filter-actions {
  display: flex;
}

.nsw-wad-filters > div {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.nsw-wad-filters label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nsw-wad-filters input,
.nsw-wad-filters select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--text);
  font-size: 0.8rem;
}

.nsw-wad-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.nsw-wad-filters > .nsw-wad-filter-actions {
  display: flex;
}

.nsw-wad-filter-actions .nsw-btn-red {
  min-height: 38px;
  padding: 0 0.9rem;
  font-size: 0.78rem;
}

.nsw-wad-filter-actions a {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.nsw-wad-alphabet {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  gap: 0.25rem;
  margin: 1rem 0;
}

.nsw-wad-alphabet a {
  flex: 1 1 0;
  min-width: 0;
}

.nsw-wad-alphabet a:first-child {
  flex: 1.6 1 0;
  min-width: 52px;
}

.nsw-wad-alphabet a,
.nsw-wad-pagination a {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.nsw-wad-alphabet a:hover,
.nsw-wad-alphabet a.is-active,
.nsw-wad-pagination a:hover,
.nsw-wad-pagination a.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.nsw-wad-list {
  display: grid;
  gap: 0.55rem;
}

.nsw-wad-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
}

.nsw-wad-row:hover {
  border-color: #fca5a5;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.nsw-wad-row-main {
  min-width: 0;
}

.nsw-wad-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.nsw-wad-badge {
  padding: 0.16rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nsw-wad-badge.is-wiiware {
  background: #eff6ff;
  color: #1d4ed8;
}

.nsw-wad-badge.is-vc {
  background: #f0fdf4;
  color: #15803d;
}

.nsw-wad-badge.is-soft {
  background: #f1f5f9;
  color: #64748b;
}

.nsw-wad-row h2 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nsw-wad-row p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.nsw-wad-download {
  flex-shrink: 0;
  border-radius: 999px;
  font-size: 0.78rem;
}

.nsw a.nsw-wad-download,
.nsw a.nsw-wad-download:visited,
.nsw a.nsw-wad-download:hover {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.nsw-wad-empty {
  padding: 2.5rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.nsw-wad-pagination {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1.4rem;
}

.nsw-wad-pagination span {
  align-self: center;
  color: var(--muted);
}

@media (max-width: 640px) {
  .nsw-wad-alphabet {
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .nsw-wad-alphabet a {
    flex: 0 0 32px;
  }

  .nsw-wad-alphabet a:first-child {
    flex-basis: 54px;
  }
}

@media (max-width: 1000px) {
  .nsw-wad-filters,
  .nsw-catalog-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nsw-wad-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .nsw-wad-filters,
  .nsw-catalog-filters {
    grid-template-columns: 1fr 1fr;
  }

  .nsw-wad-search,
  .nsw-catalog-search,
  .nsw-wad-filter-actions {
    grid-column: 1 / -1;
  }

  .nsw-wad-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .nsw-wad-download {
    width: 100%;
  }

  .nsw-wad-row h2 {
    white-space: normal;
  }
}

/* Pantalla de preparación de descarga */
.nsw-download-wait-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 3rem 1rem;
  background: #f3f4f6;
}

.nsw-download-wait-card {
  width: 100%;
  max-width: 760px;
  padding: 2.8rem 2rem 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.03);
}

.nsw-download-wait-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red);
}

.nsw-download-wait-card h1 {
  margin: 0 0 0.8rem;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.nsw-download-wait-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.nsw-download-wait-pills span {
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 600;
}

.nsw-download-progress {
  width: min(380px, 100%);
  height: 8px;
  margin: 0 auto 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.nsw-download-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 0.12s linear;
}

.nsw-download-wait-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.nsw-download-reveal {
  margin-top: 1.4rem;
}

.nsw-download-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 210px;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nsw a.nsw-download-now,
.nsw a.nsw-download-now:visited,
.nsw a.nsw-download-now:hover {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.nsw-download-now:hover {
  background: var(--red-hov);
}

.nsw p.nsw-download-fallback {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.nsw-download-fallback a {
  color: var(--red);
  font-weight: 600;
}

.nsw-download-pending {
  display: grid;
  gap: 0.25rem;
  max-width: 28rem;
  margin: 0 auto;
  color: #b91c1c;
  font-size: 0.85rem;
}

.nsw-download-pending span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nsw-download-back {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.nsw-download-back:hover {
  color: var(--red);
}

@media (max-width: 640px) {
  .nsw-download-wait-card {
    padding: 2rem 1.1rem 1.5rem;
  }

  .nsw-download-now {
    width: 100%;
  }
}

.nsw-game-panel {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.nsw-game-panel-head {
  margin-bottom: 1rem;
}

.nsw-game-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nsw-shot-controls {
  display: flex;
  gap: 0.4rem;
}

.nsw-shot-control-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.nsw-shot-control-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.nsw-game-panel-head h2,
.nsw-game-section-head h2 {
  display: inline-block;
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nsw-game-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
}

.nsw-game-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.nsw-game-info-row span {
  flex-shrink: 0;
  color: var(--muted);
}

.nsw-game-info-row strong,
.nsw-game-info-row a {
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.nsw-game-info-row a {
  color: var(--red);
  text-decoration: none;
}

.nsw-game-info-row a:hover {
  text-decoration: underline;
}

.nsw-game-shots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.7rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--red) #e5e7eb;
}

.nsw-game-shots::-webkit-scrollbar {
  height: 8px;
}

.nsw-game-shots::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 999px;
}

.nsw-game-shots::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 999px;
}

.nsw-game-shot {
  flex: 0 0 clamp(280px, 38vw, 380px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #111827;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.nsw-game-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nsw-game-shot:hover img {
  transform: scale(1.04);
}

.nsw-shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(5, 6, 8, 0.94);
}

.nsw-shot-lightbox[hidden] {
  display: none !important;
}

.nsw-shot-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.nsw-shot-stage img {
  display: block;
  max-width: min(86vw, 1200px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.4rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.nsw-shot-counter {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.nsw-shot-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.nsw-shot-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.nsw-shot-close:hover,
.nsw-shot-nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.nsw-game-panel .nsw-prose {
  max-width: none;
  color: #374151;
  font-size: 0.92rem;
  line-height: 1.75;
}

.nsw-game-panel .nsw-prose p {
  margin: 0 0 1rem;
}

.nsw-game-panel .nsw-prose p:last-child {
  margin-bottom: 0;
}

.nsw-game-report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.nsw-game-report h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.18rem;
}

.nsw-game-report p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.nsw-game-report .nsw-game-btn {
  flex-shrink: 0;
}

.nsw-game-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nsw-version-list {
  display: grid;
  gap: 0.75rem;
}

.nsw-version-card.nsw-version-card-full {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  padding: 1.1rem 1.25rem 2.35rem;
}

.nsw-version-card-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.nsw-version-card-main h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 1.35rem;
}

.nsw-version-card-main p {
  margin: 0;
}

.nsw-version-card.nsw-version-card-full .nsw-version-link {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  margin: 0;
}

.nsw-version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.nsw-version-blocks {
  display: grid;
  gap: 1.25rem;
}

.nsw-version-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  padding: 0 0.15rem;
}

.nsw-version-block-head > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nsw-version-block-head strong {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.nsw-version-page-link {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.nsw-version-page-link:hover {
  text-decoration: underline;
}

.nsw-game-page .nsw-dl-row .nsw-btn-red,
.nsw-dl-row .nsw-btn-red {
  border-radius: 999px;
}

.nsw .nsw-dl-row a.nsw-btn-red {
  border: 0;
  background: var(--red);
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: none;
}

.nsw .nsw-dl-row a.nsw-btn-red:hover {
  background: var(--red-hov);
  color: #fff;
}

.nsw-version-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nsw-version-card:hover {
  border-color: #fca5a5;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.nsw-version-badge {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nsw-version-card h3 {
  margin: 0;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
}

.nsw-version-card p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.nsw-version-link {
  margin-top: 0.35rem;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
}

.nsw-dl-meta {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .nsw-game-hero {
    min-height: 0;
  }

  .nsw-game-hero-inner {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.5rem;
    padding-top: 2.3rem;
    padding-bottom: 2.3rem;
  }

  .nsw-game-cover {
    width: 180px;
  }

  .nsw-game-hero-copy h1 {
    font-size: clamp(2.1rem, 5vw, 2.8rem);
  }

  .nsw-game-info-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .nsw-game-shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nsw-game-report {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nsw-game-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    align-items: start;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .nsw-game-cover {
    width: 148px;
  }

  .nsw-game-breadcrumb {
    font-size: 0.72rem;
  }

  .nsw-game-hero-copy h1 {
    font-size: 2rem;
  }

  .nsw-game-byline {
    gap: 0.4rem;
    font-size: 0.8rem;
  }

  .nsw-game-stars {
    font-size: 1rem;
  }

  .nsw-game-hero-actions {
    gap: 0.45rem;
  }

  .nsw-game-btn {
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
  }

  .nsw-game-panel {
    padding: 1.15rem;
  }

  .nsw-game-shots {
    grid-template-columns: 1fr;
  }

  .nsw-game-shot {
    flex-basis: 82vw;
  }

  .nsw-shot-lightbox {
    gap: 0.35rem;
    padding: 0.75rem;
  }

  .nsw-shot-nav {
    width: 38px;
    height: 38px;
  }

  .nsw-shot-close {
    top: 0.7rem;
    right: 0.7rem;
    width: 36px;
    height: 36px;
  }

  .nsw-version-grid {
    grid-template-columns: 1fr;
  }

  .nsw-version-card.nsw-version-card-full {
    padding-bottom: 1.1rem;
  }

  .nsw-version-card.nsw-version-card-full .nsw-version-link {
    position: static;
    margin-top: 0.35rem;
  }

  .nsw-game-info-row {
    font-size: 0.8rem;
  }

  .nsw-game-report {
    padding: 1.15rem;
  }
}

/* Formulario de filtros */
.nsw-filter-form {
  display: grid;
  gap: 1rem;
}

/* Autocompletado de juegos */
.nsw-ac-list {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.nsw-ac-item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-size: 0.86rem;
  color: var(--text);
  cursor: pointer;
}

.nsw-ac-item:last-child {
  border-bottom: 0;
}

.nsw-ac-item:hover {
  background: var(--red-light);
  color: var(--red-hov);
}

/* Enlaces de descarga pendientes */
.nsw-dl-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
}
