:root {
  --ink: #130b18;
  --ink-soft: #211124;
  --night: #0e171b;
  --plum: #3b173c;
  --wine: #711f3f;
  --gold: #f4c542;
  --gold-dark: #b77a17;
  --cream: #fff2cf;
  --paper: #ead9b5;
  --red: #e33e48;
  --teal: #32b8a7;
  --muted: #bfaec0;
  --line: rgba(244, 197, 66, 0.26);
  --content: 1160px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: var(--gold);
  color: var(--ink);
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  background: rgba(19, 11, 24, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-family: Georgia, serif;
  font-weight: 800;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border: 2px solid var(--cream);
  background: var(--plum);
  image-rendering: pixelated;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a,
.header-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-link:hover,
.header-link:focus-visible {
  color: var(--gold);
}

.header-link {
  justify-self: end;
  color: var(--cream);
  border-bottom: 1px solid var(--gold);
  padding: 6px 0;
}

.header-docs {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero {
  position: relative;
  isolation: isolate;
  height: 78svh;
  min-height: 640px;
  max-height: 760px;
  overflow: hidden;
  background-image: url("images/backgrounds/mapa-1-1.png");
  background-position: center;
  background-size: cover;
  image-rendering: pixelated;
  border-bottom: 4px solid var(--gold-dark);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(19, 7, 23, 0.55);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(var(--content), calc(100% - 64px));
  margin: 0 auto;
  padding-top: 92px;
  padding-right: 52%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 600px;
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 5px 6px 0 rgba(19, 11, 24, 0.68);
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero-tagline {
  margin: 17px 0 0;
  color: var(--red);
  font-family: "Arial Black", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 530px;
  margin: 22px 0 0;
  color: #f5e9d7;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions,
.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.button-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--wine);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--cream);
  border-color: var(--cream);
}

.button-secondary {
  border-color: var(--cream);
  color: var(--cream);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--cream);
  color: var(--ink);
}

.button-download {
  background: #4caf7a;
  border-color: #4caf7a;
  color: var(--ink);
  box-shadow: 4px 4px 0 #2d6b4a;
}

.button-download:hover,
.button-download:focus-visible {
  background: #6fd99a;
  border-color: #6fd99a;
}

.header-link-download {
  color: #6fd99a;
  border-color: #4caf7a;
}

.header-link-download:hover,
.header-link-download:focus-visible {
  background: #4caf7a;
  color: var(--ink);
}

.hero-download-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: rgba(255, 248, 235, 0.78);
}

.hero-download-note a {
  color: #6fd99a;
}

.hero-download-note a:hover,
.hero-download-note a:focus-visible {
  color: var(--cream);
}

.hero-stage {
  position: absolute;
  right: max(6%, calc((100% - var(--content)) / 2));
  bottom: 30px;
  z-index: 2;
  width: min(54%, 680px);
  height: 300px;
  pointer-events: none;
}

.stage-sprite,
.scene-unit,
.boss-visual img,
.maid-portrait img {
  image-rendering: pixelated;
  filter: drop-shadow(7px 9px 0 rgba(19, 11, 24, 0.52));
}

.stage-sprite {
  position: absolute;
  bottom: 0;
  width: 112px;
}

.stage-akari {
  left: -2%;
  bottom: -6px;
  width: 120px;
  z-index: 3;
}

.stage-rin {
  left: 20%;
  bottom: 16px;
  width: 118px;
  z-index: 4;
}

.stage-hina {
  left: 38%;
  width: 116px;
  z-index: 3;
}

.stage-rat {
  right: 15%;
  width: 138px;
  z-index: 2;
}

.stage-slime {
  right: 0;
  bottom: 2px;
  width: 120px;
}

.hero-status {
  position: absolute;
  left: 32px;
  bottom: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 12px;
  background: rgba(19, 11, 24, 0.88);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 62, 72, 0.2);
}

.status-separator {
  color: var(--gold);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--content);
  min-height: 104px;
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat-strip div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.stat-strip div:last-child {
  border-right: 0;
}

.stat-strip strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 36px;
}

.stat-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 112px max(32px, calc((100% - var(--content)) / 2));
}

.section-heading {
  max-width: 720px;
  margin-bottom: 50px;
}

.section-heading-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section h2,
.project-copy h2 {
  margin: 0;
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1.08;
}

.section-heading > p:last-child,
.project-copy > p,
.waves-copy > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.combat-section {
  background: var(--night);
  border-top: 1px solid rgba(50, 184, 167, 0.18);
  border-bottom: 1px solid rgba(50, 184, 167, 0.18);
}

.combat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 52px;
  align-items: center;
}

.scene-preview {
  position: relative;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border: 3px solid var(--gold-dark);
  background: #261823;
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.24);
}

.scene-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.scene-unit {
  position: absolute;
  bottom: 4%;
  width: 12%;
}

.scene-maid-akari {
  left: 16%;
}

.scene-maid-ran {
  left: 28%;
  width: 17%;
}

.scene-enemy-slime {
  right: 19%;
}

.scene-enemy-rat {
  right: 5%;
  width: 14%;
}

.combat-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.combat-type {
  padding: 8px 14px;
  border: 1px solid rgba(50, 184, 167, 0.45);
  border-radius: 3px;
  background: rgba(20, 39, 42, 0.85);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.combat-type-melee {
  border-color: rgba(244, 197, 66, 0.5);
  color: var(--gold);
}

.combat-type-aoe {
  border-color: rgba(227, 62, 72, 0.55);
  color: #ff9399;
}

.combat-type-static {
  border-color: rgba(191, 174, 192, 0.45);
  color: var(--muted);
}

.scene-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  background: rgba(19, 11, 24, 0.9);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.combat-notes {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(50, 184, 167, 0.35);
}

.combat-notes article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(50, 184, 167, 0.35);
}

.note-index {
  color: var(--teal);
  font-family: Georgia, serif;
  font-weight: 800;
}

.combat-notes h3 {
  margin: 0 0 6px;
  font-family: Georgia, serif;
  font-size: 22px;
}

.combat-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.maids-section {
  background: var(--ink-soft);
}

.maid-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.maid-card {
  overflow: hidden;
  background: #1a101d;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.maid-portrait {
  display: grid;
  min-height: 270px;
  place-items: end center;
  border-bottom: 1px solid var(--line);
}

.maid-portrait-gold {
  background: #54351f;
}

.maid-portrait-teal {
  background: #173c3d;
}

.maid-portrait-red {
  background: #4e1e2f;
}

.maid-portrait-plum {
  background: #3b173c;
}

.maid-portrait-night {
  background: #1e2a35;
}

.maid-portrait-blue {
  background: #17304a;
}

.maid-portrait img {
  width: 150px;
  margin-bottom: 20px;
}

.maid-card-copy {
  padding: 28px;
}

.maid-role {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.maid-card h3 {
  margin: 7px 0 12px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 28px;
}

.maid-card h3 .kanji {
  font-size: 0.72em;
  color: var(--muted);
  font-weight: 400;
}

.roster-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #150f18;
}

.roster-title {
  margin: 0 0 20px;
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 24px;
  text-align: center;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roster-grid li {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 12px 8px;
  border: 1px solid rgba(244, 197, 66, 0.14);
  border-radius: 4px;
  background: #1a101d;
  text-align: center;
}

.roster-grid img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  filter: drop-shadow(3px 4px 0 rgba(19, 11, 24, 0.45));
}

.roster-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.roster-grid small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.maid-card p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.stat-list,
.boss-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stat-list div,
.boss-stats div {
  display: grid;
  gap: 5px;
}

.stat-list dt,
.boss-stats dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-list dd,
.boss-stats dd {
  margin: 0;
  color: var(--cream);
  font-size: 16px;
  font-weight: 800;
}

.waves-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(500px, 1.2fr);
  gap: 80px;
  align-items: center;
  background: #111d20;
}

.waves-copy h2 {
  margin-bottom: 20px;
}

.wave-readout {
  min-height: 152px;
  margin-top: 34px;
  padding: 22px 0 0 22px;
  border-left: 4px solid var(--red);
}

.wave-readout span {
  display: block;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.wave-readout strong {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 30px;
}

.wave-readout p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.wave-control {
  min-width: 0;
}

.wave-track {
  display: grid;
  grid-template-columns: repeat(10, minmax(44px, 1fr));
  gap: 6px;
}

.wave-button {
  height: 54px;
  border: 1px solid rgba(50, 184, 167, 0.42);
  border-radius: 3px;
  background: #14272a;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.wave-button:hover,
.wave-button:focus-visible,
.wave-button.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.wave-button-boss {
  border-color: rgba(227, 62, 72, 0.6);
  color: #ff9399;
}

.wave-meter {
  height: 12px;
  margin-top: 22px;
  padding: 2px;
  background: #081114;
  border: 1px solid rgba(50, 184, 167, 0.5);
}

.wave-meter span {
  display: block;
  width: 10%;
  height: 100%;
  background: var(--teal);
  transition: width 220ms ease, background-color 220ms ease;
}

.wave-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #779092;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.worlds-section {
  background: #190e1c;
}

.world-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 740px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.world-tab {
  min-height: 46px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #241227;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.world-tab:last-child {
  border-right: 0;
}

.world-tab:hover,
.world-tab:focus-visible,
.world-tab.is-active {
  background: var(--gold);
  color: var(--ink);
}

.boss-showcase {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 0.9fr);
  min-height: 470px;
  border: 1px solid var(--line);
  background: #110b15;
}

.boss-visual {
  position: relative;
  display: grid;
  min-height: 470px;
  place-items: center;
  overflow: hidden;
  background-image: url("images/backgrounds/mapa-1-10.png");
  background-position: center;
  background-size: cover;
  image-rendering: pixelated;
  border-right: 1px solid var(--line);
}

.boss-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(19, 11, 24, 0.44);
}

.boss-visual img {
  position: relative;
  z-index: 1;
  width: min(260px, 60%);
  max-height: 310px;
  object-fit: contain;
}

.boss-map-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 7px 10px;
  background: rgba(19, 11, 24, 0.9);
  border-left: 3px solid var(--red);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.boss-copy {
  align-self: center;
  padding: 52px;
}

.boss-world {
  margin: 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.boss-copy h3 {
  margin: 8px 0 18px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1.05;
}

.boss-copy > p:not(.boss-world) {
  min-height: 80px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.boss-stats {
  margin-top: 32px;
}

.boss-stats dd {
  color: var(--gold);
  font-size: 22px;
}

.systems-section {
  background: var(--cream);
  color: var(--ink);
}

.systems-section .section-heading h2 {
  color: var(--ink);
}

.systems-section .section-heading > p:last-child {
  color: #5c4a5d;
}

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

.systems-gallery figure {
  margin: 0;
  border: 1px solid #c9a866;
  background: #f3e3be;
}

.system-image {
  display: grid;
  aspect-ratio: 318 / 468;
  place-items: center;
  overflow: hidden;
  background: #3b173c;
  border-bottom: 1px solid #c9a866;
}

.system-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.system-image-poster img {
  object-fit: cover;
}

.systems-gallery figcaption {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  min-height: 110px;
  padding: 20px;
}

.systems-gallery figcaption > span {
  color: var(--wine);
  font-family: Georgia, serif;
  font-weight: 800;
}

.systems-gallery strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 21px;
}

.systems-gallery figcaption p {
  margin: 6px 0 0;
  color: #675568;
  font-size: 13px;
  line-height: 1.5;
}

.project-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: 90px;
  align-items: center;
  background: #0d171a;
}

.project-copy h2 {
  max-width: 700px;
}

.project-copy > p {
  max-width: 680px;
}

.text-link {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-decoration-color: rgba(50, 184, 167, 0.5);
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.project-status {
  border-top: 1px solid rgba(50, 184, 167, 0.34);
}

.project-status > div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid rgba(50, 184, 167, 0.34);
}

.project-status strong {
  font-size: 14px;
}

.project-status small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.status-mark {
  width: 9px;
  height: 9px;
}

.status-ready {
  background: var(--teal);
}

.status-progress {
  background: var(--gold);
}

.site-footer {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100% - var(--content)) / 2));
  background: #09060c;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer > div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 20px;
}

.site-footer span,
.site-footer p {
  font-size: 11px;
  text-transform: uppercase;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

/* ── Historia ─────────────────────────────────────────────── */
.historia-section {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.historia-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 72px;
  align-items: start;
  margin-bottom: 72px;
}

.historia-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.historia-copy h2 {
  margin: 0 0 28px;
}

.historia-quote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: rgba(244, 197, 66, 0.07);
}

.historia-quote p {
  margin: 0;
  color: var(--cream) !important;
  font-family: Georgia, serif;
  font-size: 18px !important;
  font-style: italic;
  line-height: 1.55 !important;
}

.historia-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.historia-pillars > div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  background: rgba(0, 0, 0, 0.28);
}

.historia-pillars strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 17px;
}

.historia-pillars span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.historia-visual {
  display: grid;
  gap: 20px;
}

.historia-mansion {
  width: 100%;
  border: 2px solid var(--gold-dark);
  image-rendering: pixelated;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.35);
}

.historia-lore-pill {
  padding: 20px 22px;
  background: #1a0f1e;
  border: 1px solid rgba(227, 62, 72, 0.38);
  border-left: 4px solid var(--red);
}

.historia-lore-pill strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.historia-lore-pill p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.zonas-strip {
  border-top: 1px solid var(--line);
  padding-top: 52px;
}

.zonas-strip .eyebrow {
  text-align: center;
  margin-bottom: 28px;
}

.zonas-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.zonas-grid > div {
  display: grid;
  gap: 10px;
  padding: 24px 20px;
  background: var(--ink-soft);
  align-content: start;
}

.zonas-grid > div:hover {
  background: #1e1124;
}

.zonas-grid span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.zonas-grid strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.2;
}

.zonas-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero-copy {
    padding-right: 38%;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-stage {
    right: 1%;
    width: 53%;
  }

  .stage-sprite {
    width: 88px;
  }

  .stage-akari {
    width: 100px;
  }

  .stage-rat {
    width: 110px;
  }

  .stage-slime {
    width: 96px;
  }

  .historia-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

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

  .combat-layout,
  .waves-section,
  .project-section {
    grid-template-columns: 1fr;
    gap: 46px;
  }

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

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

  .wave-track {
    grid-template-columns: repeat(5, 1fr);
  }

  .boss-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .boss-copy {
    padding: 34px;
  }

  .systems-gallery {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 56px;
  }

  .site-header {
    gap: 12px;
    padding: 0 16px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .header-link {
    font-size: 11px;
  }

  .hero {
    height: 78svh;
    min-height: 520px;
    max-height: 660px;
  }

  .hero-copy {
    width: calc(100% - 32px);
    padding-top: 50px;
    padding-right: 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-intro {
    max-width: 430px;
    margin-right: auto;
    margin-left: auto;
    font-size: 15px;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 22px;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 11px;
  }

  .hero-stage {
    right: 50%;
    bottom: 18px;
    width: min(94%, 520px);
    height: 140px;
    transform: translateX(50%);
  }

  .stage-sprite {
    width: 70px;
  }

  .stage-akari {
    left: 1%;
    bottom: -4px;
    width: 78px;
  }

  .stage-rin {
    left: 22%;
    width: 76px;
  }

  .stage-hina {
    left: 39%;
    width: 74px;
  }

  .stage-rat {
    right: 13%;
    width: 84px;
  }

  .stage-slime {
    right: 0;
    width: 76px;
  }

  .hero-status {
    display: none;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    min-height: 148px;
  }

  .stat-strip div:nth-child(2) {
    border-right: 0;
  }

  .stat-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .stat-strip strong {
    font-size: 27px;
  }

  .section {
    padding: 78px 18px;
  }

  .section h2,
  .project-copy h2 {
    font-size: 35px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .scene-preview {
    aspect-ratio: 2.1 / 1;
  }

  .scene-unit {
    width: 17%;
  }

  .scene-maid-akari {
    left: 11%;
  }

  .scene-maid-ran {
    left: 26%;
    width: 25%;
  }

  .scene-enemy-slime {
    right: 18%;
  }

  .scene-enemy-rat {
    right: 2%;
    width: 20%;
  }

  .historia-pillars {
    grid-template-columns: 1fr;
  }

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

  .maid-grid,
  .systems-gallery {
    grid-template-columns: 1fr;
  }

  .maid-portrait {
    min-height: 220px;
  }

  .maid-portrait img {
    width: 150px;
  }

  .wave-track {
    grid-template-columns: repeat(5, minmax(46px, 1fr));
  }

  .world-tabs {
    grid-template-columns: repeat(5, 94px);
    overflow-x: auto;
  }

  .boss-showcase {
    grid-template-columns: 1fr;
  }

  .boss-visual {
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .boss-visual img {
    max-height: 220px;
  }

  .boss-copy {
    padding: 28px 22px 34px;
  }

  .boss-copy h3 {
    font-size: 34px;
  }

  .system-image {
    max-height: 520px;
  }

  .project-status > div {
    grid-template-columns: 12px 1fr;
    padding: 10px 0;
  }

  .project-status small {
    grid-column: 2;
  }

  .site-footer {
    min-height: 142px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 28px 18px;
  }

  .site-footer p {
    margin: 0;
  }
}

@media (max-width: 390px) {
  .brand > span:last-child {
    max-width: 94px;
    line-height: 1.05;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-tagline {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 270px);
    margin-right: auto;
    margin-left: auto;
  }

  .stat-strip div {
    gap: 8px;
  }

  .section h2,
  .project-copy h2 {
    font-size: 31px;
  }

  .wave-track {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
    gap: 4px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
