:root {
  --bg: #0a0a10;
  --bg-alt: #12111a;
  --ink: #f2f0f5;
  --ink-dim: #b9b6c4;
  --pink: #ff2f9e;
  --orange: #ff7a1a;
  --purple: #9b3bff;
  --cyan: #2fe0ff;
  --chrome: #eceef0;
  --chrome-dim: #9aa0a6;
  --font-display: "Anton", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--cyan); }

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10, 10, 16, 0.82);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(242, 240, 245, 0.08);
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--pink);
}

.wordmark a { color: var(--ink); text-decoration: none; }

.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-shadow: 2px 2px 0 var(--pink), 4px 4px 0 var(--purple);
}

/* Halftone texture used behind loud sections */
.halftone {
  background-image: radial-gradient(var(--ink-dim) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.06;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #1a1226 0%, var(--bg) 70%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 76px);
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--ink);
  text-shadow:
    3px 3px 0 var(--pink),
    6px 6px 0 var(--purple);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--ink-dim);
  max-width: 620px;
  margin: 0 auto;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  z-index: 2;
}

.section {
  position: relative;
  padding: 96px 24px;
  max-width: 780px;
  margin: 0 auto;
}

.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 3px solid var(--purple);
  border-bottom: 3px solid var(--cyan);
}

.section-alt > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink);
  margin: 0 0 32px;
  display: inline-block;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  height: 4px;
  width: 64px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.section-body p {
  color: var(--ink-dim);
  font-size: 16px;
  max-width: 680px;
}

.emphasis {
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  position: relative;
  padding: 16px 20px;
  border: 2px solid var(--cyan);
  border-radius: 18px;
  display: inline-block;
  margin-top: 8px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 24px 24px 0;
}

.character-card {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 24px;
  box-shadow: 6px 6px 0 var(--pink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.character-card:nth-child(2) { box-shadow: 6px 6px 0 var(--orange); }
.character-card:nth-child(3) { box-shadow: 6px 6px 0 var(--purple); }
.character-card:nth-child(4) { box-shadow: 6px 6px 0 var(--cyan); }

@media (hover: hover) {
  .character-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--pink);
  }
  .character-card:nth-child(2):hover { box-shadow: 8px 8px 0 var(--orange); }
  .character-card:nth-child(3):hover { box-shadow: 8px 8px 0 var(--purple); }
  .character-card:nth-child(4):hover { box-shadow: 8px 8px 0 var(--cyan); }
}

.character-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.character-role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  margin: 0 0 14px;
}

.character-card p:not(.character-role) {
  color: var(--ink-dim);
  font-size: 14.5px;
}

.devlog-empty {
  font-style: italic;
  color: var(--ink-dim);
}

/* Compact hero band used on non-home pages */
.page-hero {
  min-height: 34vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px 48px;
  background: radial-gradient(ellipse at 50% 20%, #1a1226 0%, var(--bg) 75%);
  border-bottom: 3px solid var(--pink);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 56px);
  margin: 0 0 12px;
  text-shadow: 3px 3px 0 var(--purple);
}

.page-hero p {
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
}

/* Home page teaser links to the other sections */
.home-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 24px 24px 0;
  max-width: 1080px;
  margin: 0 auto;
}

.home-link-card {
  display: block;
  text-decoration: none;
  background: var(--bg-alt);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 22px;
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--pink);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.home-link-card:nth-child(2) { box-shadow: 6px 6px 0 var(--orange); }
.home-link-card:nth-child(3) { box-shadow: 6px 6px 0 var(--purple); }
.home-link-card:nth-child(4) { box-shadow: 6px 6px 0 var(--cyan); }

@media (hover: hover) {
  .home-link-card:hover { transform: translate(-2px, -2px); }
}

.home-link-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 8px;
}

.home-link-card p {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 0;
}

/* District gallery */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 24px 24px 0;
  max-width: 1080px;
  margin: 0 auto;
}

.district-card {
  background: var(--bg);
  border: 2px solid var(--ink-dim);
  border-radius: 4px;
  padding: 20px;
}

.district-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--ink);
}

.district-card dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-top: 10px;
}

.district-card dd {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-dim);
}

/* Faction list */
.faction-list {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: grid;
  gap: 20px;
}

.faction-item {
  border-left: 4px solid var(--pink);
  padding: 4px 0 4px 20px;
}

.faction-item:nth-child(2) { border-color: var(--orange); }
.faction-item:nth-child(3) { border-color: var(--purple); }
.faction-item:nth-child(4) { border-color: var(--cyan); }
.faction-item:nth-child(5) { border-color: var(--ink-dim); }

.faction-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 6px;
}

.faction-item p {
  color: var(--ink-dim);
  font-size: 14.5px;
  max-width: 700px;
  margin: 0;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-left: 2px solid var(--ink-dim);
  max-width: 640px;
}

.timeline li {
  position: relative;
  padding: 0 0 24px 24px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
}

.timeline .when {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  display: block;
  margin-bottom: 4px;
}

.timeline p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14.5px;
}

/* Pillar list on the gameplay page */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 24px 24px 0;
  max-width: 1080px;
  margin: 0 auto;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
}

.pillar-card p {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 0;
}

.moment-of-play {
  max-width: 700px;
  margin: 24px auto 0;
  padding: 20px 22px;
  border: 2px dashed var(--ink-dim);
  border-radius: 4px;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-dim);
  font-size: 14.5px;
}

.site-footer {
  text-align: center;
  padding: 48px 24px 64px;
  background: var(--chrome);
  color: #2a2c2f;
}

.site-footer p {
  margin: 4px 0;
  font-size: 13px;
}

.site-footer .credit {
  color: var(--chrome-dim);
}

.site-footer a {
  color: #2a2c2f;
  font-weight: 500;
}

@media (max-width: 600px) {
  .section { padding: 64px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Weapons page: orbit/firing movies */
.weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 24px 24px 0;
}

.weapon-card {
  margin: 0;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--pink);
}

.weapon-card:nth-child(4n+2) { box-shadow: 6px 6px 0 var(--orange); }
.weapon-card:nth-child(4n+3) { box-shadow: 6px 6px 0 var(--purple); }
.weapon-card:nth-child(4n+4) { box-shadow: 6px 6px 0 var(--cyan); }

.weapon-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}

.weapon-card figcaption {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  padding: 12px 16px 14px;
}

.weapon-card .card-desc {
  margin: 0;
  padding: 0 16px 18px;
  color: var(--ink-dim);
  font-size: 14px;
}

.weapon-card figcaption + .card-desc { margin-top: -4px; }

/* Enemies page: concept sheets vary in shape, so show each whole in a
   fixed 3:2 frame instead of cropping it. */
.enemy-art {
  display: block;
  aspect-ratio: 3 / 2;
  background: #e9e8ea;
}

.enemy-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-alt > .group-intro {
  color: var(--ink-dim);
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 24px;
}
.enemy-group + .enemy-group { border-top: 0; }
