:root {
  color-scheme: dark;
  --base: #080c13;
  --panel: #101923;
  --line: #303c4b;
  --text: #f6f2ea;
  --muted: #bac4d1;
  --gold: #e8c38a;
  font-family: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--base); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.shell { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 5; padding: 12px; color: var(--base); background: var(--gold); transform: translateY(-150%); }
.skip:focus { transform: none; }
.masthead { background: #0b1019; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.brand { flex: none; color: var(--text); text-decoration: none; letter-spacing: .17em; font: 700 18px Georgia, serif; letter-spacing: .11em; }
.brand small { display: block; margin-top: 5px; color: var(--gold); font: 650 9px system-ui, sans-serif; letter-spacing: .33em; }
nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 27px); }
nav a { text-decoration: none; color: var(--muted); font-size: .8rem; font-weight: 600; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--gold); }
.nav-connect { padding: 8px 13px; border: 1px solid #766347; color: var(--gold); }
.hero { position: relative; display: grid; align-items: center; min-height: clamp(475px, 42vw, 620px); isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-art { object-fit: cover; object-position: 55% 75%; }
.hero::after { content: ""; background: linear-gradient(90deg, #080c13fa, #080c13e6 24%, #080c1360 51%, transparent 75%), linear-gradient(0deg, #080c13 0%, transparent 31%); }
.hero-inner { padding-block: 56px 70px; }
.eyebrow { color: var(--gold); letter-spacing: .22em; font-size: .7rem; font-weight: 700; margin: 0 0 17px; }
h1, h2, h3 { font-family: "Baskervville", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(4.5rem, 8vw, 8rem); line-height: .84; letter-spacing: -.058em; margin: 0; }
.hero-copy { max-width: 345px; line-height: 1.65; color: #e2e5eb; margin-block: 25px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button, button { display: inline-flex; align-items: center; gap: 12px; border: 1px solid #687581; padding: 11px 14px; text-decoration: none; font: 650 .8rem system-ui, sans-serif; }
.primary { background: var(--gold); color: #15100a; border-color: var(--gold); }
.primary:hover { background: #ffe0ab; }
.secondary, button { background: #101923e0; color: var(--text); }
.secondary:hover, button:hover { background: #273646; }
.content { padding-block: 32px 48px; }
.section-title { display: flex; align-items: center; gap: 20px; margin: 0 0 18px; font-size: 1.95rem; }
.section-title::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; min-height: 220px; align-items: end; isolation: isolate; border: 1px solid var(--line); overflow: hidden; text-decoration: none; }
.card img, .card::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.card img { object-fit: cover; }
.card::after { content: ""; background: linear-gradient(0deg, #080c13 8%, #080c13d9 27%, transparent 75%); }
.card:hover { border-color: var(--gold); }
.card-copy { width: 100%; padding: 16px 32px 16px 15px; }
.card h3 { margin: 0 0 5px; font-size: clamp(1.1rem, 1.75vw, 1.6rem); }
.card p { margin: 0; color: #d0d7df; font-size: .78rem; }
.card span { position: absolute; right: 13px; bottom: 18px; color: var(--gold); }
.connection { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px; margin-top: 24px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--panel); }
.connection h2, .reference h2 { margin: 0 0 8px; font-size: 1.6rem; }
.connection p, .reference p { color: var(--muted); line-height: 1.65; }
.connection p { margin: 0; font-size: .9rem; }
.endpoint { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.endpoint a, .reference a, footer a { color: var(--gold); }
.endpoint code { font-size: clamp(.85rem, 2vw, 1.05rem); }
button { cursor: pointer; }
button[hidden] { display: none; }
#feedback { position: absolute; right: 0; top: 100%; color: var(--gold); font-size: .73rem; }
.reference { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; margin-top: 40px; }
.reference section + section { padding-left: 24px; border-left: 1px solid var(--line); }
footer { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
footer details { max-width: 370px; }
summary { cursor: pointer; }
@media (max-width: 1050px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding-block: 16px; }
  nav { flex-wrap: wrap; }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 40px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card h3 { font-size: 1.4rem; }
  .connection { flex-direction: column; align-items: start; }
}
@media (max-width: 520px) {
  .hero { align-items: end; min-height: 530px; }
  .hero-art { height: 66%; object-position: 54% bottom; }
  .hero::after { background: linear-gradient(0deg, #080c13 31%, #080c1399 54%, transparent 77%); }
  .hero-inner { padding-block: 180px 35px; }
  h1 { font-size: clamp(3.6rem, 16vw, 4.5rem); }
  .hero-copy { margin-block: 18px; }
  .cards, .reference { grid-template-columns: 1fr; }
  .reference section + section { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  footer { flex-direction: column; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body { background: #060e18; }
.shell { width: min(1640px, calc(100% - 48px)); }
.header-inner { width: 100%; display: block; padding: 0; }
.brand { display: block; width: 100%; aspect-ratio: 1672 / 123; background: url("assets/masthead.webp") left top / 100% auto no-repeat; }
nav { justify-content: center; gap: 0; border-block: 1px solid #74889f; background: linear-gradient(#102337, #071421 55%, #0b2134); }
nav a { flex: 0 1 265px; text-align: center; padding: 13px 10px; border-right: 1px solid #314258; text-transform: uppercase; letter-spacing: .07em; color: var(--text); }
nav a[aria-current] { flex-basis: 135px; background: linear-gradient(#74591d, #35270c 55%, #856225); color: white; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 18%); gap: 14px; padding-top: 0; }
.hero { min-height: clamp(330px, 23vw, 460px); border: 0; }
.hero-inner { width: 100%; padding: 30px clamp(18px, 3vw, 60px) 44px; }
.hero-art { object-position: center 67%; }
.hero::after { background: linear-gradient(90deg, #060e18 0%, #060e18f0 22%, #060e1850 52%, transparent 72%), linear-gradient(0deg, #060e18, transparent 29%); }
.eyebrow { border-left: 2px solid var(--gold); padding: 3px 0 3px 22px; color: #c0d4e9; text-transform: uppercase; font-size: clamp(.9rem, 1.35vw, 1.23rem); letter-spacing: .17em; line-height: 1.45; }
.hero-copy { margin-left: 24px; max-width: 400px; font-size: clamp(.94rem, 1.22vw, 1.12rem); line-height: 1.42; }
.actions { margin-left: 24px; }
.button { text-transform: uppercase; border-radius: 4px; }
.primary { color: white; border-color: #ffc65c; background: linear-gradient(#49330d, #181004 55%, #4a310b); box-shadow: 0 0 10px #cd8e3c70; }
.primary:hover { color: #15100a; }
.cards { gap: 12px; }
.card { display: block; min-height: 0; border-radius: 10px; border-color: #627082; background: #08131e; }
.card::after { content: none; }
.card-art { aspect-ratio: 316 / 132; background-size: cover; background-position: center; }
.card-art.game { background-image: url("assets/game.webp"); }
.card-art.players { background-image: url("assets/players.webp"); }
.card-art.species { background-image: url("assets/species.webp"); }
.card-art.missions { background-image: url("assets/missions.webp"); }
.card-copy { border-top: 1px solid #344457; padding: 10px 25px 11px 13px; }
.card h3, .connection h2, .reference h2, .guide h2 { font: 650 clamp(.78rem, 1.25vw, 1.14rem) system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.card p { font-size: clamp(.72rem, 1vw, .9rem); }
.connection { align-self: start; display: block; margin-top: 20px; padding: 0 12px 12px; border: 1px solid #567a9d; border-radius: 12px; background: linear-gradient(#142d44, #091520 30%, #102436); }
.connection h2 { border-bottom: 1px solid #48627b; margin: 0 -12px 12px; padding: 11px 12px; text-align: center; }
.connection p { margin: 0 0 11px; }
.endpoint { gap: 8px; }
.endpoint code { font-size: .9rem; }
#feedback { position: static; }
.connection-links { display: grid; gap: 7px; margin-top: 10px; }
.connection-links a { border: 1px solid #405970; padding: 11px; border-radius: 5px; text-decoration: none; font-size: .85rem; }
.connection-links a:hover { border-color: var(--gold); }
.reference { border-top: 1px solid #718599; margin-top: 24px; padding: 20px 24px; background: #0b1826; }
.guide { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; padding: 20px 24px; color: var(--muted); }
.guide a { color: var(--gold); }
@media (max-width: 1000px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .connection { margin-top: 0; }
  .connection-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .brand { background-size: 191% auto; aspect-ratio: 870 / 123; }
  nav a, nav a[aria-current] { flex: 1 0 33.333%; white-space: normal; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 26px); }
  .header-inner { width: 100%; }
  nav a { font-size: .69rem; padding: 9px 5px; }
  .hero { min-height: 410px; }
  .hero-art { height: 68%; object-position: 57% bottom; }
  .hero::after { background: linear-gradient(0deg, #060e18 34%, #060e1866 63%, transparent 85%); }
  .hero-inner { padding: 145px 7px 18px; }
  .hero-copy, .actions { margin-left: 0; }
  .eyebrow { padding-left: 10px; letter-spacing: .12em; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card-copy { min-height: 77px; }
  .guide { grid-template-columns: 1fr; }
}
.about-emblem { float: left; width: clamp(70px, 11vw, 163px); height: auto; margin: 0 24px 10px 0; border-right: 1px solid #b49461; padding-right: 13px; }
#game { display: flow-root; }
.lore summary { color: var(--gold); }
.hero-art { left: auto; width: 73%; object-position: right center; }
.hero::after { background: linear-gradient(90deg, #060e18 23%, #060e18a8 43%, transparent 67%), linear-gradient(0deg, #060e18, transparent 14%); }
@media (max-width: 520px) {
  .hero-art { width: 100%; object-position: 74% top; }
  .hero::after { background: linear-gradient(0deg, #060e18 32%, #060e18cc 54%, transparent 79%); }
  .endpoint { min-width: 0; }
}

.wiki-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-block: 24px;
}
.wiki-sections section {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.wiki-sections h2 {
  margin-top: 0;
  font: 650 1rem system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wiki-sections h3, .lore h3 { font: 650 .93rem system-ui, sans-serif; }
.wiki-sections p, .wiki-sections ul, .wiki-sections dd { color: var(--muted); line-height: 1.55; }
.wiki-sections ul { padding-left: 20px; }
.wiki-sections a { color: var(--gold); }
.species-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 16px; }
.wiki-sections dt { font-weight: 650; }
.wiki-sections dd { margin: 0 0 10px; }
@media (max-width: 1000px) {
  .wiki-sections { grid-template-columns: 1fr; }
}

.homepage-about { grid-template-columns: 1fr; }
.interior {
  max-width: 920px;
  min-height: 55vh;
  padding-block: clamp(28px, 5vw, 64px);
}
.interior h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 20px;
}
.interior h2 { margin-top: 28px; }
.interior p, .interior li, .interior dd { color: var(--muted); line-height: 1.65; }
.interior dt { font-weight: 650; }
.interior dd { margin: 0 0 14px; }
.interior .connection { padding: 20px; margin: 0; }
.interior .guide { width: 100%; padding-inline: 0; }
.interior .species-list { max-width: 520px; }

.interior { max-width: 1120px; }
.page-banner {
  display: flex;
  align-items: end;
  min-height: clamp(180px, 26vw, 310px);
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid #52667c;
  border-bottom: 2px solid #b49461;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(0deg, #080e19 0%, #080e1930 77%), var(--page-art) center / cover;
}
.page-banner h1 { margin: 0; text-shadow: 0 2px 12px #03070b; }
.page-content {
  padding: clamp(20px, 4vw, 48px);
  background: #0b1723;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
.page-content p { max-width: 72ch; }
.page-content section > :first-child { margin-top: 0; }
.page-content section > :last-child { margin-bottom: 0; }
.page-content h2, .page-content h3 { color: var(--gold); }
.page-content .species-list {
  list-style: none;
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 8px;
  padding: 0;
}
.page-content .species-list li {
  padding: 8px 12px;
  border: 1px solid #314258;
  border-radius: 4px;
  background: #101f2e;
}
.page-content dl { margin-block: 24px 0; }
.page-content dt { padding-top: 13px; border-top: 1px solid var(--line); }
.page-content dd { margin-top: 5px; }
.page-content .guide { padding-bottom: 0; }
.page-content .connection { border-left: 3px solid var(--gold); }
nav a[aria-current="page"]:not([href="index.html"]) { flex-basis: 265px; }
@media (max-width: 800px) {
  nav a[aria-current="page"]:not([href="index.html"]) { flex-basis: 33.333%; }
}

.species-list a, .page-content dt a { color: var(--gold); }
.species-profile { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.species-profile h2 { margin-top: 0; }
.species-profile h3 { font-size: 1.05rem; }

.species-profile { display: flow-root; }
.profile-portrait {
  float: right;
  width: min(31%, 220px);
  height: auto;
  margin: 0 0 12px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
@media (max-width: 520px) {
  .profile-portrait { float: none; width: min(100%, 220px); margin: 0 0 12px; }
}

.profile-gallery {
  float: right;
  display: grid;
  gap: 10px;
  width: min(31%, 220px);
  margin: 0 0 12px 20px;
}
.profile-gallery .profile-portrait { float: none; width: 100%; margin: 0; }
@media (max-width: 520px) {
  .profile-gallery {
    float: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0 0 12px;
  }
}

.game-content section + section {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.game-content h2 {
  font: 650 1rem system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.game-content section p:first-of-type { margin-top: 0; }

.locations-page .page-banner { min-height: clamp(100px, 12vw, 155px); padding-block: 18px; }
.locations-page .page-content { padding: clamp(14px, 2.5vw, 26px); }
.location-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(18px, 4vw, 44px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.location-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 5px;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  line-height: 1.25;
}
.location-list li br { display: none; }
.location-list li span { display: inline-block; margin-left: 8px; font-size: .75rem; }
.location-list strong { color: var(--text); }
.location-list button { min-width: 62px; min-height: 32px; justify-content: center; padding: 4px 8px; }
@media (max-width: 700px) {
  .location-list { grid-template-columns: 1fr; }
}

.location-group + .location-group { margin-top: 20px; }
.location-group h2 {
  margin: 0 0 6px;
  font: 650 .95rem system-ui, sans-serif;
  color: var(--gold);
}

.system-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.system-links article { padding: 16px; border: 1px solid var(--line); background: var(--panel); }
.system-links h3 { margin: 0 0 8px; }
.system-links h3 a { color: var(--gold); }
.system-links p { margin: 0; }
@media (max-width: 620px) { .system-links { grid-template-columns: 1fr; } }
