:root {
  --ink: #f6f2e8;
  --muted: #aaa69d;
  --paper: #090909;
  --surface: #151515;
  --line: #34332f;
  --yellow: #ffcc00;
  --orange: #d96c32;
  --lime: #8bd450;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }

.site-header {
  align-items: center;
  background: rgba(9, 9, 9, 0.92);
  border-bottom: 1px solid rgba(255, 204, 0, 0.32);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 72px;
  padding: 0 5vw;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2;
}

.brand { align-items: center; display: inline-flex; font-size: 0.86rem; font-weight: 800; gap: 10px; letter-spacing: 0; width: fit-content; }
.site-header .brand span { max-width: 120px; overflow: hidden; transition: max-width 160ms ease, opacity 160ms ease; white-space: nowrap; }
body.is-scrolled .site-header .brand span { max-width: 0; opacity: 0; }
.brand-mark { display: block; height: 32px; object-fit: cover; object-position: center; width: 32px; }
nav { display: flex; gap: 28px; }
nav a, .status-link { color: var(--muted); font-size: 0.9rem; }
nav a:hover, .status-link:hover, .text-link:hover, .section-heading a:hover { color: var(--ink); }
.status-link { align-items: center; display: flex; gap: 8px; justify-self: end; }
.status-dot, .availability i { background: var(--lime); border-radius: 50%; display: inline-block; height: 8px; width: 8px; }

.hero { min-height: min(800px, 92vh); overflow: hidden; position: relative; display: flex; align-items: center; padding: 152px 5vw 96px; }
.hero-image { background-image: url("assets/hero-command-center.png"); background-position: center; background-size: cover; inset: 0; position: absolute; }
.hero-image::after { background: rgba(9, 9, 9, 0.52); content: ""; inset: 0; position: absolute; }
.hero-content { max-width: 620px; position: relative; z-index: 1; }
.eyebrow { color: var(--yellow); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; margin: 0 0 18px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(4rem, 11vw, 8.8rem); letter-spacing: 0; line-height: 0.88; margin-bottom: 24px; }
h2 { font-size: clamp(2.25rem, 4vw, 4rem); letter-spacing: 0; line-height: 0.98; margin-bottom: 20px; }
.hero-copy { color: #ded8ca; font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 545px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { border: 1px solid transparent; display: inline-flex; font-size: 0.93rem; font-weight: 800; justify-content: center; min-height: 46px; padding: 13px 18px; }
.button-primary { background: var(--yellow); color: #0a0904; }
.button-primary:hover { background: #ffe06a; }
.button-secondary { border-color: rgba(233,239,242,0.5); color: var(--ink); }
.button-secondary:hover { background: rgba(233,239,242,0.1); }
.scroll-cue { bottom: 28px; color: #aebbc0; font-size: 0.8rem; position: absolute; right: 5vw; z-index: 1; }
.scroll-cue span { color: var(--yellow); font-size: 1.4rem; margin-left: 8px; vertical-align: -2px; }

.server-section, .community-section, .dev-section { padding: 110px 5vw; }
.server-section { background: #10100f; }
.section-heading { align-items: end; display: grid; grid-template-columns: 1fr auto; margin-bottom: 38px; }
.section-heading .eyebrow, .section-heading h2 { grid-column: 1; }
.section-heading h2 { margin-bottom: 0; }
.section-heading a { align-self: end; color: var(--yellow); font-size: 0.9rem; padding-bottom: 6px; }
.server-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.server-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid; min-height: 270px; padding: 22px; }
.accent-cyan { border-top-color: var(--yellow); }.accent-red { border-top-color: var(--orange); }.accent-lime { border-top-color: var(--lime); }
.card-topline { color: var(--muted); display: flex; font-size: 0.75rem; font-weight: 700; justify-content: space-between; text-transform: uppercase; }
.availability { align-items: center; color: var(--lime); display: inline-flex; gap: 6px; }
.availability i { height: 6px; width: 6px; }
.server-card h3 { font-size: 1.55rem; line-height: 1.1; margin: 38px 0 12px; }
.server-card p { color: var(--muted); font-size: 0.94rem; line-height: 1.5; min-height: 70px; }
code { border-top: 1px solid var(--line); color: var(--ink); display: block; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.82rem; padding-top: 16px; }
.hosted-games { border-top: 1px solid var(--line); margin-top: 58px; padding-top: 32px; }
.hosted-games h3 { font-size: 1.45rem; margin-bottom: 22px; }
.hosted-game-list { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.hosted-game-list li { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; line-height: 1.35; min-height: 52px; padding: 14px 18px 14px 0; }
.hosted-game-list li::before { color: var(--yellow); content: "//"; font-weight: 800; margin-right: 9px; }

.community-section { display: grid; gap: 8vw; grid-template-columns: 1.1fr 0.9fr; }
.community-copy > p:not(.eyebrow), .dev-section > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; line-height: 1.65; max-width: 590px; }
.text-link { border-bottom: 1px solid var(--yellow); color: var(--yellow); display: inline-block; font-weight: 800; margin-top: 10px; padding-bottom: 5px; }
.community-tabs-area { border-top: 1px solid var(--line); }
.community-tabs { border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; }
.community-tab { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 800; min-height: 54px; padding: 0 15px; white-space: nowrap; }
.community-tab:first-child { padding-left: 0; }.community-tab[aria-selected="true"] { border-bottom-color: var(--yellow); color: var(--ink); }.community-tab:hover { color: var(--ink); }.community-tab:focus-visible { outline: 2px solid var(--yellow); outline-offset: -3px; }
.community-panel { min-height: 244px; padding: 32px 0 4px; }.community-panel[hidden] { display: none; }
.panel-label { color: var(--yellow); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; margin-bottom: 17px; text-transform: uppercase; }
.community-panel h3 { font-size: 1.8rem; line-height: 1.1; margin-bottom: 14px; }.community-panel p:last-child { color: var(--muted); line-height: 1.6; margin-bottom: 0; }

.dev-section { background: #191714; overflow: hidden; position: relative; }
.dev-section::after { border: 1px solid rgba(255, 204, 0, 0.42); content: ""; height: 430px; position: absolute; right: -100px; top: -170px; transform: rotate(31deg); width: 430px; }
.dev-section > * { position: relative; z-index: 1; }.dev-section h2 { max-width: 740px; }
.dev-label { border: 1px solid rgba(179,232,90,0.56); color: var(--lime); display: inline-block; font-size: 0.78rem; font-weight: 800; margin-top: 18px; padding: 9px 11px; text-transform: uppercase; }

.live-section { background: #0e0e0d; padding: 110px 5vw; }
.live-heading { margin-bottom: 30px; }
.live-updated { align-self: end; color: var(--muted); font-size: 0.84rem; padding-bottom: 6px; }
.presence-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.presence-card { background: var(--surface); border: 1px solid var(--line); min-height: 260px; padding: 22px; }
.discord-card { border-top: 3px solid var(--yellow); }.teamspeak-card { border-top: 3px solid var(--lime); }
.presence-card-topline { align-items: center; display: flex; justify-content: space-between; }
.presence-platform { align-items: center; color: var(--ink); display: inline-flex; font-size: 0.8rem; font-weight: 800; gap: 8px; text-transform: uppercase; }
.presence-platform b { align-items: center; background: #25241f; color: var(--yellow); display: inline-flex; font-size: 0.69rem; height: 28px; justify-content: center; width: 28px; }
.teamspeak-card .presence-platform b { color: var(--lime); }
.is-waiting { color: var(--muted); }.is-waiting i { background: var(--muted); }
.presence-count { color: var(--ink); font-size: 1.24rem; font-weight: 800; line-height: 1.2; margin: 34px 0 18px; }
.member-list { border-top: 1px solid var(--line); list-style: none; margin: 0; max-height: 210px; overflow-y: auto; padding: 0; }
.member-list li { align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; font-size: 0.9rem; gap: 10px; min-height: 38px; padding: 8px 0; }
.member-list li::before { background: var(--lime); border-radius: 50%; content: ""; flex: 0 0 auto; height: 7px; width: 7px; }
.member-list .member-loading::before { background: var(--muted); }.member-list .member-empty::before { background: var(--orange); }

footer { align-items: center; color: var(--muted); display: flex; font-size: 0.82rem; justify-content: space-between; padding: 35px 5vw; }
footer .brand { color: var(--ink); } footer a:last-child { color: var(--yellow); }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 62px; padding: 0 20px; }.site-header nav { display: none; }.status-link { font-size: 0.78rem; }
  .hero { min-height: 720px; padding: 130px 20px 90px; }.hero-image { background-position: 62% center; }.hero-image::after { background: rgba(9, 9, 9, 0.58); }.scroll-cue { right: 20px; }
  .server-section, .community-section, .dev-section, .live-section { padding: 78px 20px; }.section-heading { grid-template-columns: 1fr; }.section-heading a { grid-column: 1; margin-top: 20px; }.live-updated { grid-column: 1; margin-top: 20px; }.server-grid, .community-section, .presence-grid, .hosted-game-list { grid-template-columns: 1fr; }.community-section { gap: 50px; }
  .server-card { min-height: 0; }.server-card p { min-height: 0; } footer { align-items: flex-start; flex-direction: column; gap: 18px; padding: 28px 20px; }
}
