:root {
  --bg: #101010;
  --panel: #181818;
  --panel-head: #151515;
  --row-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-soft: #b5b5b5;
  --text-dim: #737373;
  --font: "Inter", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --wrap: 1140px;
  --nav-h: 48px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.is-overview {
  overflow: hidden;
  height: 100vh;
}

body.is-overview main {
  flex: 1;
  min-height: 0;
  height: 100vh;
  overflow: hidden;
}

body.is-overview .footer,
body.is-masterlist .footer {
  display: none;
}

main { flex: 1; }

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
code { font-size: 0.88em; padding: 2px 6px; background: rgba(255,255,255,0.06); border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: stretch;
}

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
}

.nav-link {
  padding: 0 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
}

.nav-link:first-child {
  padding-left: 20px;
}

.logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  z-index: 2;
  line-height: 0;
}

.logo-center img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.92;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 32px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-left: auto;
  margin-right: 16px;
  align-self: center;
  z-index: 3;
}

.nav-link-external {
  display: flex;
  align-items: center;
}

.nav-link:hover { color: var(--text-soft); }

.nav-link.active {
  color: var(--text);
  border-bottom-color: #ffffff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  padding: 0 20px;
  height: 36px;
  font-size: 0.6875rem;
}

.btn-primary:hover {
  background: #000000;
  color: #ffffff;
}

.btn-lg { height: 42px; padding: 0 28px; font-size: 0.6875rem; }

.page {
  display: none;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
  opacity: 0;
}

.page.active {
  display: block;
  animation: page-in 0.35s ease forwards;
}

.page-scroll {
  padding-top: 0;
  min-height: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.page-scroll.active {
  display: block;
}

.scroll-chapters {
  position: relative;
}

.scroll-chapter {
  min-height: 100vh;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.scroll-chapter:not(.scroll-chapter--hero) {
  padding: var(--nav-h) 0 0;
}

.scroll-chapter--hero {
  padding: 0;
  justify-content: stretch;
  overflow: hidden;
}

.scroll-chapter--hero .hero-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.scroll-chapter--hero .hero-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  border-bottom: none;
}

.scroll-chapter--hero .hero-card-bg {
  will-change: transform;
  transition: transform 0.05s linear;
}

.scroll-chapter--hero .hero-card-grid {
  min-height: 100%;
  height: 100%;
  padding-bottom: 72px;
}

.chapter-inner {
  width: 100%;
  padding: 48px 0;
}

.scroll-chapter--scene {
  overflow: hidden;
}

.chapter-scene-bg,
.chapter-scene-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chapter-scene-bg {
  z-index: 0;
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
}

.chapter-scene-overlay {
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(16, 16, 16, 0.94) 0%,
      rgba(16, 16, 16, 0.78) 35%,
      rgba(16, 16, 16, 0.78) 65%,
      rgba(16, 16, 16, 0.94) 100%
    );
}

.scroll-chapter--scene .chapter-inner,
.scroll-chapter--scene .chapter-inner--list,
.scroll-chapter--scene .chapter-inner--community {
  position: relative;
  z-index: 2;
}

.scroll-chapter--stats {
  justify-content: stretch;
  gap: 0;
  padding-bottom: 0;
}

.scroll-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.is-overview .scroll-nav {
  opacity: 1;
  pointer-events: auto;
}

.scroll-nav-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.scroll-nav-dot:hover {
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

.scroll-nav-dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  transition: opacity 0.4s ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.scroll-hint--down {
  bottom: 36px;
  animation: scroll-hint-bob-down 2.4s ease-in-out infinite;
}

.scroll-hint--up {
  top: calc(var(--nav-h) + 24px);
  bottom: auto;
  flex-direction: column-reverse;
  animation: scroll-hint-bob-up 2.4s ease-in-out infinite;
}

.scroll-hint svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.scroll-hint.is-hidden {
  opacity: 0;
}

@keyframes scroll-hint-bob-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes scroll-hint-bob-up {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

.scroll-chapter.is-visible .reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-wrap {
  width: 100%;
}

.hero-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-card-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      270deg,
      rgba(16, 16, 16, 0.82) 0%,
      rgba(16, 16, 16, 0.45) 6%,
      transparent 18%
    ),
    linear-gradient(
      90deg,
      rgba(16, 16, 16, 0.96) 0%,
      rgba(16, 16, 16, 0.88) 22%,
      rgba(16, 16, 16, 0.62) 42%,
      rgba(16, 16, 16, 0.22) 58%,
      transparent 72%
    ),
    linear-gradient(
      to top,
      var(--bg) 0%,
      rgba(16, 16, 16, 0.92) 14%,
      rgba(16, 16, 16, 0.55) 32%,
      transparent 52%
    );
}

.hero-card-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 48px 36px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.hero-content {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  animation: hero-in 0.6s ease both;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.hero-subtitle {
  margin-top: 20px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.75;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  max-width: 46ch;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.7);
}

.hero-content .btn-lg {
  height: 46px;
  padding: 0 28px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.chapter-inner--list {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: 0;
  min-height: calc(100vh - var(--nav-h));
}

.list-scene {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--nav-h));
}

.list-scene .preview-showcase--left {
  position: absolute;
  left: 12%;
  top: 20%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: min(68%, 780px);
  max-width: 780px;
  min-height: 0;
}

.list-content {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(28px, 5vh, 48px);
  z-index: 2;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.list-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.list-subtitle {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.list-subtitle strong {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2em;
}

.list-content .lead {
  margin-top: 18px;
  margin-bottom: 32px;
  margin-left: auto;
  text-align: right;
  max-width: 46ch;
}

.list-content .btn-lg {
  height: 46px;
  padding: 0 28px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.chapter-scene-overlay--list {
  background:
    linear-gradient(
      270deg,
      rgba(16, 16, 16, 0.96) 0%,
      rgba(16, 16, 16, 0.88) 22%,
      rgba(16, 16, 16, 0.62) 42%,
      rgba(16, 16, 16, 0.22) 58%,
      transparent 72%
    ),
    linear-gradient(
      to top,
      var(--bg) 0%,
      rgba(16, 16, 16, 0.92) 14%,
      rgba(16, 16, 16, 0.55) 32%,
      transparent 52%
    );
}

.chapter-scene-overlay--community {
  background:
    linear-gradient(
      90deg,
      rgba(16, 16, 16, 0.96) 0%,
      rgba(16, 16, 16, 0.88) 22%,
      rgba(16, 16, 16, 0.62) 42%,
      rgba(16, 16, 16, 0.22) 58%,
      transparent 72%
    ),
    linear-gradient(
      to top,
      var(--bg) 0%,
      rgba(16, 16, 16, 0.92) 14%,
      rgba(16, 16, 16, 0.55) 32%,
      transparent 52%
    );
}

.chapter-inner--community {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: 0;
  min-height: calc(100vh - var(--nav-h));
}

.community-scene {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--nav-h));
}

.community-content {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  bottom: clamp(28px, 5vh, 48px);
  z-index: 2;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.community-content .lead {
  margin-top: 18px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 46ch;
}

.community-content .btn-lg {
  height: 46px;
  padding: 0 28px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.discord-showcase--right {
  position: absolute;
  right: 12%;
  top: 22%;
  left: auto;
  transform: translate(50%, -50%);
  z-index: 1;
  width: min(38vw, 360px);
  max-width: 360px;
  animation: discord-float-right 4s ease-in-out infinite;
}

.discord-showcase--right img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

@keyframes discord-float-right {
  0%, 100% { transform: translate(50%, -50%) translateY(0); }
  50% { transform: translate(50%, -50%) translateY(-10px); }
}

.chapter-scene-bg--stats {
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
}

.chapter-scene-overlay--stats {
  background:
    linear-gradient(
      180deg,
      rgba(16, 16, 16, 0.88) 0%,
      rgba(16, 16, 16, 0.35) 10%,
      transparent 22%
    ),
    linear-gradient(
      270deg,
      rgba(16, 16, 16, 0.96) 0%,
      rgba(16, 16, 16, 0.82) 18%,
      rgba(16, 16, 16, 0.45) 36%,
      transparent 56%
    ),
    linear-gradient(
      to top,
      var(--bg) 0%,
      rgba(16, 16, 16, 0.9) 12%,
      rgba(16, 16, 16, 0.4) 28%,
      transparent 48%
    );
}

.list-scene--stats .list-content {
  bottom: clamp(96px, 13vh, 120px);
}

.chapter-end-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 24px clamp(20px, 4vw, 48px) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(to top, rgba(8, 8, 8, 0.96) 0%, rgba(8, 8, 8, 0.72) 55%, transparent 100%);
}

.chapter-end-footer-inner {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.chapter-end-footer-legal {
  font-size: 0.6875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.36);
  max-width: 48ch;
}

.chapter-end-footer-copy {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.preview-showcase {
  min-height: 0;
}

.preview-showcase-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.preview-showcase-3d {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: rotateY(5deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.preview-showcase-frame {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--panel);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
}

.preview-showcase-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.page-masterlist {
  position: relative;
  overflow: hidden;
}

.page-masterlist.active {
  display: flex;
  flex-direction: column;
}

.masterlist-scene-bg,
.masterlist-scene-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.masterlist-scene-bg {
  z-index: 0;
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.masterlist-scene-overlay {
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(16, 16, 16, 0.92) 0%,
      rgba(16, 16, 16, 0.72) 18%,
      rgba(16, 16, 16, 0.78) 100%
    );
}

body.is-masterlist main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-h));
}

.masterlist-page {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 20px 32px;
  min-height: calc(100vh - var(--nav-h));
}

.masterlist-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.masterlist-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.masterlist-title p {
  color: var(--text-dim);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.masterlist-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.list-toolbar {
  display: flex;
  align-items: stretch;
  height: 38px;
  background: var(--panel-head);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.list-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 16px;
}

.list-search-icon {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.list-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text-soft);
  background: transparent;
  border: none;
  outline: none;
}

.list-search-input::placeholder { color: var(--text-dim); }

.list-search-input::-webkit-search-cancel-button,
.list-search-input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
}

.list-count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 16px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
  align-self: center;
  height: 100%;
  align-items: center;
}

.list-count-num {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.list-count-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.list-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.list-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.list-empty-filter {
  padding: 24px 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  background: var(--panel);
}

.list-empty-filter[hidden] { display: none !important; }

.list-header,
.server-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 0;
  column-gap: 8px;
}

.list-header {
  height: 38px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--panel-head);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.list-header span:first-child { padding-left: 16px; }
.list-header span:last-child { text-align: right; padding-right: 0; }

.server-row {
  height: 38px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.server-row:hover { background: var(--row-hover); }
.server-row.hidden { display: none; }
.server-row:last-child { border-bottom: none; }

.row-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-left: 16px;
}

.row-name .name {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-flag {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.row-mode {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 56px 24px;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.loader {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--text-dim);
  transition: color 0.12s, background 0.12s;
}

.footer-social a:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
}

.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-legal {
  font-size: 0.6875rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 680px;
}

.footer-copy {
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  z-index: 200;
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: var(--text-soft);
  background: rgba(8, 8, 8, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 960px) {
  .hero-card-grid {
    min-height: calc(100vh - var(--nav-h));
    padding: 0 28px 28px;
  }

  .hero-card-overlay {
    background:
      linear-gradient(
        270deg,
        rgba(16, 16, 16, 0.75) 0%,
        rgba(16, 16, 16, 0.35) 8%,
        transparent 20%
      ),
      linear-gradient(
        to top,
        var(--bg) 0%,
        rgba(16, 16, 16, 0.92) 30%,
        rgba(16, 16, 16, 0.55) 55%,
        rgba(16, 16, 16, 0.3) 100%
      );
  }

  .hero-content {
    max-width: none;
  }

  .chapter-inner--list {
    min-height: auto;
    padding: 32px 0 40px;
  }

  .list-scene {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 0 16px;
  }

  .list-content {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    align-items: flex-start;
    text-align: left;
    order: 2;
  }

  .list-title {
    white-space: normal;
  }

  .list-subtitle {
    margin-top: 14px;
  }

  .list-content .lead {
    text-align: left;
    margin-left: 0;
  }

  .list-scene .preview-showcase--left {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    order: 1;
  }

  .community-scene .discord-showcase--right {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(280px, 72%);
    max-width: none;
    margin: 0 auto;
    order: 2;
    animation: none;
  }

  .chapter-inner--community {
    min-height: auto;
    padding: 32px 0 40px;
  }

  .community-scene {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 0 16px;
  }

  .community-content {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    order: 1;
  }

  .list-scene--stats .list-content {
    bottom: auto;
    order: 1;
  }

  .list-scene--stats .chapter-end-footer {
    order: 2;
  }

  .list-scene--stats {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .chapter-end-footer {
    position: relative;
    margin-top: 28px;
    padding: 24px 0 4px;
    background: none;
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .chapter-end-footer-inner {
    align-items: center;
    text-align: center;
  }

  .preview-showcase-3d {
    transform: rotateY(4deg) rotateX(2deg);
  }

}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-link:first-child {
    padding-left: 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-link {
    width: 100%;
    padding: 14px 16px;
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .nav-link.active {
    border-left-color: #fff;
    border-bottom-color: transparent;
  }

  .wrap { padding: 0 16px; }
  .hero-card-grid { padding: 0 20px 24px; }

  .hero-title {
    font-size: clamp(1.85rem, 8.5vw, 2.75rem);
  }

  .masterlist-page { padding: 20px 16px 24px; }

  .masterlist-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-header,
  .server-row {
    grid-template-columns: minmax(0, 1fr) 100px;
    padding: 0 12px 0 0;
  }

  .row-mode,
  .list-header span:nth-child(2) { display: none; }

  .scroll-nav { right: 12px; gap: 10px; }
  .scroll-nav-dot { width: 6px; height: 6px; }

  .chapter-inner { padding: 32px 0; }

  .scroll-chapter {
    scroll-snap-stop: normal;
    min-height: 100svh;
  }

  .scroll-hint--down { bottom: 20px; }
  .scroll-hint--up { top: calc(var(--nav-h) + 16px); }
}

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

  html { scroll-behavior: auto; }
  .page-scroll { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .scroll-chapter--hero .hero-card-bg { transform: none !important; }
  .preview-showcase-3d { transform: rotateY(6deg) rotateX(3deg) !important; }
}
