@font-face {
  font-family: "Film Serif";
  src: url("media/film-serif.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --night: #161510;
  --night-deep: #191611;
  --cream: #f8f1e4;
  --paper: #f4ecdd;
  --warm-light: #e6d7bf;
  --gold: #efd09a;
  --gold-hover: #ffe0a8;
  --ink: #252219;
  --muted: #665747;
  --rule: #cfc1a8;
  --serif: "Film Serif", "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.72 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.24; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #b67c2e; outline-offset: 5px; }
.site-header :focus-visible, .hero :focus-visible, .closing :focus-visible, .site-footer :focus-visible {
  outline-color: var(--gold);
}
::selection { background: #f1ce95; color: #221910; }

.shell {
  width: min(1160px, 100% - 2 * clamp(24px, 5vw, 78px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  inset: 0 auto auto 16px;
  z-index: 5;
  padding: 8px 14px;
  background: var(--gold);
  color: var(--night);
}
.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header {
  background: var(--night);
  color: var(--cream);
  border-bottom: 1px solid #554937;
}
.header-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.header-row { min-height: 70px; }
.brand, .header-nav {
  display: flex;
  align-items: center;
}
.brand {
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
  flex: none;
  font: 600 20px/1 var(--serif);
  letter-spacing: .08em;
}
.brand img { border-radius: 7px; border: 1px solid #927650; }
.header-nav { gap: clamp(14px, 3vw, 34px); }
.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--warm-light);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.header-nav a:hover { color: white; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night-deep);
  color: var(--cream);
}
.hero-art {
  position: absolute;
  inset: 0 0 0 36%;
  z-index: -2;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 33%;
}
.hero::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #191611 0%, #191611 38%, #191611ee 43%, #19161153 57%, #19161100 73%);
}
.hero::after {
  position: absolute;
  content: "";
  inset: auto 0 0;
  height: 25%;
  z-index: -1;
  background: linear-gradient(transparent, #19161165);
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(505px, 43vw, 650px);
  padding-block: 64px 78px;
}
.hero-copy { max-width: min(52%, 570px); }
.hero h1 {
  color: #fff4dd;
  font-size: clamp(52px, 6.15vw, 93px);
  line-height: 1.12;
  letter-spacing: .025em;
}
.hero-line {
  margin-top: 20px;
  color: var(--gold);
  font: 600 clamp(20px, 2.12vw, 30px)/1.5 var(--serif);
}
.hero-description {
  max-width: 26em;
  margin-top: 13px;
  color: var(--warm-light);
  font-size: clamp(15px, 1.22vw, 17px);
  line-height: 1.84;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 25px;
  margin-top: 30px;
}
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  padding: 10px 24px;
  border: 1px solid #ffdfa7;
  border-radius: 5px;
  background: var(--gold);
  color: #2e2011;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}
.download:hover { background-color: var(--gold-hover); }
.download:active { transform: translateY(2px); }
.arrow-out {
  position: relative;
  display: inline-block;
  width: .75em;
  height: .75em;
  flex: none;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.arrow-out::after {
  position: absolute;
  content: "";
  top: 47%;
  left: -21%;
  width: 144%;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
}
.hero-details {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--warm-light);
  font-size: 15px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
}
.hero-details:hover { text-decoration-color: currentColor; }
.arrow-down {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.gameplay { padding-block: clamp(57px, 6.7vw, 99px) clamp(65px, 7vw, 105px); }
.section-intro {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 370px);
  align-items: end;
  gap: 15px 36px;
  margin-bottom: 30px;
}
.section-intro h2, .closing h2 { font-size: clamp(30px, 3.6vw, 52px); }
.section-intro p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.feature-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--rule);
}
.feature-tabs a {
  display: grid;
  min-height: 59px;
  place-items: center;
  padding: 8px 5px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 600 clamp(16px, 1.65vw, 22px)/1.2 var(--serif);
  text-decoration: none;
  -webkit-tap-highlight-color: #b88a4955;
  transition: background-color 150ms ease;
}
.feature-tabs a + a { border-inline-start: 1px solid var(--rule); }
.feature-tabs a:hover { background: #eee2cd; color: var(--ink); }
.feature-tabs [aria-selected="true"] {
  border-bottom-color: #936323;
  background: #eaddc5;
  color: #33271a;
}
.feature-tabs a:focus-visible { outline-offset: -5px; }

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  align-items: stretch;
  gap: 20px 45px;
  min-height: 492px;
  padding-block: 28px 0;
}
.feature-panel + .feature-panel:not([hidden]) { margin-top: 16px; }
.feature-copy {
  align-self: center;
  padding: 8px clamp(0px, 2.2vw, 28px) 12px 0;
}
.feature-copy h3 { font-size: clamp(24px, 2.7vw, 39px); }
.feature-copy p {
  max-width: 25em;
  margin-top: 17px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}
.still-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 13px;
  color: #714913;
  text-underline-offset: 4px;
}

.screening-frame {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(115deg, #1a1610e6, #1b140e86), center 48% / cover url("media/screening-room.webp"), #211b16;
}
.game-screen {
  width: auto;
  height: clamp(405px, 37vw, 503px);
  max-width: 100%;
  object-fit: contain;
  border: 1px solid #88765d;
  border-radius: 9px;
  box-shadow: 0 13px 24px #100d0a9c;
}

.closing {
  color: var(--cream);
  background: #1a1814;
  overflow: hidden;
}
.closing-inner {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 345px;
  padding-block: 54px;
}
.closing-art {
  position: absolute;
  z-index: -1;
  inset: 0 42% 0 -4%;
}
.closing-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 32%;
}
.closing-art::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, #1a18143a, transparent 25%, #1a181400 54%, #1a1814 100%);
}
.closing-copy { width: min(100%, 45%); }
.closing h2 { max-width: 9em; text-wrap: balance; }
.closing .download { margin-top: 22px; }

.site-footer {
  color: var(--warm-light);
  background: var(--night);
  border-top: 1px solid #5c4b32;
  padding-block: 14px calc(14px + env(safe-area-inset-bottom));
  font-size: 13px;
}
.footer-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (max-width: 940px) {
  .hero-copy { max-width: 58%; }
  .hero h1 { font-size: clamp(45px, 7vw, 62px); }
  .feature-panel { gap: 20px 25px; }
}

@media (min-width: 681px) and (max-height: 520px) {
  .hero-inner { min-height: 320px; padding-block: 22px 27px; }
  .hero-line { margin-top: 13px; }
  .hero-actions { margin-top: 18px; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 36px); }
  .header-row { min-height: 62px; gap: 10px; }
  .brand { gap: 7px; font-size: 17px; letter-spacing: .025em; }
  .brand img { width: 31px; height: 31px; }
  .header-nav { gap: 13px; }
  .header-nav a { font-size: 12px; }

  .hero-art { inset: 0 0 auto; height: clamp(242px, 68vw, 370px); }
  .hero-art img { object-position: 50% 28%; }
  .hero::before {
    inset: 0 0 auto;
    height: clamp(242px, 68vw, 370px);
    background: linear-gradient(180deg, transparent 47%, #19161146 65%, #191611 100%);
  }
  .hero::after { display: none; }
  .hero-inner { min-height: 0; align-items: end; padding-block: clamp(186px, 54vw, 290px) 34px; }
  .hero-copy { max-width: min(420px, 100%); }
  .hero h1 { font-size: clamp(38px, 11.2vw, 65px); }
  .hero-line { margin-top: 11px; font-size: clamp(18px, 5vw, 23px); }
  .hero-description { margin-top: 10px; font-size: 15px; }
  .hero-actions { margin-top: 20px; gap: 5px 17px; }
  .download { min-height: 49px; padding-inline: 19px; gap: 13px; }
  .hero-details { font-size: 14px; }

  .gameplay { padding-block: 42px 53px; }
  .section-intro { display: block; margin-bottom: 22px; }
  .section-intro p { margin-top: 11px; font-size: 15px; }
  .feature-tabs a { min-height: 48px; }
  .feature-panel { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 22px; gap: 15px; }
  .feature-copy { padding: 0; }
  .feature-copy p { margin-top: 10px; font-size: 15px; }
  .still-link { margin-top: 5px; font-size: 14px; }
  .screening-frame { padding: 14px; }
  .game-screen { height: min(485px, 140vw); }

  .closing-inner { display: block; min-height: 0; padding-block: 178px 38px; }
  .closing-art { inset: 0 -18px auto; height: 236px; }
  .closing-art img { object-position: 50% 30%; }
  .closing-art::after { background: linear-gradient(180deg, transparent 35%, #1a181447 65%, #1a1814 100%); }
  .closing-copy { width: 100%; }
  .closing h2 { max-width: none; font-size: clamp(26px, 7vw, 34px); text-wrap: balance; }
  .closing .download { margin-top: 18px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 3px; }
}

@media (max-width: 357px) {
  .shell { width: calc(100% - 30px); }
  .brand { font-size: 16px; }
  .header-nav { gap: 9px; }
  .hero-actions { gap: 4px 13px; }
  .download { padding-inline: 16px; }
  .closing-art { inset-inline: -15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
