.nsw {
  --surface: #f5f7f8;
  --paper: #ffffff;
  --line: #e2e8ec;
  --text: #152226;
  --muted: #6b7280;
  --sub: #9ca3af;
  --red: #dc2626;
  --red-hov: #b91c1c;
  --red-light: #fee2e2;
  --dark: #0d0d0d;
  --container: 1280px;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-dm-sans), "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: clip;
}

.nsw *,
.nsw *::before,
.nsw *::after {
  box-sizing: border-box;
}

.nsw a {
  color: inherit;
  text-decoration: none;
}

.nsw h1,
.nsw h2,
.nsw h3,
.nsw h4 {
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.nsw p {
  margin: 0;
}

.nsw button {
  font: inherit;
  cursor: pointer;
}

.nsw-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .nsw-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nsw-container {
    padding: 0 2rem;
  }
}

/* ===== Header ===== */
.nsw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nsw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 57px;
  padding: 0.2rem 0;
}

.nsw-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-barlow-condensed), "Barlow Condensed", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}

.nsw-logo-img {
  display: block;
  width: auto;
  max-width: 230px;
  max-height: 120px;
  object-fit: contain;
}

.nsw-logo .red {
  color: var(--red);
}

.nsw-logo .dark {
  color: var(--text);
}

.nsw-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1200px) {
  .nsw-nav {
    display: flex;
  }
}

.nsw-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nsw-nav a:hover,
.nsw-nav a.active {
  color: var(--red);
  background: rgba(220, 38, 38, 0.06);
}

.nsw-nav a svg {
  color: #6b7280;
  flex-shrink: 0;
}

.nsw-nav a:hover svg,
.nsw-nav a.active svg {
  color: var(--red);
}

.nsw-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nsw-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nsw-icon-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.nsw-menu-btn {
  display: inline-flex;
}

@media (min-width: 1200px) {
  .nsw-menu-btn {
    display: none;
  }
}

.nsw-search-drawer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 0.75rem 0;
}

.nsw-search-drawer form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nsw-search-drawer input {
  flex: 1;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
}

.nsw-mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 0.75rem 1rem 1rem;
  display: grid;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nsw-mobile-nav {
    display: none;
  }
}

.nsw-mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nsw-mobile-nav a:hover,
.nsw-mobile-nav a.active {
  background: var(--red-light);
  color: var(--red);
}

/* ===== Hero Banner ===== */
.nsw-hero-banner {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #1f2937;
}

@media (min-width: 768px) {
  .nsw-hero-banner {
    height: 360px;
  }
}

.nsw-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.nsw-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 247, 248, 0.05) 0%,
    rgba(245, 247, 248, 0.15) 60%,
    #f5f7f8 100%
  );
}

/* ===== Floating Search & Filter Card ===== */
.nsw-search-wrap {
  position: relative;
  z-index: 30;
  margin-top: -64px;
}

.nsw-search-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nsw-search-card {
    padding: 1.75rem 2rem;
  }
}

.nsw-search-head {
  text-align: center;
  display: grid;
  gap: 0.25rem;
}

.nsw-search-head h1 {
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--text);
}

@media (min-width: 640px) {
  .nsw-search-head h1 {
    font-size: 2.15rem;
  }
}

.nsw-search-head h1 .accent {
  color: var(--red);
}

.nsw-search-head p {
  color: var(--muted);
  font-size: 0.9rem;
}

.nsw-search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
}

.nsw-search-form svg {
  color: var(--sub);
  flex-shrink: 0;
}

.nsw-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  height: 38px;
  outline: none;
}

.nsw-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 1.25rem;
  height: 38px;
  border: 0;
  border-radius: 0.6rem;
  background: var(--red);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.nsw-btn-red:hover {
  background: var(--red-hov);
}

.nsw-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.nsw-btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.nsw-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .nsw-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nsw-filter-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.nsw-select {
  width: 100%;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}

.nsw-sort-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.nsw-sort-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}

.nsw-sort-pill:hover {
  border-color: var(--red);
  color: var(--red);
}

.nsw-sort-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ===== Section Heading with bicolor bar ===== */
.nsw-section {
  padding: 2.25rem 0;
}

.nsw-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.nsw-sec-title {
  display: grid;
  gap: 0.35rem;
}

.nsw-sec-title h2 {
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--text);
}

.nsw-sec-bar {
  display: flex;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
}

.nsw-sec-bar span:first-child {
  width: 38%;
  background: var(--red);
}

.nsw-sec-bar span:last-child {
  width: 62%;
  background: #fecaca;
}

.nsw-sec-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.nsw-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.nsw-view-all:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ===== Series Grid (3-col banner cards) ===== */
.nsw-series-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .nsw-series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nsw-series-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nsw-series-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  border-radius: 1rem;
  overflow: hidden;
  background: #152226;
  color: #fff;
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nsw-series-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.nsw-series-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nsw-series-card:hover img {
  transform: scale(1.05);
}

.nsw-series-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 12, 16, 0.94) 0%,
    rgba(10, 12, 16, 0.55) 45%,
    rgba(10, 12, 16, 0.05) 100%
  );
}

.nsw-series-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.45rem;
}

.nsw-series-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nsw-series-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.nsw-series-pub {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f87171;
}

.nsw-series-body h3 {
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.1;
}

.nsw-series-count {
  padding: 0.25rem 0.6rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

/* ===== Game Cards Grid & Rail ===== */
.nsw-rail-wrap {
  position: relative;
}

.nsw-rail-controls {
  display: flex;
  gap: 0.4rem;
}

.nsw-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.nsw-rail::-webkit-scrollbar {
  display: none;
}

.nsw-rail .nsw-game-card {
  flex: 0 0 182px;
}

@media (min-width: 640px) {
  .nsw-rail .nsw-game-card {
    flex: 0 0 198px;
  }
}

.nsw-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .nsw-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .nsw-game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nsw-game-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.nsw-game-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nsw-game-card:hover {
  border-color: #fca5a5;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.nsw-game-poster {
  position: relative;
  aspect-ratio: 300 / 489;
  background: #0b0b0d;
  overflow: hidden;
}

.nsw-poster-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(14px) brightness(0.5) saturate(1.2);
  transform: scale(1.08);
}

.nsw-game-poster img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.nsw-game-card:hover .nsw-game-poster img {
  transform: scale(1.04);
}

.nsw-chip-top {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nsw-pill-format {
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(13, 13, 13, 0.8);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nsw-pill-s2 {
  background: var(--red);
}

.nsw-badges-bottom {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.nsw-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(15, 23, 42, 0.88);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nsw-badge::before {
  content: "•";
  font-size: 0.8rem;
  line-height: 1;
}

.nsw-badge.exclusives {
  color: #f87171;
}

.nsw-badge.update {
  color: #c4b5fd;
}

.nsw-badge.dlc {
  color: #5eead4;
}

.nsw-badge.new {
  color: #fcd34d;
}

.nsw-game-body {
  padding: 0.65rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.nsw-game-body h3 {
  font-family: var(--font-dm-sans), "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nsw-game-card:hover .nsw-game-body h3 {
  color: var(--red);
}

.nsw-game-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nsw-star {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: #f59e0b;
  font-weight: 700;
  flex-shrink: 0;
}

.nsw-game-foot {
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.74rem;
}

.nsw-version {
  color: var(--muted);
  font-weight: 500;
}

.nsw-size {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--red);
  font-weight: 600;
  margin-left: auto;
}

/* ===== Homebrew Cards ===== */
.nsw-hb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .nsw-hb-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.nsw-hb-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nsw-hb-card:hover {
  border-color: #fca5a5;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.nsw-hb-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111827;
  overflow: hidden;
}

.nsw-hb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.nsw-hb-card:hover .nsw-hb-thumb img {
  transform: scale(1.05);
}

.nsw-hb-tag {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(15, 23, 42, 0.86);
  color: #34d399;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ===== Guides & News ===== */
.nsw-guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .nsw-guides-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nsw-guide-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nsw-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.nsw-guide-thumb {
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.nsw-guide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nsw-guide-body {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.nsw-guide-cat {
  display: inline-block;
  width: fit-content;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--red-light);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
}

.nsw-guide-body h3 {
  font-family: var(--font-dm-sans), "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.nsw-guide-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ===== Introduction SEO Section ===== */
.nsw-intro {
  background: var(--paper);
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding: 3rem 0;
}

.nsw-intro-inner {
  max-width: 56rem;
  display: grid;
  gap: 1rem;
}

.nsw-intro h2 {
  font-size: 1.75rem;
  color: var(--text);
}

.nsw-intro p,
.nsw-intro li {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.65;
}

.nsw-intro ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

/* ===== Footer ===== */
.nsw-footer {
  margin-top: auto;
  background: var(--dark);
  color: #d1d5db;
  padding: 3rem 0 1.75rem;
}

.nsw-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .nsw-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.nsw-footer-brand {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.nsw-footer-brand .nsw-logo .dark {
  color: #fff;
}

.nsw-footer-brand p {
  color: #9ca3af;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 24rem;
}

.nsw-social-row {
  display: flex;
  gap: 0.6rem;
}

.nsw-social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
}

.nsw-social-row a:hover {
  background: var(--red);
}

.nsw-footer h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.nsw-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.nsw-footer-links a:hover {
  color: #fff;
}

.nsw-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nsw-footer-tags a {
  padding: 0.3rem 0.65rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.07);
  color: #e5e7eb;
  font-size: 0.8rem;
}

.nsw-footer-tags a:hover {
  background: var(--red);
  color: #fff;
}

.nsw-footer-bottom {
  padding-top: 1.25rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.82rem;
}

/* ===== Breadcrumb & Inner Pages ===== */
.nsw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.nsw-breadcrumb a:hover {
  color: var(--red);
}

.nsw-page-head {
  padding: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.4rem;
}

.nsw-page-head h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  color: var(--text);
}

.nsw-page-head p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 48rem;
  line-height: 1.6;
}

.nsw-card-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}

.nsw-prose {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}

.nsw-prose h2 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.nsw-prose p,
.nsw-prose li {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.7;
}

.nsw-prose ul,
.nsw-prose ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

.nsw-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .nsw-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nsw-hub-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  display: grid;
  gap: 0.65rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.nsw-hub-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.nsw-hub-count {
  display: inline-block;
  width: fit-content;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--red-light);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
}

.nsw-hub-card h2 {
  font-size: 1.5rem;
}

.nsw-hub-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.nsw-hub-cta {
  color: var(--red);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== FAQ Accordion ===== */
.nsw-faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 56rem;
}

.nsw-faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
}

.nsw-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
}

.nsw-faq-ans {
  padding: 0 1.25rem 1.15rem;
  color: #374151;
  font-size: 0.92rem;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
}

/* ===== Forms ===== */
.nsw-form {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.nsw-field {
  display: grid;
  gap: 0.35rem;
}

.nsw-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.nsw-field input,
.nsw-field select,
.nsw-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.nsw-radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .nsw-radio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nsw-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

.nsw-radio-card.active {
  border-color: var(--red);
  background: #fef2f2;
}

.nsw-alert-ok {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== Detail Pages (Game & Homebrew) ===== */
.nsw-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}

.nsw-detail-hero.has-backdrop {
  background-size: cover;
  background-position: center;
}

.nsw-detail-hero.has-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.9);
}

.nsw-detail-hero.has-backdrop > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .nsw-detail-hero {
    grid-template-columns: 230px 1fr;
    align-items: start;
  }
}

.nsw-detail-cover {
  width: 100%;
  max-width: 230px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.nsw-detail-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.nsw-detail-info {
  display: grid;
  gap: 0.75rem;
}

.nsw-detail-info h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.nsw-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.nsw-info-table tr {
  border-bottom: 1px solid var(--line);
}

.nsw-info-table th {
  text-align: left;
  padding: 0.65rem 0.75rem 0.65rem 0;
  color: var(--muted);
  font-weight: 600;
  width: 34%;
  vertical-align: top;
}

.nsw-info-table td {
  padding: 0.65rem 0;
  color: var(--text);
  font-weight: 500;
}

.nsw-shots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .nsw-shots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.nsw-shots-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
}

.nsw-dl-group {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  display: grid;
  gap: 0.65rem;
}

.nsw-dl-mirrors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nsw-dl-mirrors a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
}

.nsw-dl-mirrors a:hover {
  border-color: var(--red);
  color: var(--red);
}

.nsw-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.nsw-modal {
  width: min(32rem, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 1rem;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

/* ===== Collections simple card (no banner) ===== */
.nsw-col-plain {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.nsw-col-plain:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.nsw-col-plain h3 {
  font-size: 1.4rem;
  color: var(--text);
}

.nsw-col-plain p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.nsw-col-plain-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
}

/* ===== Inner pages polish (Detail, Downloads, Hub, FAQ, Forms, Prose) ===== */
.nsw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 1.25rem 0 0.75rem;
}
.nsw-breadcrumb a {
  color: var(--muted);
}
.nsw-breadcrumb a:hover {
  color: var(--red);
}

.nsw-page-head {
  margin-bottom: 1.5rem;
}
.nsw-page-head h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--text);
  margin-bottom: 0.4rem;
}
.nsw-page-head p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
  max-width: 56rem;
  margin-top: 0.35rem;
}

.nsw-card-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}

.nsw-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.nsw-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.nsw-pill.red {
  background: var(--red-light);
  border-color: #fecaca;
  color: var(--red-hov);
}

.nsw-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.65rem;
  border: 0;
  background: var(--red);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.nsw-btn-red:hover {
  background: var(--red-hov);
  color: #ffffff;
}

.nsw-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.05rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}
.nsw-btn-outline:hover {
  border-color: var(--text);
}

.nsw-info-table {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--paper);
}
.nsw-info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.nsw-info-row:last-child {
  border-bottom: 0;
}
.nsw-info-k {
  font-weight: 700;
  color: var(--muted);
}
.nsw-info-v {
  color: var(--text);
  word-break: break-word;
}

.nsw-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
.nsw-shot {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
}
.nsw-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nsw-dl-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nsw-dl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.nsw-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.nsw-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem;
  border-radius: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.nsw-hub-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.nsw-hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: var(--red-light);
  color: var(--red);
  display: grid;
  place-items: center;
}
.nsw-hub-card h3 {
  font-size: 1.35rem;
  color: var(--text);
}
.nsw-hub-card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.nsw-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 56rem;
}
.nsw-faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
}
.nsw-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}
.nsw-faq-ans {
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.nsw-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nsw-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.nsw-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}
.nsw-field input,
.nsw-field select,
.nsw-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}
.nsw-field input:focus,
.nsw-field select:focus,
.nsw-field textarea:focus {
  outline: 2px solid var(--red-light);
  border-color: var(--red);
}

.nsw-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}
.nsw-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.nsw-radio-card.active {
  border-color: var(--red);
  background: var(--red-light);
}
.nsw-radio-card input {
  width: auto;
  margin-top: 0.2rem;
}

.nsw-alert-ok {
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 600;
  font-size: 0.9rem;
}

.nsw-prose h2 {
  font-size: 1.4rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}
.nsw-prose p {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.72;
  margin-bottom: 0.85rem;
}
.nsw-prose ul,
.nsw-prose ol {
  padding-left: 1.25rem;
  margin-bottom: 0.9rem;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.7;
}
.nsw-prose li {
  margin-bottom: 0.35rem;
}
