:root {
  --night: #020e22;
  --night-soft: #071a38;
  --blue: #1d377f;
  --blue-bright: #438bd7;
  --paper: #f2f0e9;
  --ink: #07162f;
  --warm: #f4efe5;
  --muted: #9ba7b9;
  --line-dark: rgba(230, 238, 249, .18);
  --line-light: rgba(7, 22, 47, .18);
  --header-h: 64px;
  --page-x: clamp(24px, 5vw, 76px);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--warm);
  background: var(--night);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  animation: page-enter .18s cubic-bezier(.25, .46, .45, .94) both;
  transition: opacity .14s ease;
}

html.is-page-leaving body {
  opacity: 0;
  pointer-events: none;
}

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

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }

.site-loader {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--warm);
  background:
    radial-gradient(circle at 50% 42%, rgba(67, 139, 215, .18), transparent 34%),
    var(--night);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s cubic-bezier(.25, .46, .45, .94), visibility .55s;
}

html.is-loading,
html.is-loading body { overflow: hidden; }

.site-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-loader__content {
  width: min(72vw, 260px);
  display: grid;
  justify-items: center;
  gap: 20px;
}

.site-loader__logo {
  width: min(52vw, 184px);
  filter: brightness(0) invert(1);
  animation: loader-breathe 1.8s ease-in-out infinite;
}

.site-loader__label {
  margin: 0;
  color: rgba(244, 239, 229, .58);
  font: 9px/1 var(--mono);
  letter-spacing: .28em;
  text-indent: .28em;
}

.site-loader__progress {
  position: relative;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(244, 239, 229, .15);
}

.site-loader__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--warm), transparent);
  transform: translateX(-100%);
  animation: loader-progress 1.25s ease-in-out infinite;
}

@keyframes loader-breathe {
  0%, 100% { opacity: .58; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes loader-progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-h);
  padding: 0 var(--page-x);
  display: grid;
  grid-template-columns: 230px 1fr 230px;
  align-items: center;
  background: var(--night);
  border-bottom: 1px solid var(--line-dark);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.brand img {
  width: 170px;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 46px);
  font-size: 14px;
}

.site-nav a,
.mobile-nav a {
  color: rgba(244, 239, 229, .72);
  transition: color .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.mobile-nav a:hover { color: #fff; }

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

.language-menu {
  position: relative;
  justify-self: end;
}

.language-menu summary {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm);
  background: transparent;
  border: 0;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease, opacity .2s ease;
}

.language-menu summary::-webkit-details-marker { display: none; }

.language-menu summary:hover,
.language-menu[open] summary { color: #fff; }

.language-current {
  width: 20px;
  height: 20px;
  display: block;
  color: var(--warm);
  opacity: .92;
}

.language-current svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.language-code { display: none; }

.language-menu summary:focus-visible {
  outline: 1px solid var(--warm);
  outline-offset: 2px;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  padding: 8px;
  background: rgba(4, 17, 42, .98);
  border: 1px solid rgba(242, 239, 230, .16);
  border-radius: 2px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .46);
  transform-origin: top right;
}

.language-options::before {
  content: "LANGUAGE";
  display: block;
  padding: 8px 12px 10px;
  color: rgba(183, 195, 212, .56);
  border-bottom: 1px solid rgba(242, 239, 230, .1);
  font: 9px/1 var(--mono);
  letter-spacing: .14em;
}

.language-menu[open] .language-options {
  animation: menu-in .2s cubic-bezier(.16, 1, .3, 1) both;
}

.language-option {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 9px;
  color: rgba(242, 239, 230, .68);
  background: transparent;
  font: 12px/1 var(--sans);
  transition: background .18s ease, color .18s ease;
  text-decoration: none;
}

.language-option::before {
  content: "";
  width: 4px;
  height: 4px;
  border: 1px solid rgba(183, 195, 212, .46);
  border-radius: 50%;
}

.language-option small {
  color: rgba(183, 195, 212, .5);
  font: 9px/1 var(--mono);
  letter-spacing: .08em;
}

.language-option.is-current {
  color: var(--warm);
  background: rgba(242, 239, 230, .08);
}

.language-option.is-current::before {
  background: var(--muted);
  border-color: var(--muted);
  box-shadow: 0 0 0 3px rgba(183, 195, 212, .1);
}

.menu-toggle {
  min-height: 38px;
  padding: 0 14px;
  align-items: center;
  color: var(--warm);
  background: transparent;
  border: 1px solid var(--line-dark);
  cursor: pointer;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-7px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.menu-toggle { display: none; }
.mobile-nav { display: none; }

.page-main { padding-top: var(--header-h); }

.section-label {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #abc5e5;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.page-hero h1 {
  margin: 0;
  max-width: 900px;
  color: var(--warm);
  font: 500 clamp(56px, 8vw, 124px)/.94 var(--serif);
  letter-spacing: -.04em;
  text-wrap: balance;
}

.button {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(244, 239, 229, .42);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.button:hover,
.button:focus-visible {
  color: var(--ink);
  background: var(--warm);
  border-color: var(--warm);
  transform: translateY(-2px);
}

.story-section,
.about-content,
.contact-page {
  position: relative;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
}

.story-section::before,
.about-content::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .17;
  background: url("brand/moon-chairs-line.png") center bottom / cover fixed no-repeat;
  pointer-events: none;
}

.story-wrap {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 180px) var(--page-x);
}

.story-layout {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 180px) var(--page-x);
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.5fr);
  gap: clamp(50px, 10vw, 150px);
}

.story-layout + .story-layout { padding-top: 0; }

.story-header {
  width: min(820px, 100%);
  margin-left: clamp(0px, 7vw, 104px);
  margin-bottom: clamp(44px, 6vw, 76px);
}

.story-title {
  position: sticky;
  top: calc(var(--header-h) + 42px);
  align-self: start;
}

.story-title :is(h1, h2) {
  margin: 0;
  font: 500 clamp(42px, 5vw, 76px)/1.05 var(--serif);
  letter-spacing: -.035em;
}

.game-page .story-title :is(h1, h2) {
  padding-right: 50px;
  text-align: right;
  white-space: nowrap;
}

.story-header h2,
.gallery-title h2,
.facts-title,
.support-heading h2,
.contact-heading h1 {
  margin: 0;
  font: 500 clamp(42px, 5vw, 76px)/1.05 var(--serif);
  letter-spacing: -.035em;
}

.story-section { overflow: clip; }

.store-scroll-marker {
  position: sticky;
  z-index: 5;
  top: calc(var(--header-h) + 18px);
  width: min(300px, 52%);
  margin: 0 0 clamp(50px, 7vw, 88px) auto;
  padding: 11px 0 12px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  align-items: baseline;
  border-left: 1px solid rgba(29, 55, 127, .42);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(6px);
}

.store-scroll-marker p {
  margin: 0;
  color: var(--blue);
  font: 10px/1.4 var(--mono);
  letter-spacing: .12em;
}

.store-scroll-marker p i { margin: 0 3px; font-style: normal; color: rgba(7,22,47,.38); }

.store-scroll-marker h3 {
  min-width: 0;
  margin: 0;
  color: rgba(7,22,47,.76);
  font: 500 clamp(17px, 1.55vw, 22px)/1.25 var(--serif);
  text-wrap: pretty;
}

.store-scroll-marker.is-changing h3 { animation: chapter-title-in .26s ease-out; }

@keyframes chapter-title-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.store-scroll-progress {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(7,22,47,.14);
}

.store-scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(var(--chapter-progress));
  transform-origin: left;
  transition: transform .2s linear;
}

.store-chapter-flow { width: min(860px, 100%); margin: 0 auto; }

.store-chapter {
  position: relative;
  margin: 0;
  padding: 0 0 clamp(54px, 7vw, 96px);
  scroll-margin-top: calc(var(--header-h) + 88px);
}

.store-chapter + .store-chapter { padding-top: clamp(52px, 7vw, 92px); }

.store-chapter-heading {
  margin: 0 0 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.store-chapter-heading span {
  flex: 0 0 auto;
  color: var(--blue);
  font: 10px/1.4 var(--mono);
  letter-spacing: .12em;
}

.store-chapter-heading h3 {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(28px, 3.1vw, 46px)/1.14 var(--serif);
  text-wrap: pretty;
}

.store-description {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  margin: 0;
  color: rgba(7, 22, 47, .84);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.store-description h1,
.store-description h2 {
  margin: 54px 0 20px;
  color: var(--ink);
  font: 500 clamp(27px, 3vw, 40px)/1.25 var(--serif);
}

.store-description h2 { font-size: clamp(22px, 2.4vw, 32px); }
.store-description h1:first-child,
.store-description h2:first-child { margin-top: 0; }
.store-description p { margin: 0 0 16px; }
.store-description ul { margin: 12px 0 30px; padding-left: 1.35em; }
.store-description li { margin: 8px 0; padding-left: 5px; }
.store-description .bb_img_ctn { display: block; margin: 24px 0; text-align: center; }

.store-description img,
.store-description video {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 22px auto;
}

.store-description video {
  display: block;
  width: 100%;
  background: var(--night);
}

.store-chapter.has-media .store-description video,
.store-chapter.has-media .store-description img { margin-top: clamp(34px, 5vw, 64px); }

.gallery-section {
  padding: clamp(90px, 10vw, 150px) var(--page-x);
  background: var(--night);
}

.gallery-wrap { width: min(1500px, 100%); margin: 0 auto; }
.gallery-title { margin-bottom: 42px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.gallery-title p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.7; }

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .65fr);
  grid-template-rows: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  min-height: clamp(520px, 48vw, 760px);
}

.gallery-grid a {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  cursor: zoom-in;
}

.gallery-grid a:first-child { grid-row: 1 / 4; }

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .3s ease;
}

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

.gallery-lightbox {
  width: min(1200px, calc(100vw - 48px));
  max-width: none;
  height: min(86svh, 900px);
  padding: 0;
  place-items: center;
  color: var(--warm);
  background: var(--night);
  border: 1px solid var(--line-dark);
  overflow: hidden;
}

.gallery-lightbox[open] { display: grid; }
.gallery-lightbox::backdrop { background: rgba(0, 6, 18, .88); }

.gallery-lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-lightbox button {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  color: var(--warm);
  background: rgba(2, 14, 34, .78);
  border: 1px solid var(--line-dark);
  cursor: pointer;
  font-size: 26px;
}

.facts-section {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(80px, 10vw, 140px) var(--page-x);
  display: flex;
  align-items: center;
  color: var(--warm);
  background: var(--night-soft);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  isolation: isolate;
}

.product-overview__backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.facts-wrap {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, .72fr);
  gap: clamp(54px, 8vw, 120px);
  align-items: center;
}

.product-overview__lead { max-width: 620px; }

.product-overview__label {
  margin: 0 0 18px;
  color: var(--muted);
  font: 11px/1.4 var(--mono);
  letter-spacing: .12em;
}

.product-overview h1 {
  margin: 0;
  color: var(--warm);
  font: 500 clamp(44px, 5.6vw, 84px)/1.04 var(--serif);
  letter-spacing: -.035em;
}

.product-overview__summary {
  max-width: 580px;
  margin: 28px 0 0;
  color: rgba(244,239,229,.72);
  font: 400 17px/1.85 var(--serif);
  text-wrap: pretty;
}

.steam-link {
  width: fit-content;
  min-height: 44px;
  margin-top: 32px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--warm);
  border: 1px solid rgba(244,239,229,.38);
  font: 500 13px/1 var(--sans);
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.steam-link:hover,
.steam-link:focus-visible {
  color: var(--night);
  background: var(--warm);
  border-color: var(--warm);
}

.facts-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(244,239,229,.32);
}

.fact {
  min-height: 0;
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(86px, .6fr) minmax(0, 1.4fr);
  gap: 20px;
  align-items: baseline;
  border-bottom: 1px solid rgba(244,239,229,.2);
}

.fact dt {
  margin: 0;
  color: rgba(244,239,229,.58);
  font: 10px/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.fact dd { margin: 0; color: rgba(244,239,229,.9); font: 400 14px/1.55 var(--sans); }

.work-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--warm);
  background: var(--night-soft);
  border-top: 1px solid var(--line-dark);
}

.work-nav a {
  min-height: 180px;
  padding: 34px var(--page-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  transition: background .25s ease;
}

.work-nav a + a { align-items: flex-end; text-align: right; border-left: 1px solid var(--line-dark); }
.work-nav a:hover { background: rgba(255,255,255,.045); }
.work-nav small { color: var(--muted); font: 11px/1.4 var(--mono); letter-spacing: .12em; }
.work-nav strong { font: 500 clamp(26px, 3vw, 42px)/1.1 var(--serif); }

.page-hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 120px var(--page-x) 80px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--night);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .9;
  background: url("brand/moon-chairs.png") center bottom / cover fixed no-repeat;
  mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
}

.page-hero__content {
  position: relative;
  width: min(1050px, 100%);
  display: grid;
  justify-items: center;
  gap: 34px;
}
.page-hero__lead { max-width: 900px; margin: 0; color: rgba(244,239,229,.78); font: clamp(20px,2vw,30px)/1.8 var(--serif); }

.about-intro {
  position: relative;
  padding: clamp(90px, 12vw, 170px) var(--page-x);
  color: var(--ink);
}

.about-intro__grid {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px,.7fr) minmax(0,1.4fr);
  column-gap: clamp(50px,9vw,130px);
  row-gap: clamp(36px,5vw,72px);
}

.about-intro h2 { margin: 0; font: 500 clamp(40px,5vw,70px)/1.1 var(--serif); }
.about-intro p { margin: 0; font: 400 clamp(19px,1.7vw,27px)/1.85 var(--serif); }

.about-support {
  position: relative;
  padding: clamp(90px, 10vw, 150px) var(--page-x);
  color: var(--warm);
  background:
    linear-gradient(rgba(2,14,34,.9),rgba(2,14,34,.96)),
    url("brand/moon-chairs.png") center bottom / cover fixed no-repeat;
}

.support-wrap {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px,.75fr) minmax(0,1.55fr);
  gap: clamp(50px,9vw,130px);
}

.support-heading { position: sticky; top: calc(var(--header-h) + 42px); align-self: start; }
.support-heading p { max-width: 360px; margin: 0 0 22px; color: rgba(244,239,229,.62); line-height: 1.8; }

.support-list { border-top: 1px solid var(--line-dark); }

.support-list article { border-bottom: 1px solid var(--line-dark); }
.support-list h3 {
  margin: 0;
  padding: 26px 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: center;
  font: 500 clamp(21px,2vw,30px)/1.3 var(--serif);
}

.support-list h3::before { content: attr(data-index); color: var(--blue-bright); font: 11px/1.5 var(--mono); }

.support-copy {
  padding: 0 0 34px 62px;
  display: grid;
  gap: 18px;
  color: rgba(244,239,229,.72);
  line-height: 1.9;
  text-wrap: pretty;
}

.support-copy p { margin: 0; }

.about-cta {
  grid-column: 2;
  padding-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--line-light);
}

.about-cta h2 { margin: 0; font: 500 clamp(28px,3vw,42px)/1.2 var(--serif); }
.about-cta .button { color: var(--blue); border-color: rgba(29,55,127,.45); }
.about-cta .button:hover,
.about-cta .button:focus-visible { color: var(--warm); background: var(--blue); border-color: var(--blue); }

.contact-page {
  min-height: calc(100svh - var(--header-h));
  padding: clamp(80px, 10vw, 130px) var(--page-x);
  color: var(--warm);
  background:
    linear-gradient(rgba(2,14,34,.92),rgba(2,14,34,.96)),
    url("brand/moon-chairs.png") center bottom / cover fixed no-repeat;
}

.contact-wrap { width: min(900px, 100%); margin: 0 auto; }
.contact-heading { margin-bottom: 52px; }
.contact-heading h1 { font-size: clamp(48px,7vw,92px); }
.contact-heading p { max-width: 640px; margin: 20px 0 0; color: var(--muted); line-height: 1.8; }

.contact-form { display: grid; gap: 22px; }
.field-label { display: block; margin-bottom: 10px; color: var(--muted); font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }

.category-button {
  min-height: 43px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(7,26,56,.7);
  border: 1px solid var(--line-dark);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.category-button:hover,
.category-button[aria-pressed="true"] { color: #fff; border-color: rgba(244,239,229,.6); background: rgba(67,139,215,.16); }

.text-input,
.text-area {
  width: 100%;
  padding: 14px 16px;
  color: #fff;
  background: rgba(7,26,56,.78);
  border: 1px solid var(--line-dark);
  outline: 0;
  transition: border-color .2s ease, background .2s ease;
}

.text-input { min-height: 50px; }
.text-area { min-height: 170px; resize: none; }
.text-input:focus,
.text-area:focus { border-color: rgba(244,239,229,.7); background: rgba(7,26,56,.94); }
.text-input::placeholder,
.text-area::placeholder { color: #68758a; }

.verify-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.verify-button { min-width: 130px; color: var(--warm); background: transparent; border: 1px solid var(--line-dark); cursor: pointer; }
.verify-button:hover { border-color: rgba(244,239,229,.55); }
.verify-button:disabled { opacity: .4; cursor: not-allowed; }

.upload {
  position: relative;
  min-height: 56px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(244,239,229,.28);
  transition: color .2s ease, border-color .2s ease;
}

.upload:hover { color: var(--warm); border-color: rgba(244,239,229,.56); }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload span { pointer-events: none; }

.file-remove {
  margin-top: 8px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
}

.file-remove:hover { color: var(--warm); }

.submit-button {
  min-height: 56px;
  color: var(--ink);
  background: var(--warm);
  border: 0;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .08em;
  transition: background .2s ease, transform .2s ease;
}

.submit-button:hover { background: #fff; transform: translateY(-2px); }

.form-note { margin: 0; color: #73829a; font-size: 12px; line-height: 1.7; }

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 48px));
  padding: 14px 18px;
  color: var(--warm);
  background: #0a1d3c;
  border: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

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

.site-footer {
  position: relative;
  z-index: 2;
  padding: 0 var(--page-x) clamp(22px, 2.8vw, 30px);
  color: var(--warm);
  background: var(--night);
  border-top: 1px solid rgba(244, 239, 229, .12);
}

.footer-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "logo social";
  column-gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 30px) 0 12px;
}

.footer-logo {
  grid-area: logo;
  width: clamp(132px, 11vw, 158px);
  filter: brightness(0) invert(1);
}

.footer-main .social {
  grid-area: social;
  justify-self: end;
}

.social-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 44px);
  width: min(100%, 610px);
  align-items: center;
  justify-content: flex-end;
  column-gap: clamp(16px, 2.4vw, 30px);
}

.social-link {
  min-height: 44px;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(244, 239, 229, .78);
  transition: color .22s ease;
}

.social-link:hover,
.social-link:focus-visible { color: var(--warm); }

.social-email-link { white-space: nowrap; }
.social-email-address { color: inherit; font: 600 12px/1.2 var(--mono); letter-spacing: .02em; }
.social-name { font: 600 14px/1.2 var(--serif); letter-spacing: .01em; }

.social-icon,
.social-email-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  opacity: .88;
  transition: opacity .22s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.social-icon { object-fit: contain; }

.social-email-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.social-link:hover :is(.social-icon, .social-email-icon),
.social-link:focus-visible :is(.social-icon, .social-email-icon) {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: rgba(155, 167, 185, .58);
}

.footer-meta {
  font: 11px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-records { font: 11px/1.5 var(--mono); }
.footer-records a { color: rgba(155, 167, 185, .78); transition: color .2s ease; }
.footer-records a:hover { color: var(--warm); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav, .language-menu { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav {
    position: fixed;
    z-index: 99;
    inset: var(--header-h) 0 auto;
    padding: 24px var(--page-x);
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
    background: var(--night);
    border-bottom: 1px solid var(--line-dark);
  }
  body.menu-open .mobile-nav { display: grid; }
  .about-intro__grid,
  .support-wrap { grid-template-columns: 1fr; gap: 44px; }
  .about-cta { grid-column: auto; }
  .support-heading { position: static; }
  .facts-wrap { grid-template-columns: 1fr; align-items: start; }
  .facts-grid { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "social";
    justify-items: start;
    row-gap: 12px;
  }
  .footer-main .social-list {
    grid-template-columns: repeat(2, max-content);
    grid-template-rows: none;
    width: auto;
    justify-content: flex-start;
    gap: 2px 22px;
  }
}

@media (max-width: 680px) {
  :root { --header-h: 58px; --page-x: 20px; }
  .brand img { width: 145px; }
  .page-hero h1 { font-size: clamp(48px,16vw,72px); }
  .story-wrap { padding-top: 80px; padding-bottom: 80px; }
  .story-header { margin-left: 0; }
  .store-scroll-marker { top: calc(var(--header-h) + 8px); width: min(260px, 78%); }
  .store-chapter,
  .store-chapter:nth-child(even) { margin-left: 0; padding-bottom: 60px; }
  .store-chapter + .store-chapter { padding-top: 60px; }
  .gallery-title { display: block; }
  .gallery-title p { margin-top: 18px; }
  .gallery-grid { min-height: 0; grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-grid a,
  .gallery-grid a:first-child { grid-row: auto; aspect-ratio: 16 / 9; }
  .facts-grid { grid-template-columns: 1fr; }
  .work-nav { grid-template-columns: 1fr; }
  .work-nav a + a { align-items: flex-start; text-align: left; border-left: 0; border-top: 1px solid var(--line-dark); }
  .support-copy { padding-left: 0; }
  .support-list h3 { grid-template-columns: 36px 1fr; }
  .about-cta { grid-template-columns: 1fr; align-items: start; }
  .verify-row { grid-template-columns: minmax(0, 1fr) auto; }
  .verify-button { min-width: 118px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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

@supports (-webkit-touch-callout: none) {
  .story-section::before,
  .about-content::before,
  .page-hero::before,
  .about-support,
  .contact-page { background-attachment: scroll; }
}

/* Product pages keep the paper tone between a few deliberate night scenes. */
.game-page {
  color: var(--warm);
  background: var(--night);
}

.story-wrap {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.story-header,
.store-core {
  width: min(980px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.story-header { margin-bottom: clamp(30px, 4vw, 54px); }

.store-core {
  padding: clamp(28px, 4vw, 52px) 0 0;
  border-top: 1px solid rgba(7,22,47,.22);
}

.store-core-title {
  margin: 0 0 clamp(22px, 3vw, 34px);
  color: var(--blue);
  font: 500 clamp(26px, 3.2vw, 46px)/1.15 var(--serif);
}

.store-core .store-description {
  width: min(860px, 100%);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.85;
}

.store-core .store-description video,
.store-core .store-description img {
  max-height: min(48vh, 460px);
  object-fit: contain;
}

.gallery-section,
.work-nav {
  position: relative;
  overflow: hidden;
  background: var(--night);
}

.gallery-section::before,
.work-nav::before,
.facts-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("brand/moon-chairs.png") center bottom / cover fixed no-repeat;
}

.gallery-section::before,
.work-nav::before { opacity: .42; }

.facts-section::before {
  z-index: -1;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(2,14,34,.94) 0%, rgba(2,14,34,.82) 45%, rgba(2,14,34,.58) 100%),
    linear-gradient(0deg, rgba(2,14,34,.72) 0%, rgba(2,14,34,.08) 65%);
}

.gallery-wrap,
.footer-main,
.footer-bottom,
.facts-wrap,
.work-nav a { position: relative; z-index: 1; }

.story-section::before { opacity: .17; }

.gallery-title h2,
.gallery-title .section-label { color: var(--warm); }

.gallery-title p { color: rgba(244,239,229,.66); }

.gallery-grid a { border-color: rgba(230,238,249,.26); }

.site-footer { border-top-color: rgba(230,238,249,.24); }

@media (max-width: 680px) {
  .story-wrap { padding-top: 64px; padding-bottom: 64px; }
  .store-core { padding-top: 24px; }
  .store-core .store-description video,
  .store-core .store-description img { max-height: none; }
}

/* Restore the original product-story layout used before the role panels. */
.story-wrap {
  position: relative;
  width: min(1320px, 100%);
  padding: clamp(90px, 12vw, 180px) var(--page-x);
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.5fr);
  gap: clamp(50px, 10vw, 150px);
}

.story-header {
  position: sticky;
  top: calc(var(--header-h) + 42px);
  align-self: start;
  width: auto;
  margin: 0;
}

.story-wrap > .reveal { min-width: 0; }

.story-copy {
  display: grid;
  gap: 26px;
  color: var(--ink);
  font: 400 clamp(17px, 1.2vw, 20px)/1.95 var(--serif);
  text-wrap: pretty;
}

.story-copy p { margin: 0; }

.story-copy > h2 {
  margin: 48px 0 4px;
  display: grid;
  grid-template-columns: auto minmax(32px, 1fr);
  gap: 18px;
  align-items: center;
  color: var(--ink);
  font: 500 clamp(26px, 2.6vw, 38px)/1.25 var(--serif);
  letter-spacing: 0;
  white-space: nowrap;
}

.story-copy > h2::after {
  content: "";
  height: 1px;
  background: currentColor;
  opacity: .22;
}

.feature-list {
  counter-reset: feature-item;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.feature-list li {
  counter-increment: feature-item;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line-light);
  font-size: 15px;
  line-height: 1.65;
}

.feature-list li::before {
  content: counter(feature-item, decimal-leading-zero);
  color: var(--blue);
  font: 11px/1.7 var(--mono);
  transform: translateY(3px);
}

.content-notice {
  margin-top: 32px;
  padding: 22px;
  color: rgba(244,239,229,.72);
  background: var(--night);
  border-left: 3px solid var(--blue-bright);
  font-size: 13px;
  line-height: 1.75;
}

.story-copy blockquote {
  position: relative;
  margin: 36px 0 40px;
  padding: 10px 0 10px 38px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-style: normal;
  letter-spacing: 0;
  text-align: left;
}

.story-copy blockquote::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 20px;
  border: 1px solid currentColor;
  border-right: 0;
  opacity: .24;
}

.story-copy blockquote p { margin: 0; }
.story-copy blockquote p + p { margin-top: .75em; }

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  min-height: 0;
}

.gallery-grid a,
.gallery-grid a:first-child {
  grid-row: auto;
  aspect-ratio: 16 / 9;
}

.gallery-grid[data-count="1"] { grid-template-columns: 1fr; }

.gallery-grid[data-count="3"] {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.gallery-grid[data-count="3"] a:first-child {
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

.work-nav {
  overflow: visible;
  background: var(--night-soft);
}

@media (max-width: 680px) {
  .story-wrap {
    padding-top: 80px;
    padding-bottom: 80px;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .story-header { position: static; }
  .story-layout { grid-template-columns: 1fr; gap: 44px; }
  .story-title { position: static; }
  .gallery-grid,
  .gallery-grid[data-count="3"] { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-grid[data-count="3"] a:first-child { grid-row: auto; aspect-ratio: 16 / 9; }
}
