:root {
  --bg: #030207;
  --bg-2: #080611;
  --ink: #fff8ea;
  --muted: #d4c5b0;
  --soft: #a79ab0;
  --gold: #d8a746;
  --gold-2: #ffe8a8;
  --violet: #9b4dff;
  --violet-2: #4e18be;
  --cyan: #48d9ff;
  --red: #ff6245;
  --green: #9cee74;
  --panel: rgba(10, 7, 16, .74);
  --panel-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 232, 168, .24);
  --line-2: rgba(255, 255, 255, .13);
  --shadow: 0 28px 90px rgba(0, 0, 0, .62);
  --radius: 8px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(72, 217, 255, .12), transparent 34rem),
    radial-gradient(circle at 80% 16%, rgba(255, 98, 69, .1), transparent 30rem),
    linear-gradient(180deg, #090410 0%, #030207 42%, #090611 100%);
  color: var(--ink);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .72), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .42));
}

a {
  color: inherit;
}

img,
iframe {
  display: block;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--gold-2);
  color: #140807;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 900;
}

.skip-link:focus {
  top: 16px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 12px 5vw;
  background: rgba(3, 2, 7, .84);
  border-bottom: 1px solid rgba(255, 232, 168, .18);
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  color: var(--gold-2);
  font-family: Georgia, Times New Roman, serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(216, 167, 70, .44);
}

.brand span {
  color: var(--gold);
}

.navlinks {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.navlinks::-webkit-scrollbar {
  display: none;
}

.navlinks a {
  flex: 0 0 auto;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: #e8dbc8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.navlinks a:hover,
.navlinks a:focus,
.navlinks a[aria-current="page"] {
  color: var(--gold-2);
  background: rgba(255, 255, 255, .08);
  outline: none;
}

.pill,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, background .18s ease;
}

.pill {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 13px;
  font-size: 12px;
}

.discord {
  background: rgba(88, 101, 242, .18);
  border-color: rgba(132, 143, 255, .38);
  color: #f2f4ff;
}

.discord-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.btn.primary {
  background: linear-gradient(90deg, var(--red), var(--gold-2));
  color: #170706;
  box-shadow: 0 0 36px rgba(255, 98, 69, .3);
}

.btn.secondary {
  background: rgba(72, 217, 255, .1);
  border-color: rgba(72, 217, 255, .34);
}

.btn.ghost {
  background: rgba(255, 255, 255, .07);
  border-color: var(--line);
}

.btn:hover,
.btn:focus,
.pill:hover,
.pill:focus {
  transform: translateY(-2px);
  filter: brightness(1.08);
  outline: 2px solid rgba(255, 232, 168, .22);
  outline-offset: 2px;
}

.hero,
.page-hero {
  position: relative;
  min-height: calc(86svh - 68px);
  display: grid;
  align-items: end;
  padding: 48px 5vw 34px;
  overflow: hidden;
  isolation: isolate;
}

.page-hero {
  min-height: 480px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.03);
}

.contact-hero .hero-bg {
  object-position: center center;
}

.hero-veil,
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero-veil {
  background:
    linear-gradient(90deg, rgba(3, 2, 7, .96) 0%, rgba(3, 2, 7, .68) 44%, rgba(3, 2, 7, .36) 72%, rgba(3, 2, 7, .84) 100%),
    linear-gradient(0deg, rgba(3, 2, 7, .98) 0%, rgba(3, 2, 7, .32) 45%, rgba(3, 2, 7, .3) 100%);
}

.hero::after,
.page-hero::after {
  z-index: -1;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 34%);
}

.hero-content {
  width: min(800px, 100%);
  max-width: calc(100vw - 10vw);
  position: relative;
  z-index: 1;
  text-shadow: 0 3px 28px rgba(0, 0, 0, .8);
}

.compact-hero {
  width: min(820px, 100%);
}

.hero-logo {
  width: min(420px, 82vw);
  height: auto;
  margin: 8px 0 4px;
  filter: drop-shadow(0 0 28px rgba(155, 77, 255, .56)) drop-shadow(0 12px 28px rgba(0, 0, 0, .68));
}

.hero-card {
  position: absolute;
  right: 5vw;
  bottom: 34px;
  z-index: 1;
  width: 320px;
  padding: 18px;
  border: 1px solid rgba(255, 232, 168, .28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 7, 16, .74), rgba(10, 7, 16, .48));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card span,
.track-card span {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin: 10px 0;
  color: var(--gold-2);
  font-family: Georgia, Times New Roman, serif;
  font-size: 27px;
  line-height: 1;
  text-transform: uppercase;
}

.hero-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.eyebrow,
.kicker,
.tag {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 8px;
  background: linear-gradient(90deg, rgba(216, 167, 70, .95), rgba(255, 232, 168, .95));
  color: #150908;
  border-radius: var(--radius);
  font-size: 11px;
}

h1,
h2,
h3 {
  font-family: Georgia, Times New Roman, serif;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin-top: 8px;
  font-size: 54px;
  line-height: .94;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(155, 77, 255, .7), 0 0 58px rgba(216, 167, 70, .24);
}

h1 span {
  display: block;
}

.lead {
  margin: 16px 0 0;
  max-width: 760px;
  color: #fff2d5;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 900;
}

.sub {
  margin: 18px 0 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.marquee {
  border-top: 1px solid rgba(255, 232, 168, .2);
  border-bottom: 1px solid rgba(255, 232, 168, .16);
  background: rgba(6, 4, 10, .76);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 30px;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.marquee span:nth-child(3n) {
  color: var(--cyan);
}

.marquee span:nth-child(4n) {
  color: var(--red);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 5vw;
  scroll-margin-top: 84px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 30px;
}

.section-head .kicker {
  margin: 0 0 8px;
}

.section-head h2,
.copy h2,
.community-card h2,
.contact-cta h2,
.contact-panel h2,
.soundtrack-copy h2 {
  color: var(--ink);
  font-size: 48px;
  line-height: 1;
  text-transform: uppercase;
}

.section-head p:last-child,
.copy p,
.community-card p,
.contact-cta p,
.contact-panel p,
.soundtrack-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

.copy p + p {
  margin-top: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}

.copy {
  padding: 22px 0;
}

.copy .kicker,
.soundtrack-copy .kicker {
  display: block;
  margin-bottom: 10px;
}

.copy h2,
.soundtrack-copy h2 {
  margin-bottom: 18px;
}

.feature-rack,
.character-grid,
.realm-grid,
.media-grid,
.showcase-grid,
.stat-grid {
  display: grid;
  gap: 16px;
}

.feature-rack {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.feature-card,
.character-card,
.community-card,
.contact-panel,
.contact-cta,
.track-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .078), rgba(255, 255, 255, .034));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card {
  position: relative;
  min-height: 225px;
  padding: 22px;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid rgba(255, 232, 168, .24);
  pointer-events: none;
}

.feature-card:nth-child(2)::before {
  border-color: rgba(72, 217, 255, .34);
}

.feature-card:nth-child(3)::before {
  border-color: rgba(255, 98, 69, .36);
}

.feature-card:nth-child(4)::before {
  border-color: rgba(156, 238, 116, .34);
}

.feature-index {
  display: inline-flex;
  margin-bottom: 26px;
  color: rgba(255, 232, 168, .72);
  font-size: 12px;
  font-weight: 900;
}

.feature-card h3,
.character-card h3 {
  color: var(--gold-2);
  font-size: 27px;
  line-height: 1.08;
}

.feature-card p,
.character-card p,
.art-frame figcaption {
  color: var(--muted);
  line-height: 1.6;
}

.feature-card p,
.character-card p {
  margin: 10px 0 0;
}

.loop-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, .58fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 24px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(72, 217, 255, .22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(72, 217, 255, .1), rgba(255, 98, 69, .06)),
    rgba(255, 255, 255, .042);
  box-shadow: var(--shadow);
}

.loop-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 34%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold-2), transparent);
  animation: scanline 5.2s ease-in-out infinite;
}

.loop-board h3 {
  margin: 8px 0 10px;
  color: var(--gold-2);
  font-size: 31px;
  line-height: 1.05;
  text-transform: uppercase;
}

.loop-board p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loop-steps li,
.depth-grid li,
.resource-card,
.enemy-card,
.relic-card,
.hall-steps span {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .26);
}

.loop-steps li {
  min-height: 156px;
  padding: 16px;
}

.loop-steps span,
.depth-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 232, 168, .34);
  border-radius: var(--radius);
  color: var(--gold-2);
  font-weight: 900;
}

.loop-steps strong,
.depth-grid strong,
.resource-card strong,
.relic-card strong,
.enemy-card h3 {
  display: block;
  color: var(--ink);
}

.loop-steps strong {
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.loop-steps small,
.depth-grid small,
.resource-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.showcase-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  align-items: stretch;
}

.roster-panels {
  margin-top: 20px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}

.art-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #08040e;
  box-shadow: var(--shadow);
}

.art-frame img,
.character-card img,
.album-art img {
  display: block;
  width: 100%;
  height: auto;
}

.art-frame img,
.character-card img {
  cursor: zoom-in;
}

.art-frame img {
  transition: transform .45s ease, filter .45s ease;
}

.art-frame:hover img {
  transform: scale(1.025);
  filter: saturate(1.08);
}

.art-frame figcaption {
  margin: 0;
  min-height: 54px;
  padding: 13px 15px;
  background: rgba(0, 0, 0, .38);
  font-size: 14px;
}

.cinematic-frame {
  margin-bottom: 20px;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.stat-grid span {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .28);
  color: var(--muted);
  font-size: 14px;
}

.stat-grid b {
  color: var(--cyan);
  font-family: Georgia, Times New Roman, serif;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.realm-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}

.depth-map {
  margin: 0 0 22px;
}

.depth-map img {
  width: 100%;
}

.depth-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.depth-grid li {
  min-height: 138px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(155, 77, 255, .12), rgba(72, 217, 255, .045)),
    rgba(0, 0, 0, .26);
}

.depth-grid strong {
  font-family: Georgia, Times New Roman, serif;
  font-size: 20px;
  line-height: 1.08;
}

.world-preview-grid {
  margin-top: 26px;
}

.enemy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .34fr);
  gap: 20px;
  align-items: start;
}

.enemy-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.enemy-card {
  position: relative;
  min-height: 360px;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .028)),
    rgba(10, 7, 16, .74);
  box-shadow: var(--shadow);
}

.enemy-card::before,
.relic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 3px solid rgba(155, 77, 255, .36);
}

.enemy-card:nth-child(3n)::before {
  border-color: rgba(156, 238, 116, .32);
}

.enemy-card:nth-child(4n)::before {
  border-color: rgba(72, 217, 255, .34);
}

.enemy-card:nth-child(5n)::before {
  border-color: rgba(255, 98, 69, .34);
}

.enemy-card span {
  display: block;
  min-height: 28px;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.enemy-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 4px 0 12px;
  padding: 8px;
  cursor: zoom-in;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5));
  transition: transform .34s ease, filter .34s ease;
}

.enemy-card:hover img {
  transform: translateY(-5px) scale(1.04);
  filter: drop-shadow(0 18px 34px rgba(155, 77, 255, .32));
}

.enemy-card h3 {
  margin: 0;
  color: var(--gold-2);
  font-size: 23px;
  line-height: 1.05;
}

.enemy-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.enemy-sheet {
  position: sticky;
  top: 96px;
}

.resource-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.resource-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 126px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(216, 167, 70, .14), rgba(72, 217, 255, .055)),
    rgba(0, 0, 0, .26);
}

.resource-card img {
  grid-row: 1 / span 2;
  width: 78px;
  height: 78px;
  object-fit: contain;
  cursor: zoom-in;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .54));
}

.resource-card strong {
  grid-column: 2;
  font-family: Georgia, Times New Roman, serif;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.resource-card span {
  grid-column: 2;
}

.relic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.relic-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 188px;
  padding: 16px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025)),
    rgba(10, 7, 16, .78);
  box-shadow: var(--shadow);
}

.relic-card img {
  width: min(118px, 78%);
  aspect-ratio: 1;
  object-fit: contain;
  cursor: zoom-in;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .56));
  transition: transform .32s ease, filter .32s ease;
}

.relic-card:hover img {
  transform: translateY(-5px) rotate(-2deg) scale(1.05);
  filter: drop-shadow(0 16px 30px rgba(255, 232, 168, .22));
}

.relic-card strong {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.relic-sheet {
  margin-top: 18px;
}

.hall-section {
  max-width: none;
  background:
    linear-gradient(90deg, rgba(3, 2, 7, .96), rgba(3, 2, 7, .72)),
    url("../images/hall-original.webp") center / cover fixed;
  border-top: 1px solid rgba(255, 232, 168, .16);
  border-bottom: 1px solid rgba(255, 232, 168, .16);
}

.hall-section > .split {
  max-width: var(--max);
  margin: 0 auto;
}

.hall-steps {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hall-steps span {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.45;
}

.hall-steps b {
  flex: 0 0 auto;
  color: var(--cyan);
  font-family: Georgia, Times New Roman, serif;
  font-size: 22px;
}

.hall-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hall-gallery .art-frame:first-child {
  grid-column: 1 / -1;
}

.character-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 22px;
}

.character-card {
  overflow: hidden;
}

.character-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.character-card div {
  padding: 18px;
}

.media-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .52fr) minmax(260px, .72fr);
  align-items: stretch;
}

.media-grid .art-frame img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.soundtrack-section {
  max-width: none;
  padding-left: 5vw;
  padding-right: 5vw;
  background:
    linear-gradient(90deg, rgba(3, 2, 7, .96), rgba(3, 2, 7, .62)),
    url("../images/launch/store-bg.webp") center / cover fixed;
  border-top: 1px solid rgba(255, 232, 168, .16);
  border-bottom: 1px solid rgba(255, 232, 168, .16);
}

.soundtrack-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, .58fr);
  gap: 34px;
  align-items: center;
}

.album-art {
  margin: 0;
  position: relative;
}

.album-art::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border: 1px solid rgba(255, 232, 168, .26);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 98, 69, .18), rgba(72, 217, 255, .12));
}

.album-art img {
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .68);
}

.track-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
  margin-top: 22px;
  padding: 18px;
}

.track-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.trailer-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #09040f;
  box-shadow: var(--shadow);
}

.trailer-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.community-section,
.contact-cta {
  max-width: none;
}

.community-card,
.contact-cta,
.contact-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px;
}

.community-card {
  background:
    linear-gradient(135deg, rgba(155, 77, 255, .18), rgba(255, 98, 69, .1)),
    rgba(255, 255, 255, .04);
}

.community-card h2,
.contact-cta h2,
.contact-panel h2 {
  max-width: 900px;
  margin: 8px 0 14px;
}

.community-card p,
.contact-cta p {
  max-width: 780px;
}

.contact-cta,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.contact-page .section-head a {
  color: var(--gold-2);
  font-weight: 900;
}

.contact-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.contact-panel {
  margin-top: 24px;
}

.footer {
  padding: 34px 5vw;
  color: #a79a88;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #020104;
}

.footer p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 58px 72px;
  background: rgba(0, 0, 0, .9);
}

.lightbox img {
  max-width: min(100%, 1500px);
  max-height: calc(100svh - 140px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .72);
}

.lightbox button {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: rgba(12, 8, 18, .86);
  color: var(--ink);
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 32px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 70px;
  transform: translateY(-50%);
  font-size: 50px;
  line-height: 1;
}

.lightbox-nav.prev {
  left: 16px;
}

.lightbox-nav.next {
  right: 16px;
}

.lightbox-caption {
  position: absolute;
  left: 72px;
  right: 72px;
  bottom: 18px;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scanline {
  0%,
  18% {
    transform: translateX(0);
    opacity: 0;
  }
  30%,
  68% {
    opacity: 1;
  }
  100% {
    transform: translateX(400%);
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .nav {
    flex-wrap: wrap;
  }

  .navlinks {
    order: 3;
    flex-basis: 100%;
    padding-bottom: 2px;
  }

  .hero-card {
    position: static;
    width: min(520px, 100%);
    margin-top: 24px;
  }

  .hero {
    align-content: end;
  }

  .section-head,
  .split,
  .showcase-grid,
  .roster-panels,
  .soundtrack-wrap,
  .loop-board,
  .enemy-layout,
  .contact-cta,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .feature-rack,
  .character-grid,
  .realm-grid,
  .depth-grid,
  .enemy-gallery,
  .relic-grid,
  .contact-types {
    grid-template-columns: repeat(2, 1fr);
  }

  .loop-steps,
  .resource-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .enemy-sheet {
    position: static;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-grid .art-frame:first-child {
    grid-column: 1 / -1;
  }

  .character-grid .character-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-content {
    max-width: 354px;
  }

  h1 {
    font-size: 32px;
  }

  .lead {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.42;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 96px;
    padding: 10px 16px;
    gap: 10px;
  }

  .brand {
    font-size: 20px;
  }

  .pill {
    margin-left: auto;
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .pill .discord-icon {
    width: 19px;
    height: 19px;
  }

  .navlinks a {
    padding: 8px 9px;
    font-size: 11px;
  }

  .hero,
  .page-hero {
    min-height: calc(100svh - 96px);
    padding: 46px 18px 28px;
  }

  .page-hero {
    min-height: 500px;
  }

  .hero-bg {
    object-position: 58% center;
  }

  .hero-logo {
    width: min(430px, 92vw);
  }

  .hero-content {
    width: 100%;
    max-width: calc(100vw - 36px);
  }

  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 20px;
  }

  .sub,
  .section-head p:last-child,
  .copy p,
  .community-card p,
  .contact-cta p,
  .contact-panel p,
  .soundtrack-copy p {
    font-size: 16px;
  }

  .section {
    padding: 66px 18px;
  }

  .section-head h2,
  .copy h2,
  .community-card h2,
  .contact-cta h2,
  .contact-panel h2,
  .soundtrack-copy h2 {
    font-size: 36px;
  }

  .feature-rack,
  .character-grid,
  .realm-grid,
  .media-grid,
  .depth-grid,
  .enemy-gallery,
  .loop-steps,
  .resource-strip,
  .contact-types,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .relic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-card {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 108px;
    padding: 14px;
  }

  .resource-card img {
    width: 64px;
    height: 64px;
  }

  .enemy-card {
    min-height: auto;
  }

  .enemy-card img {
    max-height: 260px;
  }

  .hall-gallery {
    grid-template-columns: 1fr;
  }

  .hall-gallery .art-frame:first-child {
    grid-column: auto;
  }

  .feature-card {
    min-height: auto;
  }

  .media-grid .art-frame:first-child,
  .character-grid .character-card:last-child {
    grid-column: auto;
  }

  .media-grid .art-frame img {
    min-height: auto;
  }

  .track-card {
    grid-template-columns: 1fr;
  }

  .community-card,
  .contact-cta,
  .contact-panel {
    padding: 22px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .marquee span {
    min-height: 46px;
    padding: 0 20px;
    font-size: 12px;
  }

  .soundtrack-section {
    background-attachment: scroll;
  }

  .hall-section {
    background-attachment: scroll;
  }

  .lightbox {
    padding: 54px 14px 64px;
  }

  .lightbox img {
    max-height: calc(100svh - 150px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 10px;
    transform: none;
    width: 48px;
    height: 44px;
    font-size: 34px;
  }

  .lightbox-nav.prev {
    left: 16px;
  }

  .lightbox-nav.next {
    right: 16px;
  }

  .lightbox-caption {
    left: 74px;
    right: 74px;
    bottom: 22px;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 18px;
  }

  .section-head h2,
  .copy h2,
  .community-card h2,
  .contact-cta h2,
  .contact-panel h2,
  .soundtrack-copy h2 {
    font-size: 30px;
  }

  .hero-card strong {
    font-size: 26px;
  }

  .relic-grid {
    grid-template-columns: 1fr;
  }

  .loop-board,
  .relic-card,
  .enemy-card {
    padding: 14px;
  }
}

/* Expansion hub and project-page system */
.universe-page,
.project-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(72, 217, 255, .12), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(255, 78, 216, .12), transparent 30rem),
    linear-gradient(180deg, #05030b 0%, #050208 44%, #0b0715 100%);
}

.navlinks a[aria-current="page"] {
  color: var(--gold-2);
  background: rgba(216, 167, 70, .15);
}

.universe-hero,
.project-hero,
.luna-hero {
  position: relative;
  min-height: clamp(620px, 88svh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.universe-hero-bg,
.project-backdrop,
.luna-hero > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.universe-hero-shade,
.project-hero::before,
.luna-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 2, 7, .94) 0%, rgba(3, 2, 7, .68) 43%, rgba(3, 2, 7, .18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(3, 2, 7, .9));
}

.luna-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 3, 4, .94) 0%, rgba(5, 3, 4, .58) 48%, rgba(5, 3, 4, .16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(5, 3, 4, .88));
}

.universe-hero-content,
.project-hero-copy,
.luna-hero-copy {
  width: min(760px, calc(100vw - 44px));
  margin: 0 0 clamp(48px, 8vw, 100px) 5vw;
}

.universe-hero h1,
.project-hero h1,
.luna-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(44px, 8vw, 104px);
  line-height: .9;
  text-transform: uppercase;
}

.project-logo {
  display: block;
  width: min(470px, 78vw);
  height: auto;
  margin: 0 0 18px;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .62));
}

.music-logo {
  width: min(500px, 80vw);
  height: auto;
  object-fit: contain;
}

.universe-section {
  padding-top: 86px;
}

.universe-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(260px, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  background: rgba(10, 7, 16, .72);
  box-shadow: var(--shadow);
}

.project-card.large-card {
  grid-row: span 2;
}

.project-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.project-card img[src*="eternium-cover"],
.project-card img[src*="owens-rebellion-logo"] {
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 40%, rgba(178, 99, 255, .18), transparent 22rem),
    #050309;
}

.project-card.large-card img {
  height: 560px;
}

.project-card > div {
  padding: 22px;
}

.project-card h3 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1;
  text-transform: uppercase;
}

.project-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.project-card a {
  color: var(--gold-2);
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.project-tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-tag.cyan { color: var(--cyan); }
.project-tag.gold { color: var(--gold-2); }
.project-tag.pink { color: #ff62d4; }
.project-tag.green { color: var(--green); }

.proof-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
}

.project-page .project-hero {
  min-height: clamp(580px, 82svh, 820px);
}

.rocket-hero::before,
.music-hero::before {
  background:
    linear-gradient(90deg, rgba(4, 2, 10, .96) 0%, rgba(4, 2, 10, .76) 45%, rgba(4, 2, 10, .34) 100%),
    linear-gradient(180deg, transparent, rgba(4, 2, 10, .92));
}

.book-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 440px);
  gap: 44px;
  width: min(1240px, calc(100vw - 44px));
  min-height: auto;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) 0 70px;
  align-items: center;
}

.book-hero .project-hero-copy {
  width: auto;
  margin: 0;
}

.book-cover-frame {
  width: min(100%, 430px);
  justify-self: center;
  align-self: center;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 232, 168, .25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  box-shadow: var(--shadow);
}

.book-cover-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(76vh, 700px);
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  background: #050309;
}

.tight-section {
  padding-top: 28px;
  padding-bottom: 42px;
}

.stats-strip {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.stats-strip div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 232, 168, .21);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}

.stats-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-strip strong {
  display: block;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
}

.callout-section {
  padding-top: 36px;
}

.rocket-gallery .showcase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rocket-campaign-section {
  padding-top: 28px;
}

.rocket-panorama-frame,
.rocket-side-grid,
.rocket-campaign-grid {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.rocket-panorama-frame {
  margin-bottom: 22px;
}

.rocket-panorama-frame img {
  aspect-ratio: 3 / 1;
  object-fit: cover;
  background: #050309;
}

.rocket-side-grid,
.rocket-campaign-grid {
  display: grid;
  gap: 18px;
}

.rocket-side-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.rocket-side-grid .art-frame img,
.rocket-campaign-grid .art-frame img {
  object-fit: contain;
  background: #050309;
}

.rocket-campaign-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.altitude-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(130px, .38fr) minmax(130px, .38fr);
  gap: 18px;
  align-items: stretch;
}

.altitude-layout img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .28);
  box-shadow: var(--shadow);
}

.luna-hero {
  min-height: clamp(660px, 92svh, 940px);
}

.luna-hero-copy {
  width: min(720px, calc(100vw - 44px));
}

.luna-page .feature-card {
  border-color: rgba(247, 184, 74, .28);
}

.compact-gallery {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.compact-gallery .character-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 430px;
  overflow: hidden;
}

.compact-gallery .character-card img {
  height: 360px;
  object-fit: contain;
  background: radial-gradient(circle, rgba(247, 184, 74, .08), rgba(0, 0, 0, .22));
}

.compact-gallery .character-card h3 {
  padding: 16px 18px 18px;
}

.luna-poster-section {
  padding-top: 18px;
}

.luna-poster-frame img {
  display: block;
  max-height: min(78vh, 860px);
  object-fit: contain;
  background: #050309;
}

.music-page .project-hero-copy {
  width: min(780px, calc(100vw - 44px));
}

.music-page .album-art {
  width: min(100%, 420px);
  justify-self: center;
}

.music-page .album-art img {
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  background: #050309;
}

.music-page .showcase-grid .art-frame img {
  object-fit: contain;
  background: #050309;
}

.standalone-soundtrack {
  padding-top: 84px;
}

.spotify-embed {
  display: block;
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: var(--radius);
  background: #111;
}

.project-page .footer,
.universe-page .footer {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* MegaDope: Space Commander */
.space-commander-page {
  --space-cyan: #60dfff;
  --space-blue: #267cff;
  --space-violet: #b76dff;
  --space-orange: #ff8b48;
  --space-red: #ff4f67;
  background:
    linear-gradient(180deg, rgba(13, 17, 28, .42), rgba(4, 5, 10, .96)),
    #04050a;
}

.space-commander-page::before {
  background:
    linear-gradient(90deg, rgba(96, 223, 255, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 139, 72, .025) 1px, transparent 1px);
  background-size: 72px 72px;
}

.space-hero {
  position: relative;
  min-height: clamp(700px, 88svh, 940px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.space-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 4, 9, .94) 0%, rgba(2, 4, 9, .74) 39%, rgba(2, 4, 9, .16) 76%),
    linear-gradient(180deg, rgba(2, 4, 9, .08) 35%, rgba(2, 4, 9, .94) 100%);
}

.space-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 3px;
  background: linear-gradient(90deg, var(--space-blue), var(--space-cyan), var(--space-orange), var(--space-red));
  box-shadow: 0 0 28px rgba(96, 223, 255, .58);
}

.space-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: space-fleet-drift 18s ease-in-out infinite alternate;
}

.space-hero-copy {
  width: min(760px, calc(100vw - 44px));
  margin: 0 0 clamp(48px, 8vh, 92px) 5vw;
}

.space-hero h1 {
  max-width: 800px;
  margin: 0 0 20px;
  color: #f5f8ff;
  font-size: 5.5rem;
  line-height: .88;
  text-transform: uppercase;
  text-shadow: 0 10px 48px rgba(0, 0, 0, .86);
}

.space-hero h1 span {
  color: var(--space-cyan);
  text-shadow: 0 0 32px rgba(38, 124, 255, .54);
}

.space-hero .lead {
  max-width: 690px;
  color: #edf6ff;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.58;
  text-shadow: 0 4px 22px #000;
}

.space-commander-page .btn.primary {
  color: #02060a;
  background: linear-gradient(90deg, var(--space-cyan), #f2fbff);
  box-shadow: 0 0 34px rgba(96, 223, 255, .28);
}

.space-commander-page .btn.secondary {
  background: rgba(38, 124, 255, .18);
  border-color: rgba(96, 223, 255, .46);
}

.space-build-note {
  max-width: 680px;
  margin: 22px 0 0;
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--space-orange);
  color: #d7e7f5;
  font-size: 14px;
  line-height: 1.55;
}

.space-marquee {
  border-color: rgba(96, 223, 255, .24);
  background: #050914;
}

.space-status-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.space-status-section .stats-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.space-status-section .stats-strip strong {
  color: #f4f8ff;
  font-size: 17px;
}

.space-band,
.space-ship-section,
.space-enemy-section {
  position: relative;
}

.space-band::before,
.space-ship-section::before,
.space-enemy-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5vw;
  right: 5vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 223, 255, .38), rgba(255, 139, 72, .3), transparent);
}

.space-commander-page .section-head h2 {
  color: #f3f7ff;
}

.space-pillar-grid .feature-card:nth-child(1)::before { border-color: var(--space-cyan); }
.space-pillar-grid .feature-card:nth-child(2)::before { border-color: var(--space-orange); }
.space-pillar-grid .feature-card:nth-child(3)::before { border-color: var(--space-violet); }
.space-pillar-grid .feature-card:nth-child(4)::before { border-color: var(--space-red); }

.space-pillar-grid .feature-card h3,
.space-system-grid .feature-card h3 {
  color: #f1f7ff;
}

.space-build-gallery {
  max-width: none;
  padding-left: max(5vw, calc((100vw - var(--max)) / 2));
  padding-right: max(5vw, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(180deg, rgba(38, 124, 255, .08), rgba(255, 79, 103, .035)),
    #05070d;
}

.space-build-gallery .section-head,
.space-build-gallery .space-gameplay-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.space-gameplay-grid,
.space-battle-gallery,
.space-concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.space-gameplay-grid .art-frame img,
.space-battle-gallery .art-frame img,
.space-concept-grid .art-frame img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.space-wide-frame {
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid rgba(96, 223, 255, .28);
  border-radius: var(--radius);
  background: #03050a;
  box-shadow: var(--shadow);
}

.space-wide-frame img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform .45s ease, filter .45s ease;
}

.space-wide-frame:hover img {
  transform: scale(1.012);
  filter: saturate(1.08);
}

.space-wide-frame figcaption {
  min-height: 52px;
  margin: 0;
  padding: 13px 15px;
  color: var(--muted);
  background: #05070d;
  font-size: 14px;
  line-height: 1.6;
}

.space-system-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.space-system-grid .feature-card {
  min-height: 210px;
}

.space-zane-section {
  max-width: none;
  background:
    linear-gradient(90deg, rgba(38, 124, 255, .1), transparent 54%),
    #06080d;
}

.space-character-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: 38px;
  align-items: center;
}

.space-character-layout .section-head {
  display: block;
  margin: 0;
}

.space-character-layout .section-head h2 {
  margin: 12px 0 18px;
}

.space-ability-list {
  display: grid;
  margin-top: 26px;
  border-top: 1px solid rgba(96, 223, 255, .24);
}

.space-ability-list span {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #edf6ff;
  font-weight: 850;
}

.space-ability-list b {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(96, 223, 255, .42);
  border-radius: var(--radius);
  color: var(--space-cyan);
  font-size: 12px;
}

.space-ability-list span:nth-child(2) b { color: #75f2bd; border-color: rgba(117, 242, 189, .42); }
.space-ability-list span:nth-child(3) b { color: #8ab0ff; border-color: rgba(138, 176, 255, .42); }
.space-ability-list span:nth-child(4) b { color: var(--space-orange); border-color: rgba(255, 139, 72, .45); }
.space-ability-list span:nth-child(5) b { color: var(--space-violet); border-color: rgba(183, 109, 255, .45); }

.space-art-section {
  max-width: none;
  background: #05060a;
}

.space-art-section .section-head,
.space-art-section .space-concept-grid {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.space-community-section .community-panel {
  border-color: rgba(96, 223, 255, .28);
  background:
    linear-gradient(115deg, rgba(38, 124, 255, .16), rgba(255, 139, 72, .08)),
    #07080d;
}

@keyframes space-fleet-drift {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(-.8%, -.5%, 0); }
}

@media (max-width: 1040px) {
  .universe-grid,
  .book-hero,
  .altitude-layout {
    grid-template-columns: 1fr;
  }

  .project-card.large-card {
    grid-row: auto;
  }

  .project-card.large-card img,
  .project-card img {
    height: min(58vw, 430px);
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rocket-gallery .showcase-grid,
  .rocket-side-grid,
  .rocket-campaign-grid,
  .compact-gallery,
  .feature-grid,
  .space-system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .space-status-section .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .space-character-layout {
    grid-template-columns: 1fr;
  }

  .space-character-layout .art-frame {
    max-width: 820px;
  }

  .space-hero h1 {
    font-size: 4.25rem;
  }

  .altitude-layout img {
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  .universe-hero,
  .project-hero,
  .luna-hero {
    min-height: 720px;
    align-items: end;
  }

  .universe-hero-content,
  .project-hero-copy,
  .luna-hero-copy {
    margin-left: 18px;
    margin-right: 18px;
    width: calc(100vw - 36px);
  }

  .universe-hero h1,
  .project-hero h1,
  .luna-hero h1 {
    font-size: 42px;
  }

  .project-logo {
    width: min(340px, 86vw);
  }

  .universe-grid,
  .rocket-gallery .showcase-grid,
  .rocket-side-grid,
  .rocket-campaign-grid,
  .compact-gallery,
  .stats-strip,
  .feature-grid,
  .space-system-grid,
  .space-gameplay-grid,
  .space-battle-gallery,
  .space-concept-grid {
    grid-template-columns: 1fr;
  }

  .space-hero {
    min-height: 760px;
  }

  .space-hero::before {
    background:
      linear-gradient(180deg, rgba(2, 4, 9, .16) 20%, rgba(2, 4, 9, .92) 66%, rgba(2, 4, 9, .98) 100%),
      linear-gradient(90deg, rgba(2, 4, 9, .62), rgba(2, 4, 9, .18));
  }

  .space-hero-bg {
    object-position: 54% center;
  }

  .space-hero-copy {
    margin-left: 18px;
    margin-right: 18px;
    width: calc(100vw - 36px);
  }

  .space-hero h1 {
    font-size: 2.7rem;
    line-height: .94;
  }

  .space-hero .lead {
    font-size: 18px;
  }

  .space-status-section .stats-strip {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .project-card.large-card img,
  .project-card img {
    height: 260px;
  }

  .book-hero {
    padding-top: 48px;
  }

  .book-cover-frame,
  .music-page .album-art {
    width: min(100%, 360px);
  }

  .compact-gallery .character-card img {
    height: 320px;
  }

  .compact-gallery .character-card {
    min-height: 388px;
  }

  .luna-poster-frame img {
    max-height: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
