:root {
  --space: #0b1014;
  --panel: #111a20;
  --panel-2: #18242b;
  --ink: #eef7f8;
  --muted: #9fb1b5;
  --line: #31434a;
  --amber: #d99a37;
  --teal: #54c6d2;
  --red: #d86655;
  --green: #8bbf6a;
  --steel: #6f8290;
  --shadow: rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--space);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.42;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
code, pre { font-family: "Cascadia Mono", Consolas, monospace; }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(7, 12, 15, 0.96) 0%, rgba(7, 12, 15, 0.82) 44%, rgba(7, 12, 15, 0.48) 76%, rgba(7, 12, 15, 0.3) 100%),
    linear-gradient(0deg, rgba(11, 16, 20, 1) 0%, rgba(11, 16, 20, 0) 18%),
    url("assets/starfield/hero-galaxy.png");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  padding: 42px clamp(18px, 4vw, 56px) 64px;
  margin-left: 248px;
}




.hero-portrait {
  position: absolute;
  right: clamp(34px, 6vw, 104px);
  top: 51%;
  transform: translateY(-45%);
  width: min(31vw, 455px);
  aspect-ratio: 0.72;
  margin: 0;
  z-index: -1;
  border: 2px solid rgba(84, 198, 210, 0.82);
  background-image:
    linear-gradient(180deg, rgba(7, 12, 15, 0.28), rgba(7, 12, 15, 0.46)),
    linear-gradient(90deg, rgba(7, 12, 15, 0.2), rgba(7, 12, 15, 0.08)),
    url("assets/starfield/cupcake.png");
  background-size: cover, cover, cover;
  background-position: center, center, center top;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(238, 247, 248, 0.08);
}

.hero-portrait span {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 20px 5px;
  color: var(--teal);
  background: rgba(11, 16, 20, 0.94);
  border: 1px solid rgba(84, 198, 210, 0.82);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}
.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 26px 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}
.home-link {
  display: block;
  min-height: 38px;
  padding: 8px 11px;
  background: var(--amber);
  color: #10100e;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  line-height: 1.42;
}
.home-link:hover { background: var(--teal); }
button.brand {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  background: var(--amber);
  color: #10100e;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.42;
}











.side-nav.menu-open .menu-toggle {
  background: #10100e;
  color: var(--amber);
  border-color: var(--amber);
}

.menu-panel {
  overflow: hidden;
  max-height: 760px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 190ms ease, opacity 160ms ease, transform 190ms ease;
}


.side-nav:not(.menu-open) .menu-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.submenu {
  display: grid;
  gap: 4px;
  margin-left: 18px;
  padding-left: 12px;
  border-left: 1px solid rgba(84, 198, 210, 0.28);
  overflow: hidden;
  max-height: 420px;
  transition: max-height 180ms ease, opacity 160ms ease;
}

.submenu:not(.is-open) {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.submenu a {
  display: block;
  min-height: 34px;
  padding: 7px 9px;
  color: var(--muted);
  border-left: 2px solid transparent;
  background: rgba(84, 198, 210, 0.06);
  white-space: nowrap;
}


.submenu a:hover {
  color: var(--ink);
  background: rgba(84, 198, 210, 0.12);
  border-left-color: var(--teal);
}
.navlinks {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
}
.navlinks a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 7px 9px;
  border-left: 2px solid transparent;
}
.navlinks a span {
  color: var(--amber);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
}
.navlinks a:hover {
  color: var(--ink);
  background: rgba(84, 198, 210, 0.12);
  border-left-color: var(--teal);
}


.nav-starmap {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 9px;
  color: var(--ink);
  background: rgba(84, 198, 210, 0.12);
  border: 1px solid rgba(84, 198, 210, 0.25);
  border-left: 2px solid transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.42;
  text-align: left;
  cursor: pointer;
}

.nav-starmap span {
  color: var(--amber);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
}


.nav-mods {
  border-left-color: var(--teal);
}
.nav-starmap:hover {
  background: rgba(217, 154, 55, 0.16);
  border-color: rgba(217, 154, 55, 0.42);
}

.starmap-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  padding: 8px;
  background: rgba(3, 7, 10, 0.82);
  backdrop-filter: blur(10px);
}

.starmap-modal.is-open {
  display: grid;
  place-items: center;
}

.starmap-panel {
  width: min(1920px, 99vw);
  height: 98vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--panel);
  border: 1px solid rgba(84, 198, 210, 0.34);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
}

.starmap-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(17, 26, 32, 0.98), rgba(24, 36, 43, 0.94));
}

.starmap-bar .section-kicker { margin-bottom: 5px; }
.starmap-bar h2 { font-size: 1.15rem; }

.starmap-close {
  min-height: 36px;
  padding: 8px 12px;
  color: #10100e;
  background: var(--amber);
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.starmap-close:hover { background: var(--teal); }

.starmap-panel .starmap-image {
  width: 100%;
  height: 100%;
  border: 0;
  background: #071014;
  object-fit: contain;
  padding: 4px;
}

body.starmap-locked { overflow: hidden; }
.hero-copy {
  max-width: 700px;
  padding: 28px 24px 24px;
  position: relative;
  isolation: isolate;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-left: 3px solid rgba(84, 198, 210, 0.62);
  background:
    radial-gradient(circle at 10% 16%, rgba(238, 247, 248, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 28%, rgba(238, 247, 248, 0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 64%, rgba(84, 198, 210, 0.55) 0 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(84, 198, 210, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(84, 198, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 12, 15, 0.86), rgba(7, 12, 15, 0.56) 72%, transparent);
  background-size: auto, auto, auto, 56px 56px, 56px 56px, auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.eyebrow,
.section-kicker {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.72rem;
  margin: 0 0 10px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}
.intro {
  max-width: 700px;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  margin: 22px 0 0;
}
.backstory {
  max-width: 590px;
  color: var(--muted);
  margin: 16px 0 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.action,
.copy {
  border: 1px solid transparent;
  background: var(--amber);
  color: #10100e;
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.action.ghost {
  background: rgba(17, 26, 32, 0.74);
  color: var(--ink);
  border-color: var(--line);
}

main { padding: 0 clamp(18px, 4vw, 56px) 46px; margin-left: 248px; }
.command-strip,
.section {
  max-width: 1180px;
  margin: 0 auto;
}
.command-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.4fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 36px 0 44px;
  border-bottom: 1px solid var(--line);
}
h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.steps li + li { margin-top: 8px; }
.format-box {
  background: var(--panel);
  border-top: 3px solid var(--teal);
  padding: 16px;
  box-shadow: 0 16px 30px var(--shadow);
  display: grid;
  gap: 8px;
}
.format-box span { color: var(--muted); font-size: 0.84rem; }
.format-box code { color: var(--teal); overflow-wrap: anywhere; }

.section { padding: 54px 0 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}
.section-head p:not(.section-kicker) { color: var(--muted); margin: 12px 0 0; }
.compact { max-width: 560px; }

.loadout-grid,
.slot-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.loadout,
.slot-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 40px var(--shadow);
  overflow: hidden;
}
.loadout { display: flex; flex-direction: column; }
.loadout-top {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.tag {
  display: inline-block;
  color: var(--space);
  background: var(--teal);
  padding: 3px 8px;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.suit .tag { background: var(--red); }
.pack .tag { background: var(--amber); }
.helm .tag { background: var(--green); }
h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.25;
  letter-spacing: 0;
}
pre {
  margin: 0;
  padding: 13px 14px;
  color: var(--teal);
  background: var(--panel-2);
  overflow-x: auto;
  flex: 1;
}
.copy {
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.copy:hover,
.copy.is-copied { background: rgba(84, 198, 210, 0.14); }

.slot-card { padding: 14px; }
.slot-card h3 {
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.mod-list { display: grid; gap: 10px; }
.mod-row {
  display: grid;
  grid-template-columns: minmax(112px, 136px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid rgba(159, 177, 181, 0.18);
}
.mod-row:first-child { border-top: 0; }
.compact-list { gap: 0; }
.compact-row {
  grid-template-columns: 118px minmax(96px, 0.55fr) minmax(140px, 1fr);
  gap: 8px;
  padding: 6px 0;
}
.compact-row .mod-name { line-height: 1.25; }
.compact-row .mod-desc {
  margin-top: 0;
  font-size: 0.8rem;
  line-height: 1.32;
}
.mod-code { color: var(--teal); white-space: nowrap; }
.mod-name { font-weight: 700; }
.mod-desc { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}
.large {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 18px;
}
.notes ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  max-width: 820px;
}
.notes li + li { margin-top: 8px; }
footer {
  max-width: 1180px;
  margin: 36px clamp(18px, 4vw, 56px) 0 calc(248px + clamp(18px, 4vw, 56px));
  padding: 24px clamp(18px, 4vw, 56px) 34px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid var(--line);
}


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

.nexus-card {
  border: 1px solid rgba(120, 213, 226, 0.24);
  border-left: 3px solid var(--amber);
  background: linear-gradient(180deg, rgba(16, 30, 37, 0.92), rgba(10, 17, 22, 0.94));
  padding: 14px;
  border-radius: 6px;
  min-height: 150px;
}

.nexus-card h3 {
  margin: 7px 0 8px;
  font-size: 0.98rem;
}

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

.nexus-card a:hover {
  color: var(--teal);
}

.nexus-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.nexus-tag {
  color: var(--amber);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
@media (max-width: 1040px) {
  .side-nav {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(11, 16, 20, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .home-link { align-self: flex-start; }
  .navlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .navlinks a,
  .nav-starmap {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 36px;
    padding: 7px 9px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .nav-mods { border-bottom-color: var(--teal); }
  .navlinks a:hover,
  .nav-starmap:hover { border-bottom-color: var(--teal); }
  .submenu {
    flex-basis: 100%;
    margin-left: 10px;
  }
  .hero,
  main { margin-left: 0; }
  .hero-portrait {
    width: min(36vw, 430px);
    right: clamp(18px, 4vw, 56px);
  }
  footer {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .command-strip,
  .split { grid-template-columns: 1fr; }
  .loadout-grid,
  .slot-layout,
  .nexus-grid { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
  .hero-portrait {
    width: min(40vw, 360px);
    opacity: 0.72;
  }
  .hero-copy {
    padding-top: 24px;
    max-width: 640px;
  }
  .hero-copy::before { inset: 0; }
}

@media (max-width: 560px) {
  .side-nav { gap: 12px; }
  .navlinks a span,
  .nav-starmap span { display: none; }
  .hero {
    padding-bottom: 48px;
    background-image: radial-gradient(circle at 16% 16%, rgba(84, 198, 210, 0.16), transparent 28%), linear-gradient(90deg, rgba(7, 12, 15, 0.96), rgba(7, 12, 15, 0.7)), url("assets/starfield/space-background.svg");
  }
  .hero-portrait {
    width: min(76vw, 320px);
    right: 10px;
    opacity: 0.4;
  }
  .mod-row,
  .compact-row { grid-template-columns: 1fr; gap: 4px; }
  .starmap-modal { padding: 4px; }
  .starmap-panel { height: 99vh; }
  .starmap-bar { align-items: start; flex-direction: column; }
  footer { flex-direction: column; }
}


















body.embedded-view .hero,
body.embedded-view main {
  margin-left: 0;
}

body.embedded-view .hero {
  min-height: 100vh;
}


