:root {
  --bg: #17080d;
  --bg-deep: #0d0508;
  --bg-soft: #240d14;
  --panel: #2d1119;
  --panel-light: #3a1720;
  --line: rgba(239, 202, 169, 0.17);
  --line-strong: rgba(239, 202, 169, 0.35);
  --text: #f7dec0;
  --muted: #c49b8c;
  --cream: #f1cda8;
  --blue: #8fb6d7;
  --blue-bright: #b8d9f2;
  --rose: #9b5360;
  --shell: 1180px;
  --header-height: 76px;
  --screen-gap: clamp(8px, 1vw, 18px);
  --screen-radius: clamp(18px, 2.4vw, 38px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: #030102;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: #030102;
  font-family: "Sora", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page-screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 12%, rgba(80, 29, 41, 0.24), transparent 32rem),
    var(--bg);
}

.display-frame,
.display-viewport {
  min-height: 100vh;
}

html.effect-curve,
.effect-curve body {
  height: 100%;
  overflow: hidden;
}

.effect-curve .display-frame {
  position: fixed;
  inset: var(--screen-gap);
  min-height: 0;
  overflow: hidden;
  border-radius: var(--screen-radius);
  clip-path: inset(0 round var(--screen-radius));
  background: var(--bg);
  isolation: isolate;
  contain: paint;
}

.effect-curve .display-viewport {
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow: hidden;
}

.effect-curve .page-screen {
  position: absolute;
  inset: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  scroll-padding-top: var(--header-height);
  overscroll-behavior: contain;
}

.effect-curve .page-screen::-webkit-scrollbar {
  display: none;
}

.effect-curve .site-header {
  position: sticky;
  inset: 0 0 auto;
  margin-bottom: calc(-1 * var(--header-height));
  border-radius: var(--screen-radius) var(--screen-radius) 0 0;
}

.effect-curve .hero {
  min-height: max(790px, calc(100svh - (2 * var(--screen-gap))));
}

.effect-curve body.menu-open .page-screen,
.effect-curve body.lightbox-open .page-screen {
  overflow: hidden;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

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

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--bg-deep);
  background: var(--cream);
  font-weight: 700;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  border-bottom-color: var(--line);
  background: rgba(13, 5, 8, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  color: rgba(247, 222, 192, 0.78);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 140ms ease;
}

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

.language-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.language-switch button {
  min-width: 39px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: 700 0.72rem "JetBrains Mono", monospace;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--bg-deep);
  background: var(--cream);
}

.display-switches {
  display: flex;
  gap: 4px;
}

.display-switches button {
  min-width: 43px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
  font: 700 0.65rem "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

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

.display-switches button[aria-pressed="true"] {
  border-color: rgba(143, 182, 215, 0.72);
  color: var(--blue-bright);
  background: rgba(143, 182, 215, 0.14);
  box-shadow: inset 0 0 12px rgba(143, 182, 215, 0.08);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 860px;
  min-height: max(860px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-background,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-background {
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 3, 6, 0.95) 0%, rgba(10, 3, 6, 0.7) 38%, rgba(10, 3, 6, 0.09) 74%),
    linear-gradient(0deg, var(--bg) 0%, rgba(23, 8, 13, 0.1) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 62px;
}

.hero-copy {
  max-width: 640px;
}

.game-logo {
  width: min(470px, 78vw);
  height: auto;
  margin: 0 0 -42px -34px;
  image-rendering: pixelated;
}

.section-label {
  margin-bottom: 15px;
  color: var(--blue-bright);
  font: 700 0.72rem/1.4 "JetBrains Mono", monospace;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 24px;
  color: var(--cream);
  font: 400 clamp(2.5rem, 5vw, 4.75rem)/0.98 "MedievalSharp", serif;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  color: var(--cream);
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(247, 222, 192, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

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

.button {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--bg-deep);
  background: var(--cream);
  box-shadow: 5px 5px 0 rgba(143, 182, 215, 0.5);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffe6c8;
}

.button-quiet {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(13, 5, 8, 0.38);
}

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

.hero-facts {
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 52px 0 0;
  border-top: 1px solid var(--line-strong);
}

.hero-facts div {
  padding: 18px 24px 0 0;
}

.hero-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font: 600 0.66rem "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section.shell {
  position: relative;
  border-top: 0;
}

.section.shell::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  border-top: 1px solid var(--line);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.section-dark {
  position: relative;
  background:
    linear-gradient(rgba(13, 5, 8, 0.94), rgba(13, 5, 8, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(241, 205, 168, 0.08) 31px 32px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 52px;
}

.section-heading-wide {
  max-width: 860px;
}

.section-heading > p:last-child,
.story-copy > p,
.journey-copy > p,
.feature-card p,
.journey-steps p,
.final-cta p {
  color: var(--muted);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr);
  gap: 72px;
  align-items: center;
}

.story-copy > p:not(.section-label) {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.story-copy blockquote {
  margin: 37px 0 0;
  padding: 22px 0 22px 26px;
  border-left: 3px solid var(--blue);
}

.story-copy blockquote p {
  margin: 0;
  color: var(--cream);
  font: 400 clamp(1.3rem, 2vw, 1.75rem)/1.35 "MedievalSharp", serif;
}

.story-art {
  position: relative;
  margin-bottom: 0;
}

.story-art::before {
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1px solid rgba(143, 182, 215, 0.45);
  content: "";
}

.story-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 748 / 896;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  min-height: 285px;
  padding: 28px 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(45, 17, 25, 0.72);
}

.feature-card > span {
  display: block;
  margin-bottom: 62px;
  color: var(--blue);
  font: 400 1rem/1 "MedievalSharp", serif;
}

.feature-card h3 {
  font-family: "MedievalSharp", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.journey {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(400px, 0.82fr);
  gap: 64px;
  align-items: center;
}

.journey-art {
  position: relative;
}

.journey-art::after {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 60px rgba(13, 5, 8, 0.35);
  content: "";
  pointer-events: none;
}

.journey-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1232 / 706;
  object-fit: cover;
}

.journey-steps {
  margin: 34px 0 28px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.journey-steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.journey-steps li > span {
  color: var(--blue);
  font: 400 1rem/1 "MedievalSharp", serif;
}

.journey-steps h3 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.journey-steps p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.companion-strip {
  display: flex;
  gap: 3px;
  overflow: hidden;
}

.companion-strip img {
  width: calc((100% - 15px) / 6);
  min-width: 45px;
  height: auto;
  border: 1px solid rgba(241, 205, 168, 0.14);
  image-rendering: pixelated;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading-row h2,
.section-heading-row p {
  margin-bottom: 0;
}

.section-heading-row > p {
  max-width: 360px;
  padding-bottom: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 0.7fr;
  gap: 20px;
}

.gallery-item {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-item-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-item:not(.gallery-item-cover):not(.gallery-item-wide) {
  aspect-ratio: 16 / 9;
}

.gallery-item-cover {
  grid-row: span 2;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.08);
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(77, 33, 45, 0.62), transparent 30rem), var(--bg);
}

.final-cta .shell {
  max-width: 820px;
}

.final-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  image-rendering: pixelated;
}

.final-cta h2 {
  margin-bottom: 18px;
}

.final-cta p:not(.section-label) {
  max-width: 620px;
  margin: 0 auto 30px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 64px 28px 28px;
  border: 0;
  background: rgba(8, 2, 4, 0.96);
}

.lightbox::backdrop {
  background: rgba(8, 2, 4, 0.96);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox img {
  max-width: min(1320px, 100%);
  max-height: calc(100vh - 92px);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
}

.screen-effects {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: none;
}

.crt-layer,
.screen-curve {
  position: absolute;
  opacity: 0;
  transition: opacity 180ms ease;
}

.crt-layer {
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(4, 1, 3, 0.14) 74%, rgba(4, 1, 3, 0.48) 100%);
}

.crt-layer::before,
.crt-layer::after {
  position: absolute;
  inset: 0;
  content: "";
}

.crt-layer::before {
  opacity: 0.78;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 238, 224, 0.025) 0 1px,
    rgba(0, 0, 0, 0.52) 1px 2px,
    transparent 2px 4px
  );
  mix-blend-mode: multiply;
}

.crt-layer::after {
  opacity: 0.1;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 238, 224, 0.1) 48%,
    rgba(255, 238, 224, 0.18) 50%,
    rgba(255, 238, 224, 0.1) 52%,
    transparent 100%
  );
  animation: crt-flicker 140ms steps(2, end) infinite;
}

.screen-curve {
  inset: var(--screen-gap);
  border: 2px solid rgba(64, 46, 39, 0.82);
  border-radius: var(--screen-radius);
  background: radial-gradient(ellipse at center, transparent 52%, rgba(3, 1, 2, 0.035) 70%, rgba(3, 1, 2, 0.22) 100%);
  box-shadow:
    inset 0 0 34px rgba(0, 0, 0, 0.34),
    inset 0 0 88px rgba(0, 0, 0, 0.16);
}

.effect-curve .crt-layer {
  inset: var(--screen-gap);
  overflow: hidden;
  border-radius: var(--screen-radius);
}

.effect-crt .crt-layer,
.effect-curve .screen-curve {
  opacity: 1;
}

@keyframes crt-flicker {
  0%,
  100% {
    opacity: 0.1;
    transform: translateY(0);
  }

  35% {
    opacity: 0.14;
  }

  70% {
    opacity: 0.085;
    transform: translateY(1px);
  }
}

@media (max-width: 1050px) {
  .header-inner {
    gap: 12px;
  }

  .story {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: 48px;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 5, 8, 0.98);
  }

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

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.98rem;
  }

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

  .journey {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .journey-art {
    max-width: 820px;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 68px;
  }

  .shell {
    width: min(calc(100% - 34px), var(--shell));
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 790px;
    min-height: max(790px, 100svh);
  }

  .hero-background {
    object-position: 44% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 3, 6, 0.83), rgba(10, 3, 6, 0.28)),
      linear-gradient(0deg, var(--bg) 0%, rgba(23, 8, 13, 0.88) 38%, rgba(23, 8, 13, 0.05) 68%);
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 43px;
  }

  .game-logo {
    width: min(420px, 91vw);
    margin-top: 0;
    margin-bottom: -35px;
    margin-left: -28px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .hero-facts div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-facts dt {
    margin: 0;
  }

  .hero-facts dd {
    text-align: right;
  }

  .section,
  .final-cta {
    padding: 80px 0;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-art {
    width: min(88%, 520px);
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row > p {
    margin-top: 16px;
  }

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

  .gallery-item-wide {
    grid-column: span 2;
  }

  .gallery-item-cover {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .header-inner {
    gap: 7px;
  }

  .language-switch button {
    min-width: 35px;
    padding: 0 7px;
  }

  .display-switches button {
    min-width: 40px;
    padding: 0 6px;
    font-size: 0.6rem;
  }

  .display-switches button:last-child {
    min-width: 52px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

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

  .feature-card > span {
    margin-bottom: 34px;
  }

  .gallery-item-wide,
  .gallery-item-cover,
  .gallery-item:not(.gallery-item-cover):not(.gallery-item-wide) {
    grid-column: auto;
    aspect-ratio: 16 / 10;
  }

  .gallery-item-cover img {
    object-position: center 35%;
  }

  .companion-strip img {
    width: calc((100% - 9px) / 4);
  }

  .companion-strip img:nth-child(n + 5) {
    display: none;
  }

  .footer-inner {
    min-height: 110px;
    flex-direction: column;
    justify-content: center;
  }
}

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

  .crt-layer::after {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
