/* ==========================================================================
   Eh Team — multi-gaming guild
   Brand palette sampled from the crest: charcoal, cream, gold, blood red.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #08070b;
  --ink-2: #0c0a10;
  --panel: #100e15;
  --panel-2: #16121c;
  --line: rgba(242, 224, 193, 0.1);
  --line-strong: rgba(242, 224, 193, 0.22);

  --cream: #f2e0c1;
  --cream-2: #d9c8ab;
  --body: #b6ac9f;
  --muted: #8a837a;

  --gold: #b5977d;
  --gold-2: #e6c79a;
  --red: #e52c27;
  --red-2: #ff4438;
  --red-deep: #7c1916;
  --ember: #f4692a;

  --online: #3ba55d;
  --idle: #faa61a;
  --dnd: #ed4245;

  --font-display: "Oswald", "Arial Narrow", Impact, "Haettenschweiler", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 40px);
  --max: 1260px;
  --nav-h: 79px;
  --section-y: clamp(56px, 7.2vw, 104px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection {
  background: var(--red);
  color: #fff;
}

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

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.diamond {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--red-2);
  transform: rotate(45deg);
}

.anchor { display: block; position: relative; top: -84px; visibility: hidden; }

[id] { scroll-margin-top: 92px; }

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 3px rgba(59, 165, 93, 0.16);
  vertical-align: middle;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(59, 165, 93, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(59, 165, 93, 0.04); }
}

.live-dot.is-off {
  background: var(--muted);
  box-shadow: none;
  animation: none;
}

.micro-copy {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-index span {
  color: var(--red-2);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.section-index span::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--line-strong);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
  text-wrap: balance;
}

.section-title em {
  font-style: normal;
  color: var(--red-2);
}

.section-lede {
  max-width: 48ch;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--body);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 16px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head .section-index { grid-column: 1; }
.section-head .section-title { grid-column: 1; }
.section-head .section-lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn .icon { width: 17px; height: 17px; }

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #e6362e 0%, #b3130f 100%);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(229, 44, 39, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff483d 0%, #c81a15 100%);
  box-shadow: 0 16px 34px -14px rgba(229, 44, 39, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  background: rgba(242, 224, 193, 0.03);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(242, 224, 193, 0.07);
}

.btn-ghost .icon { color: var(--gold-2); }

.btn-lg { padding: 17px 30px; font-size: 14px; }
.btn-sm { padding: 10px 16px; font-size: 11.5px; letter-spacing: 0.12em; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.text-link .icon { width: 15px; height: 15px; }
.text-link:hover { border-color: var(--gold); color: var(--cream); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.badge-pvp { color: #ff6a5c; background: rgba(229, 44, 39, 0.1); }
.badge-pve { color: #e6c79a; background: rgba(181, 151, 125, 0.1); }
.badge-coop { color: #a9c7b4; background: rgba(120, 170, 140, 0.1); }
.badge-social { color: #a8a3b3; background: rgba(168, 163, 179, 0.09); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 7, 11, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-stuck {
  background: rgba(8, 7, 11, 0.94);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  box-shadow: 0 6px 18px -8px rgba(229, 44, 39, 0.9);
}

.brand-text { display: grid; gap: 2px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--cream);
}

.brand-sub {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-2);
  transition: color 0.2s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.nav-list a:hover { color: var(--cream); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle .icon { width: 20px; height: 20px; color: var(--cream); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(32px, 4.4vh, 68px);
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(124, 25, 22, 0.35) 0%, transparent 58%),
    linear-gradient(180deg, #0a080d 0%, var(--ink) 62%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero-glow-red {
  width: 52vw;
  height: 52vw;
  top: -18vw;
  right: -8vw;
  background: rgba(229, 44, 39, 0.18);
}

.hero-glow-ember {
  width: 40vw;
  height: 40vw;
  bottom: 2vw;
  left: -14vw;
  background: rgba(244, 105, 42, 0.1);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(90deg, rgba(242, 224, 193, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(242, 224, 193, 0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(75% 65% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 30%, #000 0%, transparent 78%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  gap: clamp(28px, 3vw, 48px);
  align-items: center;
  padding-bottom: clamp(36px, 5vh, 76px);
}

.hero-copy { max-width: 740px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.7vw, 4.2rem);
  font-size: clamp(2.7rem, min(4.7vw, 8.2svh), 4.2rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--cream);
  text-wrap: balance;
}

.hero-title-line { display: block; }

.hero-title-line.accent { color: var(--red-2); }

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-title-line.accent {
    background: linear-gradient(96deg, #f06a5c 0%, var(--red) 42%, #a2150f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 8px 30px rgba(229, 44, 39, 0.22));
  }
}

.hero-lede {
  margin-top: 24px;
  max-width: 50ch;
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.75;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.hero-stat {
  padding-right: 14px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.hero-stat:first-child { border-left: 0; padding-left: 0; }

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-label .live-dot {
  margin-left: 6px;
  margin-right: 0;
}

.stat-source {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.hero-stat-status .live-dot { width: 6px; height: 6px; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.crest-wrap {
  position: relative;
  width: min(100%, 480px);
  width: min(100%, 480px, calc(52svh * 0.88));
  display: grid;
  justify-items: center;
  animation: crest-in 1.1s var(--ease) both;
}

@keyframes crest-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.crest-halo {
  position: absolute;
  inset: 6% -12% 4% -12%;
  background: radial-gradient(circle at 50% 46%, rgba(229, 44, 39, 0.3) 0%, rgba(244, 105, 42, 0.1) 42%, transparent 68%);
  filter: blur(26px);
  z-index: 0;
}

.crest {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.7));
  animation: crest-float 9s ease-in-out infinite;
}

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

.crest-caption {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.crest-caption-rule {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(242, 224, 193, 0.025);
  padding-block: 16px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 52s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 224, 193, 0.55);
  white-space: nowrap;
}

.marquee-track .dot { color: var(--red); font-size: 10px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee-track { animation: none; }
}

/* ---------- Discord section ---------- */
.section-discord {
  background:
    radial-gradient(80% 60% at 15% 0%, rgba(124, 25, 22, 0.22) 0%, transparent 62%),
    var(--ink);
}

.discord-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.feature-list { display: grid; }

.feature {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.feature:first-child { border-top: 0; padding-top: 0; }

.feature-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--red-2);
  padding-top: 3px;
  transition: color 0.2s var(--ease);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 6px;
}

.feature p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--body);
  max-width: 46ch;
}

.feature:hover .feature-num { color: var(--gold-2); }

.discord-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.discord-actions .micro-copy {
  display: block;
  max-width: 34ch;
  line-height: 1.5;
}

.discord-actions .micro-copy .live-dot { margin-right: 6px; }

/* Server preview */
.server-card-wrap { position: relative; margin: 0; }

.server-card-wrap::before {
  content: "";
  position: absolute;
  inset: 12% -4% -6% -4%;
  background: radial-gradient(circle at 60% 45%, rgba(229, 44, 39, 0.22), transparent 68%);
  filter: blur(46px);
  z-index: 0;
}

.server-card {
  position: relative;
  z-index: 1;
  display: grid;
  /* The side panels scale with the viewport instead of being fixed, because the
     card is narrowest (about 620-660px) just above the 1180px breakpoint: fixed
     panels left the chat pane ~235px wide there, so every message wrapped to two
     or three extra lines and the card grew ~120px taller than its neighbours. */
  grid-template-columns:
    56px
    clamp(134px, 12.2vw, 168px)
    minmax(0, 1fr)
    clamp(130px, 12.1vw, 164px);
  min-height: 430px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  background: #0d0b11;
  box-shadow: 0 40px 90px -40px #000, 0 2px 0 rgba(242, 224, 193, 0.05) inset;
  font-size: 12px;
}

.server-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  background: #08070b;
  border-right: 1px solid rgba(0, 0, 0, 0.5);
}

.server-rail-icon img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 6px 14px -6px rgba(229, 44, 39, 0.9);
}

.server-rail-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(242, 224, 193, 0.06);
  border: 1px solid rgba(242, 224, 193, 0.05);
}

.server-rail-add {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(59, 165, 93, 0.45);
  border-radius: 50%;
  color: var(--online);
  font-size: 16px;
  line-height: 1;
}

.server-channels {
  padding: 14px 0 16px;
  background: #0b0910;
  border-right: 1px solid rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.server-name {
  padding: 0 14px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.server-name-count {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.channel-category {
  margin-top: 14px;
  padding-inline: 14px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d6779;
}

.channel {
  padding: 4px 14px;
  font-size: 11.5px;
  color: #938d9c;
  border-left: 2px solid transparent;
}

.channel.is-active {
  color: var(--cream);
  background: rgba(242, 224, 193, 0.065);
  border-left-color: var(--red);
}

.voice-block { margin-top: 4px; }

.voice-chan {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  font-size: 11px;
  color: #938d9c;
}

.voice-icon { font-size: 9px; opacity: 0.8; }

.voice-count {
  margin-left: auto;
  font-size: 9px;
  color: var(--online);
  font-variant-numeric: tabular-nums;
}

.server-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0e0c13;
}

.server-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-active {
  font-size: 12px;
  font-weight: 600;
  color: var(--cream);
}

.server-presence {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.chat {
  display: grid;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
}

.msg {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.avatar-red { background: linear-gradient(150deg, #d33a2f, #6e130f); }
.avatar-gold { background: linear-gradient(150deg, #b98f5e, #6b4a26); }
.avatar-steel { background: linear-gradient(150deg, #5c6270, #2d313a); }

.msg-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.msg-name { font-size: 12px; font-weight: 600; }
.msg-name.gold { color: var(--gold-2); }
.msg-name.cream { color: var(--cream); }

.msg-badge {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(229, 44, 39, 0.18);
  color: #ff9d94;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.msg-time { font-size: 9px; color: #6d6779; }

.msg-text {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #a49eac;
}

.chip {
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(92, 104, 196, 0.2);
  color: #b9c0ff;
}

.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.reactions span {
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 9px;
  color: #b6b1bf;
}

.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0b0910;
  font-size: 10.5px;
  color: #5f5a6b;
}

.composer-send {
  padding: 2px 9px;
  border-radius: 3px;
  background: rgba(229, 44, 39, 0.16);
  color: #ff9d94;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-members {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 12px;
  background: #0b0910;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.members-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d6779;
}

.member-list { display: grid; gap: 9px; }

.member {
  display: grid;
  grid-template-columns: 7px 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #a49eac;
}

.presence {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6d6779;
}

.presence.online { background: var(--online); }
.presence.idle { background: var(--idle); }
.presence.dnd { background: var(--dnd); }

.avatar.mini {
  width: 20px;
  height: 20px;
  font-size: 7px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.member-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-tag {
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #655f70;
}

.member-more {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.member-more-count {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-2);
}

.member-more-label {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #655f70;
}

.server-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Games ---------- */
.section-games {
  background: linear-gradient(180deg, var(--ink) 0%, #0b0910 55%, var(--ink) 100%);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.filter {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--cream-2);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.filter:hover {
  border-color: var(--gold);
  color: var(--cream);
}

.filter.is-active {
  border-color: var(--red);
  background: rgba(229, 44, 39, 0.12);
  color: #ff8b80;
}

.filter-count {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(242, 224, 193, 0.045) 0%, rgba(242, 224, 193, 0) 38%),
    var(--panel);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 78%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 224, 193, 0.24);
  background:
    linear-gradient(160deg, rgba(229, 44, 39, 0.08) 0%, rgba(242, 224, 193, 0) 45%),
    var(--panel-2);
}

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

.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.game-tag {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.game-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 10px;
}

.game-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--body);
}

.game-channel {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.game-card.is-hidden { display: none; }

.games-foot {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
}

.games-foot a {
  color: var(--gold-2);
  border-bottom: 1px solid rgba(230, 199, 154, 0.35);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.games-foot a:hover { color: var(--cream); border-color: var(--cream); }

/* ---------- Ethos ---------- */
.section-ethos {
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(124, 25, 22, 0.2), transparent 60%),
    var(--ink-2);
}

.ethos-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.ethos-intro .section-title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.ethos-intro .section-title em { color: var(--gold-2); }

.ethos-intro .section-lede { margin-top: 22px; }

.ethos-signoff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.ethos-cards {
  display: grid;
  gap: 14px;
}

.ethos-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--red-deep);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(242, 224, 193, 0.035), transparent 60%);
  transition: border-left-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.ethos-card:hover {
  border-left-color: var(--red);
  background: linear-gradient(120deg, rgba(229, 44, 39, 0.07), transparent 65%);
}

.ethos-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.ethos-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 8px;
}

.ethos-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--body);
  max-width: 52ch;
}

.rule-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px 26px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.rule-strip li {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--body);
}

.rule-strip span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--red-2);
}

/* ---------- Ranks ---------- */
.section-ranks {
  background: var(--ink);
}

.rank-ladder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.rank {
  position: relative;
  padding: 30px 20px 8px 0;
  border-right: 1px solid var(--line);
}

.rank:last-child { border-right: 0; padding-right: 0; }
.rank:not(:first-child) { padding-left: 22px; }

.rank::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}

.rank:hover::before { width: 72%; }

.rank-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--gold);
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}

.rank-icon svg { width: 34px; height: 34px; }

.rank:hover .rank-icon { color: var(--red-2); transform: translateY(-2px); }

.rank-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
}

.rank-when {
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.rank-desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Schedule ---------- */
.section-schedule {
  background:
    radial-gradient(60% 70% at 0% 20%, rgba(244, 105, 42, 0.07), transparent 60%),
    var(--ink-2);
}

.schedule-card {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}

.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 224, 193, 0.025);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.schedule-note {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.event {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 96px 170px;
  align-items: center;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s var(--ease);
}

.event:last-child { border-bottom: 0; }
.event:hover { background: rgba(242, 224, 193, 0.03); }

.event-day {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.event-body { display: grid; gap: 2px; }

.event-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
}

.event-game { font-size: 12px; color: var(--muted); }

.event-badge { justify-self: start; }

.event-time {
  display: grid;
  justify-items: end;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream-2);
  text-align: right;
}

.time-local {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--gold);
}

.time-local:empty { display: none; }

.time-local.is-same { display: none; }

.schedule-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  font-size: 11.5px;
  color: var(--muted);
}

.schedule-foot strong { color: var(--cream-2); font-weight: 500; }

/* ---------- Join ---------- */
.section-join {
  background:
    radial-gradient(70% 80% at 85% 10%, rgba(229, 44, 39, 0.1), transparent 60%),
    var(--ink);
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.join-main .section-lede { max-width: 52ch; margin-top: 18px; }

.steps { margin-top: 34px; }

.step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  transition: -webkit-text-stroke-color 0.2s var(--ease), color 0.2s var(--ease);
}

.step:hover .step-num {
  -webkit-text-stroke-color: var(--red-2);
  color: rgba(229, 44, 39, 0.12);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 5px;
}

.step p { font-size: 13.5px; line-height: 1.65; color: var(--body); max-width: 52ch; }
.step strong { color: var(--cream-2); font-weight: 500; }

.apply-template {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a080d;
}

.apply-template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 224, 193, 0.03);
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--cream-2);
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.copy-btn .icon { width: 13px; height: 13px; color: var(--gold); }
.copy-btn:hover { color: var(--gold-2); }

.apply-template pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  color: #bdb3a6;
  tab-size: 2;
}

.join-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.join-card {
  padding: 26px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background:
    linear-gradient(160deg, rgba(229, 44, 39, 0.07), transparent 45%),
    var(--panel);
}

.join-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 18px;
}

.check-list { display: grid; gap: 10px; margin-bottom: 24px; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--body);
}

.check-list .icon { width: 14px; height: 14px; margin-top: 3px; color: var(--online); }

.invite-copy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.invite-copy:hover { border-color: var(--gold); background: rgba(242, 224, 193, 0.03); }

.invite-copy-label {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.invite-copy-url {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-copy .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.join-card .micro-copy { margin-top: 14px; font-size: 11px; }

.join-quote {
  padding: 22px 24px;
  border-left: 2px solid var(--red);
  background: rgba(242, 224, 193, 0.03);
}

.join-quote p {
  font-size: 14px;
  font-style: italic;
  line-height: 1.65;
  color: var(--cream-2);
}

.join-quote span {
  display: block;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.section-faq { background: var(--ink-2); }

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.faq-intro { position: sticky; top: 100px; }

.faq-intro .section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.faq-intro .section-lede { margin-top: 20px; max-width: 34ch; }
.faq-intro strong { color: var(--cream-2); font-weight: 500; }

.faq-list { border-top: 1px solid var(--line-strong); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.18s var(--ease);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  transition: color 0.18s var(--ease), transform 0.22s var(--ease);
}

.faq-item summary:hover { color: var(--gold-2); }

.faq-item[open] summary { color: var(--gold-2); }
.faq-item[open] summary::after { content: "–"; color: var(--red-2); }

.faq-item p {
  max-width: 64ch;
  padding: 0 42px 22px 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--body);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(65% 110% at 50% 115%, rgba(124, 25, 22, 0.55) 0%, transparent 62%),
    #0a080d;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(242, 224, 193, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(242, 224, 193, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(60% 70% at 50% 70%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 70%, #000, transparent 75%);
  opacity: 0.7;
}

.cta-inner { position: relative; display: grid; justify-items: center; }

.cta-mark {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 18px 40px -18px rgba(229, 44, 39, 0.9);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--cream);
}

.cta-title em { font-style: normal; color: var(--red-2); }

.cta-lede {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
}

.cta-band .btn { margin-top: 28px; }

.cta-meta {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
  background: #060509;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 44px;
}

.footer-blurb {
  margin-top: 18px;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-eh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col h3 {
  margin-bottom: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
}

.footer-col li + li { margin-top: 9px; }

.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #8a837a;
}

.footer-fine { color: #7d7789; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
/* Keep the whole hero inside the first screen on desktop, and let it shrink
   gracefully on short laptop viewports rather than pushing stats below the fold. */
@media (min-width: 961px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
  }

  .hero-inner {
    flex: 1 1 auto;
    align-content: center;
  }

  .marquee { flex: 0 0 auto; }
}

/* Sidebars only stick while they fit under the header; on short laptops the
   sidebar is taller than the screen, so it would stick with its bottom cut off. */
@media (min-width: 1025px) and (max-height: 740px) {
  .join-side { position: static; }
}

/* Short laptop viewports: tighten the hero rhythm so the stats and the ticker
   still land above the fold. */
@media (min-width: 961px) and (max-height: 740px) {
  .hero { padding-top: 20px; }
  .hero-title { font-size: clamp(2.4rem, min(4.7vw, 7svh), 4.2rem); }
  .hero-lede { margin-top: 16px; line-height: 1.6; }
  .hero-actions { margin-top: 20px; gap: 12px; }
  .hero-stats { margin-top: 24px; padding-top: 16px; }
  .hero-inner { padding-bottom: 24px; }
  .crest-wrap { width: min(100%, 480px, calc(44svh * 0.88)); }
}

@media (max-width: 1180px) {
  .server-card { grid-template-columns: 56px clamp(134px, 12.2vw, 168px) minmax(0, 1fr); }
  .server-members { display: none; }
  .server-rail-icon img { width: 38px; height: 38px; }
  .rank-desc { font-size: 12.5px; }
}

@media (max-width: 1024px) {
  .discord-layout,
  .ethos-layout,
  .join-layout,
  .faq-layout { grid-template-columns: minmax(0, 1fr); }

  .discord-layout { gap: 40px; }
  .server-card-wrap { max-width: 760px; }

  .ethos-intro .section-lede { max-width: 60ch; }
  .join-side { position: static; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .join-quote { display: flex; flex-direction: column; justify-content: center; }
  .faq-intro { position: static; }
  .faq-intro .section-lede { max-width: 52ch; }

  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .rank-ladder {
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--line-strong);
  }

  .rank {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
      "icon name"
      "icon when"
      "desc desc";
    gap: 0 16px;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rank:not(:first-child) { padding-left: 0; }
  .rank:last-child { border-bottom: 0; }
  .rank::before { display: none; }
  .rank-icon { grid-area: icon; margin: 0; }
  .rank-name { grid-area: name; }
  .rank-when { grid-area: when; }
  .rank-desc { grid-area: desc; margin-top: 8px; max-width: 62ch; }
}

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 22px;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(8, 7, 11, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px #000;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .nav-list a::after { display: none; }

  .nav-cta {
    margin-top: 16px;
    justify-content: center;
    padding-block: 14px;
  }

  .hero-inner { grid-template-columns: minmax(0, 1fr); }

  .hero-art { order: -1; margin-bottom: 6px; }
  .crest-wrap { width: min(66vw, 310px); }
  .crest-caption { font-size: 9px; }

  .hero-copy { max-width: 640px; }
  .hero-title { font-size: clamp(2.6rem, 8.4vw, 4rem); }

  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .hero-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-stat:nth-child(n + 3) { padding-top: 18px; border-top: 1px solid var(--line); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .section-head .section-lede {
    grid-column: 1;
    grid-row: auto;
  }

  .discord-actions { align-items: flex-start; flex-direction: column; gap: 14px; }

  .join-side { grid-template-columns: minmax(0, 1fr); }

  .event {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-areas:
      "day body badge"
      "day time time";
    gap: 6px 12px;
    padding: 16px 18px;
  }

  .event-day { grid-area: day; align-self: start; }
  .event-body { grid-area: body; }
  .event-badge { grid-area: badge; justify-self: end; }
  .event-time { grid-area: time; justify-items: start; text-align: left; }

  .schedule-head { padding-inline: 18px; }
  .schedule-foot { padding-inline: 18px; }

  .filter-count { width: 100%; margin-left: 0; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .game-grid { grid-template-columns: minmax(0, 1fr); }

  .server-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .server-rail,
  .server-channels,
  .server-members { display: none; }

  .chat { padding: 14px; gap: 14px; }
  .msg { grid-template-columns: 28px minmax(0, 1fr); gap: 9px; }
  .avatar { width: 28px; height: 28px; font-size: 9px; }
  .msg-text { font-size: 11px; }
  .server-caption { font-size: 10.5px; }

  .hero-actions .btn { flex: 1 1 100%; }
  .hero-title { font-size: clamp(2.4rem, 9.6vw, 3.2rem); }
  .crest-wrap { width: min(74vw, 280px); }

  .apply-template pre { font-size: 11px; padding: 14px; }
  .step { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
  .step-num { font-size: 30px; }

  .cta-mark { width: 54px; height: 54px; }

  .faq-item p { padding-right: 12px; }
}

@media (max-width: 420px) {
  .hero-stats { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero-stat { border-left: 0; padding-left: 0; }
  .hero-stat:nth-child(n + 3) { padding-top: 0; border-top: 0; }
  .hero-stat + .hero-stat { padding-top: 16px; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-name { font-size: 18px; }
  .schedule-note { display: none; }
}

/* ---------- Motion-safe hover ---------- */
@media (hover: none) {
  .game-card:hover { transform: none; }
  .btn:hover { transform: none; }
}

