/* AIGame46 — Nexus Grid: home/detail (nx-) + shared embed */
:root {
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "Work Sans", system-ui, sans-serif;
  --font-display: "Syne", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 10px 18px;
  background: #365314;
  color: #ecfccb;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 12px;
}

/* ========== Home + detail — Nexus Grid / violet nebula ========== */
.nx-app {
  --nx-bg: #0b0912;
  --nx-bg-mesh: radial-gradient(1000px 520px at 12% -8%, rgba(124, 58, 237, 0.42), transparent 58%),
    radial-gradient(880px 480px at 96% 8%, rgba(6, 182, 212, 0.18), transparent 52%),
    linear-gradient(180deg, #0b0912 0%, #120a1c 48%, #0b0912 100%);
  --nx-surface: #14101f;
  --nx-muted-bg: rgba(124, 58, 237, 0.14);
  --nx-line: rgba(167, 139, 250, 0.22);
  --nx-ink: #f3e8ff;
  --nx-muted: #a8a0bc;
  --nx-accent: #a78bfa;
  --nx-accent-dark: #7c3aed;
  --nx-warm: #f472b6;
  --nx-max: 1160px;
  --nx-detail: 760px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--nx-ink);
  background: var(--nx-bg-mesh), var(--nx-bg);
}

.nx-app a {
  text-decoration: none;
  color: inherit;
}

.nx-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(20, 16, 31, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nx-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.nx-header__inner {
  max-width: var(--nx-max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.nx-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  outline-offset: 3px;
}
.nx-brand:focus-visible {
  outline: 2px solid var(--nx-accent);
}
.nx-brand img {
  width: auto;
  height: auto;
  max-height: 48px;
  max-width: none;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.nx-brand:hover img {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(124, 58, 237, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.92) inset,
    0 6px 20px rgba(124, 58, 237, 0.2),
    0 2px 6px rgba(5, 3, 18, 0.1);
}
@media (prefers-reduced-motion: reduce) {
  .nx-brand img {
    transition: none;
  }
  .nx-brand:hover img {
    transform: none;
  }
}

.nx-header__nav {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
}
@media (min-width: 880px) {
  .nx-header__nav {
    display: flex;
  }
}
.nx-header__nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--nx-muted);
}
.nx-header__nav a:hover {
  color: var(--nx-ink);
  background: var(--nx-muted-bg);
}
.nx-header__nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--nx-accent-dark), #5b21b6);
  color: #faf5ff;
}

.nx-header__search {
  margin-left: auto;
}
.nx-header__search form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nx-header__search input[type="search"] {
  width: min(200px, 42vw);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  color: var(--nx-ink);
  font: inherit;
  font-size: 0.86rem;
}
.nx-header__search button {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: var(--nx-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
.nx-header__search button:hover {
  background: var(--nx-accent-dark);
}

/* Index: two-row header — brand row + tab rail */
.nx-header--split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}
.nx-header--split .nx-header__inner {
  width: 100%;
}
.nx-header__rail {
  display: none;
  border-top: 1px solid var(--nx-line);
  background: rgba(12, 9, 18, 0.65);
}
@media (min-width: 880px) {
  .nx-header--split .nx-header__rail {
    display: block;
  }
}
.nx-header--split .nx-header__rail .nx-header__nav {
  max-width: var(--nx-max);
  margin: 0 auto;
  padding: 4px 1.25rem 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  justify-content: flex-start;
}
.nx-header--split .nx-header__rail .nx-header__nav a {
  padding: 10px 14px 8px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--nx-muted);
  background: transparent;
}
.nx-header--split .nx-header__rail .nx-header__nav a:hover {
  color: var(--nx-ink);
  background: transparent;
  border-bottom-color: rgba(167, 139, 250, 0.45);
}
.nx-header--split .nx-header__rail .nx-header__nav a[aria-current="page"] {
  color: var(--nx-ink);
  border-bottom-color: var(--nx-accent-dark);
  background: transparent;
}

.nav-toggle {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  color: var(--nx-ink);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
@media (min-width: 880px) {
  .nx-app .nav-toggle {
    display: none;
  }
}

.mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 3, 12, 0.72);
  padding: 72px 16px 24px;
}
body.nav-open .mobile-panel {
  display: block;
}
.mobile-panel-inner {
  background: var(--nx-surface);
  border-radius: var(--radius);
  border: 1px solid var(--nx-line);
  padding: 8px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.mobile-panel-inner a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--nx-ink);
}
.mobile-panel-inner a:hover {
  background: var(--nx-muted-bg);
  color: var(--nx-accent-dark);
}

.nx-page {
  flex: 1;
  width: 100%;
  max-width: var(--nx-max);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}
@media (min-width: 880px) {
  .nx-page {
    padding: 1.75rem 1.25rem 3rem;
  }
}

.nx-page--detail {
  max-width: var(--nx-detail);
}

.nx-page--home {
  max-width: var(--nx-max);
}

/* Home hero: copy + poster (replaces boxed intro) */
.nx-hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .nx-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2rem;
    margin-bottom: 2.25rem;
  }
}
.nx-hero__copy {
  padding: 1.25rem 0 0;
}
@media (min-width: 900px) {
  .nx-hero__copy {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.nx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.25rem;
}
.nx-hero__poster {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--nx-line);
  box-shadow: 0 20px 50px rgba(5, 3, 18, 0.12);
  min-height: 200px;
  background: #1a1430;
}
.nx-hero__poster-link {
  display: block;
  color: inherit;
  height: 100%;
}
.nx-hero__poster img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.nx-hero__poster-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.92));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nx-hero__poster-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c4b5fd;
}
.nx-hero__poster-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: #faf5ff;
  line-height: 1.2;
}
.nx-hero__poster-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #67e8f9;
}

.nx-intro {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 22, 48, 0.95) 0%, rgba(20, 16, 31, 0.92) 100%);
  border: 1px solid var(--nx-line);
  box-shadow: 0 12px 40px rgba(5, 3, 18, 0.35);
  position: relative;
  overflow: hidden;
}
.nx-intro::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 45%;
  height: 140%;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.18), transparent 70%);
  pointer-events: none;
}

.nx-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nx-accent-dark);
}

.nx-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.45rem);
  font-weight: 700;
  font-variation-settings: "SOFT" 50;
  margin: 0 0 0.5rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.nx-lede {
  margin: 0;
  color: var(--nx-muted);
  max-width: 38rem;
}

.nx-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
}
.nx-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nx-section-head__more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nx-accent-dark);
}
.nx-section-head__more:hover {
  text-decoration: underline;
}
.nx-section-head__lead h2 {
  margin: 0;
}
.nx-section-head__hint {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--nx-muted);
  line-height: 1.45;
  max-width: 36rem;
}

/* Page title (tags / search) — matches home typography */
.nx-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.05rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--nx-ink);
}

/* Sticky genre chips — top = sticky header height (single row mobile / split desktop) */
.nx-tabs {
  position: sticky;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -1rem 1.25rem;
  padding: 10px 1rem;
  background: rgba(20, 16, 31, 0.94);
  border-bottom: 1px solid var(--nx-line);
  scrollbar-width: thin;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  top: calc(52px + env(safe-area-inset-top, 0px));
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 880px) {
  .nx-tabs {
    top: calc(100px + env(safe-area-inset-top, 0px));
  }
}
.nx-tabs a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nx-muted);
  border: 1px solid transparent;
  text-decoration: none;
}
.nx-tabs a:hover {
  color: var(--nx-ink);
  background: var(--nx-muted-bg);
}
.nx-tabs a.active {
  background: linear-gradient(135deg, var(--nx-accent-dark), #5b21b6);
  color: #faf5ff;
}

.nx-search-stat {
  font-size: 0.88rem;
  color: var(--nx-muted);
  margin: -0.25rem 0 0.75rem;
}
.nx-search-stat strong {
  color: var(--nx-accent-dark);
}

.nx-empty-state {
  padding: 2rem 1.25rem;
  text-align: center;
  border: 1px dashed var(--nx-line);
  border-radius: var(--radius);
  background: var(--nx-surface);
  margin-top: 0.5rem;
}
.nx-empty-state .nx-h1 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

/* Mosaic grid — 7 cells: 2 + 3 + 2 on wide screens */
.nx-mosaic {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 0.25rem;
}
.nx-mosaic__cell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  min-height: 100px;
  box-shadow: 0 8px 26px rgba(5, 3, 18, 0.07);
}
.nx-mosaic__cell:nth-child(1),
.nx-mosaic__cell:nth-child(2) {
  grid-column: span 3;
}
.nx-mosaic__cell:nth-child(3),
.nx-mosaic__cell:nth-child(4),
.nx-mosaic__cell:nth-child(5) {
  grid-column: span 2;
}
.nx-mosaic__cell:nth-child(6),
.nx-mosaic__cell:nth-child(7) {
  grid-column: span 3;
}
@media (max-width: 639px) {
  .nx-mosaic {
    grid-template-columns: 1fr;
  }
  .nx-mosaic__cell:nth-child(n) {
    grid-column: auto;
    min-height: 140px;
  }
}
.nx-mosaic__link {
  display: block;
  height: 100%;
  color: inherit;
  position: relative;
}
.nx-mosaic__link img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.nx-mosaic__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.88));
}
.nx-mosaic__meta h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #faf5ff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.nx-mosaic__meta p {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #67e8f9;
}

/* Genre row — full-width strips, not pills */
.nx-genre-strip {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--nx-line);
  overflow: hidden;
  background: var(--nx-surface);
}
@media (min-width: 720px) {
  .nx-genre-strip {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nx-genre-strip__item {
    flex: 1 1 18%;
    min-width: 120px;
    border-right: 1px solid var(--nx-line);
    border-bottom: none;
  }
  .nx-genre-strip__item:last-child {
    border-right: none;
  }
}
.nx-genre-strip__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--nx-ink);
  border-bottom: 1px solid var(--nx-line);
  transition: background 0.15s ease;
}
.nx-genre-strip__item:last-child {
  border-bottom: none;
}
.nx-genre-strip__item:hover {
  background: var(--nx-muted-bg);
  color: var(--nx-accent-dark);
}
.nx-genre-strip__name {
  letter-spacing: -0.02em;
}
.nx-genre-strip__n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--nx-muted);
  font-weight: 700;
}

/* Playlist-style list (replaces card grid on home) */
.nx-listing {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(5, 3, 18, 0.05);
}
.nx-listing__row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--nx-line);
}
.nx-listing__row:last-child {
  border-bottom: none;
}
@media (min-width: 560px) {
  .nx-listing__row {
    grid-template-columns: 140px 1fr auto;
  }
}
.nx-listing__thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--nx-line);
}
.nx-listing__thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.nx-listing__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nx-listing__title a {
  color: var(--nx-ink);
}
.nx-listing__title a:hover {
  color: var(--nx-accent-dark);
}
.nx-listing__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--nx-muted);
  align-items: center;
}
.nx-listing__play {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
}
@media (min-width: 560px) {
  .nx-listing__play {
    grid-column: auto;
    margin-top: 0;
    justify-self: end;
  }
}

.nx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.5rem;
}
.nx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--nx-ink);
  box-shadow: 0 2px 8px rgba(5, 3, 18, 0.04);
}
.nx-pill:hover {
  border-color: var(--nx-accent);
  color: var(--nx-accent-dark);
}
.nx-pill span {
  font-size: 0.72rem;
  color: var(--nx-muted);
  font-weight: 600;
}

.nx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.nx-tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 26px rgba(5, 3, 18, 0.06);
}
.nx-tile__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.nx-tile__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.nx-tile__body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nx-tile__body h3 a {
  color: var(--nx-ink);
}
.nx-tile__body h3 a:hover {
  color: var(--nx-accent-dark);
}
.nx-tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--nx-muted);
  align-items: center;
}
.nx-tile__desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--nx-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nx-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--nx-muted-bg);
  color: var(--nx-accent-dark);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.nx-btn--fill {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}
.nx-btn--fill:hover {
  filter: brightness(1.06);
  color: #fff;
}
.nx-btn--fill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.nx-btn--ghost {
  background: transparent;
  color: var(--nx-ink);
  border: 2px solid var(--nx-line);
}
.nx-btn--ghost:hover {
  border-color: var(--nx-accent);
  color: var(--nx-accent-dark);
}

.nx-footer {
  margin-top: auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--nx-line);
  background: rgba(12, 9, 18, 0.88);
}
.nx-footer__grid {
  max-width: var(--nx-max);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .nx-footer__grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}
.nx-footer__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--nx-muted);
  line-height: 1.45;
}
.nx-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-footer__links a {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--nx-muted);
}
.nx-footer__links a:hover {
  color: var(--nx-accent-dark);
}
.nx-footer__copy {
  max-width: var(--nx-max);
  margin: 1.5rem auto 0;
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
}

.nx-footer--home {
  border-top: 3px solid rgba(124, 58, 237, 0.25);
}

/* Detail */
.nx-crumb {
  font-size: 0.85rem;
  color: var(--nx-muted);
  margin-bottom: 1rem;
}
.nx-crumb a {
  color: var(--nx-muted);
}
.nx-crumb a:hover {
  color: var(--nx-accent-dark);
}

.nx-detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.25rem;
}
.nx-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.nx-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nx-detail__tags li span {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--nx-muted-bg);
  color: var(--nx-accent-dark);
}
.nx-tag--hot {
  background: #ffedd5 !important;
  color: #c2410c !important;
}

.nx-prose {
  color: var(--nx-muted);
  margin-bottom: 1.5rem;
}
.nx-prose a {
  color: var(--nx-accent-dark);
  text-decoration: underline;
}
.nx-prose--note {
  font-size: 0.86rem;
  color: var(--nx-muted);
  margin: 0 0 1rem;
}

.nx-well {
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  box-shadow: 0 4px 20px rgba(5, 3, 18, 0.04);
}
.nx-well h2 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: 1.08rem;
}
.nx-well dl {
  margin: 0;
}
.nx-dl-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--nx-line);
  font-size: 0.88rem;
}
.nx-dl-row:last-child {
  border-bottom: 0;
}
.nx-dl-row dt {
  color: var(--nx-muted);
  font-weight: 600;
  margin: 0;
}
.nx-dl-row dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

/* ========== Catalog & legal — ember night / amber dock ========== */
.ar-app {
  --ar-bg: #1c1917;
  --ar-surface: #292524;
  --ar-elevated: #44403c;
  --ar-line: rgba(251, 191, 36, 0.12);
  --ar-text: #fafaf9;
  --ar-muted: #a8a29e;
  --ar-accent: #f59e0b;
  --ar-accent-dim: rgba(245, 158, 11, 0.15);
  --ar-max: 1140px;
  --ar-dock-h: 72px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ar-text);
  background: radial-gradient(ellipse 900px 500px at 50% -20%, rgba(245, 158, 11, 0.12), transparent),
    var(--ar-bg);
  font-family: var(--font-sans);
  padding-bottom: calc(var(--ar-dock-h) + env(safe-area-inset-bottom, 0px));
}

.ar-app a {
  text-decoration: none;
  color: inherit;
}

.ar-mast {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(28, 25, 23, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ar-line);
}

.ar-mast__inner {
  max-width: var(--ar-max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ar-text);
  letter-spacing: -0.02em;
}
.ar-brand:hover {
  color: var(--ar-accent);
}
.ar-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--ar-line);
}

.ar-mast__search {
  margin-left: auto;
}
.ar-mast__search form {
  display: flex;
  gap: 8px;
}
.ar-mast__search input[type="search"] {
  width: min(200px, 40vw);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ar-line);
  background: var(--ar-elevated);
  color: var(--ar-text);
  font: inherit;
  font-size: 0.85rem;
}
.ar-mast__search button {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--ar-accent);
  color: #1c1917;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}
.ar-mast__search button:hover {
  filter: brightness(1.08);
}

/* Catalog & info: two-row mast — brand row + tab rail (aligns with home) */
.ar-mast--split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}
.ar-mast--split .ar-mast__inner {
  width: 100%;
}
.ar-mast__rail {
  display: none;
  border-top: 1px solid var(--ar-line);
  background: rgba(41, 37, 36, 0.65);
}
@media (min-width: 880px) {
  .ar-mast--split .ar-mast__rail {
    display: block;
  }
}
.ar-mast__rail .ar-mast__nav {
  max-width: var(--ar-max);
  margin: 0 auto;
  padding: 4px 1.25rem 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  justify-content: flex-start;
}
.ar-mast__rail .ar-mast__nav a {
  padding: 10px 14px 8px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ar-muted);
  text-decoration: none;
}
.ar-mast__rail .ar-mast__nav a:hover {
  color: var(--ar-text);
  border-bottom-color: rgba(245, 158, 11, 0.45);
}
.ar-mast__rail .ar-mast__nav a[aria-current="page"] {
  color: var(--ar-text);
  border-bottom-color: var(--ar-accent);
}

.ar-app .nav-toggle {
  border-color: var(--ar-line);
  background: var(--ar-elevated);
  color: var(--ar-text);
}
@media (min-width: 880px) {
  .ar-app .nav-toggle {
    display: none;
  }
}

.ar-app .mobile-panel {
  padding-top: 64px;
}
.ar-app .mobile-panel-inner {
  background: var(--ar-surface);
  border-color: var(--ar-line);
}
.ar-app .mobile-panel-inner a {
  color: var(--ar-text);
}
.ar-app .mobile-panel-inner a:hover {
  background: var(--ar-elevated);
  color: var(--ar-accent);
}

.ar-page {
  flex: 1;
  width: 100%;
  max-width: var(--ar-max);
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.ar-page--tags {
  padding-top: 0.5rem;
}

.ar-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ar-accent);
  font-weight: 700;
}

.ar-display {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ar-lede {
  margin: 0 0 1.25rem;
  color: var(--ar-muted);
  max-width: 42rem;
}

.ar-search-stat {
  font-size: 0.88rem;
  color: var(--ar-muted);
  margin: -0.25rem 0 0.75rem;
}
.ar-search-stat strong {
  color: var(--ar-accent);
}

.ar-tabs {
  position: sticky;
  top: 56px;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -1rem 1.25rem;
  padding: 10px 1rem;
  background: rgba(28, 25, 23, 0.96);
  border-bottom: 1px solid var(--ar-line);
  scrollbar-width: thin;
}
@media (min-width: 880px) {
  .ar-tabs {
    top: 104px;
  }
}
.ar-tabs a {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ar-muted);
  border: 1px solid transparent;
}
.ar-tabs a:hover {
  color: var(--ar-text);
  background: var(--ar-elevated);
}
.ar-tabs a.active {
  background: var(--ar-accent);
  color: #1c1917;
}

.ar-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.ar-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ar-line);
  background: var(--ar-surface);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.ar-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.ar-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ar-card__body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ar-card__body h3 a {
  color: var(--ar-text);
}
.ar-card__body h3 a:hover {
  color: var(--ar-accent);
}
.ar-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ar-muted);
}
.ar-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ar-accent-dim);
  color: var(--ar-accent);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.ar-btn--fill {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1c1917;
}
.ar-btn--fill:hover {
  filter: brightness(1.06);
}

.ar-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  border: 1px dashed var(--ar-line);
  border-radius: var(--radius);
  background: var(--ar-surface);
}

.ar-prose {
  color: var(--ar-muted);
  line-height: 1.6;
}
.ar-prose a {
  color: var(--ar-accent);
  text-decoration: underline;
}

.ar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ar-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ar-line);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ar-text);
}
.ar-chip:hover {
  border-color: var(--ar-accent);
  color: var(--ar-accent);
}

.ar-legal {
  max-width: 42rem;
}
.ar-legal h1,
.ar-legal h2,
.ar-legal h3 {
  font-family: var(--font-display);
  color: var(--ar-text);
}
.ar-legal p,
.ar-legal li {
  color: var(--ar-muted);
}

.ar-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.86rem;
}
.ar-form input,
.ar-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ar-line);
  background: var(--ar-elevated);
  color: var(--ar-text);
  font: inherit;
}

/* Legal / forms — mint theme (unified with home) */
.nx-legal {
  max-width: 42rem;
}
.nx-legal h1,
.nx-legal h2,
.nx-legal h3 {
  font-family: var(--font-display);
  color: var(--nx-ink);
}
.nx-legal p,
.nx-legal li {
  color: var(--nx-muted);
}
.nx-legal a {
  color: var(--nx-accent-dark);
  text-decoration: underline;
}
.nx-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--nx-ink);
}
.nx-form input,
.nx-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  color: var(--nx-ink);
  font: inherit;
}

.ar-foot {
  margin-top: auto;
  padding: 1.75rem 1.25rem;
  border-top: 1px solid var(--ar-line);
  background: rgba(28, 25, 23, 0.9);
}
.ar-foot__grid {
  max-width: var(--ar-max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .ar-foot__grid {
    grid-template-columns: 2fr 1fr;
  }
}
.ar-foot__note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ar-muted);
}
.ar-foot__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ar-foot__links a {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ar-muted);
}
.ar-foot__links a:hover {
  color: var(--ar-accent);
}
.ar-foot__copy {
  max-width: var(--ar-max);
  margin: 1.25rem auto 0;
  font-size: 0.7rem;
  color: #78716c;
  text-align: center;
}

/* Bottom dock */
.ar-launch {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(41, 37, 36, 0.96);
  border: 1px solid var(--ar-line);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  max-width: calc(100vw - 24px);
}
.ar-launch a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ar-muted);
  min-width: 56px;
}
.ar-launch a:hover {
  color: var(--ar-text);
  background: var(--ar-elevated);
}
.ar-launch a[aria-current="page"] {
  color: #1c1917;
  background: var(--ar-accent);
}
.ar-launch__ico {
  font-size: 1.1rem;
  line-height: 1;
}

/* ========== Shared: game embed, comments, ads ========== */
.game-stage {
  border-radius: var(--radius);
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: var(--nx-surface);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 40px rgba(5, 3, 18, 0.35);
}

.game-stage-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #1e1630, #2a2140);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}
.game-mobile-exit {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: var(--nx-surface);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--nx-ink);
}
.game-stage-traffic {
  display: flex;
  gap: 6px;
}
.game-stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
}
.game-stage-dot--close {
  background: #f87171;
}
.game-stage-dot--min {
  background: #fbbf24;
}
.game-stage-dot--max {
  background: #4ade80;
}
.game-stage-label {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8a0bc;
}

.game-stage-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1a1430;
}

.game-play-poster {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.game-poster-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-play-poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(transparent 38%, rgba(5, 3, 18, 0.92));
}
.game-play-poster-text {
  margin: 0;
  color: #faf5ff;
  font-size: 0.9rem;
}

.game-main-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.game-stage-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: #1a1428;
  border-top: 1px solid rgba(124, 58, 237, 0.12);
}

.game-stage.is-mobile-theater {
  position: fixed;
  inset: 0;
  z-index: 300;
  border-radius: 0;
  border: none;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  box-sizing: border-box;
  background: #1a1430;
}
.game-stage.is-mobile-theater .game-stage-bar,
.game-stage.is-mobile-theater .game-stage-footer {
  flex-shrink: 0;
}
.game-stage.is-mobile-theater .game-stage-viewport {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: unset;
}
.game-stage.is-mobile-theater .game-stage-footer .nx-btn--fill {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
}
.game-stage.is-mobile-theater .game-stage-footer .nx-btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #faf5ff;
  background: transparent;
}
body.game-detail-no-scroll {
  overflow: hidden;
}

.game-panel {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
  box-shadow: 0 4px 20px rgba(5, 3, 18, 0.04);
}
.game-panel-head {
  margin-bottom: 10px;
}
.game-panel-title {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.game-feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.game-feature-card {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.12);
  border-left: 3px solid #7c3aed;
  font-size: 0.88rem;
  color: var(--nx-ink);
}

.game-faq-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.game-faq-card {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--nx-line);
  background: var(--nx-surface);
}
.game-faq-q {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 0.92rem;
}
.game-faq-a {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.comment-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.86rem;
  font-weight: 700;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124, 58, 237, 0.22);
  font: inherit;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}
.comment-meta {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: #64748b;
}
.comment-body {
  margin: 0;
  font-size: 0.88rem;
}

.ad-slot {
  margin: 1.25rem auto;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px dashed rgba(124, 58, 237, 0.35);
  background: rgba(20, 16, 31, 0.72);
  max-width: var(--nx-max, 1140px);
  box-sizing: border-box;
  text-align: center;
}
.ar-app .ad-slot {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(41, 37, 36, 0.5);
  max-width: var(--ar-max, 1140px);
}
.ad-slot-hint {
  margin: 0 auto 8px;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
  max-width: 100%;
}
.ar-app .ad-slot-hint {
  color: var(--ar-muted);
}
.ad-slot-inner {
  min-height: 48px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.ad-slot-inner > * {
  max-width: 100%;
}
.ad-slot-inner iframe,
.ad-slot-inner ins,
.ad-slot-inner img,
.ad-slot-inner > div {
  margin-left: auto;
  margin-right: auto;
}

@media (any-pointer: coarse) {
  .nx-btn,
  .ar-btn,
  .ar-launch a {
    min-height: 44px;
  }
}

/* ========== Deck shell — glass + lime accent (distinct from legacy templates) ========== */
.nx-app--deck {
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  font-family: var(--font-sans);
  --deck-ink: #f1f5f9;
  --deck-muted: #94a3b8;
  --deck-line: rgba(190, 242, 100, 0.14);
  --deck-surface: rgba(15, 23, 42, 0.72);
  --deck-glow: #bef264;
  --deck-glow-hot: #a3e635;
  --deck-glow-dim: #65a30d;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--deck-ink);
  background-color: #020617;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(190, 242, 100, 0.09), transparent 60%),
    radial-gradient(ellipse 700px 420px at 95% 20%, rgba(139, 92, 246, 0.12), transparent 55%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(34, 211, 238, 0.05), transparent 50%),
    linear-gradient(180deg, #020617 0%, #0f172a 40%, #020617 100%);
  background-attachment: fixed;
}
.nx-frame {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.nx-frame::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 0;
}
.nx-frame > * {
  position: relative;
  z-index: 1;
}

.nx-glass {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.75)) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow:
    0 0 0 1px rgba(190, 242, 100, 0.06) inset,
    0 20px 50px rgba(0, 0, 0, 0.45);
}

.nx-app--deck a {
  color: inherit;
  text-decoration: none;
}

.nx-dock {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0.65rem;
  border-right: 1px solid var(--deck-line);
  background: rgba(6, 10, 18, 0.92);
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100dvh;
  z-index: 95;
}

.nx-dock__brand {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--deck-line);
  box-shadow: 0 0 28px rgba(190, 242, 100, 0.12);
}
.nx-dock__brand img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nx-dock__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.nx-dock__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deck-muted);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.nx-dock__ico {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.85;
}
.nx-dock__lab {
  line-height: 1.1;
  text-align: center;
}
.nx-dock__link:hover {
  color: var(--deck-ink);
  background: rgba(190, 242, 100, 0.08);
}
.nx-dock__link.is-active,
.nx-dock__link[aria-current="page"] {
  color: #0f172a;
  background: linear-gradient(160deg, var(--deck-glow), var(--deck-glow-hot));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nx-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--deck-line);
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(14px);
}

.nx-bar__moblogo {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--deck-line);
}
.nx-bar__moblogo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.nx-bar__search {
  flex: 1 1 200px;
  margin-left: auto;
  min-width: 0;
}
.nx-bar__search form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nx-bar__search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--deck-line);
  background: var(--deck-surface);
  color: var(--deck-ink);
  font: inherit;
  font-size: 0.9rem;
}
.nx-bar__search button {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--deck-glow-hot), var(--deck-glow-dim));
  color: #0f172a;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-sans);
}
.nx-bar__search button:hover {
  filter: brightness(1.08);
}

@media (min-width: 900px) {
  .nx-app--deck {
    grid-template-columns: 76px 1fr;
  }
  .nx-dock {
    display: flex;
  }
  .nx-bar__moblogo {
    display: none;
  }
  .nx-app--deck .nav-toggle {
    display: none;
  }
}

.nx-page--deckhome {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.85rem 2.5rem;
  width: 100%;
}
@media (min-width: 900px) {
  .nx-page--deckhome {
    padding: 1.25rem 1.5rem 3rem;
  }
}

.nx-deck-kicker {
  margin: 1.5rem 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deck-glow);
}

/* Full-bleed cinema hero */
.nx-cinema {
  margin: 0 -0.85rem 1.5rem;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--deck-line);
  min-height: min(52vw, 340px);
  position: relative;
  background: var(--deck-surface);
}
@media (min-width: 900px) {
  .nx-cinema {
    margin-left: 0;
    margin-right: 0;
    border-radius: 20px;
  }
}

.nx-cinema__link {
  display: block;
  position: relative;
  color: inherit;
  min-height: min(52vw, 340px);
}
.nx-cinema__bg {
  width: 100%;
  height: 100%;
  min-height: min(52vw, 340px);
  object-fit: cover;
  display: block;
}
.nx-cinema__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(4, 10, 18, 0.92) 0%, rgba(4, 10, 18, 0.45) 48%, transparent 78%);
  pointer-events: none;
}
.nx-cinema__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 26rem;
}
.nx-cinema__eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--deck-glow);
}
.nx-cinema__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f0fdfa;
}
.nx-cinema__lead {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(241, 245, 249, 0.82);
  max-width: 36rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nx-cinema__type {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deck-glow);
}
.nx-cinema__go {
  pointer-events: none;
  background: linear-gradient(135deg, var(--deck-glow-hot), var(--deck-glow-dim)) !important;
  color: #0f172a !important;
}
.nx-cinema__empty {
  padding: 2rem 1.25rem;
}
.nx-cinema__empty .nx-lede {
  color: var(--deck-muted);
}

/* Horizontal spotlight rail */
.nx-ribbon-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.65rem;
}
.nx-ribbon-tools__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nx-ribbon-tools__btns {
  display: flex;
  gap: 6px;
}
.nx-ribbon-tools__nav {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--deck-line);
  background: var(--deck-surface);
  color: var(--deck-ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.nx-ribbon-tools__nav:hover {
  border-color: var(--deck-glow);
  color: var(--deck-glow);
}

.nx-ribbon {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 12px;
  margin: 0 -0.85rem 1.75rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 900px) {
  .nx-ribbon {
    margin-left: 0;
    margin-right: 0;
  }
}

.nx-ribbon__card {
  flex: 0 0 min(74vw, 280px);
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
}
.nx-ribbon__cover {
  display: block;
  position: relative;
  overflow: hidden;
}
.nx-ribbon__cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.nx-ribbon__card:hover .nx-ribbon__cover img {
  transform: scale(1.04);
}
.nx-ribbon__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, transparent 40%, rgba(255, 255, 255, 0.07) 50%, transparent 60%);
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.nx-ribbon__body {
  padding: 12px 14px 14px;
}
.nx-ribbon__name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.nx-ribbon__name a:hover {
  color: var(--deck-glow);
}
.nx-ribbon__desc {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--deck-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nx-ribbon__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.nx-tagpill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  background: rgba(190, 242, 100, 0.92);
}

/* Genre chips — horizontal glass strip */
.nx-chips-wrap {
  margin: 2rem 0 1.5rem;
}
.nx-chips-wrap__h {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nx-chips-mask {
  margin: 0 -0.85rem;
  padding: 4px 0 8px;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
@media (min-width: 900px) {
  .nx-chips-mask {
    margin-left: 0;
    margin-right: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }
}
.nx-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0.85rem 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.nx-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--deck-ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(10px);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.nx-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(190, 242, 100, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.nx-chip__ct {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(190, 242, 100, 0.15);
  color: var(--deck-glow);
}
.nx-chip--all {
  border-style: dashed;
  color: var(--deck-glow);
  background: rgba(190, 242, 100, 0.06);
}

/* Matrix grid */
.nx-matrix-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 2rem 0 0.85rem;
}
.nx-matrix-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.nx-matrix-head__more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--deck-glow);
}
.nx-matrix-head__more:hover {
  text-decoration: underline;
}

.nx-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 560px) {
  .nx-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .nx-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.nx-matrix__cell--feature {
  grid-column: 1 / -1;
}
@media (min-width: 560px) {
  .nx-matrix__cell--feature {
    grid-column: span 2;
  }
}
@media (min-width: 900px) {
  .nx-matrix__cell--feature {
    grid-column: span 2;
    grid-row: span 1;
  }
}
.nx-matrix__cell--feature .nx-matrix__shot img {
  aspect-ratio: 21 / 9;
  max-height: 220px;
}

.nx-matrix__cell {
  border-radius: 16px;
  overflow: hidden;
}
.nx-matrix__link {
  display: block;
  color: inherit;
}
.nx-matrix__shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.nx-matrix__meta {
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nx-matrix__t {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nx-matrix__d {
  margin: 4px 0 6px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--deck-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nx-matrix__g {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deck-glow);
}

.nx-footer--deck {
  margin-top: auto;
  border-top: 1px solid var(--deck-line);
  background: rgba(4, 8, 14, 0.88);
  padding: 1.75rem 1rem 2rem;
}
.nx-footer--deck .nx-footer__grid {
  max-width: 1200px;
}
.nx-footer--deck .nx-footer__note,
.nx-footer--deck .nx-footer__links a {
  color: var(--deck-muted);
}
.nx-footer--deck .nx-footer__links a:hover {
  color: var(--deck-glow);
}
.nx-footer--deck .nx-footer__copy {
  color: #5c7280;
}

/* Inner pages: deck frame + legacy typography */
.nx-app--deck:not(.nx-app--home) .nx-page {
  color: var(--deck-ink);
}
.nx-app--deck .nx-kicker,
.nx-app--deck .nx-h1,
.nx-app--deck .nx-lede {
  color: var(--deck-ink);
}
.nx-app--deck .nx-h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.nx-app--deck .nx-tile__desc {
  color: var(--deck-muted);
}
.nx-app--deck .nx-lede {
  opacity: 0.85;
}
.nx-app--deck .nx-grid .nx-tile {
  border-color: var(--deck-line);
  background: var(--deck-surface);
}
.nx-app--deck .nx-tile__body h3 a {
  color: var(--deck-ink);
}
.nx-app--deck .nx-btn--fill {
  background: linear-gradient(135deg, var(--deck-glow-hot), var(--deck-glow-dim));
  color: #0f172a;
}
.nx-app--deck .nx-btn--ghost {
  border-color: var(--deck-line);
  color: var(--deck-ink);
}

/* Deck: inner pages — tabs, detail, forms */
.nx-app--deck .nx-tabs {
  background: rgba(10, 14, 22, 0.94);
  border-bottom-color: var(--deck-line);
  box-shadow: none;
  top: calc(56px + env(safe-area-inset-top, 0px));
}
@media (min-width: 900px) {
  .nx-app--deck .nx-tabs {
    top: calc(56px + env(safe-area-inset-top, 0px));
  }
}
.nx-app--deck .nx-tabs a {
  color: var(--deck-muted);
}
.nx-app--deck .nx-tabs a:hover {
  color: var(--deck-ink);
  background: rgba(34, 211, 238, 0.08);
}
.nx-app--deck .nx-tabs a.active {
  background: linear-gradient(135deg, var(--deck-glow-hot), var(--deck-glow-dim));
  color: #0f172a;
}

.nx-app--deck .nx-page--detail {
  max-width: 900px;
}
.nx-app--deck .nx-detail__title {
  color: var(--deck-ink);
  font-family: var(--font-display);
}
.nx-app--deck .nx-crumb,
.nx-app--deck .nx-crumb a {
  color: var(--deck-muted);
}
.nx-app--deck .nx-crumb a:hover {
  color: var(--deck-glow);
}
.nx-app--deck .nx-well {
  border-color: var(--deck-line);
  background: rgba(15, 23, 41, 0.75);
  box-shadow: none;
}
.nx-app--deck .nx-well h2 {
  color: var(--deck-ink);
  font-family: var(--font-display);
}
.nx-app--deck .nx-dl-row {
  border-bottom-color: var(--deck-line);
}
.nx-app--deck .nx-prose {
  color: var(--deck-muted);
}
.nx-app--deck .nx-prose a {
  color: var(--deck-glow);
}
.nx-app--deck .nx-badge {
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
}

.nx-app--deck .game-stage {
  border-color: var(--deck-line);
  background: var(--deck-surface);
}
.nx-app--deck .game-stage-bar {
  background: linear-gradient(90deg, #0c1520, #111c2c);
}
.nx-app--deck .game-play-poster-overlay {
  background: linear-gradient(transparent 38%, rgba(4, 8, 14, 0.92));
}
.nx-app--deck .game-stage-footer {
  background: #0c1118;
  border-top-color: var(--deck-line);
}
.nx-app--deck .game-stage.is-mobile-theater {
  background: #070b12;
}

.nx-app--deck .comment-form input,
.nx-app--deck .comment-form textarea {
  background: var(--deck-surface);
  border-color: var(--deck-line);
  color: var(--deck-ink);
}
.nx-app--deck .comment-meta {
  color: var(--deck-muted);
}
.nx-app--deck .comment-item {
  border-bottom-color: var(--deck-line);
}

.nx-app--deck .nx-form label {
  color: var(--deck-ink);
}
.nx-app--deck .nx-form input,
.nx-app--deck .nx-form textarea {
  background: var(--deck-surface);
  border: 1px solid var(--deck-line);
  color: var(--deck-ink);
  border-radius: var(--radius-sm);
}
.nx-app--deck .nx-legal {
  color: var(--deck-muted);
}
.nx-app--deck .nx-legal a {
  color: var(--deck-glow);
}

.nx-app--deck .nx-empty-state {
  border-color: var(--deck-line);
  background: rgba(15, 23, 41, 0.55);
}
.nx-app--deck .nx-empty-state .nx-h1 {
  color: var(--deck-ink);
}

.nx-app--deck .ad-slot {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(10, 14, 22, 0.65);
}

.nx-app--deck .mobile-panel-inner {
  background: var(--deck-surface);
  border-color: var(--deck-line);
}
.nx-app--deck .mobile-panel-inner a:hover {
  background: rgba(34, 211, 238, 0.1);
  color: var(--deck-glow);
}

/* ========== AIGame46 hub — Ledger (warm paper / editorial / rust accent) ========== */

.hub-body--ledger {
  --hub-page-bg: #f2efe9;
}

.hub-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--hub-page-bg);
  color: #1c1917;
}

.hub-app {
  --hub-bg: transparent;
  --hub-surface: #fffcf7;
  --hub-card: #ffffff;
  --hub-border: #d6d3d1;
  --hub-muted: #57534e;
  --hub-text: #1c1917;
  --hub-accent: #c2410c;
  --hub-accent-2: #78350f;
  --hub-wash: rgba(194, 65, 12, 0.1);
  --hub-ink-soft: #44403c;
  --hub-font: "Source Sans 3", system-ui, sans-serif;
  --hub-display: "Newsreader", Georgia, "Times New Roman", serif;
  --hub-cyan: #0d9488;
  --hub-magenta: #9d174d;
  --hub-amber: #b45309;
  --hub-violet: #6b21a8;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--hub-font);
  color: var(--hub-text);
  background: var(--hub-bg);
  overflow-x: hidden;
}

.hub-app::before {
  display: block;
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, transparent, transparent 31px, rgba(28, 25, 23, 0.035) 31px, rgba(28, 25, 23, 0.035) 32px),
    linear-gradient(180deg, #faf8f5 0%, #f2efe9 55%, #efe9e0 100%);
}

.hub-app > * {
  position: relative;
  z-index: 1;
}

.hub-app a {
  color: inherit;
  text-decoration: none;
}

.hub-skip:focus {
  background: var(--hub-accent);
  color: #fff;
  outline: 2px solid #7c2d12;
}

/* Top bar */
.hub-top {
  position: sticky;
  top: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  padding: 14px clamp(14px, 3vw, 28px);
  border-bottom: 2px solid var(--hub-border);
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.hub-top__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.hub-top__logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.hub-top__logo:focus-visible {
  outline: 2px solid var(--hub-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.hub-top__logo img {
  display: block;
  width: auto;
  height: 44px;
  max-height: 48px;
  max-width: min(220px, 52vw);
  border: none;
  border-radius: 0;
  object-fit: contain;
}

.hub-top__nav {
  display: none;
  flex-wrap: wrap;
  gap: 2px 6px;
  justify-content: center;
}

@media (min-width: 900px) {
  .hub-top__nav {
    display: flex;
  }
}

.hub-top__a {
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--hub-muted);
  border-radius: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hub-top__a:hover {
  color: var(--hub-text);
  border-bottom-color: rgba(194, 65, 12, 0.45);
}

.hub-top__a[aria-current="page"] {
  color: var(--hub-accent);
  border-bottom-color: var(--hub-accent);
  font-weight: 600;
}

.hub-top__search {
  justify-self: end;
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.hub-top__search input[type="search"] {
  width: min(220px, 30vw);
  padding: 9px 12px;
  border: 1px solid var(--hub-border);
  border-radius: 4px;
  background: var(--hub-card);
  color: var(--hub-text);
  font: inherit;
  font-size: 0.86rem;
}

.hub-top__search input::placeholder {
  color: #78716c;
}

.hub-top__search button {
  padding: 9px 14px;
  border: 1px solid var(--hub-accent);
  border-radius: 4px;
  background: var(--hub-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

.hub-top__search button:hover {
  filter: brightness(1.05);
}

.hub-top__burger {
  justify-self: end;
  grid-column: 3;
}

@media (min-width: 900px) {
  .hub-app .hub-top__burger {
    display: none;
  }
}

@media (max-width: 899px) {
  .hub-top {
    grid-template-columns: 1fr auto;
  }
  .hub-top__search {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .hub-top__search input[type="search"] {
    flex: 1;
    width: auto;
  }
}

.hub-app .mobile-panel {
  background: rgba(28, 25, 23, 0.25);
}

.hub-app .mobile-panel-inner {
  background: var(--hub-surface);
  border: 1px solid var(--hub-border);
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(28, 25, 23, 0.12);
}

.hub-app .mobile-panel-inner a {
  color: var(--hub-text);
  font-weight: 500;
  font-size: 0.88rem;
}

.hub-app .mobile-panel-inner a:hover {
  background: var(--hub-wash);
  color: var(--hub-accent);
}

/* Main column */
.hub-main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(14px, 4vw, 28px) 3rem;
}

.hub-main--ledger {
  max-width: 920px;
}

/* Ads */
.hub-ad {
  border: 1px dashed rgba(194, 65, 12, 0.35) !important;
  background: rgba(255, 255, 255, 0.75) !important;
  border-radius: 4px;
}

/* Mast */
.hub-mast {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

/* Hero */
.hub-hero {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
}

.hub-hero__inner {
  position: relative;
  padding: 0 0 0 1rem;
  border-left: 4px solid var(--hub-accent);
}

.hub-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.hub-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--hub-display);
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hub-text);
}

.hub-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--hub-muted);
}

.hub-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.hub-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--hub-muted);
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: 4px;
}

.hub-stat b {
  font-family: var(--hub-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hub-accent);
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--hub-border);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hub-btn:hover {
  border-color: rgba(194, 65, 12, 0.5);
}

.hub-btn--ghost {
  color: var(--hub-text);
  background: var(--hub-surface);
}

.hub-btn--ghost:hover {
  background: var(--hub-wash);
  color: var(--hub-accent);
}

.hub-btn--primary {
  color: #fff;
  background: var(--hub-accent);
  border-color: var(--hub-accent);
}

.hub-btn--primary:hover {
  filter: brightness(1.06);
}

/* Wide feature strip */
.hub-feature {
  margin: 0;
}

.hub-feature__card {
  display: grid;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--hub-border);
  background: var(--hub-card);
  box-shadow: 4px 4px 0 rgba(28, 25, 23, 0.06);
  transition: box-shadow 0.2s ease;
}

.hub-feature__card:hover {
  box-shadow: 6px 6px 0 rgba(28, 25, 23, 0.1);
}

@media (min-width: 800px) {
  .hub-feature__card {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }
}

.hub-feature__media {
  line-height: 0;
  min-height: 200px;
  background: #e7e5e4;
}

.hub-feature__media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.hub-feature__body {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

.hub-feature__k {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.hub-feature__h {
  margin: 0;
  font-family: var(--hub-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hub-feature__txt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--hub-muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-tag {
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-accent);
  border: 1px solid rgba(194, 65, 12, 0.35);
  border-radius: 4px;
  background: var(--hub-wash);
}

/* Text filter row */
.hub-sieve {
  margin: 0 0 1.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--hub-border);
  border-bottom: 1px solid var(--hub-border);
}

.hub-sieve__label {
  margin: 0 0 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.hub-sieve__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.hub-sieve__sep {
  color: var(--hub-border);
  user-select: none;
}

.hub-sieve__a {
  color: var(--hub-text);
  font-weight: 500;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.hub-sieve__a:hover {
  border-bottom-color: var(--hub-accent);
  color: var(--hub-accent);
}

.hub-sieve__n {
  font-variant-numeric: tabular-nums;
  color: var(--hub-muted);
  font-size: 0.82em;
  margin-left: 0.15rem;
}

.hub-sieve__a--all {
  font-weight: 600;
  color: var(--hub-accent);
}

/* Main column only (no sidebar) */
.hub-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 0.5rem;
}

.hub-split--single {
  max-width: 100%;
}

.hub-split__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hub-split__aside {
  display: none;
}

.hub-aside-card {
  display: none;
}

/* Section + grid */
.hub-section {
  margin-bottom: 2.25rem;
}

.hub-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.15rem;
}

.hub-section__title {
  margin: 0;
  font-family: var(--hub-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hub-text);
}

.hub-section__sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--hub-muted);
  max-width: 28rem;
  line-height: 1.55;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.hub-grid--tiles {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.hub-card {
  border-radius: 4px;
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-card:hover {
  border-color: rgba(194, 65, 12, 0.45);
  box-shadow: 6px 6px 0 rgba(28, 25, 23, 0.08);
  transform: translate(-2px, -2px);
}

.hub-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hub-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7e5e4;
}

.hub-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hub-card:hover .hub-card__thumb img {
  transform: scale(1.03);
}

.hub-card__body {
  padding: 0.9rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.hub-card__title {
  margin: 0;
  font-family: var(--hub-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.hub-card__desc-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-height: 0;
  padding: 0.45rem 0 0;
  margin-top: 0.1rem;
  border-top: 1px solid var(--hub-border);
}

.hub-card__desc-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.hub-card__desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.52;
  color: var(--hub-ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.hub-card__pill {
  align-self: flex-start;
  margin-top: 0.1rem;
  padding: 0.22rem 0.5rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-accent);
  background: var(--hub-wash);
  border-radius: 4px;
}

/* Horizontal rail */
.hub-section--rail .hub-section__head {
  align-items: center;
}

.hub-rail-tools {
  display: flex;
  gap: 8px;
}

.hub-rail-tools button {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--hub-border);
  background: var(--hub-card);
  color: var(--hub-text);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hub-rail-tools button:hover {
  background: var(--hub-wash);
  border-color: var(--hub-accent);
  color: var(--hub-accent);
}

.hub-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 22px;
  margin: 0 -4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.hub-rail__item {
  flex: 0 0 min(44vw, 196px);
  scroll-snap-align: start;
}

.hub-rail__link {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--hub-border);
  background: var(--hub-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-rail__link:hover {
  box-shadow: 4px 4px 0 rgba(28, 25, 23, 0.1);
  transform: translate(-2px, -2px);
}

.hub-rail__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.hub-rail__meta {
  padding: 0.7rem 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hub-rail__t {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.3;
}

.hub-rail__desc-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hub-accent);
}

.hub-rail__ex {
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--hub-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Genres */
.hub-genres {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

.hub-aside-card .hub-genres {
  gap: 8px;
}

.hub-genre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hub-text);
  background: var(--hub-card);
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hub-genre:hover {
  border-color: rgba(194, 65, 12, 0.45);
  background: rgba(194, 65, 12, 0.08);
  transform: translateX(2px);
}

.hub-genre__n {
  font-family: var(--hub-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hub-accent);
}

.hub-link-all {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--hub-accent-2);
}

.hub-link-all:hover {
  text-decoration: underline;
}

/* FAQ (hub + standalone page) */
.hub-faq {
  margin-bottom: 2.25rem;
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  border-radius: 4px;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  box-shadow: 4px 4px 0 rgba(28, 25, 23, 0.06);
}

.hub-faq__head {
  margin-bottom: 1.05rem;
}

.hub-faq__title {
  margin: 0 0 0.35rem;
  font-family: var(--hub-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hub-text);
}

.hub-faq__sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--hub-muted);
  max-width: 36rem;
  line-height: 1.55;
}

.hub-faq__sub a {
  color: var(--hub-accent);
  font-weight: 600;
}

.hub-faq__sub a:hover {
  text-decoration: underline;
}

.hub-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hub-faq--full {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.hub-faq-page-hero {
  margin-bottom: 1.75rem;
}

.hub-faq__item {
  border-radius: 8px;
  border: 1px solid var(--hub-border);
  background: var(--hub-card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-faq__item[open] {
  border-color: rgba(194, 65, 12, 0.35);
  box-shadow: 2px 2px 0 rgba(28, 25, 23, 0.06);
}

.hub-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1.05rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hub-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
}

.hub-faq__q::-webkit-details-marker {
  display: none;
}

.hub-faq__q::after {
  content: "";
  flex: 0 0 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--hub-muted);
  border-bottom: 2px solid var(--hub-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
  margin-top: -0.2rem;
}

.hub-faq__item[open] .hub-faq__q::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
  border-color: var(--hub-accent);
}

.hub-faq__q:focus-visible {
  outline: 2px solid var(--hub-accent);
  outline-offset: 2px;
}

.hub-faq__a {
  padding: 0 1.05rem 1.05rem;
}

.hub-faq__a p {
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--hub-border);
  font-size: 0.86rem;
  line-height: 1.58;
  color: var(--hub-muted);
}

.hub-faq__a a {
  color: var(--hub-accent);
  font-weight: 600;
}

.hub-faq__a a:hover {
  text-decoration: underline;
}

/* Footer */
.hub-foot {
  margin-top: auto;
  padding: 1.75rem clamp(14px, 4vw, 28px);
  border-top: 2px solid var(--hub-border);
  background: rgba(255, 252, 247, 0.95);
  backdrop-filter: blur(8px);
}

.hub-foot__row {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
}

.hub-foot__name {
  margin: 0;
  font-family: var(--hub-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hub-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.hub-foot__nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--hub-muted);
}

.hub-foot__nav a:hover {
  color: var(--hub-accent);
}

.hub-foot__copy {
  max-width: 1040px;
  margin: 1.1rem auto 0;
  font-size: 0.75rem;
  color: var(--hub-muted);
  text-align: center;
}

/* Ledger homepage (index) — masthead + split feature + topic line */
.led-wrap {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.led-mast {
  border-top: 3px solid var(--hub-text);
  padding-top: 1.35rem;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.led-mast__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 880px) {
  .led-mast__grid {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 2rem;
  }
}

.led-mast__index {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hub-muted);
  padding-top: 0.4rem;
}

.led-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hub-accent);
}

.led-mast .hub-hero__title {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.led-lead {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--hub-muted);
}

.led-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
}

.led-pick {
  display: grid;
  border: 1px solid var(--hub-border);
  background: var(--hub-card);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 4px 4px 0 rgba(28, 25, 23, 0.07);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.led-pick:hover {
  box-shadow: 6px 6px 0 rgba(28, 25, 23, 0.1);
  transform: translate(-2px, -2px);
}

@media (min-width: 720px) {
  .led-pick {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.led-pick__media {
  line-height: 0;
  min-height: 200px;
  background: #e7e5e4;
}

.led-pick__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.led-pick__body {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  border-left: 4px solid var(--hub-accent);
}

.led-pick__label {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.led-pick__title {
  margin: 0;
  font-family: var(--hub-display);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--hub-text);
}

.led-pick__txt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--hub-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.led-toc {
  margin: 0 0 1.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hub-border);
  border-bottom: 1px solid var(--hub-border);
}

.led-toc__label {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.led-toc__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.led-toc__a {
  color: var(--hub-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.led-toc__a:hover {
  color: var(--hub-accent);
}

.led-toc__sep {
  color: #a8a29e;
  user-select: none;
}

.led-toc__n {
  color: var(--hub-muted);
  font-weight: 500;
  font-size: 0.88em;
}

/* Inner pages column */
.hub-app .hub-page {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(12px, 3vw, 24px) 3rem;
}

.hub-app .nx-h1,
.hub-app .mag-page-h1 {
  font-family: var(--hub-display);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--hub-text);
}

.hub-app .nx-kicker,
.hub-app .nx-lede {
  color: var(--hub-muted);
}

.hub-app .nx-tabs {
  position: sticky;
  background: rgba(255, 252, 247, 0.95);
  border-bottom-color: var(--hub-border);
  top: calc(60px + env(safe-area-inset-top, 0px));
}

.hub-app .nx-tabs a {
  color: var(--hub-muted);
}

.hub-app .nx-tabs a.active {
  background: var(--hub-accent);
  color: #fff;
}

.hub-app .nx-tile {
  border-color: var(--hub-border);
  background: var(--hub-card);
}

.hub-app .nx-tile.nx-glass {
  background: var(--hub-card) !important;
  backdrop-filter: none !important;
  border: 1px solid var(--hub-border) !important;
  box-shadow: 4px 4px 0 rgba(28, 25, 23, 0.07) !important;
}

.hub-app .nx-btn--fill {
  background: var(--hub-accent);
  color: #fff;
  border-radius: 4px;
  border: none;
  font-weight: 600;
}

.hub-app .nx-btn--fill:hover {
  filter: brightness(1.08);
}

.hub-app .nx-btn--ghost {
  border-color: var(--hub-border);
  color: var(--hub-muted);
  border-radius: 10px;
}

.hub-app .nx-btn--ghost:hover {
  border-color: var(--hub-accent);
  color: var(--hub-accent);
}

.hub-app .nx-detail__title {
  font-family: var(--hub-display);
  color: var(--hub-text);
  letter-spacing: 0.03em;
}

.hub-app .nx-crumb {
  color: var(--hub-muted);
  font-size: 0.82rem;
}

.hub-app .nx-crumb a:hover {
  color: var(--hub-accent);
}

.hub-app .nx-well {
  border-color: var(--hub-border);
  background: var(--hub-card);
  border-radius: 14px;
}

.hub-app .nx-prose {
  color: var(--hub-muted);
}

.hub-app .nx-prose a {
  color: var(--hub-accent);
}

.hub-app .game-stage {
  border-color: var(--hub-border);
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}

.hub-app .game-stage-bar {
  background: #1e293b;
  border-bottom-color: #334155;
}

.hub-app .game-stage-footer {
  background: var(--hub-surface);
  border-top-color: var(--hub-border);
}

.hub-app .comment-form input,
.hub-app .comment-form textarea {
  border-color: var(--hub-border);
  background: var(--hub-card);
  color: var(--hub-text);
  border-radius: 8px;
}

.hub-app .nx-search-stat {
  color: var(--hub-muted);
}
.hub-app .nx-search-stat strong {
  font-family: var(--hub-display);
  color: var(--hub-amber);
}

.hub-app .nx-badge {
  background: var(--hub-wash);
  color: var(--hub-accent);
  border-color: rgba(194, 65, 12, 0.35);
}

.hub-app .nx-empty-state .nx-h1 {
  color: var(--hub-text);
}

.hub-app .nx-pill {
  border-color: var(--hub-border);
  background: var(--hub-surface);
  color: var(--hub-text);
}

.hub-app .nx-pill:hover {
  border-color: var(--hub-accent);
  color: var(--hub-accent);
}

/* —— Detail page: split rail + primary (distinct from hub home) —— */
.hub-app .hub-page.nx-page--detail {
  max-width: 1120px;
}

.detail-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.78rem;
  list-style: none;
}

.detail-crumb a {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--hub-border);
  background: var(--hub-card);
  color: var(--hub-muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.detail-crumb a:hover {
  border-color: var(--hub-accent);
  color: var(--hub-accent);
}

.detail-crumb__sep {
  color: var(--hub-border);
  font-weight: 600;
}

.detail-crumb__here {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(194, 65, 12, 0.4);
  color: var(--hub-text);
  font-weight: 600;
}

.detail-ad-top {
  margin-bottom: 1.5rem;
}

.detail-sheet__layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 900px) {
  .detail-sheet__layout {
    grid-template-columns: 1fr;
  }
}

.detail-sheet__rail {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 900px) {
  .detail-sheet__rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .detail-sheet__art {
    flex: 1 1 140px;
    max-width: 200px;
  }

  .detail-sheet__rail-card {
    flex: 1 1 200px;
  }
}

.detail-sheet__art {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--hub-border);
  box-shadow: 4px 4px 0 rgba(28, 25, 23, 0.08);
  line-height: 0;
  background: #e7e5e4;
}

.detail-sheet__art-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.detail-sheet__rail-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--hub-border);
  background: linear-gradient(165deg, #ffffff 0%, #faf8f5 100%);
}

.detail-sheet__rail-label {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.detail-sheet__rail-genre {
  margin: 0 0 1rem;
  font-family: var(--hub-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hub-accent);
}

.detail-sheet__rail-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.detail-sheet__head.nx-detail__head {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.detail-sheet__prose {
  margin-top: 1.25rem;
}

.detail-sheet__split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .detail-sheet__split {
    grid-template-columns: 1fr minmax(200px, 280px);
    align-items: start;
  }

  .detail-ad-side {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.detail-sheet__comments {
  margin-top: 1.5rem;
}

/* —— Tags / category page: vertical rail + hero —— */
.hub-app .hub-page.nx-page--tags {
  max-width: 1200px;
}

.tags-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  margin-top: 0.5rem;
}

@media (max-width: 960px) {
  .tags-shell {
    grid-template-columns: 1fr;
  }
}

.tags-rail {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 1rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

@media (max-width: 960px) {
  .tags-rail {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .tags-rail__title {
    display: none;
  }
}

.tags-rail__title {
  margin: 0 0 0.35rem;
  padding: 0 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.tags-rail__a {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hub-muted);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.tags-rail__a:hover {
  color: var(--hub-text);
  background: rgba(194, 65, 12, 0.06);
  border-color: var(--hub-border);
}

.tags-rail__a.is-active {
  color: #fff;
  background: var(--hub-accent);
  border-color: transparent;
  box-shadow: 2px 2px 0 rgba(28, 25, 23, 0.15);
}

.tags-main {
  min-width: 0;
}

.tags-hero {
  margin-bottom: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 12px;
  border: 1px solid var(--hub-border);
  background: var(--hub-surface);
  box-shadow: 0 14px 36px -18px rgba(15, 23, 42, 0.1);
}

.tags-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--hub-muted);
}

.tags-hero__h {
  margin: 0;
  font-family: var(--hub-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
  line-height: 1.12;
  color: var(--hub-text);
}

@supports not (background-clip: text) {
  .tags-hero__h {
    color: var(--hub-text);
    background: none;
  }
}

.tags-hero__lede {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--hub-muted);
  max-width: 40rem;
}

.tags-hero-ad {
  margin-bottom: 1.25rem;
}

.tags-grid-wrap {
  margin-top: 0.25rem;
}

.hub-app .tags-grid.nx-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}

@media (min-width: 1100px) {
  .hub-app .tags-grid.nx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
