/* =========================
   Laptime.dev — cleaned index.css
   Deduped and merged from the current stylesheet.
   ========================= */

/* =========================
   0) RESET / BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html:focus-within {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #000;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

img[alt=""] {
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

strong {
  font-weight: 800;
}

::selection {
  background: rgba(224, 56, 56, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   1) TOKENS
========================= */

:root {
  --accent: #e03838;
  --accent-2: #b92525;
  --accent-3: #7f1717;
  --accent-soft: rgba(224, 56, 56, 0.12);
  --accent-softer: rgba(224, 56, 56, 0.07);

  --bg-0: #000;
  --bg-1: rgba(12, 12, 12, 0.86);
  --bg-2: rgba(16, 16, 16, 0.92);
  --bg-card: rgba(14, 14, 14, 0.94);
  --bg-card-2: rgba(18, 18, 18, 0.92);
  --glass: rgba(255, 255, 255, 0.04);

  --text: #f2f2f2;
  --muted: #a7aab2;
  --muted-2: rgba(242, 242, 242, 0.74);
  --muted-3: rgba(242, 242, 242, 0.62);

  --border: rgba(255, 255, 255, 0.11);
  --border-soft: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.16);

  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-pill: 999px;

  --sh-1: 0 16px 40px rgba(0, 0, 0, 0.65);
  --sh-2: 0 26px 70px rgba(0, 0, 0, 0.82);
  --sh-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);

  --maxw: 1200px;
  --lh: 1.55;
}

/* =========================
   2) BACKGROUND SYSTEM
========================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: url("/assets/NFSUNBOUND.jpg") center / cover no-repeat;
  transform: translateZ(0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 800px at 18% 10%, rgba(224, 56, 56, 0.14), transparent 62%),
    radial-gradient(900px 650px at 85% 22%, rgba(255, 255, 255, 0.07), transparent 58%),
    radial-gradient(1400px 900px at 50% 50%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.70)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.94));
}

/* =========================
   3) LAYOUT
========================= */

main {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 18px 46px;
}

main::before {
  content: "";
  position: absolute;
  inset: -120px -40px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 680px at 50% 20%, rgba(0, 0, 0, 0.60), transparent 70%),
    radial-gradient(900px 680px at 50% 90%, rgba(0, 0, 0, 0.55), transparent 75%);
}

/* =========================
   4) TYPOGRAPHY + SECTION HEADERS
========================= */

.jn-section-title,
.jn-latest-title,
.jn-pvp-title,
.jn-hero-title,
.jn-hero-title-sm,
.jn-podcast-title,
.loader-title,
.jn-popup-content h2 {
  text-transform: uppercase;
}

.jn-section-title,
.jn-latest-title,
.jn-pvp-title,
.jn-hero-title,
.jn-hero-title-sm {
  letter-spacing: 0.2em;
}

.jn-section-title {
  margin: 44px 0 12px;
  font-size: 18px;
  font-weight: 900;
}

.jn-section-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted-2);
  line-height: var(--lh);
}

/* =========================
   5) SURFACES
========================= */

.jn-hero,
.jn-discord-panel,
.jn-latest-block,
.jn-pvp-wrapper,
.jn-hero-teams,
.jn-podcast-banner {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2), var(--sh-inset);
  backdrop-filter: blur(6px);
}

.jn-card,
.jn-stat-card,
.jn-latest-card,
.jn-pvp-card,
.jn-team-card,
.loader-box,
.jn-popup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1), var(--sh-inset);
}

.jn-card,
.jn-latest-card,
.jn-pvp-card,
.jn-team-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 35%),
    var(--bg-card);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.jn-card:hover,
.jn-latest-card:hover,
.jn-pvp-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

/* =========================
   6) PILLS / BADGES
========================= */

.jn-pill,
.jn-live-pill,
.jn-pill-small,
.jn-latest-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(242, 242, 242, 0.92);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.jn-pill {
  font-size: 11px;
  letter-spacing: 0.18em;
}

.jn-pill-small {
  padding: 4px 10px;
  letter-spacing: 0.15em;
}

.jn-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* =========================
   7) BUTTONS
========================= */

.jn-btn-primary,
.jn-btn-ghost,
.jn-discord-join,
.jn-popup-btn,
.jn-podcast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.jn-btn-primary,
.jn-discord-join,
.jn-popup-btn,
.jn-podcast-btn {
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 70%, rgba(255, 255, 255, 0.20));
  color: #fff;
}

.jn-btn-primary:hover,
.jn-discord-join:hover,
.jn-popup-btn:hover,
.jn-podcast-btn:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.jn-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.jn-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.16));
  transform: translateY(-1px);
}

/* =========================
   8) HERO
========================= */

.jn-hero {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 36px 30px 30px;
}

.jn-hero::before {
  content: "";
  position: absolute;
  inset: -45%;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 22%, rgba(224, 56, 56, 0.10), transparent 60%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.06), transparent 55%);
}

.jn-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
}

.jn-hero-title {
  margin: 0 0 10px;
  font-size: 38px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.jn-hero-text {
  max-width: 560px;
  margin: 0;
  font-size: 15px;
  line-height: var(--lh);
  color: rgba(242, 242, 242, 0.90);
}

.jn-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* =========================
   9) HERO STATS
========================= */

.jn-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.jn-stat-card {
  padding: 14px 14px 12px;
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(255, 255, 255, 0.02);
}

.jn-stat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.76);
}

.jn-stat-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  font-feature-settings: "tnum" 1;
}

.jn-stat-sub {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(242, 242, 242, 0.68);
}

/* =========================
   10) DISCORD PANEL
========================= */

.jn-discord-panel {
  margin-top: 40px;
  padding: 22px 24px;
}

.jn-discord-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.jn-discord-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #111;
  object-fit: cover;
}

.jn-discord-name {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jn-discord-stats {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.jn-discord-stats a {
  color: color-mix(in srgb, var(--accent) 75%, #fff);
}

.jn-discord-stats a:hover,
.jn-card-link:hover {
  color: #fff;
}

.jn-discord-join {
  margin-top: 14px;
}

.jn-discord-online-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  max-height: 92px;
  overflow: hidden;
}

.jn-discord-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  object-fit: cover;
}

/* =========================
   11) PODCAST BANNER
========================= */

.jn-podcast-banner {
  position: relative;
  margin-top: 40px;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(224, 56, 56, 0.12), transparent 70%),
    var(--bg-2);
}

.jn-podcast-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  align-items: center;
  gap: 28px;
  padding: 28px;
}

.jn-podcast-image img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.jn-podcast-title {
  margin: 8px 0;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.jn-podcast-desc {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-2);
}

.jn-podcast-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.jn-podcast-close:hover {
  background: #ff2c2c;
}

/* =========================
   12) LATEST SUBMISSIONS
========================= */

.jn-latest-block {
  margin-top: 44px;
  padding: 26px 26px 30px;
}

.jn-latest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.jn-latest-title {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.26em;
}

.jn-latest-live {
  gap: 10px;
}

.jn-latest-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(242, 242, 242, 0.80);
}

.jn-latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.jn-loading {
  font-size: 14px;
  color: var(--muted);
}

.jn-latest-card {
  position: relative;
  min-height: 146px;
  padding: 16px 18px;
  cursor: pointer;
  overflow: hidden;
}

.jn-latest-card[aria-disabled="true"] {
  cursor: default;
  opacity: 0.85;
  transform: none !important;
}

.jn-latest-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
}

/* top row: full-width name + icons */
.jn-latest-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  min-width: 0;
}

.jn-latest-name {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jn-latest-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.jn-mode-icon,
.jn-class-icon {
  position: static;
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  opacity: 0.95;
  pointer-events: none;
  flex: 0 0 auto;
}

.jn-shot-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  flex: 0 0 auto;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.jn-shot-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}

.jn-shot-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* second row: avatar + info */
.jn-latest-mainrow {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.jn-latest-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #111;
  object-fit: cover;
  flex: 0 0 64px;
}

.jn-latest-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.jn-latest-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.jn-latest-track {
  min-width: 0;
  color: rgba(242, 242, 242, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jn-latest-time {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.jn-latest-car {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(242, 242, 242, 0.75);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.jn-latest-date {
  font-size: 11px;
  color: rgba(242, 242, 242, 0.55);
  white-space: nowrap;
}

/* mobile */
@media (max-width: 768px) {
  .jn-latest-grid {
    grid-template-columns: 1fr;
  }

  .jn-latest-card {
    min-height: 132px;
    padding: 14px;
  }

  .jn-latest-topbar {
    margin-bottom: 12px;
    gap: 10px;
  }

  .jn-latest-name {
    font-size: 13px;
  }

  .jn-latest-mainrow {
    gap: 12px;
  }

  .jn-latest-avatar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .jn-mode-icon,
  .jn-class-icon {
    width: 20px;
    height: 20px;
  }

  .jn-shot-icon {
    width: 28px;
    height: 28px;
  }

  .jn-shot-icon img {
    width: 14px;
    height: 14px;
  }

  .jn-latest-track {
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .jn-latest-card {
    min-height: 126px;
    padding: 14px;
  }

  .jn-latest-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
}

/* =========================
   13) PVP PLAYLIST
========================= */

.jn-pvp-wrapper {
  margin-top: 48px;
  padding: 28px;
}

.jn-pvp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.jn-pvp-title {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.26em;
}

.jn-pvp-sub {
  font-size: 13px;
  color: var(--muted);
}

.jn-pvp-countdown {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.jn-pvp-countdown-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.jn-pvp-countdown-time {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.jn-pvp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.jn-pvp-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
}

.jn-pvp-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
}

.jn-pvp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.jn-pvp-day:empty {
  display: none;
}

.jn-pvp-day {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.80);
}

.jn-pvp-time {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.86);
  white-space: nowrap;
}

.jn-pvp-items {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(242, 242, 242, 0.92);
}

.jn-pvp-card strong {
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
}

.jn-pvp-card small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.jn-pvp-card div > div {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.jn-pvp-image {
  align-self: stretch;
}

.jn-pvp-image img,
.jn-pvp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
}

.jn-pvp-grid > .jn-pvp-card:nth-child(2) {
  border-color: color-mix(in srgb, var(--accent) 75%, var(--border-soft));
  box-shadow: inset 4px 0 0 var(--accent), var(--sh-2), var(--sh-inset);
}

.jn-pvp-link,
.jn-pvp-link:visited,
.jn-pvp-link:hover,
.jn-pvp-link:active {
  color: inherit;
  text-decoration: none;
}

/* =========================
   14) TEAMS
========================= */

.jn-hero-teams {
  margin-top: 40px;
  padding: 30px;
}

.jn-hero-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: flex-start;
}

.jn-teams-panel {
  display: flex;
  flex-direction: column;
}

.jn-hero-title-sm {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.22em;
}

.jn-team-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jn-team-card {
  overflow: hidden;
}

.jn-team-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
}

.jn-team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #111;
  object-fit: cover;
}

.jn-team-name {
  flex: 1;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jn-team-toggle {
  font-size: 20px;
  opacity: 0.75;
}

.jn-team-members {
  display: none;
  padding: 6px 18px 16px;
  border-top: 1px solid var(--border-soft);
}

.jn-team-card.open {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
  box-shadow: inset 4px 0 0 var(--accent), var(--sh-1), var(--sh-inset);
}

.jn-team-card.open .jn-team-members {
  display: block;
}

.jn-member {
  padding: 4px 0;
  font-size: 13px;
  color: var(--muted);
}

.jn-hero-poster {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2), var(--sh-inset);
}

.jn-hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   15) POPUP (EVENT)
========================= */

.jn-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jn-popup.hidden {
  display: none;
}

.jn-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
}

.jn-popup-card {
  position: relative;
  width: min(920px, 92vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--sh-2), var(--sh-inset);
}

.jn-popup-card img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}

.jn-popup-content {
  padding: 20px 24px 26px;
  text-align: center;
}

.jn-popup-content h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.20em;
}

.jn-popup-content p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: var(--lh);
  color: var(--muted);
}

.jn-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

/* =========================
   16) SCREENSHOT MODAL
========================= */

.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
}

.screenshot-modal.hidden {
  display: none;
}

.screenshot-modal-inner {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
}

#screenshotModalImg {
  display: block;
  max-width: 95vw;
  max-height: 95vh;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #000;
}

.screenshot-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
}

/* =========================
   17) LOADER
========================= */

#loaderScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

#loaderScreen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-box {
  width: min(380px, 92vw);
  padding: 18px 16px 16px;
  border-radius: 16px;
  text-align: center;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--sh-2), var(--sh-inset);
}

.loader-title {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.loader-sub {
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}

.loader-bar-wrap {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
}

.loader-status {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* =========================
   18) GENERIC GRID/CARDS
========================= */

.jn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.jn-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
}

.jn-card-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.78);
}

.jn-card-title {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 900;
}

.jn-card-text {
  flex: 1;
  margin-top: 4px;
  font-size: 13px;
  line-height: var(--lh);
  color: rgba(242, 242, 242, 0.84);
}

.jn-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 80%, #fff);
}

/* =========================
   19) RESPONSIVE
========================= */

@media (max-width: 980px) {
  .jn-hero-inner,
  .jn-hero-split,
  .jn-podcast-inner,
  .jn-pvp-grid {
    grid-template-columns: 1fr;
  }

  .jn-hero {
    padding: 26px 20px;
  }

  .jn-podcast-inner {
    text-align: center;
  }

  .jn-podcast-image img {
    max-height: 120px;
    margin: auto;
  }
}

@media (max-width: 768px) {
  main {
    padding: 22px 14px 34px;
  }

  .jn-hero,
  .jn-latest-block,
  .jn-pvp-wrapper,
  .jn-discord-panel {
    padding: 20px 18px 22px;
    border-radius: var(--r-lg);
  }

  .jn-hero-inner {
    gap: 18px;
    align-items: stretch;
  }

  .jn-hero-title {
    font-size: 28px;
    letter-spacing: 0.14em;
  }

  .jn-hero-text {
    font-size: 14px;
  }

  .jn-hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .jn-btn-primary,
  .jn-btn-ghost,
  .jn-discord-join {
    width: 100%;
    padding: 14px 18px;
    justify-content: center;
  }

  .jn-grid,
  .jn-latest-grid,
  .jn-pvp-grid {
    grid-template-columns: 1fr;
  }

  .jn-latest-card {
    min-height: 128px;
    padding: 14px;
    gap: 12px;
  }

  .jn-latest-avatar {
    width: 44px;
    height: 44px;
  }

  .jn-latest-name {
    font-size: 13px;
  }

  .jn-latest-track {
    font-size: 11px;
  }

  .jn-class-icon,
  .jn-mode-icon {
    width: 20px;
    height: 20px;
  }

  .jn-shot-icon {
    width: 26px;
    height: 26px;
  }

  .jn-shot-icon img {
    width: 12px;
    height: 12px;
  }

  .jn-pvp-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .jn-pvp-card img {
    height: 180px;
  }

  .jn-discord-header {
    align-items: flex-start;
  }

  .jn-discord-icon {
    width: 52px;
    height: 52px;
  }

  .jn-discord-name {
    font-size: 15px;
  }

  .jn-team-header {
    padding: 12px 14px;
  }

  .jn-team-avatar {
    width: 40px;
    height: 40px;
  }

  .jn-section-title,
  .jn-latest-title,
  .jn-pvp-title {
    font-size: 15px;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 520px) {
  .jn-latest-card {
    min-height: 120px;
    padding: 14px;
    gap: 12px;
  }

  .jn-latest-avatar {
    width: 48px;
    height: 48px;
  }

  .jn-btn-primary,
  .jn-btn-ghost,
  .jn-discord-join {
    padding: 10px 18px;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 420px) {
  .jn-hero-title {
    font-size: 20px;
  }

  .jn-hero-buttons {
    flex-direction: column;
  }

  .jn-stat-value {
    font-size: 16px;
  }
}

/* =========================
   20) OPTIONAL SCROLLBAR
========================= */

@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 12px;
  }

  ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.55);
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border: 3px solid rgba(0, 0, 0, 0.55);
    border-radius: 999px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(224, 56, 56, 0.22);
  }
}
