@font-face {
  font-family: "Pixelify Sans";
  src: url("assets/fonts/PixelifySans.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #121923;
  --ink-raised: #1b2531;
  --slate: #273445;
  --slate-soft: #354354;
  --paper: #e8ddc4;
  --paper-dim: #b5ae9d;
  --brass: #ddb45c;
  --moss: #94a77a;
  --ember: #e47a57;
  --line: rgba(232, 221, 196, .18);
  --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Pixelify Sans", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 0 clamp(22px, 5.4vw, 88px);
  border-bottom: 1px solid rgba(232, 221, 196, .09);
  background: var(--ink);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--paper);
  text-decoration: none;
}

.brand-seal {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--brass);
  image-rendering: pixelated;
}

.brand-name {
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .005em;
}

.brand-name span {
  color: var(--paper-dim);
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  vertical-align: -3px;
  margin-right: 6px;
  shape-rendering: crispEdges;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 42px);
}

.main-nav a {
  color: var(--paper-dim);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color .15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brass);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.language-toggle,
.header-play,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.language-toggle {
  gap: 6px;
  min-width: 52px;
  padding: 0 9px;
  border-color: var(--line);
  background: transparent;
  color: var(--paper-dim);
  font-size: 12px;
}

.language-toggle svg,
.header-play svg,
.button svg,
.text-link svg,
.scene-caption svg {
  width: 16px;
  height: 16px;
  flex: none;
  image-rendering: pixelated;
}

.language-toggle:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.header-play {
  min-height: 42px;
  padding: 0 15px;
  background: var(--brass);
  color: #241e14;
  font-size: 13px;
  transition: background-color .15s ease, transform .15s ease;
}

.header-play:hover,
.button-primary:hover {
  transform: translateY(-2px);
  background: #f0c96c;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100svh - 82px));
  min-height: clamp(620px, calc(100svh - 82px), 800px);
  overflow: hidden;
  padding: 82px clamp(22px, 8vw, 132px) 92px;
  background: #161d26;
}

.hero-scene,
.hero-scrim {
  position: absolute;
  z-index: -1;
  inset: 0;
  margin: 0;
}

.hero-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 49%;
  image-rendering: pixelated;
}

.hero-scrim {
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 18, 26, .96) 1%, rgba(12, 18, 26, .84) 30%, rgba(12, 18, 26, .5) 58%, rgba(12, 18, 26, .16) 100%),
    linear-gradient(0deg, rgba(12, 18, 26, .76), transparent 36%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  margin-top: 8px;
}

.availability,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: .04em;
}

.status-pixel {
  width: 8px;
  height: 8px;
  background: var(--moss);
  box-shadow: 4px 0 0 rgba(148, 167, 122, .32), 0 4px 0 rgba(148, 167, 122, .32);
}

.hero h1,
h2,
h3 {
  font-family: var(--display-font);
  font-weight: 600;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: #f0e5cb;
  font-size: clamp(3.4rem, 7.4vw, 7.3rem);
  letter-spacing: -.045em;
  line-height: .9;
  white-space: pre-line;
  text-wrap: balance;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .22);
}

.hero-description {
  max-width: 510px;
  margin: 24px 0 28px;
  color: #d0c9b8;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 54px;
  padding: 0 20px;
  font-size: 14px;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.button-primary {
  background: var(--brass);
  color: #211d16;
}

.button-outline {
  border-color: rgba(232, 221, 196, .52);
  background: rgba(18, 25, 35, .56);
  color: var(--paper);
}

.button-outline:hover {
  border-color: var(--paper);
  background: rgba(18, 25, 35, .84);
}

.preview-line {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 44px;
  color: var(--paper-dim);
  font-size: 12px;
}

.preview-line > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.preview-line > span + span {
  padding-left: 22px;
  border-left: 1px solid rgba(232, 221, 196, .3);
}

.preview-line b {
  color: var(--brass);
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 600;
}

.scene-caption {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 5vw, 78px);
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(232, 221, 196, .72);
  font-size: 11px;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}

.scene-caption svg {
  color: var(--brass);
}

.section-shell {
  width: min(100% - 48px, 1210px);
  margin-inline: auto;
}

.journey {
  display: grid;
  grid-template-columns: minmax(245px, .72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 10vw, 150px);
  padding-block: 122px 118px;
}

.section-kicker {
  margin-bottom: 19px;
  color: var(--brass);
  font-family: var(--display-font);
  font-size: 15px;
  letter-spacing: .005em;
}

.kicker-rule {
  display: inline-block;
  width: 23px;
  height: 2px;
  background: currentColor;
}

.section-heading h2,
.spirits-heading h2,
.release-heading h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  letter-spacing: -.035em;
  line-height: 1;
  text-wrap: balance;
}

.section-intro {
  max-width: 340px;
  margin: 22px 0 0;
  color: var(--paper-dim);
  line-height: 1.75;
}

.encounter-route {
  position: relative;
  display: grid;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.encounter-route::before {
  position: absolute;
  top: 52px;
  bottom: 52px;
  left: 26px;
  width: 2px;
  background: linear-gradient(var(--moss), var(--ember) 51%, var(--brass));
  content: "";
}

.encounter-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: 23px;
  padding: 23px 0 24px;
  border-bottom: 1px solid var(--line);
}

.encounter-step:first-child {
  padding-top: 0;
}

.encounter-step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.step-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(148, 167, 122, .66);
  background: var(--ink);
  color: var(--moss);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.step-icon svg {
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
}

.step-icon-ember {
  border-color: rgba(228, 122, 87, .66);
  color: var(--ember);
}

.step-icon-gold {
  border-color: rgba(221, 180, 92, .72);
  color: var(--brass);
}

.step-index {
  color: var(--paper-dim);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .02em;
}

.step-copy h3 {
  margin: 2px 0 6px;
  color: var(--paper);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.18;
}

.step-copy p {
  max-width: 510px;
  margin: 0;
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  grid-column: 2;
  width: fit-content;
  margin-top: 28px;
  color: var(--brass);
  font-family: var(--display-font);
  font-size: 18px;
  text-decoration: none;
}

.text-link svg {
  transition: transform .15s ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.spirits-band {
  border-block: 1px solid rgba(232, 221, 196, .12);
  background: #182230;
}

.spirits-inner {
  padding-block: 76px 82px;
}

.spirits-heading,
.release-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.spirits-heading h2,
.release-heading h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.35rem);
}

.spirits-heading > p,
.release-note {
  width: min(100%, 380px);
  margin: 0 0 3px;
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1.75;
}

.spirit-roster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 8px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.spirit-roster li {
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 10px 3px 12px;
  border-bottom: 1px solid rgba(232, 221, 196, .11);
}

.spirit-window {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  overflow: hidden;
  image-rendering: pixelated;
}

.spirit-window img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 512px;
  height: 256px;
  max-width: none;
  image-rendering: pixelated;
}

.spirit-name {
  margin-top: 5px;
  color: var(--paper-dim);
  font-family: var(--display-font);
  font-size: 14px;
  text-align: center;
}

.releases {
  padding-block: 116px 122px;
}

.release-heading {
  align-items: end;
  margin-bottom: 33px;
}

.release-note {
  width: min(100%, 340px);
}

.release-status {
  padding: 19px 20px;
  border: 1px solid var(--line);
  background: var(--ink-raised);
  color: var(--paper-dim);
  font-size: 14px;
}

.release-status.is-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-color: rgba(228, 122, 87, .48);
  color: #f0c0ae;
}

.retry-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(232, 221, 196, .36);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.retry-button:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.retry-button svg {
  width: 15px;
  height: 15px;
  image-rendering: pixelated;
}

.release-content {
  border-top: 1px solid var(--line);
}

.release-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 12px;
}

.release-summary strong {
  color: var(--brass);
  font-family: var(--display-font);
  font-size: 17px;
  font-weight: 600;
}

.release-summary code,
.release-meta code {
  color: #d6c8a9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.platform-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-row {
  display: grid;
  grid-template-columns: minmax(160px, .65fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 94px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.platform-name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-family: var(--display-font);
  font-size: 19px;
}

.platform-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(221, 180, 92, .35);
  color: var(--brass);
}

.platform-icon svg {
  width: 21px;
  height: 21px;
  image-rendering: pixelated;
}

.platform-details {
  margin: 0;
  color: var(--paper-dim);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.platform-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(221, 180, 92, .54);
  color: var(--brass);
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.platform-action:hover {
  background: rgba(221, 180, 92, .12);
  border-color: var(--brass);
}

.platform-action svg {
  width: 15px;
  height: 15px;
  image-rendering: pixelated;
}

.platform-unavailable {
  color: #aaa394;
  font-size: 12px;
  text-align: right;
}

.release-meta {
  padding-top: 18px;
  color: var(--paper-dim);
  font-size: 12px;
}

.release-meta details {
  margin-top: 12px;
}

.release-meta summary {
  width: fit-content;
  color: var(--paper-dim);
  cursor: pointer;
}

.release-meta summary:hover {
  color: var(--paper);
}

.release-meta code {
  display: block;
  margin-top: 8px;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 25px;
  min-height: 116px;
  padding: 24px clamp(22px, 5.4vw, 88px);
  border-top: 1px solid var(--line);
  background: #0f151e;
}

.footer-brand {
  gap: 8px;
  font-family: var(--display-font);
  font-size: 15px;
}

.footer-brand .brand-seal {
  width: 24px;
  height: 24px;
}

.site-footer p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 12px;
}

.footer-links {
  display: grid;
}

.credits-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--paper-dim);
  font-size: 12px;
}

.credits-link:hover {
  color: var(--brass);
}

[hidden] {
  display: none !important;
}

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

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    min-height: 42px;
    border-top: 1px solid rgba(232, 221, 196, .08);
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    min-height: 700px;
    padding-inline: clamp(22px, 6vw, 72px);
  }

  .journey {
    grid-template-columns: minmax(210px, .62fr) minmax(0, 1.38fr);
    gap: 58px;
  }

  .spirit-roster {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 14px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 74px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
    padding-inline: 17px;
  }

  .brand-seal {
    width: 25px;
    height: 25px;
  }

  .brand-name {
    font-size: 15px;
  }

  .header-actions {
    gap: 8px;
  }

  .language-toggle {
    min-width: 44px;
    min-height: 40px;
    padding: 0 6px;
  }

  .header-play {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .header-play svg {
    width: 14px;
    height: 14px;
  }

  .main-nav {
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .hero {
    align-items: end;
    min-height: 760px;
    min-height: calc(100svh - 110px);
    padding: 70px 21px 71px;
  }

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

  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(12, 18, 26, .99) 1%, rgba(12, 18, 26, .88) 37%, rgba(12, 18, 26, .36) 77%, rgba(12, 18, 26, .18) 100%),
      linear-gradient(90deg, rgba(12, 18, 26, .32), transparent 100%);
  }

  .hero-copy {
    margin: 0;
  }

  .availability {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 13vw, 5.2rem);
    line-height: .91;
  }

  .hero-description {
    max-width: 470px;
    margin: 20px 0 23px;
    font-size: 15px;
  }

  .hero-actions {
    gap: 9px;
  }

  .button {
    min-height: 50px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .button svg {
    width: 14px;
    height: 14px;
  }

  .preview-line {
    gap: 12px;
    margin-top: 30px;
    font-size: 10px;
  }

  .preview-line > span {
    gap: 5px;
  }

  .preview-line > span + span {
    padding-left: 12px;
  }

  .preview-line b {
    font-size: 15px;
  }

  .scene-caption {
    right: 18px;
    bottom: 17px;
    font-size: 10px;
  }

  .section-shell {
    width: min(100% - 40px, 1210px);
  }

  .journey {
    display: block;
    padding-block: 82px 80px;
  }

  .section-heading h2,
  .spirits-heading h2,
  .release-heading h2 {
    font-size: clamp(2.2rem, 10vw, 3.1rem);
  }

  .section-intro {
    margin-top: 17px;
  }

  .encounter-route {
    margin-top: 34px;
  }

  .encounter-route::before {
    left: 23px;
  }

  .encounter-step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    padding-block: 20px;
  }

  .step-icon {
    width: 48px;
    height: 48px;
  }

  .step-copy h3 {
    font-size: 1.45rem;
  }

  .step-copy p {
    font-size: 13px;
  }

  .text-link {
    margin-top: 26px;
  }

  .spirits-inner {
    padding-block: 64px 65px;
  }

  .spirits-heading,
  .release-heading {
    display: block;
  }

  .spirits-heading > p,
  .release-note {
    margin-top: 17px;
  }

  .spirit-roster {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px 8px;
    margin-top: 27px;
  }

  .spirit-roster li {
    padding-inline: 0;
  }

  .spirit-name {
    font-size: 12px;
  }

  .releases {
    padding-block: 79px 86px;
  }

  .release-heading {
    margin-bottom: 24px;
  }

  .release-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-block: 22px;
  }

  .platform-name {
    gap: 9px;
    font-size: 17px;
  }

  .platform-icon {
    width: 33px;
    height: 33px;
  }

  .platform-details {
    grid-column: 1;
    padding-left: 42px;
    font-size: 13px;
  }

  .platform-action,
  .platform-unavailable {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .platform-action {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 13px;
    white-space: normal;
  }

  .release-status.is-error {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 10px 16px;
    padding: 24px 20px;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-links {
    grid-row: 3;
  }
}

@media (max-width: 360px) {
  .header-play span {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-nav a {
    font-size: 10px;
  }

  .preview-line {
    gap: 8px;
  }

  .preview-line > span + span {
    padding-left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
