/* =========================================================
   QOL2K — Quality of Life Mods
   Multi-Game Mod Hub
   Palette: #0A0A0A / #111111 / #FFFFFF / #FF2D2D
   ========================================================= */

:root {
  /* Color — brand palette */
  --bg: #0A0A0A;
  --bg-raised: #111111;
  --panel: #181818;
  --panel-hover: #1E1E1E;
  --panel-border: #2A2A2A;
  --panel-border-soft: #1E1E1E;
  --text: #FFFFFF;
  --text-dim: #B0B0B0;
  --text-mute: #606060;
  --red: #FF2D2D;
  --red-dim: #CC2424;
  --red-bg: rgba(255, 45, 45, 0.08);
  --red-glow: rgba(255, 45, 45, 0.30);
  --red-subtle: rgba(255, 45, 45, 0.12);
  --white-accent: #FFFFFF;
  --white-dim: rgba(255, 255, 255, 0.4);

  /* Type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  /* Layout */
  --nav-height: 68px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 1240px;
  --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  font-weight: 600;
  line-height: 1.05;
}

section { position: relative; }

/* =========================================================
   Eyebrow — used sparingly per comfy rules (max 1 per 3 sections)
   ========================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease, border-color 0.18s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red-dim);
}
.btn-primary:hover {
  background: #ff1a1a;
  box-shadow: 0 8px 28px var(--red-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-bg);
  transform: translateY(-2px);
}

.btn-facebook {
  background: var(--panel);
  border-color: var(--panel-border);
  color: var(--text);
}
.btn-facebook:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-bg);
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(8, 8, 8, 0.94);
  border-bottom-color: var(--panel-border-soft);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

/* Breadcrumb context indicator next to logo */
.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--panel-border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}

.nav-crumb {
  color: var(--text-mute);
  transition: color 0.15s ease;
}

.nav-crumb.current {
  color: var(--red);
}

.nav-sep {
  color: var(--panel-border);
  font-size: 9px;
  user-select: none;
}

@media (max-width: 640px) {
  .nav-breadcrumb {
    display: none;
  }
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
}

.brand-mark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand-mark span { color: var(--red); }

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  text-transform: uppercase;
  display: none;
}
@media (min-width: 560px) {
  .brand-sub { display: inline; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li > a,
.nav-dropdown-trigger {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
  color: var(--text);
  background: var(--panel);
}
.nav-links > li > a.active,
.nav-dropdown-trigger.active {
  color: var(--red);
}

.dd-chevron {
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .dd-chevron,
.nav-dropdown.is-open .dd-chevron {
  transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--bg-raised);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  z-index: 600;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--bg-raised);
  border-left: 1px solid var(--panel-border);
  border-top: 1px solid var(--panel-border);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 16px 9px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border-left: 2px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--text);
  background: var(--panel);
}
.nav-dropdown-menu a.active {
  color: var(--red);
  border-left-color: var(--red);
}

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

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 490;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 18px 28px 40px;
  display: grid;
  gap: 2px;
}
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--panel-border-soft);
}
.mobile-menu a.active { color: var(--red); }
@media (min-width: 900px) {
  .mobile-menu { display: none; }
}

/* =========================================================
   Hero — Video Background (homepage only)
   ========================================================= */
.hero-video-wrap {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-border-soft);
}

.hero-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.60) 0%,
    rgba(10, 10, 10, 0.35) 50%,
    rgba(10, 10, 10, 0.75) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 28px;
}

.hero-content .tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.hero-content h1 {
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hero-content .hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 28px;
  font-weight: 400;
  line-height: 1.5;
  font-family: var(--font-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-video-wrap {
    height: 320px;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .hero-content .hero-sub {
    font-size: 14px;
  }
}

/* =========================================================
   Game Hub Cards (homepage)
   ========================================================= */
.game-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.game-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--red-dim);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  background: #1C1C1C;
}

/* Subtle glow per game card */
.game-card[data-game="nba2k14"]:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 45, 45, 0.08);
}
.game-card[data-game="nba2k23"]:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 160, 255, 0.06);
}
.game-card[data-game="pba2k"]:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 45, 45, 0.06);
}
.game-card[data-game="fiba2k"]:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 200, 100, 0.06);
}

.game-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  border: 1px solid var(--panel-border);
  color: var(--text);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.game-card[data-game="nba2k14"] .game-card-icon {
  background: rgba(255, 45, 45, 0.1);
  border-color: rgba(255, 45, 45, 0.3);
  color: var(--red);
}
.game-card[data-game="nba2k23"] .game-card-icon {
  background: rgba(0, 160, 255, 0.08);
  border-color: rgba(0, 160, 255, 0.25);
  color: #60B0FF;
}
.game-card[data-game="pba2k"] .game-card-icon {
  background: var(--red-bg);
  border-color: var(--red-dim);
  color: var(--red);
}
.game-card[data-game="fiba2k"] .game-card-icon {
  background: rgba(0, 200, 100, 0.08);
  border-color: rgba(0, 200, 100, 0.25);
  color: #00D864;
}

.game-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.game-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 auto;
  line-height: 1.55;
  max-width: 400px;
}

.game-card .game-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 0.2s ease;
}

.game-card .game-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.game-card:hover .game-link::after {
  transform: translateX(6px);
}

.game-card[data-game="nba2k14"] .game-link { color: var(--red); }
.game-card[data-game="nba2k23"] .game-link { color: #60B0FF; }
.game-card[data-game="pba2k"] .game-link { color: var(--red); }
.game-card[data-game="fiba2k"] .game-link { color: #00D864; }

/* Coming Soon badge */
.game-coming-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
  background: var(--panel);
  color: var(--text-mute);
  border: 1px solid var(--panel-border);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.game-card.coming-soon {
  cursor: default;
}

.game-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  background: var(--panel);
  border-color: var(--panel-border);
}

.game-card.coming-soon::before {
  background: var(--panel-border);
}

.game-card.coming-soon:hover::before {
  transform: scaleX(0);
}

.game-card.coming-soon .game-link {
  color: var(--text-mute) !important;
}

.game-card.coming-soon .game-link::after {
  display: none;
}

.game-card.coming-soon:hover .game-link::after {
  transform: none;
}

@media (max-width: 700px) {
  .game-hub-grid {
    grid-template-columns: 1fr;
  }
  .game-card {
    padding: 28px 24px;
  }
  .game-card h3 {
    font-size: 20px;
  }
}

/* =========================================================
   Stats Strip (homepage)
   ========================================================= */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--panel-border-soft);
  border-bottom: 1px solid var(--panel-border-soft);
}

.home-stat {
  background: var(--bg);
  padding: 40px 24px 36px;
  text-align: center;
  transition: background 0.25s ease;
}

.home-stat:hover {
  background: var(--bg-raised);
}

.home-stat .num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.2vw, 44px);
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.home-stat .num .red {
  color: var(--red);
}

.home-stat .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: block;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .home-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-stat {
    padding: 28px 16px 24px;
  }
}

@media (max-width: 420px) {
  .home-stats {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Featured Projects (homepage)
   ========================================================= */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.feat-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.feat-card:hover {
  transform: translateY(-5px);
  border-color: var(--red-dim);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.feat-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(255, 45, 45, 0.08), rgba(255, 200, 50, 0.04));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feat-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease;
}

.feat-card:hover .feat-thumb-img {
  transform: scale(1.05);
}

.feat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  background: var(--red);
  color: #fff;
}

.feat-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.feat-body h3 {
  font-size: 17px;
  letter-spacing: 0.02em;
}

.feat-body .feat-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
  flex: 1;
  line-height: 1.55;
}

.feat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red-dim);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
  margin: 0 20px 16px;
}

.feat-btn:hover {
  background: #ff1a1a;
  box-shadow: 0 0 20px var(--red-glow);
  transform: translateY(-1px);
}

.feat-btn svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   NBA 2K14 Landing Page — Hero (shorter, bottom-cropped)
   ========================================================= */
.nba2k14-hero {
  height: 380px;
}

.nba2k14-hero .tagline {
  font-size: 11px;
  letter-spacing: 0.28em;
  margin-bottom: 14px;
}

.nba2k14-hero h1 {
  font-size: clamp(38px, 5.8vw, 64px);
  max-width: 800px;
  line-height: 1.05;
  margin-bottom: 14px;
}

.nba2k14-hero .hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  max-width: 620px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .nba2k14-hero {
    height: 300px;
  }
  .nba2k14-hero h1 {
    font-size: 30px;
  }
  .nba2k14-hero .hero-sub {
    font-size: 13px;
  }
}

/* =========================================================
   NBA 2K14 Landing Page — Stats Strip
   ========================================================= */
.n2k-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--panel-border-soft);
  border-bottom: 1px solid var(--panel-border-soft);
}

.n2k-stat {
  background: var(--bg);
  padding: 36px 24px 32px;
  text-align: center;
  transition: background 0.25s ease;
}

.n2k-stat:hover {
  background: var(--bg-raised);
}

.n2k-stat .num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.n2k-stat .num .red {
  color: var(--red);
}

.n2k-stat .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: block;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .n2k-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .n2k-stat {
    padding: 28px 16px 24px;
  }
}

@media (max-width: 420px) {
  .n2k-stats {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   NBA 2K14 Landing Page — Featured Categories
   ========================================================= */
.n2k-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.n2k-cat-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 32px 24px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.n2k-cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--red);
  transition: height 0.35s ease;
  z-index: 2;
}

.n2k-cat-card:hover::before {
  height: 100%;
}

.n2k-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-dim);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.n2k-cat-card .cat-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  border: 1px solid var(--panel-border);
  background: var(--bg-raised);
  color: var(--red);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.n2k-cat-card:hover .cat-icon {
  background: var(--red-bg);
  border-color: var(--red-dim);
}

.n2k-cat-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.n2k-cat-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0 0 auto;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.n2k-cat-card .cat-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: color 0.2s ease;
}

.n2k-cat-card .cat-arrow::after {
  content: "→";
  transition: transform 0.25s ease;
}

.n2k-cat-card:hover .cat-arrow::after {
  transform: translateX(6px);
}

.n2k-cat-card:hover .cat-arrow {
  color: var(--red);
}

@media (max-width: 800px) {
  .n2k-cats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .n2k-cats {
    grid-template-columns: 1fr;
  }
  .n2k-cat-card {
    padding: 24px 20px;
  }
  .n2k-cat-card h3 {
    font-size: 18px;
  }
}

/* =========================================================
   Why QOL2K Section
   ========================================================= */
.why-n2k {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.why-n2k-text h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 20px;
}

.why-n2k-text p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.why-n2k-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.why-n2k-stat {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.why-n2k-stat:hover {
  border-color: var(--red-dim);
  background: var(--panel-hover);
}

.why-n2k-stat .num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.why-n2k-stat .label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

@media (max-width: 700px) {
  .why-n2k {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .why-n2k-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   NBA 2K14 Landing — Tools Highlight
   ========================================================= */
.n2k-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.n2k-tool-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.n2k-tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-dim);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.n2k-tool-card .tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  border: 1px solid var(--panel-border);
  background: var(--bg-raised);
  color: var(--text-dim);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.n2k-tool-card:hover .tool-icon {
  color: var(--red);
  border-color: var(--red-dim);
  background: var(--red-bg);
}

.n2k-tool-card h4 {
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.03em;
}

/* =========================================================
   PBA 2K Landing Page — Hero
   ========================================================= */
.pba-hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-border-soft);
  display: flex;
  align-items: center;
}

.pba-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255, 45, 45, 0.08), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(255, 45, 45, 0.04), transparent 40%),
    linear-gradient(135deg, #0A0A0A 0%, #111111 50%, #0A0A0A 100%);
  z-index: 0;
}

.pba-hero .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.50) 0%,
    rgba(10, 10, 10, 0.25) 50%,
    rgba(10, 10, 10, 0.70) 100%
  );
}

.pba-hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  text-align: left;
  display: block;
}

.pba-hero .hero-content .tagline {
  text-align: left;
}

.pba-hero .hero-content h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  max-width: 700px;
  text-align: left;
  margin-bottom: 14px;
}

.pba-hero .hero-content .hero-sub {
  max-width: 560px;
  text-align: left;
  margin-bottom: 28px;
}

.pba-hero .hero-actions {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .pba-hero {
    height: 380px;
  }
  .pba-hero .hero-content h1 {
    font-size: 32px;
  }
  .pba-hero .hero-content .hero-sub {
    font-size: 14px;
  }
}

/* =========================================================
   PBA 2K — Carousel
   ========================================================= */
.pba-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  aspect-ratio: 16/9;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 10, 10, 0.7);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pba-carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(10, 10, 10, 0.9);
  border-color: var(--red);
  color: var(--red);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.carousel-dot.is-active {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .carousel-btn {
    width: 32px;
    height: 32px;
    opacity: 1;
  }
  .carousel-prev {
    left: 8px;
  }
  .carousel-next {
    right: 8px;
  }
  .carousel-dots {
    bottom: 10px;
  }
  .carousel-dot {
    width: 6px;
    height: 6px;
  }
}

/* =========================================================
   PBA 2K — Stats
   ========================================================= */
.pba-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--panel-border-soft);
  border-bottom: 1px solid var(--panel-border-soft);
}

.pba-stat {
  background: var(--bg);
  padding: 36px 24px 32px;
  text-align: center;
  transition: background 0.25s ease;
}

.pba-stat:hover {
  background: var(--bg-raised);
}

.pba-stat .num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.pba-stat .num .accent {
  color: var(--red);
}

.pba-stat .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: block;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .pba-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .pba-stat {
    padding: 28px 16px 24px;
  }
}

@media (max-width: 420px) {
  .pba-stats {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Base Game Download Card (NBA 2K14)
   Used on nba2k14.html and pba2k.html
   ========================================================= */

.n2k-download-base {
  background: var(--bg-raised);
  border-top: 1px solid var(--panel-border-soft);
  border-bottom: 1px solid var(--panel-border-soft);
}

.n2k-download-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.n2k-download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.n2k-download-card:hover::before {
  transform: scaleX(1);
}

.n2k-download-card:hover {
  border-color: var(--red-dim);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 45, 45, 0.06);
}

.n2k-download-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--red-bg);
  border: 1px solid var(--red-dim);
  color: var(--red);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.n2k-download-card:hover .n2k-download-card-icon {
  background: var(--red-subtle);
  border-color: var(--red);
  transform: scale(1.05);
}

.n2k-download-card-icon svg {
  width: 26px;
  height: 26px;
}

.n2k-download-card .eyebrow {
  margin-bottom: 12px;
}

.n2k-download-card h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.n2k-download-card > p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 auto 24px;
  max-width: 500px;
}

.n2k-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.n2k-download-note {
  font-size: 11.5px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .n2k-download-card {
    padding: 36px 24px 32px;
  }
  .n2k-download-card-icon {
    width: 48px;
    height: 48px;
  }
  .n2k-download-card-icon svg {
    width: 22px;
    height: 22px;
  }
}

/* =========================================================
   PBA 2K — Download Section
   ========================================================= */
.pba-download {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.pba-download h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  margin-bottom: 16px;
}

.pba-download > p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 auto 24px;
  max-width: 520px;
}

.pba-download-list {
  list-style: none;
  margin: 0 auto 28px;
  padding: 0;
  max-width: 420px;
  text-align: left;
  display: grid;
  gap: 10px;
}

.pba-download-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.4;
}

.pba-download-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 12px;
}

.pba-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.pba-download-note {
  font-size: 11.5px;
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* =========================================================
   NBA 2K14 Landing — Footer CTA
   ========================================================= */
.footer-cta {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-raised);
  border-top: 1px solid var(--panel-border-soft);
  border-bottom: 1px solid var(--panel-border-soft);
}

.footer-cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer-cta p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.footer-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* =========================================================
   Community Section (homepage)
   ========================================================= */
.community-section {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--panel-border-soft);
  border-bottom: 1px solid var(--panel-border-soft);
  background: var(--bg-raised);
}

.community-section h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 12px;
}

.community-section p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.community-section .btn-community {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.community-section .btn-community:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-bg);
  transform: translateY(-2px);
}

.community-section .btn-community svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
   Section headers
   ========================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.section-head p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.section-pad { padding: 80px 0; }
.section-pad.tight { padding: 60px 0; }
.section-alt { background: var(--bg-raised); border-top: 1px solid var(--panel-border-soft); border-bottom: 1px solid var(--panel-border-soft); }

/* =========================================================
   Category cards
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.cat-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 24px 22px 22px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.cat-card::before {
  content: attr(data-index);
  position: absolute;
  top: -4px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--panel-border);
  line-height: 1;
  transition: color 0.25s ease;
  user-select: none;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-dim);
  background: var(--panel-hover);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.cat-card:hover::before { color: rgba(255, 45, 45, 0.25); }

.cat-card .cat-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-dim);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 14px;
}

.cat-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.cat-card p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
  min-height: 50px;
  line-height: 1.55;
}

.cat-card .cat-link {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-card .cat-link::after { content: "→"; transition: transform 0.2s ease; }
.cat-card:hover .cat-link::after { transform: translateX(5px); }

/* =========================================================
   Mod cards
   ========================================================= */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.mod-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}
.mod-card:hover {
  transform: translateY(-5px);
  border-color: var(--panel-border);
  box-shadow: var(--shadow-lift);
}

.mod-card.featured {
  border-color: rgba(255, 255, 255, 0.15);
}
.mod-card.featured .mod-thumb::after {
  border-color: rgba(255, 255, 255, 0.3);
}

.mod-thumb {
  aspect-ratio: 16/9;
  background: var(--panel);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dashed border frame */
.mod-thumb::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 1;
}

.mod-thumb .placeholder-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  z-index: 1;
}

/* Preview image inside mod-thumb */
.mod-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease;
}
.mod-card:hover .mod-thumb-img {
  transform: scale(1.04);
}

.mod-thumb .featured-flag,
.mod-thumb .adfree-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}
.mod-thumb .featured-flag {
  background: var(--white-accent);
  color: var(--red);
}
.mod-thumb .adfree-flag {
  background: #1a8a3f;
  color: #fff;
  left: auto;
  right: 10px;
}

.mod-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mod-body h3 {
  font-size: 17px;
  letter-spacing: 0.02em;
}
.mod-body .mod-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
  flex: 1;
  line-height: 1.55;
}

.mod-note {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--red-bg);
  border: 1px solid var(--red-dim);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  margin: 0;
  line-height: 1.4;
}

.stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  border-top: 1px solid var(--panel-border-soft);
  padding-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-line b { color: var(--text-dim); font-weight: 600; }
.stat-line a { color: var(--red); text-decoration: underline; }
.stat-line a:hover { color: #ff1a1a; }

.mod-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 18px;
}

/* Download button */
.btn-download {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: #fff;  background: linear-gradient(180deg, #ff1a1a, #CC2424);
  border: 1px solid #CC2424;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 rgba(255,45,45,0);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.btn-download svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-download:hover {
  background: linear-gradient(180deg, #ff3333, #d62828);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 0 20px var(--red-glow);
  transform: translateY(-1px);
}
.btn-download:active { transform: translateY(0); }

.btn-details {
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.btn-details:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-bg);
}

/* =========================================================
   Page header (category pages)
   ========================================================= */
.page-header {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--panel-border-soft);
}
.page-header h1 {
  font-size: clamp(34px, 5vw, 50px);
  letter-spacing: 0.04em;
}
.page-header p {
  color: var(--text-dim);
  max-width: 600px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
}
.crumb {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.crumb a { color: var(--red); }
.crumb a:hover { color: #ff1a1a; }

/* =========================================================
   Search + filters
   ========================================================= */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 24px 0;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}
.search-box input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px 11px 38px;
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease;
}
.search-box input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-subtle);
}
.search-box input::placeholder {
  color: var(--text-mute);
}
.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-mute);
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--panel-border);
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--panel);
  cursor: not-allowed;
  opacity: 0.6;
}
.filter-chip.active { color: var(--red); border-color: var(--red-dim); opacity: 1; }
.filter-note { font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); }

.result-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-mute);
  border: 1px dashed var(--panel-border);
  border-radius: var(--radius-md);
  display: none;
  font-family: var(--font-body);
}
.result-empty.show { display: block; }

/* =========================================================
   Why section
   ========================================================= */
.why-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.why-card {
  padding: 28px 24px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  border-color: var(--red-dim);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.why-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  margin-bottom: 14px;
}
.why-card h3 { font-size: 19px; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--text-dim); margin: 0; line-height: 1.55; }

/* =========================================================
   Credits
   ========================================================= */
.credits-block {
  padding: 56px 0;
  border-top: 1px solid var(--panel-border-soft);
}
.credits-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-md);
  padding: 30px 32px;
  transition: box-shadow 0.3s ease;
}
.credits-panel:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.credits-panel h2 { font-size: 22px; margin-bottom: 12px; }
.credits-panel p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 720px;
  margin: 0 0 18px;
  line-height: 1.6;
}
.credits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.credits-list li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--bg-raised);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--panel-border-soft);
  background: var(--bg-raised);
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-bottom: 36px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand .brand-mark { font-size: 20px; }
.footer-brand p { color: var(--text-mute); font-size: 13px; max-width: 320px; margin-top: 12px; line-height: 1.55; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-dim);
  border: 1px solid var(--panel-border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.footer-social:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.footer-social svg { width: 15px; height: 15px; }

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 13.5px; color: var(--text-dim); }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--panel-border-soft);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* =========================================================
   Modal
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 9, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal-box {
  background: var(--bg-raised);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.modal-overlay.is-open .modal-box { transform: translateY(0); }

.modal-thumb {
  aspect-ratio: 21/9;
  background: var(--panel);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.modal-thumb .modal-thumb-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.modal-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: rgba(10, 10, 10, 0.8);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.modal-close:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }

.modal-content { padding: 26px 28px 30px; }
.modal-content h2 { font-size: 24px; margin-bottom: 6px; letter-spacing: 0.03em; }
.modal-content .stat-line { margin-bottom: 18px; }
.modal-section { margin-bottom: 18px; }
.modal-section h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.modal-section p, .modal-section li { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.modal-section ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }

body.modal-lock { overflow: hidden; }

/* =========================================================
   Scroll reveal + fades
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* =========================================================
   Latest releases strip
   ========================================================= */
.latest-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* =========================================================
   Toast
   ========================================================= */
.qol2k-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  background: var(--bg-raised);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-size: 13px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: var(--font-body);
}
.qol2k-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   Donation Floating CTA (Ko-fi)
   ========================================================= */
.donation-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 8px 28px var(--red-glow);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background 0.2s ease;
  line-height: 1;
}

.donation-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px var(--red-glow);
  background: #ff1a1a;
  color: #fff;
}

.donation-cta:active {
  transform: translateY(-1px) scale(1.01);
}

.donation-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.donation-cta .cta-label {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .donation-cta {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 12px;
  }
  .donation-cta .cta-label {
    display: none;
  }
  .donation-cta svg {
    width: 22px;
    height: 22px;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Subtle hover line decoration (comfy touch)
   ========================================================= */
.section-head h2 {
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-top: 8px;
  border-radius: 2px;
}
