/**
 * Arcade Nova - High-Performance Static Stylesheet (Zero Runtime Tailwind / Zero Render-Blocking Bloat)
 */
:root {
  --nv-bg: #16131d;
  --nv-bg-elev: #1d1826;
  --nv-surface: #241e30;
  --nv-surface-2: #2f2740;
  --nv-border: rgba(255, 236, 214, 0.09);
  --nv-border-strong: rgba(255, 71, 87, 0.45);
  --nv-text: #fff8f0;
  --nv-text-soft: #e6dccf;
  --nv-muted: #a99cb0;
  --nv-primary: #ff4757;
  --nv-primary-hover: #ff5e6c;
  --nv-cyan: #ffbe0b;
  --nv-emerald: #00d26a;
  --nv-amber: #ffbe0b;
  --nv-gold: #ffbe0b;
  --nv-display: "Fredoka", "Plus Jakarta Sans", system-ui, sans-serif;
  --nv-rose: #f43f5e;
  --nv-radius-sm: 8px;
  --nv-radius: 14px;
  --nv-radius-lg: 20px;
  --nv-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.55);
  --nv-font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

html[data-nv-theme="light"] {
  --nv-bg: #f6f2ea;
  --nv-bg-elev: #ffffff;
  --nv-surface: #ffffff;
  --nv-surface-2: #ede6d8;
  --nv-border: rgba(70, 48, 30, 0.12);
  --nv-text: #2a1f1a;
  --nv-text-soft: #4a3b33;
  --nv-muted: #85756a;
  --nv-shadow: 0 6px 0 rgba(70, 48, 30, 0.08), 0 14px 26px -10px rgba(70, 48, 30, 0.18);
}

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

html {
  direction: ltr;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  direction: ltr;
  background-color: var(--nv-bg);
  color: var(--nv-text);
  font-family: var(--nv-font);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

.nv-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nv-main {
  flex: 1;
  padding-top: 1.25rem;
  padding-bottom: 3.5rem;
}

/* ======================== TOPBAR & SEARCH ======================== */
.nv-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(22, 19, 29, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nv-border);
}

html[data-nv-theme="light"] .nv-topbar {
  background: rgba(255, 255, 255, 0.9);
}

.nv-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.nv-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nv-brand__img {
  height: 40px;
  width: auto;
}

.nv-brand__logo--dark { display: none; }
.nv-brand__logo--light { display: block; }
html[data-nv-theme="light"] .nv-brand__logo--dark { display: block; }
html[data-nv-theme="light"] .nv-brand__logo--light { display: none; }

.nv-search {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.nv-search__box {
  display: flex;
  align-items: center;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  gap: 0.55rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nv-search__box:focus-within {
  border-color: var(--nv-primary);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
}

.nv-search__icon {
  color: var(--nv-muted);
  flex-shrink: 0;
}

.nv-search__input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 0.92rem;
  color: var(--nv-text);
}

.nv-search__input::placeholder {
  color: var(--nv-muted);
}

.nv-search__kbd {
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: var(--nv-surface-2);
  color: var(--nv-muted);
  border: 1px solid var(--nv-border);
}

.nv-search__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--nv-bg-elev);
  border: 1px solid var(--nv-border-strong);
  border-radius: var(--nv-radius);
  box-shadow: var(--nv-shadow);
  padding: 0.5rem;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.nv-search__dropdown.is-open {
  display: block;
}

.nv-search-hit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--nv-radius-sm);
  transition: background 0.15s ease;
}

.nv-search-hit:hover {
  background: var(--nv-surface);
}

.nv-search-hit__thumb {
  width: 68px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.nv-search-hit__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nv-search-hit__title {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-search-hit__sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--nv-muted);
  margin-top: 2px;
}

.nv-search-hit__star {
  color: var(--nv-amber);
  font-weight: 700;
}

.nv-search-hit__badge {
  background: var(--nv-surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  color: var(--nv-cyan);
}

.nv-search-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--nv-muted);
}

.nv-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nv-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--nv-text);
  transition: border-color 0.18s ease, transform 0.15s ease, background 0.18s ease;
}

.nv-icon-btn:hover {
  border-color: var(--nv-primary);
  background: var(--nv-surface-2);
}

.nv-fav-count {
  background: var(--nv-rose);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 19px;
  text-align: center;
}

.nv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 1.05rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nv-btn--primary {
  background: var(--nv-primary);
  color: #fff;
  box-shadow: 0 6px 18px -4px rgba(255, 71, 87, 0.55);
}

.nv-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -4px rgba(255, 71, 87, 0.7);
}

.nv-btn--ghost {
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  color: var(--nv-text);
}

.nv-btn--ghost:hover {
  border-color: var(--nv-primary);
}

.nv-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.75rem 0.25rem 0.3rem;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.nv-user-chip:hover {
  border-color: var(--nv-primary);
}

.nv-user-chip__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* ======================== HORIZONTAL CATEGORY PILLS ======================== */
.nv-genre-bar {
  background: var(--nv-bg-elev);
  border-bottom: 1px solid var(--nv-border);
  padding: 0.55rem 0;
}

.nv-genre-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nv-genre-bar__scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}

.nv-genre-bar__scroll::-webkit-scrollbar {
  display: none;
}

.nv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  font-size: 0.81rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--nv-text-soft);
  transition: all 0.16s ease;
}

.nv-pill:hover, .nv-pill.is-active {
  background: var(--nv-primary);
  border-color: var(--nv-primary);
  color: #fff;
}

.nv-genre-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--nv-text);
}

.nv-genre-nav-btn:hover {
  border-color: var(--nv-primary);
}

/* ======================== HERO FEATURED GAME BANNER ======================== */
.nv-hero {
  position: relative;
  border-radius: var(--nv-radius-lg);
  overflow: hidden;
  background: linear-gradient(125deg, #131b36 0%, #0d1222 60%, #1a103c 100%);
  border: 1px solid var(--nv-border-strong);
  box-shadow: var(--nv-shadow);
  margin-bottom: 2rem;
}

.nv-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  padding: 2.25rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.nv-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 190, 11, 0.14);
  border: 1px solid rgba(255, 190, 11, 0.4);
  color: var(--nv-cyan);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.nv-hero__title {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: #fff;
}

.nv-hero__desc {
  color: #cbd5e1;
  font-size: 0.96rem;
  max-width: 58ch;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nv-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

.nv-hero__chip {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #e2e8f0;
  font-weight: 600;
}

.nv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.nv-hero__play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.65rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5e6c 0%, #ff4757 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  box-shadow: 0 10px 26px -6px rgba(255, 190, 11, 0.55);
}

.nv-hero__play-btn:hover {
  transform: translateY(-2px);
}

.nv-hero__artwork {
  position: relative;
  border-radius: var(--nv-radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 2px solid rgba(255, 71, 87, 0.5);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.75);
}

.nv-hero__artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======================== TOP 10 TRENDING STRIP ======================== */
.nv-section {
  margin-bottom: 2.25rem;
}

.nv-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nv-section__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nv-section__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nv-primary), var(--nv-cyan));
}

.nv-section__more {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--nv-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nv-section__more:hover {
  text-decoration: underline;
}

.nv-top10__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 275px);
  gap: 1.15rem;
  overflow-x: auto;
  padding: 0.4rem 0.2rem 0.9rem;
  scrollbar-width: thin;
}

.nv-top10__item {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-left: 2.2rem;
}

.nv-top10__rank {
  position: absolute;
  left: 0;
  bottom: 0.35rem;
  font-size: 4.4rem;
  font-weight: 900;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--nv-primary);
  text-shadow: 0 8px 20px rgba(255, 71, 87, 0.35);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.nv-top10__item .nv-card {
  width: 100%;
  z-index: 2;
}

/* ======================== RECTANGULAR GAME CARDS (<article>) ======================== */
.nv-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
  width: 100%;
}

.nv-card {
  min-width: 0;
  max-width: 100%;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nv-card:hover {
  transform: translateY(-4px);
  border-color: var(--nv-primary);
  box-shadow: var(--nv-shadow);
}

.nv-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #0b0f1c;
  overflow: hidden;
}

.nv-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nv-card:hover .nv-card__img {
  transform: scale(1.05);
}

.nv-card__play-pill {
  position: absolute;
  inset: auto 0.65rem 0.65rem auto;
  background: linear-gradient(135deg, var(--nv-primary), var(--nv-cyan));
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nv-card:hover .nv-card__play-pill {
  opacity: 1;
  transform: translateY(0);
}

.nv-card__tech-badge {
  position: absolute;
  bottom: 0.55rem;
  left: 0.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: rgba(8, 11, 20, 0.86);
  color: var(--nv-cyan);
  border: 1px solid rgba(255, 190, 11, 0.4);
  backdrop-filter: blur(4px);
}

.nv-badge--html5 { color: #fb923c; border-color: rgba(251, 146, 60, 0.45); }
.nv-badge--webgl { color: #38bdf8; border-color: rgba(56, 189, 248, 0.45); }
.nv-badge--60fps { color: #34d399; border-color: rgba(52, 211, 153, 0.45); }
.nv-badge--flashedition { color: #facc15; border-color: rgba(250, 204, 21, 0.45); }

.nv-card__fav-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(8, 11, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.nv-card__fav-btn:hover, .nv-card__fav-btn.is-fav {
  background: var(--nv-rose);
  border-color: var(--nv-rose);
  color: #fff;
}

.nv-card__fav-btn.is-fav svg {
  fill: currentColor;
}

.nv-card__body {
  padding: 0.78rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.nv-card__title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-card__title a:hover {
  color: var(--nv-cyan);
}

.nv-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: auto;
}

.nv-card__genre {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.16rem 0.52rem;
  border-radius: 6px;
  background: var(--nv-surface-2);
  color: var(--nv-text-soft);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-card__genre:hover {
  background: var(--nv-primary);
  color: #fff;
}

.nv-card__stats {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
}

.nv-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 800;
  color: var(--nv-text);
}

.nv-card__star {
  color: var(--nv-amber);
}

.nv-card__devices {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: var(--nv-muted);
}

/* ======================== GAME PLAY PAGE (75% / 25% SPLIT) ======================== */
.nv-stage-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

.nv-main-col,
.nv-side-col {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.nv-player-wrap {
  width: 100%;
  max-width: 100%;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-lg);
  overflow: hidden;
  box-shadow: var(--nv-shadow);
}

.nv-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  background: #05070e;
  overflow: hidden;
}

.nv-player__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  z-index: 5;
  background-size: cover;
  background-position: center;
}

.nv-player__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 11, 20, 0.72) 0%, rgba(5, 7, 14, 0.94) 100%);
  backdrop-filter: blur(8px);
}

.nv-player__cover-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
}

.nv-player__thumb {
  width: 220px;
  height: 146px;
  object-fit: cover;
  border-radius: var(--nv-radius);
  border: 2px solid var(--nv-primary);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  margin-bottom: 1rem;
}

.nv-player__title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.35rem;
}

.nv-player__sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 1.15rem;
}

.nv-player__launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5e6c 0%, #ff4757 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px -4px rgba(255, 71, 87, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nv-player__launch-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 36px -4px rgba(255, 190, 11, 0.75);
}

.nv-player__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  z-index: 3;
}

.nv-player.is-playing .nv-player__iframe {
  display: block;
}

.nv-player.is-playing .nv-player__cover {
  display: none;
}

.nv-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  background: var(--nv-bg-elev);
  border-top: 1px solid var(--nv-border);
}

.nv-player-bar__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.nv-player-bar__heading {
  font-size: 1.2rem;
  font-weight: 800;
}

.nv-player-bar__tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nv-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nv-text-soft);
  transition: all 0.16s ease;
}

.nv-tool-btn:hover, .nv-tool-btn.is-active, .nv-tool-btn.liked {
  border-color: var(--nv-primary);
  color: #fff;
  background: var(--nv-primary);
}

/* Theater Mode */
body.nv-theater-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 11, 0.92);
  z-index: 95;
  backdrop-filter: blur(6px);
}

body.nv-theater-mode .nv-player-wrap {
  position: relative;
  z-index: 98;
  box-shadow: 0 0 0 2px var(--nv-primary), 0 25px 60px rgba(0, 0, 0, 0.9);
}

/* ======================== SYSTEM & FPS CHECKER + CONTROLS GUIDE ======================== */
.nv-info-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.nv-panel {
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  padding: 1.2rem;
}

.nv-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.nv-panel__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 800;
}

.nv-count-pill {
  background: rgba(16, 185, 129, 0.16);
  color: var(--nv-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.nv-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.nv-stat {
  background: var(--nv-bg-elev);
  border: 1px solid var(--nv-border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.nv-stat__label {
  font-size: 0.72rem;
  color: var(--nv-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nv-stat__val {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--nv-text);
  margin-top: 2px;
}

.nv-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.nv-control-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--nv-bg-elev);
  border: 1px solid var(--nv-border);
  border-radius: 10px;
  padding: 0.65rem;
}

.nv-keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 0.45rem;
  border-radius: 6px;
  background: var(--nv-surface-2);
  border-bottom: 3px solid var(--nv-primary);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--nv-cyan);
}

/* ======================== SIDEBAR (25%) SIMILAR GAMES VERTICAL LIST ======================== */
.nv-side-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nv-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.84rem;
}

.nv-specs-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--nv-border);
}

.nv-specs-row span:first-child {
  color: var(--nv-muted);
}

.nv-specs-row span:last-child {
  font-weight: 700;
}

.nv-sim-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nv-sim-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: var(--nv-bg-elev);
  border: 1px solid var(--nv-border);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.nv-sim-item:hover {
  border-color: var(--nv-primary);
  transform: translateX(3px);
}

.nv-sim-item__thumb {
  width: 78px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.nv-sim-item__body {
  min-width: 0;
  flex: 1;
}

.nv-sim-item__title {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nv-sim-item__sub {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--nv-muted);
  margin-top: 2px;
}

/* ======================== FILTER & SORT BAR (CATEGORY PAGES) ======================== */
.nv-cat-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.nv-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--nv-bg-elev);
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--nv-border);
}

.nv-sort-btn {
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nv-muted);
  transition: all 0.16s ease;
}

.nv-sort-btn.is-active, .nv-sort-btn:hover {
  background: var(--nv-primary);
  color: #fff;
}

/* ======================== GAMER ID PORTAL (AUTH) ======================== */
.nv-auth-portal {
  max-width: 940px;
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border-strong);
  border-radius: var(--nv-radius-lg);
  overflow: hidden;
  box-shadow: var(--nv-shadow);
}

.nv-auth-showcase {
  background: linear-gradient(145deg, #1b1145 0%, #0d152c 60%, #092c3a 100%);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.nv-auth-form-pane {
  padding: 2.5rem;
}

.nv-field {
  margin-bottom: 1.1rem;
}

.nv-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nv-muted);
  margin-bottom: 0.4rem;
}

.nv-input {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  background: var(--nv-bg-elev);
  border: 1px solid var(--nv-border);
  color: var(--nv-text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s ease;
}

.nv-input:focus {
  border-color: var(--nv-primary);
}

.nv-avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.nv-avatar-opt {
  position: relative;
  cursor: pointer;
}

.nv-avatar-opt input {
  position: absolute;
  opacity: 0;
}

.nv-avatar-opt img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.nv-avatar-opt input:checked + img {
  border-color: var(--nv-cyan);
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(255, 190, 11, 0.25);
}

/* ======================== PLAYER DASHBOARD (USER PROFILE) ======================== */
.nv-dash-hero {
  background: linear-gradient(130deg, #171f38 0%, #101628 60%, #201342 100%);
  border: 1px solid var(--nv-border-strong);
  border-radius: var(--nv-radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.nv-dash-user {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nv-dash-avatar {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  border: 3px solid var(--nv-cyan);
}

.nv-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(255, 71, 87, 0.2);
  border: 1px solid var(--nv-primary);
  color: var(--nv-cyan);
}

.nv-xp-box {
  min-width: 260px;
  background: rgba(8, 11, 20, 0.65);
  border: 1px solid var(--nv-border);
  padding: 1rem 1.25rem;
  border-radius: var(--nv-radius);
}

.nv-xp-track {
  width: 100%;
  height: 10px;
  background: var(--nv-surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.nv-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nv-primary), var(--nv-cyan));
  border-radius: 999px;
}

.nv-dash-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* ======================== STRUCTURED LEGAL DOCUMENTS (layout/page) ======================== */
.nv-doc-header {
  background: linear-gradient(135deg, var(--nv-surface) 0%, var(--nv-bg-elev) 100%);
  border: 1px solid var(--nv-border-strong);
  border-radius: var(--nv-radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.nv-doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.nv-doc-toc {
  position: sticky;
  top: 86px;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius);
  padding: 1.15rem;
}

.nv-doc-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.nv-doc-toc__link {
  display: block;
  font-size: 0.84rem;
  color: var(--nv-text-soft);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
}

.nv-doc-toc__link:hover {
  background: var(--nv-surface-2);
  color: var(--nv-cyan);
}

.nv-doc-article {
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  border-radius: var(--nv-radius-lg);
  padding: 2rem;
}

.nv-doc-article h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 1.5rem 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--nv-border);
  color: var(--nv-cyan);
}

.nv-doc-article h2:first-child {
  margin-top: 0;
}

.nv-doc-article p, .nv-doc-article li {
  color: var(--nv-text-soft);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.nv-doc-article ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.nv-doc-callout {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin: 1.1rem 0;
  font-size: 0.9rem;
  border-left: 4px solid var(--nv-primary);
  background: var(--nv-bg-elev);
}

.nv-doc-callout--info { border-left-color: var(--nv-cyan); }
.nv-doc-callout--warn { border-left-color: var(--nv-amber); }
.nv-doc-callout--tip { border-left-color: var(--nv-emerald); }
.nv-doc-callout--danger { border-left-color: var(--nv-rose); }

/* ======================== MODALS, DRAWERS & TOASTS ======================== */
.nv-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 120;
}

.nv-modal.is-open {
  display: flex;
}

.nv-modal__card {
  background: var(--nv-surface);
  border: 1px solid var(--nv-border-strong);
  border-radius: var(--nv-radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--nv-shadow);
}

.nv-toast-stack {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 200;
}

.nv-toast {
  background: var(--nv-surface);
  border: 1px solid var(--nv-primary);
  color: var(--nv-text);
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--nv-shadow);
}

.nv-toast--ok { border-color: var(--nv-emerald); }
.nv-toast--err { border-color: var(--nv-rose); }

/* ======================== MOBILE CONTROLS & DRAWER (DEFAULT HIDDEN ON DESKTOP) ======================== */
.nv-mobile-controls {
  display: none;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nv-mobile-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  color: var(--nv-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.nv-mobile-icon-btn:hover,
.nv-mobile-icon-btn.is-active {
  border-color: var(--nv-primary);
  background: var(--nv-surface-2);
  color: var(--nv-cyan);
}

.nv-mobile-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--nv-rose);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 999px;
  text-align: center;
}

.nv-mobile-drawer {
  display: none;
  background: var(--nv-bg-elev);
  border-top: 1px solid var(--nv-border);
  border-bottom: 1px solid var(--nv-border-strong);
  padding: 0.85rem 0;
}

.nv-mobile-drawer.is-open {
  display: block;
}

.nv-mobile-drawer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nv-mobile-drawer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.nv-mobile-drawer__link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: var(--nv-surface);
  border: 1px solid var(--nv-border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--nv-text-soft);
}

.nv-mobile-drawer__link.is-active,
.nv-mobile-drawer__link:hover {
  background: var(--nv-primary);
  border-color: var(--nv-primary);
  color: #fff;
}

.nv-mobile-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ======================== FOOTER (NATURAL BOTTOM FLOW - NEVER FIXED) ======================== */
.nv-footer {
  position: relative;
  width: 100%;
  max-width: 100vw;
  background: var(--nv-bg-elev);
  border-top: 1px solid var(--nv-border);
  padding: 2.25rem 0 1.75rem;
  margin-top: auto;
}

.nv-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--nv-border);
}

.nv-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  list-style: none;
  font-size: 0.86rem;
  color: var(--nv-text-soft);
}

.nv-footer__links a:hover {
  color: var(--nv-cyan);
}

.nv-footer__copy {
  padding-top: 1.15rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--nv-muted);
}

/* ======================== RESPONSIVE BREAKPOINTS (POKI / CRAZYGAMES ADAPTIVE GRID) ======================== */
@media (max-width: 1399px) {
  .nv-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1179px) {
  .nv-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 1080px) {
  .nv-stage-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .nv-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.5rem;
  }
  .nv-info-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .nv-doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .nv-doc-toc {
    position: static;
  }
}

@media (max-width: 899px) {
  .nv-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 768px) {
  .nv-shell {
    padding: 0 0.85rem;
  }
  .nv-main {
    padding-top: 0.85rem;
    padding-bottom: 2.25rem;
  }

  /* Compact 56px Mobile Topbar */
  .nv-topbar__inner {
    height: 56px;
    min-height: 56px;
    padding: 0;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .nv-brand__img {
    height: 30px;
    max-width: 160px;
    object-fit: contain;
  }
  .nv-actions--desktop {
    display: none !important;
  }
  .nv-mobile-controls {
    display: inline-flex;
  }

  /* Collapsible Mobile Search Bar */
  .nv-search {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.85rem;
    background: var(--nv-bg-elev);
    border-top: 1px solid var(--nv-border);
    border-bottom: 1px solid var(--nv-border-strong);
    z-index: 105;
  }
  .nv-topbar.is-search-open .nv-search {
    display: block;
  }
  .nv-search__kbd {
    display: none;
  }

  /* Smooth Touch-Scrollable Category Strip */
  .nv-genre-bar {
    padding: 0.42rem 0;
  }
  .nv-genre-nav-btn {
    display: none;
  }
  .nv-pill {
    padding: 0.34rem 0.78rem;
    font-size: 0.76rem;
  }

  /* Game Stage on Mobile (Full Width 16:9) */
  .nv-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 210px;
  }
  .nv-player__cover {
    padding: 0.75rem;
  }
  .nv-player__thumb {
    width: 110px;
    height: 74px;
    margin-bottom: 0.5rem;
  }
  .nv-player__title {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }
  .nv-player__sub {
    font-size: 0.72rem;
    margin-bottom: 0.65rem;
  }
  .nv-player__launch-btn {
    padding: 0.6rem 1.35rem;
    font-size: 0.88rem;
  }
  .nv-player-bar {
    padding: 0.75rem 0.85rem;
  }
  .nv-player-bar__heading {
    font-size: 1.02rem;
  }
  .nv-tool-btn {
    padding: 0.38rem 0.65rem;
    font-size: 0.74rem;
  }

  /* Auth, Dashboard & Banners on Mobile */
  .nv-auth-portal {
    grid-template-columns: minmax(0, 1fr);
    margin: 0.75rem auto;
  }
  .nv-auth-showcase,
  .nv-auth-form-pane {
    padding: 1.35rem;
  }
  .nv-dash-hero {
    padding: 1.25rem;
  }
  .nv-xp-box {
    min-width: 0;
    width: 100%;
  }
  .nv-cat-banner {
    padding: 1rem;
  }
  .nv-filter-group {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .nv-sort-btn {
    white-space: nowrap;
    padding: 0.38rem 0.75rem;
    font-size: 0.75rem;
  }
  .nv-footer {
    padding: 1.5rem 0 1.25rem;
  }
  .nv-footer__top,
  .nv-footer__copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 639px) {
  /* 2-Column Game Grid on Mobile Phones (Poki / CrazyGames Mobile Layout) */
  .nv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .nv-card__body {
    padding: 0.55rem 0.6rem;
    gap: 0.35rem;
  }
  .nv-card__title {
    font-size: 0.82rem;
  }
  .nv-card__genre {
    font-size: 0.66rem;
    padding: 0.12rem 0.42rem;
    max-width: 78px;
  }
  .nv-card__stats {
    font-size: 0.7rem;
    gap: 0.3rem;
  }
  .nv-card__devices {
    display: none;
  }
  .nv-card__tech-badge {
    font-size: 0.6rem;
    padding: 0.14rem 0.42rem;
    bottom: 0.4rem;
    left: 0.4rem;
  }
  .nv-card__fav-btn {
    width: 26px;
    height: 26px;
    top: 0.4rem;
    right: 0.4rem;
  }
  .nv-top10__track {
    grid-auto-columns: minmax(200px, 225px);
    gap: 0.85rem;
  }
  .nv-top10__item {
    padding-left: 1.65rem;
  }
  .nv-top10__rank {
    font-size: 3.3rem;
  }
  .nv-stat-grid,
  .nv-controls-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nv-panel,
  .nv-doc-article,
  .nv-doc-header {
    padding: 1rem;
  }
}


/* =====================================================================
   WARM ARCADE PLAYGROUND LAYER
   Warm plum night + flame coral + coin-op gold + player-1 mint.
   Chunky display type, tactile "pressable" buttons with a physical
   bottom lip, artwork-first tiles. No glows, no neon gradients.
   ===================================================================== */
body {
  background-color: var(--nv-bg);
  background-image: radial-gradient(rgba(255, 236, 214, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
}
html[data-nv-theme="light"] body {
  background-image: radial-gradient(rgba(120, 80, 40, 0.07) 1px, transparent 1px);
}
html[data-nv-theme="light"] .nv-topbar { background: rgba(246, 242, 234, 0.95); }

h1, h2, h3,
.nv-section__title, .nv-hero__title, .nv-panel__title, .nv-player__title,
.nv-bento-card__title, .nv-top10__rank, .nv-player-bar__heading {
  font-family: var(--nv-display);
  letter-spacing: -0.005em;
}
.nv-section__title { font-weight: 700; font-size: 1.35rem; }
.nv-section__icon { display: inline-block; transform: rotate(-8deg); margin-right: 0.15rem; }
.nv-section__more { color: var(--nv-primary); font-weight: 700; }

/* ---------- Tactile buttons (physical bottom lip, press-down on click) ---------- */
.nv-btn, .nv-hero__play-btn, .nv-player__launch-btn, .nv-sort-btn, .nv-tool-btn, .nv-bento-card__btn {
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease, filter 0.15s ease;
}
.nv-btn--primary, .nv-hero__play-btn, .nv-player__launch-btn {
  background: var(--nv-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px;
  font-family: var(--nv-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 5px 0 #c42f3d !important;
}
.nv-btn--primary:hover, .nv-hero__play-btn:hover, .nv-player__launch-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 #c42f3d !important;
}
.nv-btn--primary:active, .nv-hero__play-btn:active, .nv-player__launch-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #c42f3d !important;
}
.nv-btn--ghost, .nv-tool-btn, .nv-sort-btn {
  background: var(--nv-surface-2);
  border: none;
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
  color: var(--nv-text);
}
html[data-nv-theme="light"] .nv-btn--ghost,
html[data-nv-theme="light"] .nv-tool-btn,
html[data-nv-theme="light"] .nv-sort-btn { box-shadow: 0 3px 0 rgba(70, 48, 30, 0.16); }
.nv-btn--ghost:active, .nv-tool-btn:active, .nv-sort-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28); }
.nv-sort-btn.is-active {
  background: var(--nv-gold);
  color: #2a1f1a;
  box-shadow: 0 3px 0 #c48f00;
}

/* ---------- Category pills: chunky candy chips ---------- */
.nv-pill {
  border-radius: 999px;
  background: var(--nv-surface);
  border: 2px solid transparent;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.nv-pill:hover { border-color: var(--nv-gold); transform: translateY(-1px); }
.nv-pill.is-active, .nv-pill[aria-current="page"] {
  background: var(--nv-gold);
  color: #2a1f1a;
  box-shadow: 0 3px 0 #c48f00;
}
html[data-nv-theme="light"] .nv-pill { box-shadow: 0 2px 0 rgba(70, 48, 30, 0.14); }

/* ---------- Search box ---------- */
.nv-search__box { border-radius: 999px; background: var(--nv-surface); border: 2px solid transparent; }
.nv-search__box:focus-within { border-color: var(--nv-gold); box-shadow: none; }

/* ---------- Game tiles: artwork first, lift on hover ---------- */
.nv-card {
  background: var(--nv-surface);
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.18s cubic-bezier(.3, 1.5, .6, 1), box-shadow 0.18s ease;
}
.nv-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3), 0 0 0 3px var(--nv-gold);
}
html[data-nv-theme="light"] .nv-card { box-shadow: 0 4px 0 rgba(70, 48, 30, 0.12); }
html[data-nv-theme="light"] .nv-card:hover { box-shadow: 0 8px 0 rgba(70, 48, 30, 0.14), 0 0 0 3px var(--nv-primary); }
.nv-card__media { position: relative; border-radius: 16px 16px 0 0; overflow: hidden; }
.nv-card__img { transition: transform 0.35s ease; }
.nv-card:hover .nv-card__img { transform: scale(1.05); }
.nv-card__play-pill {
  background: var(--nv-primary);
  color: #fff;
  border-radius: 999px;
  font-family: var(--nv-display);
  font-weight: 700;
  box-shadow: 0 3px 0 #c42f3d;
}
.nv-card__title { font-family: var(--nv-display); font-weight: 600; font-size: 0.98rem; }
.nv-card__genre {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--nv-muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.nv-card__star, .nv-card__rating { color: var(--nv-gold); }

/* Hand-stuck corner ribbons */
.nv-card__ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 8px;
  font-family: var(--nv-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transform: rotate(-4deg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.nv-card__ribbon--hot { background: var(--nv-primary); color: #fff; }
.nv-card__ribbon--top { background: var(--nv-gold); color: #2a1f1a; }
.nv-card__ribbon--new { background: var(--nv-emerald); color: #0d2a1a; }

/* Retire leftover technical badges if any cached markup still has them */
.nv-card__tech-badge, .nv-card__devices { display: none !important; }

/* ---------- Bento spotlight wall ---------- */
.nv-bento-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.nv-bento-hero .nv-hero {
  margin: 0;
  height: 100%;
  border: none;
  border-radius: 22px;
  background: linear-gradient(160deg, #3a2347 0%, #261c33 55%, #1f1829 100%);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}
html[data-nv-theme="light"] .nv-bento-hero .nv-hero {
  background: linear-gradient(160deg, #ffe3c2 0%, #fff3e3 60%, #fffaf2 100%);
  box-shadow: 0 6px 0 rgba(70, 48, 30, 0.12);
}
.nv-hero__eyebrow {
  background: var(--nv-gold);
  color: #2a1f1a;
  border: none;
  border-radius: 8px;
  font-family: var(--nv-display);
  font-weight: 700;
  transform: rotate(-2deg);
  display: inline-block;
  box-shadow: 0 2px 0 #c48f00;
}
.nv-hero__title { font-weight: 700; text-shadow: none; }
.nv-hero__chip { background: rgba(255, 255, 255, 0.08); border: none; border-radius: 999px; font-weight: 600; }
html[data-nv-theme="light"] .nv-hero__chip { background: rgba(70, 48, 30, 0.07); }
.nv-hero__artwork { position: relative; border: none !important; border-radius: 18px; overflow: hidden; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); transform: rotate(1.2deg); transition: transform 0.2s ease; }
.nv-hero__artwork:hover { transform: rotate(0deg) scale(1.01); }
.nv-hero__floating-play {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: #fff;
  color: #2a1f1a;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--nv-display);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.nv-bento-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; min-width: 0; }
.nv-bento-card {
  position: relative;
  display: block;
  min-height: 170px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--nv-surface);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.32);
  transition: transform 0.18s cubic-bezier(.3, 1.5, .6, 1);
}
.nv-bento-card:hover { transform: translateY(-3px) rotate(0.5deg); }
.nv-bento-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.nv-bento-card:hover .nv-bento-card__img { transform: scale(1.06); }
.nv-bento-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--nv-primary);
  color: #fff;
  font-family: var(--nv-display);
  font-size: 0.76rem;
  font-weight: 700;
  transform: rotate(-3deg);
  box-shadow: 0 2px 0 #c42f3d;
}
.nv-bento-side .nv-bento-card:nth-child(2) .nv-bento-card__tag { background: var(--nv-emerald); color: #0d2a1a; box-shadow: 0 2px 0 #009c4e; }
.nv-bento-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2.4rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(20, 12, 24, 0.92) 0%, rgba(20, 12, 24, 0) 100%);
  color: #fff;
}
.nv-bento-card__cat { font-size: 0.74rem; font-weight: 600; opacity: 0.85; }
.nv-bento-card__title { font-size: 1.08rem; font-weight: 700; line-height: 1.2; }
.nv-bento-card__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nv-gold);
  color: #2a1f1a;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 #c48f00;
}

/* ---------- Top 10 big rank numerals ---------- */
.nv-top10__rank {
  color: var(--nv-surface-2);
  -webkit-text-stroke: 2px var(--nv-gold);
  text-shadow: none;
  font-weight: 700;
}

/* ---------- Game page info panels ---------- */
.nv-info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.nv-panel { background: var(--nv-surface); border: none; border-radius: 18px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28); }
html[data-nv-theme="light"] .nv-panel { box-shadow: 0 4px 0 rgba(70, 48, 30, 0.1); }
.nv-panel__title { font-weight: 700; }
.nv-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--nv-surface-2);
  color: var(--nv-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.nv-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.nv-stat { background: var(--nv-surface-2); border: none; border-radius: 12px; padding: 0.65rem 0.8rem; }
.nv-stat__label { font-size: 0.72rem; font-weight: 700; color: var(--nv-muted); text-transform: none; letter-spacing: 0; }
.nv-stat__val { font-family: var(--nv-display); font-size: 1rem; font-weight: 700; margin-top: 2px; }
.nv-keycap {
  background: var(--nv-bg-elev);
  border: 2px solid var(--nv-border);
  border-bottom-width: 4px;
  border-radius: 10px;
  font-family: var(--nv-display);
  font-weight: 700;
  color: var(--nv-text);
}
.nv-player-wrap, .nv-player { border-radius: 18px; }
.nv-player__cover-card { border-radius: 20px; }

/* ---------- Auth & profile accents ---------- */
.nv-auth-portal, .nv-dash-hero { border-radius: 22px; }
.nv-input:focus { border-color: var(--nv-gold); box-shadow: 0 0 0 3px rgba(255, 190, 11, 0.22); }
.nv-xp-fill { background: linear-gradient(90deg, var(--nv-gold), var(--nv-primary)); }
.nv-rank-pill { background: var(--nv-gold); color: #2a1f1a; border: none; box-shadow: 0 2px 0 #c48f00; }

/* ---------- Footer ---------- */
.nv-footer { background: var(--nv-bg-elev); border-top: none; box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.15); }
.nv-footer__links a:hover { color: var(--nv-gold); }

@media (max-width: 1080px) {
  .nv-bento-hero { grid-template-columns: 1fr; }
  .nv-bento-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .nv-info-row { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .nv-bento-side { grid-template-columns: 1fr; }
  .nv-bento-card { min-height: 150px; }
  .nv-hero__artwork { transform: none; }
  .nv-card:hover { transform: translateY(-2px); }
  .nv-card__ribbon { font-size: 0.64rem; padding: 2px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-card, .nv-bento-card, .nv-hero__artwork, .nv-card__img, .nv-bento-card__img { transition: none !important; transform: none !important; }
}


/* =====================================================================
   CONTENT-RICH PAGES: welcome copy, genre tiles, pager, game tools, FAQ
   ===================================================================== */
.nv-welcome {
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--nv-surface);
  border-radius: 18px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}
.nv-welcome__title { font-family: var(--nv-display); font-size: 1.2rem; margin-bottom: 0.35rem; }
.nv-welcome p { color: var(--nv-text-soft); font-size: 0.92rem; line-height: 1.65; }
.nv-section__sub { color: var(--nv-muted); font-size: 0.82rem; margin-top: 2px; }
.nv-cat-intro { color: var(--nv-text-soft); font-size: 0.9rem; line-height: 1.6; margin-top: 6px; max-width: 760px; }

.nv-genre-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
.nv-genre-tile {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.85rem 0.9rem;
  background: var(--nv-surface);
  border-radius: 14px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nv-genre-tile:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25), 0 0 0 2px var(--nv-gold); }
.nv-genre-tile__icon { font-size: 1.4rem; }
.nv-genre-tile__name { font-family: var(--nv-display); font-weight: 700; font-size: 0.98rem; }
.nv-genre-tile__count { color: var(--nv-muted); font-size: 0.76rem; font-weight: 600; }

.nv-feed-loader { text-align: center; padding: 1.5rem; color: var(--nv-muted); }
.nv-pager { display: flex; align-items: center; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.nv-pager__info { color: var(--nv-muted); font-size: 0.85rem; font-weight: 600; }

.nv-toprated-strip { margin: 0 0 1.25rem; padding: 0.9rem 1rem; background: var(--nv-surface); border-radius: 16px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22); }
.nv-toprated-strip__title { font-family: var(--nv-display); font-size: 1rem; margin-bottom: 0.6rem; }
.nv-toprated-strip__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.45rem 1rem; }
.nv-toprated-strip__list a { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; padding: 0.3rem 0; }
.nv-toprated-strip__list a:hover .nv-toprated-strip__name { color: var(--nv-gold); }
.nv-toprated-strip__n { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--nv-surface-2); font-weight: 800; font-size: 0.78rem; }
.nv-toprated-strip__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.nv-toprated-strip__star { color: var(--nv-gold); font-weight: 700; font-size: 0.8rem; }

/* Game page copy & tools */
.nv-copy { font-size: 0.92rem; color: var(--nv-text-soft); line-height: 1.65; margin-bottom: 0.6rem; }
.nv-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nv-control-box__what { font-size: 0.84rem; font-weight: 800; }
.nv-control-box__hint { font-size: 0.74rem; color: var(--nv-muted); }
.nv-subhead { font-family: var(--nv-display); font-size: 1rem; margin: 1.1rem 0 0.5rem; }
.nv-tips { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.nv-tips li { position: relative; padding: 0.55rem 0.75rem 0.55rem 2rem; background: var(--nv-surface-2); border-radius: 12px; font-size: 0.86rem; color: var(--nv-text-soft); line-height: 1.5; }
.nv-tips li::before { content: "★"; position: absolute; left: 0.7rem; top: 0.55rem; color: var(--nv-gold); }

.nv-tools-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.1rem; align-items: stretch; }
.nv-tool { display: flex; flex-direction: column; }
.nv-tool .nv-filter-group { margin: 0.4rem 0 0.8rem; flex-wrap: wrap; }
.nv-tier--1 { background: rgba(0, 210, 106, 0.18); color: var(--nv-emerald); }
.nv-tier--2 { background: rgba(255, 190, 11, 0.18); color: var(--nv-gold); }
.nv-tier--3 { background: rgba(255, 71, 87, 0.18); color: var(--nv-primary); }

/* Device checker: 3 polymorphic visual modes (checklist, 2x3 cards, split banner) */
.nv-req-list { list-style: none; display: flex; flex-direction: column; gap: 0.42rem; margin: 0.4rem 0 0.9rem; }
.nv-req-list--compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.nv-req-list li { display: grid; grid-template-columns: 112px 1fr; gap: 0 0.6rem; padding: 0.5rem 0.7rem; background: var(--nv-surface-2); border-radius: 10px; font-size: 0.82rem; border-left: 4px solid transparent; }
.nv-req-list--compact li { grid-template-columns: 1fr; gap: 2px; }
.nv-req-list li span { color: var(--nv-muted); font-weight: 700; }
.nv-req-list li strong { font-weight: 700; }
.nv-req-banner { padding: 0.55rem 0.75rem; margin-bottom: 0.45rem; border-radius: 10px; background: var(--nv-surface-2); font-size: 0.8rem; color: var(--nv-text-soft); border-left: 4px solid var(--nv-gold); }

.nv-req-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0.4rem 0 0.9rem; }
.nv-req-card { padding: 0.6rem 0.7rem; background: var(--nv-surface-2); border-radius: 12px; display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; border-bottom: 3px solid rgba(0, 0, 0, 0.22); }
.nv-req-card__top { color: var(--nv-muted); font-weight: 700; font-size: 0.74rem; }
.nv-req-card strong { font-size: 0.83rem; }

.nv-req-res { grid-column: 1 / -1; font-style: normal; font-size: 0.76rem; font-weight: 700; margin-top: 2px; }
.nv-req-res:empty { display: none; }
.nv-req-list li.is-ok, .nv-req-card.is-ok { border-left: 4px solid var(--nv-emerald); }
.nv-req-list li.is-ok .nv-req-res, .nv-req-card.is-ok .nv-req-res { color: var(--nv-emerald); }
.nv-req-list li.is-warn, .nv-req-card.is-warn { border-left: 4px solid var(--nv-gold); }
.nv-req-list li.is-warn .nv-req-res, .nv-req-card.is-warn .nv-req-res { color: var(--nv-gold); }
.nv-req-list li.is-bad, .nv-req-card.is-bad { border-left: 4px solid var(--nv-primary); }
.nv-req-list li.is-bad .nv-req-res, .nv-req-card.is-bad .nv-req-res { color: var(--nv-primary); }
.nv-tool__run { width: 100%; margin-top: auto; }
.nv-tool__verdict { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.8rem; font-size: 0.86rem; color: var(--nv-text-soft); }
.nv-tool__verdict:empty { display: none; }
.nv-verdict__score {
  --p: 0;
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--nv-emerald) calc(var(--p) * 1%), var(--nv-surface-2) 0);
}
.nv-verdict__score span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--nv-surface); font-weight: 800; font-size: 0.78rem; }

/* Skill DNA: bars, chips, AND circular rings */
.nv-dna__row { display: grid; grid-template-columns: 120px 1fr 30px; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; font-size: 0.82rem; }
.nv-dna__name { font-weight: 700; color: var(--nv-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-dna__track { height: 10px; background: var(--nv-surface-2); border-radius: 999px; overflow: hidden; }
.nv-dna__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--nv-gold), var(--nv-primary)); }
.nv-dna__val { font-weight: 800; text-align: right; }
.nv-dna--chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.nv-dna__chip { padding: 0.55rem 0.7rem; border-radius: 12px; background: var(--nv-surface-2); display: flex; flex-direction: column; font-size: 0.82rem; border-left: 4px solid var(--nv-muted); }
.nv-dna__chip span { color: var(--nv-muted); font-size: 0.75rem; font-weight: 600; }
.nv-dna__chip--high { border-left-color: var(--nv-primary); }
.nv-dna__chip--medium { border-left-color: var(--nv-gold); }
.nv-dna__chip--light, .nv-dna__chip--low { border-left-color: var(--nv-emerald); }

.nv-dna-rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; text-align: center; }
.nv-dna-ring { background: var(--nv-surface-2); border-radius: 14px; padding: 0.65rem 0.4rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.nv-dna-ring__circle { --p: 50; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--nv-gold) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); }
.nv-dna-ring__circle span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--nv-surface-2); font-weight: 800; font-size: 0.74rem; }
.nv-dna-ring strong { font-size: 0.74rem; line-height: 1.2; color: var(--nv-text-soft); }

.nv-dna__quiz { margin-top: auto; padding-top: 0.8rem; border-top: 2px dashed var(--nv-border); }
.nv-dna__quiz-q { font-weight: 800; font-size: 0.84rem; margin-bottom: 0.45rem; }
.nv-dna__quiz-opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.nv-dna__quiz-opts .nv-sort-btn { padding: 0.35rem 0.7rem; font-size: 0.76rem; }
.nv-dna__quiz-out { margin-top: 0.55rem; font-size: 0.84rem; color: var(--nv-gold); font-weight: 600; }

/* Trophy Challenge Tracker (ladder & cards) */
.nv-chl-list { display: flex; flex-direction: column; gap: 0.5rem; }
.nv-chl-list--cards { display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
.nv-chl-item { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.6rem 0.75rem; background: var(--nv-surface-2); border-radius: 12px; cursor: pointer; border-left: 4px solid var(--nv-gold); transition: opacity 0.15s ease, transform 0.12s ease; }
.nv-chl-item:hover { transform: translateX(2px); }
.nv-chl-item input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--nv-emerald); cursor: pointer; flex-shrink: 0; }
.nv-chl-item__body { display: flex; flex-direction: column; gap: 2px; font-size: 0.81rem; color: var(--nv-text-soft); }
.nv-chl-item__body strong { color: var(--nv-text); font-size: 0.84rem; }
.nv-chl-item__body strong em { font-style: normal; font-size: 0.72rem; color: var(--nv-gold); margin-left: 4px; }
.nv-chl-item.is-done { border-left-color: var(--nv-emerald); opacity: 0.78; }
.nv-chl-item.is-done .nv-chl-item__body strong { text-decoration: line-through; }

/* Session & Device Setup Advisor */
.nv-session-out { padding: 0.75rem 0.85rem; background: var(--nv-surface-2); border-radius: 12px; font-size: 0.86rem; color: var(--nv-text-soft); line-height: 1.55; }
.nv-setup-card { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 0.9rem; background: var(--nv-surface-2); border-radius: 14px; margin-top: auto; border-left: 4px solid var(--nv-emerald); }
.nv-setup-card__score { flex-shrink: 0; text-align: center; padding: 0.45rem 0.65rem; background: var(--nv-surface); border-radius: 10px; }
.nv-setup-card__score span { display: block; font-size: 0.68rem; color: var(--nv-muted); font-weight: 700; text-transform: uppercase; }
.nv-setup-card__score strong { font-family: var(--nv-display); font-size: 1.05rem; color: var(--nv-gold); }
.nv-setup-card p { font-size: 0.85rem; color: var(--nv-text-soft); line-height: 1.5; }

.nv-faq { display: flex; flex-direction: column; gap: 0.5rem; }
.nv-faq__item { background: var(--nv-surface-2); border-radius: 12px; padding: 0.2rem 0.9rem; }
.nv-faq__item summary { cursor: pointer; padding: 0.6rem 0; font-weight: 700; font-size: 0.9rem; list-style: none; }
.nv-faq__item summary::-webkit-details-marker { display: none; }
.nv-faq__item summary::before { content: "+"; display: inline-block; width: 1.2rem; color: var(--nv-gold); font-weight: 800; }
.nv-faq__item[open] summary::before { content: "−"; }
.nv-faq__item p { padding: 0 0 0.75rem 1.2rem; font-size: 0.87rem; color: var(--nv-text-soft); line-height: 1.6; }

.nv-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 899px) {
  .nv-tools-row { grid-template-columns: 1fr; }
  .nv-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .nv-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-genre-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-req-cards, .nv-req-list--compact { grid-template-columns: 1fr; }
  .nv-dna-rings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-req-list li { grid-template-columns: 96px 1fr; }
  .nv-pager .nv-btn { flex: 1; text-align: center; }
}
