/* ============================================================
   CTI Servers — original cinematic dark tactical theme
   ============================================================ */

:root {
  --bg:          #09090b;   /* zinc-950 / near black */
  --bg-elev:     #0c0c0f;
  --surface:     #18181b;   /* zinc-900 */
  --surface-2:   #27272a;   /* zinc-800 */
  --line:        #27272a;
  --text:        #fafafa;
  --muted:       #a1a1aa;   /* zinc-400 */
  --accent:      #10b981;   /* emerald-500 — CTI brand */
  --accent-dim:  #059669;   /* emerald-600 */
  --olive:       #10b981;
  --danger:      #ef4444;   /* alert red */
  --info:        #38bdf8;   /* changelog blue */
  --radius:      8px;
  --maxw:        1200px;
  --maxw-wide:   1400px;
  --ease:        cubic-bezier(.2, .7, .2, 1);
  --shadow:      0 12px 40px rgba(0,0,0,.45);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: "Oswald", "Barlow Condensed", sans-serif; font-weight: 600; letter-spacing: .5px; line-height: 1.05; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600; font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase;
  padding: .7rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #14160e; }
.btn-primary:hover { background: #f0b93c; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #6a76ff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(11,13,11,.92), rgba(11,13,11,0));
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11,13,11,.96);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}
/* While the mobile dropdown is open, the header and the dropdown should
   read as one continuous card, not two stacked bars with a visible seam —
   its own standalone rule (not sharing a selector list with .scrolled) so
   there's no same-specificity tie to resolve. */
.site-header.menu-open {
  background: rgba(11,13,11,.98);
  border-bottom-color: transparent;
  backdrop-filter: blur(8px);
}
/* Same treatment while the search panel is open. */
.site-header.search-open {
  background: rgba(11,13,11,.98);
  border-bottom-color: transparent;
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { height: 34px; width: auto; }
.brand-text { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: 2px; }
.brand-accent { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.main-nav a {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; font-size: 1.05rem;
  color: var(--muted); position: relative; padding: .2rem 0;
  transition: color .2s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

/* Search toggle — persistent icon button in .nav-actions (both mobile and
   desktop headers), opens .search-panel below the nav bar. */
.search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid transparent;
  background: none; color: var(--muted); cursor: pointer; flex-shrink: 0;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.search-toggle:hover { color: var(--text); }
.search-toggle.active { color: var(--accent); border-color: var(--line); background: var(--surface); }

/* Search panel — full-width, slides open below the header nav row. The
   grid-template-rows 0fr -> 1fr trick animates to the panel's natural
   (dynamic — results grow/shrink it) height instead of a guessed max-height. */
.search-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.search-panel.open { grid-template-rows: 1fr; box-shadow: 0 24px 48px rgba(0,0,0,.35); }
.search-panel-inner {
  overflow: hidden; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem;
}
.search-panel-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.1rem 0 .9rem; border-top: 1px solid var(--line);
}
.search-panel-icon { color: var(--muted); flex-shrink: 0; }
.search-panel-bar input {
  flex: 1; min-width: 0; border: 0; background: none; color: var(--text);
  font-family: "Inter", sans-serif; font-size: 1.15rem; padding: .3rem 0;
}
.search-panel-bar input::placeholder { color: var(--muted); }
.search-panel-bar input:focus { outline: none; }
.search-panel-close {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 999px; border: 0;
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.search-panel-close:hover { color: var(--text); background: var(--surface-2); }

.search-panel-filters { display: flex; flex-wrap: wrap; gap: .6rem; padding-bottom: 1rem; }
.search-filter {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; font-size: .85rem; color: var(--muted);
  padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: none; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.search-filter:hover { color: var(--text); border-color: var(--muted); }
.search-filter.active { color: #09090b; background: var(--accent); border-color: var(--accent); }

.search-panel-results { max-height: 55vh; overflow-y: auto; padding-bottom: 1.4rem; }
.search-result {
  display: flex; flex-direction: column; gap: .15rem; padding: .8rem 0;
  border-bottom: 1px solid var(--line); color: var(--text);
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result.is-active { color: var(--accent); }
.search-result-cat {
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: 1px; font-size: .7rem; color: var(--accent);
}
.search-result-title { font-size: 1rem; }
.search-empty { padding: 1rem 0; color: var(--muted); font-size: .9rem; }

/* The Discord button lives inside .main-nav (so it travels with the links
   into the mobile dropdown instead of crowding the persistent header) but
   needs to look like a button, not a nav link. ".main-nav a" (class+type)
   otherwise outranks ".btn-discord" (class only) and its grey link color
   wins over the button's white text, so it's restated here explicitly. */
.main-nav a.btn-discord { padding: .7rem 1.5rem; color: #fff; }
.main-nav a.btn-discord::after { content: none; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: transform .25s var(--ease), opacity .2s; }

/* ---------- Hero (photo slideshow cycles behind the splash text) ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 600px at 70% 10%, rgba(16,185,129,.12), transparent 60%),
    linear-gradient(120deg, #000 0%, #0c1512 45%, #000 100%);
  background-size: cover; background-position: center;
  animation: heroDrift 24s ease-in-out infinite alternate;
}
/* Subtle scanline / grid texture for the tactical feel — shows through until photos load */
.hero-media::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(111,128,56,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,128,56,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 75%);
}
@keyframes heroDrift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.08) translateY(-12px); } }
/* Paused by js/gallery.js while the tab is hidden — no point burning GPU
   cycles on a slow ambient drift nobody's looking at. */
.hero-paused .hero-media { animation-play-state: paused; }

/* Cycling background photos — sits on top of the gradient fallback */
.hg-track { position: absolute; inset: 0; z-index: 0; }
.hg-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 6s ease-out;
}
.hg-slide.active { opacity: 1; transform: scale(1); }

/* Dark scrim so the splash text stays legible over any photo */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(9,9,11,.88) 0%, rgba(9,9,11,.6) 45%, rgba(9,9,11,.25) 75%, rgba(9,9,11,.15) 100%),
    linear-gradient(180deg, rgba(9,9,11,.2) 0%, transparent 45%, var(--bg) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 1.5rem; }
.eyebrow {
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 4px;
  color: var(--accent); font-weight: 600; font-size: 1rem; margin-bottom: 1rem;
}
.hero-title { font-size: clamp(3rem, 9vw, 7rem); letter-spacing: 2px; }
.hero-title .stroke { color: transparent; -webkit-text-stroke: 2px var(--accent); text-stroke: 2px var(--accent); }
.hero-sub { max-width: 540px; color: var(--muted); font-size: 1.15rem; margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted); font-size: 1.6rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 6rem 1.5rem; }
.section-head { margin-bottom: 2.5rem; }
.section-title { font-size: clamp(2rem, 5vw, 3.2rem); position: relative; display: inline-block; }
.section-title::before { content: ""; display: block; width: 48px; height: 4px; background: var(--accent); margin-bottom: 1rem; }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 620px; }

/* ---------- Server cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.server-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.server-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.server-card .card-media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; transition: opacity .3s var(--ease), transform .5s var(--ease); }
.server-card:hover .card-media { opacity: .7; transform: scale(1.05); }
.server-card .card-body { position: relative; z-index: 2; padding: 1.3rem; background: linear-gradient(180deg, transparent, rgba(11,13,11,.92) 55%); }
.server-card h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.server-card p { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }
.server-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; font-family: "Barlow Condensed", sans-serif; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 8px var(--olive); }
.status-dot.offline { background: #666; box-shadow: none; }

/* ---------- Newswire ---------- */
.newswire { background: linear-gradient(180deg, var(--bg), var(--bg-elev)); max-width: none; }
.newswire > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.wire-filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.wire-chip {
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 1px;
  font-size: .95rem; padding: .45rem 1.1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  transition: all .2s var(--ease);
}
.wire-chip:hover { color: var(--text); border-color: var(--accent-dim); }
.wire-chip.is-active { background: var(--accent); color: #14160e; border-color: var(--accent); }

.wire-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.3rem; }
.wire-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
  animation: fadeUp .4s var(--ease) both;
}
.wire-card:hover { transform: translateY(-3px); border-color: var(--accent-dim); }
.wire-card .wire-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wire-tag {
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 1px;
  font-size: .78rem; font-weight: 600; padding: .2rem .7rem; border-radius: 4px; white-space: nowrap;
}
.wire-tag.changelog { background: rgba(56,189,248,.14); color: #7dd3fc; border: 1px solid rgba(56,189,248,.4); }
.wire-tag.alert { background: rgba(239,68,68,.14); color: #fca5a5; border: 1px solid rgba(239,68,68,.4); }
.wire-tag.announcement { background: rgba(16,185,129,.14); color: #6ee7b7; border: 1px solid rgba(16,185,129,.4); }
.wire-time { color: var(--muted); font-size: .82rem; }
.wire-card h3 { font-size: 1.25rem; }
.wire-body { color: var(--muted); font-size: .95rem; white-space: pre-wrap; word-break: break-word; }
.wire-body a { color: var(--accent); text-decoration: underline; }
.wire-inline-img { display: block; max-width: 100%; max-height: 260px; border-radius: 8px; border: 1px solid var(--line); margin: .4rem 0; }
.wire-media { display: flex; flex-wrap: wrap; gap: .5rem; }
.wire-media img, .wire-media video { max-width: 100%; max-height: 260px; border-radius: 8px; border: 1px solid var(--line); }
.wire-author { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.wire-author img { width: 22px; height: 22px; border-radius: 50%; }
.wire-loading, .wire-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 3rem 0; font-family: "Barlow Condensed", sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.wire-more { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; }
.faq-item summary { cursor: pointer; padding: 1.1rem 0; font-family: "Barlow Condensed", sans-serif; font-size: 1.2rem; font-weight: 600; letter-spacing: .5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; transition: transform .2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 1.2rem; }
.faq-item a { color: var(--accent); text-decoration: underline; }

/* ---------- CTA strip ---------- */
.cta-strip { position: relative; padding: 5rem 1.5rem; text-align: center; background: linear-gradient(120deg, #14170f, #0b0d0b); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .8rem; }
.cta-inner p { color: var(--muted); margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--line); padding: 3.5rem 1.5rem 2rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .brand-logo { height: 40px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; }
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-nav h4 { color: var(--text); font-size: 1rem; margin-bottom: .8rem; letter-spacing: 1px; }
.footer-nav a { display: block; color: var(--muted); font-size: .95rem; padding: .25rem 0; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,13,11,.98);
    border-radius: 0 0 18px 18px; box-shadow: 0 24px 48px rgba(0,0,0,.5);
    padding: 1rem 1.5rem 1.5rem; transform: translateY(-120%); transition: transform .3s var(--ease); margin-left: 0;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
  /* The Discord button rides along inside the dropdown instead of the
     persistent header, so it can be a normal, comfortably-sized button. */
  .main-nav a.btn-discord {
    justify-content: center; margin-top: 1.2rem; border-bottom: none;
    font-size: 1.1rem; padding: .9rem 1.5rem;
  }
  .nav-toggle { display: flex; }
  .nav-inner { gap: 1rem; }
  .footer-inner { flex-direction: column; gap: 2rem; }
}
@media (max-width: 520px) {
  .nav-inner { padding: .65rem .9rem; }
  .brand-logo { height: 26px; }
  .brand-text { font-size: 1rem; letter-spacing: .5px; }
  .section { padding: 4rem 1.2rem; }
  .search-panel-inner { padding: 0 .9rem; }
  .search-panel-bar input { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Additions: hero video, multi-page nav, servers page,
   Discord section, interior page headers, index previews
   ============================================================ */

/* ---------- Active nav link ---------- */
.main-nav a.active { color: var(--text); }
.main-nav a.active::after { width: 100%; }

/* ---------- Interior page header ---------- */
.page-hero {
  position: relative; padding: 9rem 1.5rem 3.5rem; text-align: center;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(16,185,129,.14), transparent 65%),
    linear-gradient(180deg, #000, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); letter-spacing: 2px; }
.page-hero p { color: var(--muted); font-size: 1.15rem; margin-top: .8rem; }
.page-hero .eyebrow { justify-content: center; }

/* ---------- Servers page ---------- */
.servers-page { max-width: var(--maxw-wide); }
.server-full-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.sv-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.6rem; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.sv-card:hover { transform: translateY(-8px); border-color: var(--accent); }
.sv-card .sv-img { width: 100%; height: 12rem; object-fit: cover; border-radius: 14px; margin-bottom: 1.2rem; background: var(--surface-2); }
.sv-card h3 { font-size: 1.9rem; margin-bottom: .2rem; }
.sv-card .sv-sub { color: var(--accent); font-size: .9rem; letter-spacing: .5px; margin-bottom: 1rem; }
.sv-bm { margin: .4rem 0 1.2rem; min-height: 80px; display: flex; align-items: center; justify-content: center; background: var(--bg-elev); border-radius: 12px; padding: .4rem; }
.sv-bm iframe { border: 0; width: 100%; max-width: 500px; height: 80px; }
.sv-bm .sv-nostats { color: var(--muted); font-size: .8rem; text-align: center; }
.join-btn {
  margin-top: auto; display: block; text-align: center; padding: 1rem;
  background: var(--accent-dim); color: #04140d; border-radius: 14px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; font-size: 1.05rem; transition: background .2s var(--ease);
}
.join-btn:hover { background: var(--accent); }

/* ---------- Index preview cards (link out to pages) ---------- */
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.preview-card {
  position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); padding: 2.2rem; min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.preview-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.preview-card .pc-eyebrow { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-size: .85rem; margin-bottom: .4rem; }
.preview-card h3 { font-size: 2rem; margin-bottom: .5rem; }
.preview-card p { color: var(--muted); font-size: .98rem; margin-bottom: 1rem; }
.preview-card .pc-go { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--text); font-weight: 600; }
.preview-card .pc-go::after { content: " →"; color: var(--accent); }

/* ---------- Wiki ---------- */
.wiki-layout { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 5rem; display: flex; gap: 3rem; }
.wiki-sidebar { width: 220px; flex-shrink: 0; }
.wiki-nav { position: sticky; top: 90px; }
.wiki-nav .section-label { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: .75rem; color: var(--muted); margin: 1.4rem 0 .5rem; padding: 0 .75rem; }
.wiki-nav a { display: block; padding: .4rem .75rem; border-left: 2px solid transparent; color: var(--muted); font-size: .9rem; border-radius: 0 6px 6px 0; transition: color .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease); }
.wiki-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.wiki-nav a.active { color: var(--accent); border-left-color: var(--accent); background: rgba(16,185,129,.08); }
.wiki-body { flex: 1; min-width: 0; max-width: 760px; }
.wiki-body h2 { font-size: 2rem; margin: 2.6rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.wiki-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.wiki-body h3 { font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; letter-spacing: .5px; margin: 1.6rem 0 .6rem; color: var(--text); }
.wiki-body p { color: var(--muted); margin-bottom: 1rem; }
.wiki-body ul { color: var(--muted); margin: 0 0 1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.wiki-body a { color: var(--accent); text-decoration: underline; }
.wiki-body strong { color: var(--text); }
.info-box { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.3); border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; color: var(--muted); }
.info-box strong { color: var(--text); }
.info-box a { color: var(--accent); }
.rule-badge { display: inline-block; font-family: "Barlow Condensed", sans-serif; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; padding: .12rem .5rem; border-radius: 4px; margin-right: .5rem; vertical-align: middle; }
.rule-ban { background: rgba(239,68,68,.16); color: #fca5a5; border: 1px solid rgba(239,68,68,.4); }
.rule-kick { background: rgba(224,167,43,.16); color: #fbbf7a; border: 1px solid rgba(224,167,43,.4); }
.rule-warn { background: rgba(56,189,248,.14); color: #7dd3fc; border: 1px solid rgba(56,189,248,.4); }
@media (max-width: 800px) { .wiki-sidebar { display: none; } .wiki-layout { padding-top: 2rem; } }

/* ---------- Donate ---------- */
.donate-wrap { max-width: 900px; margin: 0 auto; }
.donate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.donate-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; text-align: center; }
.donate-card .dc-ico { font-size: 2.4rem; margin-bottom: .6rem; }
.donate-card h4 { margin-bottom: .4rem; font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; letter-spacing: .5px; }
.donate-card p { color: var(--muted); font-size: .9rem; }
.donate-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 3rem 2rem; text-align: center; margin-top: 2.5rem; }
.donate-panel h2 { font-size: 2.4rem; margin-bottom: .8rem; }
.donate-panel p { color: var(--muted); max-width: 560px; margin: 0 auto .8rem; }
.btn-paypal { background: #0070BA; color: #fff; font-size: 1.15rem; padding: 1rem 2.5rem; margin: 1.6rem 0 .8rem; }
.btn-paypal:hover { background: #005ea6; }
.perks { background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.2); border-radius: 16px; padding: 1.6rem 2rem; margin-top: 2.5rem; text-align: left; }
.perks h4 { color: var(--accent); font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; letter-spacing: 1px; margin-bottom: 1rem; }
.perks ul { list-style: none; }
.perks li { color: var(--muted); padding: .35rem 0; display: flex; gap: .6rem; align-items: flex-start; }
.perks li::before { content: "\2713"; color: var(--accent); font-weight: 700; }
.perks strong { color: var(--text); }

/* ---------- Contributors ---------- */
.contrib-section { margin-bottom: 3rem; }
.contrib-section > h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.contrib-section > h2::before { content: ""; display: inline-block; width: 30px; height: 3px; background: var(--accent); margin-right: .6rem; vertical-align: middle; }
.contrib-section .contrib-lead { color: var(--muted); margin-bottom: 1.4rem; }
.contrib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.contrib-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.contrib-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contrib-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.1rem; }
.contrib-info { min-width: 0; }
.contrib-info h3 { font-size: 1.1rem; line-height: 1.25; overflow-wrap: break-word; word-break: break-word; }
/* A member can hold several matching Discord roles at once (e.g. Marketing
   + 3D Art/Model Design + Developer) — showing those as individual pills
   that wrap wraps far better in a narrow card than one long "A / B / C"
   string, which just ran off the edge or crammed onto cramped lines. */
.contrib-roles { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 .35rem; }
.role-pill {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: .15rem .55rem; border-radius: 999px;
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.35);
  color: var(--accent); font-size: .72rem; font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase; letter-spacing: .5px;
}
.contrib-note { color: var(--muted); font-size: .85rem; }
.twitch-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; color: #a970ff; font-size: .82rem; font-weight: 600; }
.twitch-link:hover { color: #c9a4ff; }
.contrib-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.contrib-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.contrib-chip.booster { border-color: rgba(169,112,255,.4); }
.contrib-chip.donor { border-color: rgba(16,185,129,.4); }
.chip-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.chip-avatar.avatar-fallback { font-size: .7rem; }
.donor-tier { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: .68rem; color: var(--accent); background: rgba(16,185,129,.12); padding: .1rem .45rem; border-radius: 4px; }

/* Slideshow progress indicators, bottom-right of the hero, above the scrim —
   Stories-style: the active one is a pill that fills up as a countdown to
   the next slide, the rest stay small dots. */
.hg-dots { position: absolute; right: 1.6rem; bottom: 1.8rem; z-index: 2; display: flex; align-items: center; gap: .5rem; }
.hg-dot {
  position: relative; width: 8px; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.35); overflow: hidden;
  border: 0; padding: 0; cursor: pointer;
  transition: width .3s var(--ease), background .2s var(--ease);
}
.hg-dot:hover { background: rgba(255,255,255,.55); }
.hg-dot.active { width: 40px; background: rgba(255,255,255,.25); }
.hg-dot-fill {
  position: absolute; inset: 0; width: 0%; border-radius: inherit;
  background: #fff; animation-duration: 5s; animation-timing-function: linear; animation-fill-mode: forwards;
}
.hg-dot.active .hg-dot-fill { animation-name: hgFill; }
@keyframes hgFill { from { width: 0%; } to { width: 100%; } }

/* ---------- Discord section ---------- */
.discord-sec { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.discord-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: var(--maxw); margin: 0 auto; }
.discord-copy h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.discord-copy p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.6rem; }
.discord-embed { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; }
.discord-embed iframe { border: 0; border-radius: 10px; display: block; width: 100%; height: 450px; }
@media (max-width: 800px) { .discord-grid { grid-template-columns: 1fr; } }
