:root {
  color-scheme: dark;
  --bg: #0c1018;
  --panel: #121826;
  --line: #2a3344;
  --text: #e8eef8;
  --muted: #8aa0b8;
  --accent: #3dd68c;
  --hero-aspect: 3024 / 1568;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: Saira, "Segoe UI", sans-serif;
  font-weight: 420;
  line-height: 1.45;
}
a { color: var(--accent); }
main, footer { width: min(720px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 16, 24, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
  flex-wrap: wrap;
}
.header-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.14em;
  font-size: 14px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}
.brand span {
  text-transform: uppercase;
}
.brand-mark {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
html { scroll-padding-top: 56px; }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1;
}
.nav-item {
  position: relative;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 6px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  z-index: 50;
}
.nav-item:hover > .nav-menu,
.nav-item:focus-within > .nav-menu,
.nav-sub:hover > .nav-menu,
.nav-sub:focus-within > .nav-menu {
  display: block;
}
.nav-sub {
  position: relative;
}
.nav-sub > .nav-menu {
  top: 0;
  left: 100%;
  min-width: 220px;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  white-space: nowrap;
}
.nav-menu a {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  white-space: normal;
  color: var(--muted);
  text-decoration: none;
}
.nav-menu .faction-emblem {
  width: 1em;
  height: 1em;
  flex-basis: 1em;
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
  background: rgba(232, 238, 248, 0.06);
}
main h2[id],
main tr[id] {
  scroll-margin-top: 56px;
}
.play-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  background: var(--accent);
  color: #0c1018;
  text-decoration: none;
}
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 760px) {
  .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
  }
  .header-end { display: contents; }
  .play-header { grid-column: 2; grid-row: 1; }
  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }
  .nav-menu { display: none !important; }
}
h1 { font-size: 32px; font-weight: 520; letter-spacing: 0.02em; line-height: 1.15; margin: 18px 0 12px; }
h2 { font-size: 18px; font-weight: 520; margin: 28px 0 8px; }
p { margin: 0 0 12px; }
.opener { font-size: 18px; }
.play-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 20px;
}
.play {
  display: inline-block;
  margin: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: #0c1018;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.community {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-size: 15px;
}
.community a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  vertical-align: middle;
}
.discord-link .discord-mark {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  display: block;
}
footer .discord-link .discord-mark {
  width: 14px;
  height: 14px;
}
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.faction-table { table-layout: fixed; }
.faction-col-name { width: 38%; }
.faction-col-ticker { width: 5.5em; }
.faction-table td:nth-child(2),
.faction-table th:nth-child(2) { white-space: nowrap; }
.faction-name {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.faction-emblem {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 1.25em;
  object-fit: contain;
}
footer { color: var(--muted); font-size: 13px; padding: 28px 0 40px; }

.cookie-banner {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 42rem;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  background: var(--panel, #12141c);
  border: 1px solid var(--line, #2a3144);
  color: var(--text, #e8ecf4);
  font-size: 13px;
  line-height: 1.4;
}
.cookie-banner p { margin: 0; flex: 1 1 16rem; }
.cookie-banner a { color: inherit; text-decoration: underline; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner button {
  font: inherit;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
}
.cookie-accept { background: var(--text, #e8ecf4); color: var(--bg, #0b0d12); border: 0; }
.cookie-reject { background: transparent; color: inherit; border: 1px solid var(--line, #2a3144); }

.hero-showcase {
  position: relative;
  width: 100%;
  margin: 0 0 4px;
  aspect-ratio: 16 / 9;
  max-height: min(62vh, 820px);
  overflow: hidden;
  background: #05080d;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}
.hero-showcase.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.hero-showcase:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(61, 214, 140, 0.45);
}
.hero-showcase-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.hero-slide {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: var(--hero-aspect);
  overflow: hidden;
  filter: brightness(0.68) saturate(0.9);
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.29);
  pointer-events: none;
}
.hero-slide.is-active {
  z-index: 1;
  filter: none;
  box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.12);
}
.hero-slide.is-active::after {
  content: none;
}
.hero-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  z-index: 15;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hero-edge:hover {
  background: rgba(12, 16, 24, 0.18);
}
.hero-edge-chevron {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  margin: 0;
  border-style: solid;
  pointer-events: none;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.85));
  animation: hero-chevron-pulse 2.2s ease-in-out infinite;
}
.hero-edge-prev .hero-edge-chevron {
  transform: translate(-50%, -50%);
  border-width: 9px 14px 9px 0;
  border-color: transparent var(--accent) transparent transparent;
}
.hero-edge-next .hero-edge-chevron {
  transform: translate(-50%, -50%);
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--accent);
  animation-name: hero-chevron-pulse-next;
}
@keyframes hero-chevron-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.9); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes hero-chevron-pulse-next {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.9); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-edge-chevron {
    animation: none;
    opacity: 0.95;
  }
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 16;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(232, 238, 248, 0.35);
  cursor: pointer;
}
.hero-dot.is-active {
  background: var(--accent);
}
.hero-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hero-showcase-scrim {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 16, 24, 0.35) 0%,
    rgba(12, 16, 24, 0.08) 42%,
    rgba(12, 16, 24, 0.55) 100%
  );
}
