:root {
  color-scheme: dark;
  --bg: #0a0d0c;
  --bg-deep: #050706;
  --panel: rgba(18, 24, 22, 0.88);
  --panel-2: rgba(25, 32, 29, 0.74);
  --text: #e5e1d6;
  --muted: #9b9f96;
  --line: rgba(137, 153, 126, 0.28);
  --green: #8fa67b;
  --amber: #c09a52;
  --steel: #8d9696;
  --danger: #a65f4b;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(137, 153, 126, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 153, 126, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 76% 18%, rgba(143, 166, 123, 0.16), transparent 28rem),
    linear-gradient(135deg, var(--bg), var(--bg-deep) 72%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#mapCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.38;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 9, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  color: var(--green);
  background: rgba(143, 166, 123, 0.08);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a,
.nav-toggle,
.button {
  border: 1px solid transparent;
  padding: 0.58rem 0.7rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.nav-toggle:hover,
.button:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(143, 166, 123, 0.1);
}

.nav-toggle {
  display: none;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

main {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0 3rem;
  flex: 1;
}

.home-main {
  width: min(1280px, calc(100% - 2rem));
}

.official-home {
  padding-top: 1.25rem;
}

.cover-hero {
  position: relative;
  min-height: clamp(42rem, 86vh, 56rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(137, 153, 126, 0.28);
  background: #050706;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  padding: clamp(1.4rem, 5vw, 4rem);
}

.cover-scene {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.92) 0 24%, rgba(5, 7, 6, 0.62) 48%, rgba(5, 7, 6, 0.92)),
    radial-gradient(circle at 76% 42%, rgba(143, 166, 123, 0.22), transparent 22rem),
    linear-gradient(145deg, rgba(20, 25, 22, 0.88), rgba(5, 7, 6, 0.92));
}

.image-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.72);
  transform: scale(1.04);
  animation: image-drift 24s ease-in-out infinite alternate;
}

.image-hero::after,
.cover-art::after,
.news-card figure::after,
.devlog-card figure::after,
.shot-card figure::after,
.image-panel figure::after,
.showcase-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 7, 6, 0.78));
  pointer-events: none;
}

@keyframes image-drift {
  from { transform: scale(1.04) translateX(-0.6rem); }
  to { transform: scale(1.08) translateX(0.6rem); }
}

.cover-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(229, 225, 214, 0.04) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(229, 225, 214, 0.035) 0 1px, transparent 1px 60px);
  animation: slow-pan 24s ease-in-out infinite alternate;
}

.cover-contours {
  position: absolute;
  inset: 4% -8%;
  background:
    repeating-radial-gradient(ellipse at 64% 52%, transparent 0 22px, rgba(143, 166, 123, 0.16) 23px 24px, transparent 25px 50px),
    linear-gradient(38deg, transparent 0 44%, rgba(192, 154, 82, 0.18) 44.2% 45.1%, transparent 45.4%);
  transform: rotate(-4deg);
  opacity: 0.44;
}

.cover-mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 76%, rgba(141, 150, 150, 0.16), transparent 25rem),
    radial-gradient(ellipse at 76% 58%, rgba(229, 225, 214, 0.12), transparent 26rem);
  animation: fog-drift 20s linear infinite alternate;
}

.title-plate {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  top: clamp(5rem, 12vw, 9rem);
  border: 1px solid rgba(143, 166, 123, 0.38);
  color: rgba(229, 225, 214, 0.62);
  padding: 0.65rem 0.9rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
}

.cover-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.release-state {
  display: inline-flex;
  margin: 0 0 1rem;
  border: 1px solid rgba(192, 154, 82, 0.45);
  background: rgba(192, 154, 82, 0.12);
  color: var(--amber);
  padding: 0.55rem 0.75rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.quick-actions article {
  border: 1px solid var(--line);
  background: rgba(18, 24, 22, 0.84);
  padding: 1.1rem;
}

.quick-actions span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.quick-actions strong {
  display: block;
  margin: 0.55rem 0 1rem;
  font-size: 1.05rem;
}

.quick-actions button {
  border: 1px solid var(--line);
  background: rgba(143, 166, 123, 0.1);
  color: var(--muted);
  padding: 0.6rem 0.75rem;
}

.official-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

@keyframes slow-pan {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 54px 0, 0 54px; }
}

@keyframes fog-drift {
  from { transform: translateX(-1.5rem); opacity: 0.62; }
  to { transform: translateX(1.5rem); opacity: 0.88; }
}

@keyframes hud-blink {
  0%, 100% { opacity: 0.34; }
  50% { opacity: 0.7; }
}

.page-cover {
  display: grid;
  grid-template-columns: minmax(18rem, 31rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.cover-art,
.news-card figure,
.devlog-card figure,
.shot-card figure,
.image-panel figure,
.showcase-art {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(5, 7, 6, 0.72);
}

.cover-art img,
.card img,
.news-card img,
.devlog-card img,
.gallery-card img,
.hero img,
.trailer-cover img,
.map-showcase img,
.press-image img,
.shot-card img,
.image-panel img,
.showcase-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08) brightness(0.86);
  transition: transform 360ms ease, filter 360ms ease;
}

.news-card:hover img,
.devlog-card:hover img,
.shot-card:hover img,
.image-panel:hover img,
.trailer-section:hover img,
.map-showcase:hover img,
.press-image:hover img,
.showcase-strip a:hover img {
  transform: scale(1.055);
  filter: saturate(0.95) contrast(1.12) brightness(0.95);
}

.cover-art {
  min-height: 22rem;
  box-shadow: 0 20px 60px var(--shadow);
}

.cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cover-art::before {
  background:
    repeating-linear-gradient(90deg, rgba(229, 225, 214, 0.055) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(229, 225, 214, 0.045) 0 1px, transparent 1px 28px);
}

.visual-features .feature-card {
  min-height: 20rem;
}

.news-card figure,
.devlog-card figure,
.image-panel figure {
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

.page-cover .cover-art {
  aspect-ratio: 16 / 9;
  min-height: 20rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
  gap: 2rem;
  align-items: end;
  min-height: 34rem;
}

.page-head {
  max-width: 860px;
  margin-bottom: 2rem;
}

.eyebrow,
.post-meta,
.last-updated,
.filter-box span,
.feature-card span {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
}

.page-head h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.subtitle {
  margin: 1.2rem 0 0;
  color: var(--amber);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
}

.lede,
.hero-copy p,
.panel p,
.feature-card p,
.system-card p,
.world-card p,
.faction-list p,
.post p,
.media-card p,
.notice p {
  color: var(--muted);
  line-height: 1.68;
}

.lede {
  max-width: 760px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #0b0e0c;
}

.status-card,
.panel,
.feature-card,
.system-card,
.world-card,
.post,
.media-card,
.change-card,
.notice,
.dispatch-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 60px var(--shadow);
}

.status-card,
.panel,
.feature-card,
.system-card,
.world-card,
.post,
.media-card,
.change-card,
.notice {
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.status-card h2,
.panel h2,
.section-heading h2,
.notice h2 {
  margin: 0 0 1rem;
}

.status-card dl {
  margin: 0;
}

.status-card div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.status-card div:last-child {
  border-bottom: 0;
}

.status-card dt {
  color: var(--muted);
}

.status-card dd {
  margin: 0;
  color: var(--green);
  font-weight: 800;
  text-align: right;
}

.section-block,
.split-section,
.dispatch-panel,
.notice {
  margin-top: 2.5rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.feature-grid,
.content-grid,
.media-grid,
.change-list {
  display: grid;
  gap: 1rem;
}

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

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

.content-grid.two,
.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.content-grid.three,
.media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card h3,
.system-card h2,
.world-card h3,
.media-card h2,
.news-card h3,
.devlog-card h2,
.shot-card h2,
.post h2,
.change-card h2 {
  margin: 0.75rem 0 0;
}

.news-grid,
.devlog-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.media-preview-strip,
.feature-media-grid,
.zone-grid,
.faq-grid {
  display: grid;
  gap: 1rem;
}

.media-preview-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.zone-grid,
.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.official-news {
  align-items: stretch;
}

.official-news .large-news {
  grid-column: span 2;
}

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

.news-card,
.devlog-card,
.shot-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
  box-shadow: 0 20px 60px var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.shot-card {
  padding: 0;
}

.shot-card button {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 1rem;
}

.news-card:hover,
.devlog-card:hover,
.shot-card:hover,
.feature-card:hover,
.panel:hover,
.system-card:hover,
.world-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 154, 82, 0.54);
  background: rgba(25, 32, 29, 0.88);
}

.news-card span,
.devlog-card span,
.shot-card span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.shot-card figure {
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

.showcase-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.media-preview-strip a,
.press-image {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.media-preview-strip a:hover,
.press-image:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 154, 82, 0.54);
}

.showcase-strip a {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.showcase-strip a:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 154, 82, 0.54);
}

.showcase-art {
  width: 100%;
  min-height: 13rem;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  aspect-ratio: 16 / 9;
}

.showcase-strip span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.media-preview-strip span,
.press-image figcaption {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.showcase-strip strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.18rem;
  overflow-wrap: anywhere;
}

.media-preview-strip strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.08rem;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.status-pills span,
.category-badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(192, 154, 82, 0.45);
  background: rgba(192, 154, 82, 0.12);
  color: var(--amber);
  padding: 0.48rem 0.65rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.trailer-section,
.map-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 1.2rem;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 60px var(--shadow);
}

.trailer-cover,
.map-showcase figure,
.press-image figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: rgba(5, 7, 6, 0.72);
}

.trailer-cover::after,
.map-showcase figure::after,
.press-image figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(5, 7, 6, 0.72));
  pointer-events: none;
}

.trailer-section p,
.map-showcase p {
  color: var(--muted);
  line-height: 1.68;
}

.news-filter {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

.news-filter button {
  border: 1px solid var(--line);
  background: rgba(18, 24, 22, 0.84);
  color: var(--muted);
  padding: 0.62rem 0.78rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.news-filter button:hover,
.news-filter button.is-active {
  color: var(--text);
  border-color: rgba(192, 154, 82, 0.54);
  background: rgba(192, 154, 82, 0.14);
}

[data-news-item].is-hidden {
  display: none;
}

.faq-preview .text-link {
  display: inline-flex;
  margin-top: 1rem;
}

.faq-grid article,
.faq-list article {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
  box-shadow: 0 20px 60px var(--shadow);
}

.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 960px;
}

.faq-list h2,
.faq-grid h3 {
  margin-top: 0;
}

.faq-list p,
.faq-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.press-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.fact-sheet dl,
.fact-sheet div {
  display: grid;
  gap: 0.45rem;
}

.fact-sheet div {
  grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1fr);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-sheet dt {
  color: var(--muted);
}

.fact-sheet dd {
  margin: 0;
  color: var(--text);
}

.studio-cover .cover-art {
  min-height: 24rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-notes {
  margin-top: 2.5rem;
}

.visual-panel .cover-art {
  min-height: 15rem;
  margin-bottom: 1rem;
}

.dispatch-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  animation: fade-up 680ms ease both;
}

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

@keyframes fade-up {
  from { opacity: 0.72; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.text-link {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.dispatch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  gap: 1rem;
  align-items: center;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.mock-form {
  display: flex;
  gap: 0.6rem;
}

.mock-form span,
.filter-box input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(5, 7, 6, 0.7);
  color: var(--muted);
  padding: 0.8rem;
}

.mock-form button {
  border: 1px solid var(--line);
  background: rgba(143, 166, 123, 0.12);
  color: var(--muted);
  padding: 0.8rem;
}

.loop-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.loop-strip span {
  border: 1px solid var(--line);
  background: rgba(143, 166, 123, 0.08);
  padding: 0.85rem;
  text-align: center;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
}

.filter-box {
  display: grid;
  gap: 0.45rem;
  max-width: 34rem;
  margin-top: 1rem;
}

.filter-box input:focus {
  border-color: var(--green);
  outline: none;
}

[data-filter-item].is-hidden {
  display: none;
}

.faction-list {
  display: grid;
  gap: 0.75rem;
}

.faction-list article {
  border-left: 2px solid var(--green);
  background: rgba(18, 24, 22, 0.52);
  padding: 0.9rem 1rem;
}

.faction-list h3,
.faction-list p {
  margin: 0;
}

.post-list {
  display: grid;
  gap: 1rem;
  max-width: 900px;
}

.clean-list,
.change-card ul {
  color: var(--muted);
  line-height: 1.65;
}

.change-list {
  grid-template-columns: 1fr;
  max-width: 920px;
}

.change-card h3 {
  color: var(--amber);
  margin: 1rem 0 0.25rem;
}

.notice {
  border-color: rgba(192, 154, 82, 0.34);
}

.modal,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open,
.lightbox.is-open {
  display: flex;
}

.modal-backdrop,
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
}

.modal-panel,
.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  border: 1px solid var(--line);
  background: rgba(7, 10, 9, 0.96);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.trailer-frame {
  min-height: 22rem;
  display: grid;
  place-content: center;
  gap: 0.6rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background:
    linear-gradient(rgba(137, 153, 126, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 153, 126, 0.05) 1px, transparent 1px),
    rgba(5, 7, 6, 0.7);
  background-size: 36px 36px;
}

.trailer-frame p {
  margin: 0;
  color: var(--muted);
}

.modal-close,
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  background: rgba(18, 24, 22, 0.92);
  color: var(--text);
  padding: 0.55rem 0.7rem;
}

.modal-close,
.lightbox-close {
  top: 0.75rem;
  right: 0.75rem;
}

.lightbox-panel {
  width: min(1100px, 100%);
  padding: 1rem;
}

.lightbox-panel figure {
  margin: 0;
}

.lightbox-panel img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #050706;
}

.lightbox-panel figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
}

.lightbox-panel figcaption span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

body.modal-open {
  overflow: hidden;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 9, 0.86);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .feature-grid,
  .content-grid,
  .content-grid.three,
  .media-grid,
  .news-grid,
  .devlog-grid,
  .gallery-grid,
  .media-preview-strip,
  .feature-media-grid,
  .zone-grid,
  .faq-grid,
  .press-layout,
  .quick-actions,
  .showcase-strip,
  .studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-news .large-news {
    grid-column: span 1;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    order: 3;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero,
  .page-cover,
  .split-section,
  .content-grid.two,
  .dispatch-panel,
  .trailer-section,
  .map-showcase,
  .press-layout,
  .feature-grid,
  .content-grid,
  .content-grid.three,
  .media-grid,
  .news-grid,
  .devlog-grid,
  .gallery-grid,
  .media-preview-strip,
  .feature-media-grid,
  .zone-grid,
  .faq-grid,
  .quick-actions,
  .showcase-strip,
  .studio-grid,
  .loop-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .cover-art,
  .page-cover .cover-art,
  .showcase-art {
    min-height: auto;
    width: 100%;
  }

  h1,
  .page-head h1 {
    max-width: 100%;
  }

  .mock-form {
    flex-direction: column;
  }
}

/* === LastSurvivor image ratio normalization === */

:root {
  --ls-image-bg: #0f151a;
  --ls-image-line: rgba(255,255,255,.10);
}

img {
  max-width: 100%;
  height: auto;
}

.press-hero-art,
.hero-wide-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--ls-image-bg);
}

.cover-art,
.trailer-cover,
.showcase-art,
.news-card figure,
.devlog-card figure,
.shot-card figure,
.feature-card figure,
.world-card figure,
.press-image,
.media-preview-strip figure,
.system-card figure,
.faction-card figure,
.studio-image,
.image-panel figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ls-image-bg);
  border: 1px solid var(--ls-image-line);
}

.press-hero-art img,
.hero-wide-art img,
.cover-art img,
.trailer-cover img,
.showcase-art img,
.news-card figure img,
.devlog-card figure img,
.shot-card figure img,
.feature-card figure img,
.world-card figure img,
.press-image img,
.media-preview-strip figure img,
.system-card figure img,
.faction-card figure img,
.studio-image img,
.image-panel figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.news-card,
.devlog-card,
.shot-card,
.feature-card,
.world-card,
.system-card,
.faction-card,
.image-panel {
  min-width: 0;
}

.shot-card button {
  width: 100%;
  text-align: left;
}

.media-preview-strip {
  align-items: stretch;
}

.media-preview-strip a,
.media-preview-strip figure {
  min-width: 0;
}

.cover-art::after,
.trailer-cover::after,
.news-card figure::after,
.devlog-card figure::after,
.shot-card figure::after,
.feature-card figure::after,
.world-card figure::after,
.press-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.06), transparent 30%),
    linear-gradient(to top, rgba(0,0,0,.35), transparent 45%);
}

@media (max-width: 768px) {
    .press-hero-art,
  .hero-wide-art {
    aspect-ratio: 16 / 9;
  }

  .media-preview-strip,
  .news-grid,
  .devlog-grid,
  .gallery-grid,
  .feature-media-grid,
  .zone-grid,
  .faction-list {
    grid-template-columns: 1fr;
  }
}


.prototype-reel-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  background: rgba(5, 7, 6, 0.72);
}

.prototype-reel-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(0.86) contrast(1.08) brightness(0.82);
}

.play-disabled {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(229, 225, 214, 0.82);
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-shadow: 0 10px 35px rgba(0,0,0,.7);
  pointer-events: none;
}

/* === Fix page cover image/title overlap === */

.page-cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  isolation: isolate;
}

.page-cover .cover-art {
  width: 100%;
  max-width: 480px;
  min-height: 0;
  aspect-ratio: 16 / 9;
  justify-self: start;
  position: relative;
  z-index: 1;
}

.page-cover .cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.page-cover > div {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.page-cover h1 {
  max-width: 10.5ch;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.94;
  overflow-wrap: normal;
  word-break: normal;
}

.page-cover .lede {
  max-width: 680px;
}

@media (max-width: 1080px) {
  .page-cover {
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 2rem;
  }

  .page-cover h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    max-width: 11.5ch;
  }
}

@media (max-width: 820px) {
  .page-cover {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .page-cover .cover-art {
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }

  .page-cover h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 13vw, 4rem);
    line-height: 0.98;
  }
}

/* === Improve home media preview image readability === */

.media-preview-strip .showcase-art {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #050706;
}

.media-preview-strip .showcase-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(0.95) contrast(1.05) brightness(0.95);
}

.media-preview-strip .showcase-art::after {
  background: linear-gradient(180deg, rgba(5, 7, 6, 0.02), rgba(5, 7, 6, 0.18));
}

.media-preview-strip a:hover .showcase-art img {
  filter: saturate(1.02) contrast(1.08) brightness(1.02);
}
