/* ─────────────────────────────────────────────────────────────
   ValhallaMC · Keynote-Inspired Design
   Dark theme with purple accents, sticky sections, parallax
───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@500;700;800&display=swap');

@font-face {
  font-family: 'Norwolk';
  src: url('/fonts/Norwolk-Decorative.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg: #000;
  --bg-alt: #09090b;
  --surface: #111;
  --surface2: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.12);

  --text: #fff;
  --text2: rgba(255,255,255,0.65);
  --muted: rgba(255,255,255,0.4);

  --accent: #ff758c;
  --accent-glow: rgba(176,166,223,0.2);

  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-accent: 'Norwolk', serif;

  --max-w: 1400px;
  --pad: clamp(1.5rem, 5vw, 4rem);
  --radius: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.norwolk { font-family: var(--font-accent); }
.accent-text { color: var(--accent); }

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(176,166,223,0.1);
  border: 1px solid rgba(176,166,223,0.15);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-sub {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 500px;
  line-height: 1.7;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.anim-fade {
  opacity: 0;
  transform: translateY(40px);
}
.anim-fade.visible {
  animation: fadeUp 0.9s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

.anim-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.anim-scale.visible {
  opacity: 1;
  transform: scale(1);
}


/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}
.btn--accent {
  background: var(--accent);
  color: #000;
}
.btn--accent:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(176,166,223,0.3);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(176,166,223,0.05);
}

/* ── NAV ─────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  height: 80px;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
#nav.scrolled {
  background: rgba(0,0,0,0.9);
  height: 70px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__logo { width: 40px; height: 40px; object-fit: contain; }
.nav__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0 auto;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.3s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1.25rem; }


.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease infinite;
  margin-right: 0.5rem;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transform: scale(1.1);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 30%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%),
    radial-gradient(ellipse at center, transparent 0%, var(--bg) 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  cursor: default;
}
.hero__content > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.hero__content.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.hero__content > *:nth-child(1) { --i: 0; }
.hero__content > *:nth-child(2) { --i: 1; }
.hero__content > *:nth-child(3) { --i: 2; }
.hero__content > *:nth-child(4) { --i: 3; }
.hero__content > *:nth-child(5) { --i: 4; }
.hero__content > *:nth-child(6) { --i: 5; }
.hero__content > *:nth-child(7) { --i: 6; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 1rem 0 1.5rem;
  color: #fff;
}
.hero__sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text2);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__players {
  margin-top: 3rem;
  font-size: 1rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__players strong { color: var(--accent); margin: 0 0.3rem; }

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}
.hero__scroll svg {
  opacity: 0.5;
}

.hero__underline {
  width: 120px;
  height: 2px;
  margin: 0.75rem auto 0;
  background: var(--accent);
  border-radius: 2px;
}

.hero__rune-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero__rune-divider::before,
.hero__rune-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border2), transparent);
}
.hero__rune-divider .norwolk {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--accent);
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__title .letter {
  display: inline-block;
  transition: color 0.3s, text-shadow 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > * { opacity: 1; transform: none; transition: none; }
  .hero__particles { display: none; }
}

/* ── SHOWCASE GALLERY ────────────────────────────────────────── */
.showcase {
  padding: 0 var(--pad);
  margin-bottom: 100px;
}

.showcase__grid {
  column-count: 3;
  column-gap: 12px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.showcase__item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.showcase__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease);
}
.showcase__item:hover img {
  transform: scale(1.08);
}
.showcase__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  pointer-events: none;
}

/* ── SHOWCASE OVERLAY ─────────────────────────────────────────── */
.showcase__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.showcase__item:hover .showcase__overlay {
  opacity: 1;
}

.showcase__author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

img.showcase__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.showcase__caption {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── SHOWCASE CAROUSEL ────────────────────────────────────────── */
.showcase__carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.showcase__carousel-track {
  position: relative;
  width: 100%;
}

.showcase__carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.showcase__carousel-slide.active {
  position: relative;
  opacity: 1;
}

.showcase__carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase__carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  z-index: 10;
}

.showcase__item:hover .showcase__carousel-btn {
  opacity: 1;
}

.showcase__carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.showcase__carousel-btn--prev {
  left: 12px;
}

.showcase__carousel-btn--next {
  right: 12px;
}

.showcase__carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}

.showcase__item:hover .showcase__carousel-dots {
  opacity: 1;
}

.showcase__carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.showcase__carousel-dot:hover {
  background: rgba(255,255,255,0.7);
}

.showcase__carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ── STICKY SECTIONS ─────────────────────────────────────────── */
.about-section,
.support-section {
  min-height: 100vh;
  padding: 120px var(--pad);
}

.sticky-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}
.sticky-container--reverse {
  direction: rtl;
}
.sticky-container--reverse > * {
  direction: ltr;
}

.sticky-content {
  position: sticky;
  top: 120px;
}

.about-content,
.support-content {
  max-width: 480px;
}

.about-desc,
.support-desc {
  font-size: 1.1rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.sticky-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.visual-card {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(176,166,223,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.support-visual {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.support-rune {
  font-size: clamp(10rem, 20vw, 18rem);
  color: var(--accent);
  opacity: 0.1;
  line-height: 1;
}

.support-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── DISCORD SECTION ─────────────────────────────────────────── */
.discord-section {
  padding: 100px var(--pad);
  background: var(--bg-alt);
}

.discord-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: 60px 80px;
  overflow: hidden;
  position: relative;
}
.discord-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(88,101,242,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.discord-card__content {
  position: relative;
  z-index: 1;
}
.discord-card__content .section-title {
  margin-bottom: 1rem;
}
.discord-card__desc {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 450px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.discord-card__visual {
  position: relative;
  z-index: 1;
}
.discord-icon {
  width: clamp(120px, 15vw, 180px);
  color: #5865F2;
  opacity: 0.4;
}

/* ── SERVERS SECTION ─────────────────────────────────────────── */
.servers-section {
  padding: 120px var(--pad);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-title {
  margin-bottom: 1rem;
}
.section-header .section-sub {
  margin: 0 auto;
}

.live-players {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text2);
  margin: 0 auto 3rem;
  width: fit-content;
}
.live-players #live-player-count {
  color: var(--accent);
  font-weight: 700;
}

/* ── SERVER CAROUSEL ───────────────────────────────────────── */
.server-carousel {
  position: relative;
}

.server-carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 1rem 0 2rem;
}
.server-carousel__track::-webkit-scrollbar {
  display: none;
}

.server-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  opacity: 0;
}
.server-carousel:hover .server-carousel__arrow {
  opacity: 1;
}
.server-carousel__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.server-carousel__arrow--left {
  left: -22px;
}
.server-carousel__arrow--right {
  right: -22px;
}
.server-carousel__arrow[disabled] {
  opacity: 0 !important;
  pointer-events: none;
}

/* Fade edges */
.server-carousel::before,
.server-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.server-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.server-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
.server-carousel.has-scroll-left::before {
  opacity: 1;
}
.server-carousel.has-scroll-right::after {
  opacity: 1;
}

.server-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  will-change: transform;
}
.server-card:hover {
  border-color: rgba(176,166,223,0.3);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.server-card__img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface2);
}
.server-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.server-card:hover .server-card__img img {
  transform: scale(1.08);
}
.server-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  pointer-events: none;
}

.server-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.server-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.15;
}

.server-card__version {
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.server-card__modpack {
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.server-card__platform {
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.server-card__body {
  padding: 1.5rem;
}

.server-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.server-card__desc {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.server-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(176,166,223,0.1);
  color: var(--accent);
  border: 1px solid rgba(176,166,223,0.15);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
}

.server-card__ip {
  margin-top: 1rem;
  cursor: pointer;
  position: relative;
}
.server-card__ip code {
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface2);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: color 0.2s;
}
.server-card__ip:hover code {
  color: var(--text);
}
.server-card__ip::after {
  content: 'Copied!';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 6px);
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.server-card__ip.copied::after {
  opacity: 1;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px var(--pad) 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer__logo {
  width: 48px;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 1.5rem;
}

.footer__nav-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.footer__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer__nav ul a {
  font-size: 0.95rem;
  color: var(--text2);
  transition: color 0.3s;
}
.footer__nav ul a:hover {
  color: var(--accent);
}

.footer__bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom a {
  color: var(--muted);
  transition: color 0.3s;
}
.footer__bottom a:hover {
  color: var(--accent);
}

/* ── PAGE HERO ───────────────────────────────────────────────── */
.page-hero {
  padding: 160px var(--pad) 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 1.5rem 0;
}
.page-hero__title .norwolk {
  font-size: 1.1em;
}

.page-hero__sub {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── DOWNLOADS ───────────────────────────────────────────────── */
.downloads-section {
  padding: 80px var(--pad);
}

.dl-group {
  margin-bottom: 4rem;
}

.dl-group__header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dl-group__version {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.dl-group__count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.dl-list {
  display: flex;
  flex-direction: column;
}

.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.dl-item:hover {
  background: var(--surface);
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: var(--radius);
}

.dl-item__info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dl-item__name {
  font-size: 1rem;
  font-weight: 600;
}

.dl-item__size {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface2);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}

.dl-item__btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}

.dl-item__btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.dl-status {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1rem 0;
}

.dl-note {
  margin-top: 4rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.7;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sticky-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .sticky-container--reverse {
    direction: ltr;
  }
  .sticky-content {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero__title {
    font-size: clamp(3rem, 15vw, 5rem);
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .hero__actions .btn {
    width: 100%;
  }

  .showcase__grid {
    column-count: 2;
  }

  .discord-card {
    grid-template-columns: 1fr;
    padding: 40px;
    text-align: center;
  }
  .discord-card__desc {
    margin: 0 auto 2rem;
  }
  .discord-card__visual {
    display: none;
  }

  .server-card {
    flex: 0 0 85vw;
  }
  .server-carousel__arrow {
    display: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .showcase__grid {
    column-count: 2;
    column-gap: 8px;
  }
  .showcase__item {
    margin-bottom: 8px;
  }
}

/* ── MOBILE NAV ──────────────────────────────────────────────── */
#nav.open .nav__links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 2rem var(--pad);
  gap: 1.5rem;
}

/* ── SERVER CARD PLAYER COUNT ───────────────────────────────── */
.server-card__players {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.server-card__players .pulse-dot {
  margin-right: 0;
}

/* ── LIVE PLAYERS LINK ──────────────────────────────────────── */
a.live-players {
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

a.live-players:hover {
  border-color: var(--accent);
  background: rgba(176,166,223,0.05);
}

a.live-players svg {
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

a.live-players:hover svg {
  opacity: 1;
  transform: translateX(3px);
}

/* ── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--pad) 60px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.page-hero__content {
  max-width: 600px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero__sub {
  font-size: 1.15rem;
  color: var(--text2);
}

.page-hero__sub strong {
  color: var(--accent);
}

/* ── PLAYERS PAGE ───────────────────────────────────────────── */
.players-section {
  padding: 60px var(--pad) 80px;
}

.players-group {
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.players-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.players-group__info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.players-group__img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.players-group__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.players-group__version {
  font-size: 0.75rem;
  color: var(--muted);
}

.players-group__count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text2);
}

.players-group__count strong {
  color: var(--accent);
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
  padding: 0.75rem;
}

.player-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.player-item:hover {
  background: rgba(255,255,255,0.03);
}

.player-item__head {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--surface2);
}

.player-item__name {
  font-size: 0.9rem;
  font-weight: 500;
}

.players-error,
.players-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.players-error p,
.players-empty p {
  font-size: 1.1rem;
  color: var(--text2);
  margin-bottom: 1.5rem;
}

.players-note {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.inline-link:hover {
  color: var(--text);
}

/* Responsive adjustments for players page */
@media (max-width: 768px) {
  .players-group__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* ── STATS PAGE ─────────────────────────────────────────────── */
.stats-section {
  padding: 60px var(--pad) 80px;
}

.stats-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.range-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.range-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.range-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.server-select {
  appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 2.5rem 0.6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.server-select:hover,
.server-select:focus {
  border-color: var(--accent);
  color: var(--text);
  outline: none;
}

.stats-chart-container {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.stats-chart-wrapper {
  position: relative;
  height: 400px;
}

.stats-loading,
.stats-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
}

.stats-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stats-loading p,
.stats-error p {
  font-size: 0.95rem;
  color: var(--text2);
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stats-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.stats-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.stats-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 768px) {
  .stats-controls {
    flex-wrap: wrap;
  }

  .stats-chart-wrapper {
    height: 300px;
  }

  .stats-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── LIVE INDICATOR ──────────────────────────────────────────── */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin-left: 0.5rem;
  vertical-align: middle;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.live-dot--on {
  background: #86efac;
  box-shadow: 0 0 8px rgba(134, 239, 172, 0.6);
  animation: live-pulse 2s ease-in-out infinite;
}
.live-dot--off {
  background: rgba(252, 165, 165, 0.5);
}
.live-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text2);
  margin-left: 0.25rem;
  vertical-align: middle;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ── LEADERBOARD ─────────────────────────────────────────────── */
.leaderboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.leaderboard__header,
.lb-row-main {
  display: grid;
  grid-template-columns:
    3rem             /* rank */
    minmax(0, 2fr)   /* server */
    5rem             /* current */
    7rem             /* sparkline */
    4.5rem           /* peak */
    4.5rem           /* avg */
    5.5rem           /* delta */
    5rem             /* tps */
    7rem;            /* status */
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
}

.leaderboard__header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.leaderboard-row {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s var(--ease);
  outline: none;
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row:hover { background: rgba(255, 255, 255, 0.02); }
.leaderboard-row:focus-visible { background: rgba(176, 166, 223, 0.06); }

.leaderboard-row--open {
  background: rgba(176, 166, 223, 0.05);
  border-left: 2px solid #b0a6df;
}

.lb-rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
}
.leaderboard-row--open .lb-rank,
.leaderboard-row:nth-child(2) .lb-rank {
  color: #b0a6df;
}

.lb-col--server {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.lb-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.lb-server-info { min-width: 0; }
.lb-server-name {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}
.lb-server-meta {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.current-players {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.sparkline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 24px;
}
.sparkline svg { overflow: visible; }

.lb-peak,
.lb-avg {
  color: var(--text2);
  font-variant-numeric: tabular-nums;
}

.trend-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text2);
}
.trend-chip--up {
  color: #86efac;
  background: rgba(134, 239, 172, 0.12);
}
.trend-chip--down {
  color: #fca5a5;
  background: rgba(252, 165, 165, 0.12);
}
.trend-chip--flat { color: var(--muted); }

.tps-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text2);
}
.tps-pill--good { color: #86efac; background: rgba(134, 239, 172, 0.12); }
.tps-pill--warn { color: #fcd34d; background: rgba(252, 211, 77, 0.12); }
.tps-pill--bad  { color: #fca5a5; background: rgba(252, 165, 165, 0.12); }

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text2);
}
.status-badge--running {
  color: #86efac;
  background: rgba(134, 239, 172, 0.12);
}
.status-badge--crashed,
.status-badge--offline {
  color: #fca5a5;
  background: rgba(252, 165, 165, 0.12);
}
.status-badge--crash-loop,
.status-badge--starting,
.status-badge--stopping {
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.12);
}

/* ── DRILL-DOWN PANEL ───────────────────────────────────────── */
.drill-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.leaderboard-row--open .drill-panel {
  max-height: 2000px;
}
.drill-panel__inner {
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.drill-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.drill-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.drill-loading {
  font-size: 0.8rem;
  color: var(--muted);
}
.drill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.drill-chart {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  height: 220px;
  display: flex;
  flex-direction: column;
}
.drill-chart h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.drill-chart canvas { flex: 1; }
.drill-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

/* ── TRENDS ─────────────────────────────────────────────────── */
.trends-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.trends-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.trends-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.trends-block__sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.trends-chart-wrap {
  position: relative;
  height: 240px;
}

/* Retention heatmap */
.retention-heatmap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
}
.rh-row {
  display: grid;
  grid-template-columns: 6.5rem 3.5rem repeat(var(--cols, 8), minmax(0, 1fr));
  gap: 3px;
}
.rh-row--head { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.rh-cell {
  padding: 0.35rem 0.3rem;
  text-align: center;
  background: rgba(176, 166, 223, calc(0.12 + 0.6 * var(--rate, 0)));
  border-radius: 4px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rh-cell--label {
  background: transparent;
  color: var(--text2);
  text-align: left;
  padding-left: 0.25rem;
}
.rh-cell--empty { background: transparent; }

/* ── MOBILE LEADERBOARD ─────────────────────────────────────── */
@media (max-width: 900px) {
  .trends-section { grid-template-columns: 1fr; }

  .leaderboard__header { display: none; }

  .lb-row-main {
    grid-template-columns: 2.5rem 1fr auto;
    grid-template-areas:
      "rank server current"
      "rank spark delta"
      "rank peak status";
    row-gap: 0.35rem;
  }
  .lb-col--rank { grid-area: rank; align-self: center; }
  .lb-col--server { grid-area: server; }
  .lb-col--current { grid-area: current; text-align: right; }
  .lb-col--spark { grid-area: spark; justify-self: start; }
  .lb-col--delta { grid-area: delta; justify-self: end; }
  .lb-col--peak,
  .lb-col--avg,
  .lb-col--tps { display: none; }
  .lb-col--status { grid-area: status; justify-self: end; }
  .lb-col--peak { grid-area: peak; }
}

/* ── SERVERS PAGE TABLE ──────────────────────────────────────── */
.servers-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}

.servers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.servers-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
}

.servers-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.servers-row:last-child td {
  border-bottom: 0;
}

.servers-row {
  transition: background 0.15s ease;
}
.servers-row:hover {
  background: rgba(255,255,255,0.02);
}

.servers-table__col-status {
  width: 28px;
  padding-right: 0;
}
.servers-row__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: middle;
}

.servers-row__name {
  font-weight: 600;
  color: var(--text);
  display: block;
}
.servers-row__desc {
  display: block;
  color: var(--text2);
  font-size: 0.8rem;
  margin-top: 0.15rem;
  max-width: 32rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.servers-table__col-version,
.servers-table__col-modpack {
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 0.8rem;
  color: var(--text2);
  white-space: nowrap;
}

.servers-row__genre {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(176,166,223,0.1);
  color: var(--accent);
  border: 1px solid rgba(176,166,223,0.15);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
}

.servers-table__col-players {
  white-space: nowrap;
}
.servers-row__players {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.servers-row__players .muted {
  color: var(--muted);
  font-weight: 400;
}

/* IP cell: reuse existing .server-card__ip click-to-copy behaviour, restyle as a button */
.servers-table__col-ip {
  text-align: right;
  white-space: nowrap;
}
.btn-copy-ip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text2);
  font: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.btn-copy-ip:hover {
  border-color: var(--accent);
  color: var(--text);
}
.btn-copy-ip code {
  background: transparent;
  padding: 0;
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 0.8rem;
}
.btn-copy-ip__icon {
  flex: 0 0 auto;
  opacity: 0.6;
}
/* Reset some .server-card__ip rules that don't apply in the button context */
.btn-copy-ip.server-card__ip { margin-top: 0; }
.btn-copy-ip.server-card__ip code {
  color: inherit;
  background: transparent;
  padding: 0;
}
.btn-copy-ip.server-card__ip:hover code { color: inherit; }

/* Status dot colors — scoped to the table so the homepage cards are untouched */
.servers-row--status-running .servers-row__dot      { background: #50c878; }
.servers-row--status-starting .servers-row__dot,
.servers-row--status-stopping .servers-row__dot     { background: #f5b43c; animation: status-pulse 1.2s ease-in-out infinite; }
.servers-row--status-stopped .servers-row__dot,
.servers-row--status-offline .servers-row__dot      { background: #6a6a72; }
.servers-row--status-crashed .servers-row__dot,
.servers-row--status-crash-loop .servers-row__dot   { background: #ff6b6b; }
.servers-row--status-crash-loop .servers-row__dot   { animation: status-pulse 1s ease-in-out infinite; }

.servers-row--status-stopped .servers-row__name,
.servers-row--status-offline .servers-row__name {
  color: var(--text2);
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* Mobile: collapse less-essential columns */
@media (max-width: 720px) {
  .servers-table__col-modpack,
  .servers-table__col-genre,
  .servers-row__desc {
    display: none;
  }
  .servers-table th,
  .servers-table td {
    padding: 0.7rem 0.6rem;
  }
}

/* ── HERO TAGLINE ─────────────────────────────────────────────── */
.hero__title-tagline {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
}

/* ── BREADCRUMBS ──────────────────────────────────────────────── */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--pad) 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.breadcrumbs__link {
  color: var(--text2);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
.breadcrumbs__link:hover {
  color: var(--accent);
}
.breadcrumbs__sep {
  color: var(--muted);
  -webkit-user-select: none;
  user-select: none;
}
.breadcrumbs__current {
  color: var(--text);
  font-weight: 500;
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: var(--bg-alt);
}
.faq-list {
  max-width: 880px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq-item[open],
.faq-item:hover {
  border-color: var(--border2);
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  list-style-type: none;
  -webkit-user-select: none;
  user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker                 { content: ""; display: none; }
.faq-item > summary                  { list-style: none; }
.faq-item__q-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.faq-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text2);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-item__a {
  padding: 0 1.5rem 1.4rem;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item__a p {
  margin: 0;
}

/* ── PROSE / LEGAL PAGES ──────────────────────────────────────── */
.prose-section {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem);
}
.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.75;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}
.prose li {
  margin: 0 0 0.5rem;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 6rem;
}
.prose strong {
  color: var(--text);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  text-decoration: none;
}
.prose code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ── FOOTER (expanded) ────────────────────────────────────────── */
.footer__inner {
  flex-wrap: wrap;
}
.footer__legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer__legal a {
  color: var(--text2);
}
.footer__legal a:hover {
  color: var(--accent);
}
