:root {
  --ink: #08090b;
  --ink-soft: #0d0f12;
  --panel: #121418;
  --panel-raised: #181b20;
  --line: rgba(201, 168, 106, 0.2);
  --line-strong: rgba(201, 168, 106, 0.42);
  --gold: #c9a86a;
  --gold-bright: #ebcf95;
  --gold-dim: #8d7a5b;
  --wine: #762229;
  --wine-bright: #a83a43;
  --paper: #e8ddc5;
  --text: #d9d1c1;
  --text-dim: #a79f90;
  --text-faint: #746e64;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Iowan Old Style", "Baskerville", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse at 12% -10%, rgba(118, 34, 41, 0.24), transparent 45%),
    radial-gradient(ellipse at 92% 8%, rgba(201, 168, 106, 0.06), transparent 35%),
    radial-gradient(ellipse at 50% 115%, rgba(60, 89, 72, 0.1), transparent 50%),
    linear-gradient(180deg, #0a0b0e 0%, #07080a 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 28%, black, transparent 78%);
  pointer-events: none;
}

::selection {
  background: rgba(201, 168, 106, 0.24);
  color: var(--paper);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

a:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

ul {
  margin: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  background: rgba(201, 168, 106, 0.04);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 22px;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 75px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) 32px clamp(72px, 8vw, 108px);
}

.hero::before {
  content: "XII";
  position: absolute;
  top: 4%;
  right: -2%;
  z-index: 0;
  color: rgba(201, 168, 106, 0.035);
  font-family: var(--serif);
  font-size: clamp(180px, 30vw, 460px);
  line-height: 1;
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-visual {
  width: 100%;
}

.kicker {
  margin-bottom: 18px;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  line-height: 1.8;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(52px, 7.2vw, 104px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--gold-bright);
  font-style: normal;
}

.hero-lead {
  max-width: 520px;
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.95;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #151109;
}

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

.button-ghost {
  color: var(--text);
  background: transparent;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-meta dt {
  margin-bottom: 6px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.hero-meta dd {
  color: var(--text);
  font-size: 11px;
  line-height: 1.5;
}

.hero-frame {
  position: relative;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.06), rgba(18, 20, 24, 0.82));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(201, 168, 106, 0.12);
  pointer-events: none;
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92) contrast(1.03);
}

.corner {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-color: var(--gold);
}

.corner-tl {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner-tr {
  top: -1px;
  right: -1px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner-br {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.case-stamp {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 9, 11, 0.82);
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.case-stamp b {
  color: var(--gold-bright);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero-caption {
  margin-top: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: right;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 112px) 32px;
  border-top: 1px solid var(--line);
}

section[id] {
  scroll-margin-top: 90px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-index {
  padding-bottom: 8px;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.section-title {
  flex: 1 1 420px;
  min-width: 0;
}

.section-title h2 {
  margin-top: 4px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(34px, 4.3vw, 58px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px auto;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wine-bright);
  box-shadow: 0 0 0 4px rgba(168, 58, 67, 0.12);
}

.section-lead {
  max-width: 680px;
  margin: -10px 0 42px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.9;
}

.game-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  aspect-ratio: 16 / 9;
}

.game-banner picture,
.game-banner img {
  display: block;
  width: 100%;
  height: 100%;
}

.game-banner img {
  object-fit: cover;
}

.game-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(30px, 6vw, 80px);
  padding-top: 38px;
}

.game-body > *,
.studio-body > * {
  min-width: 0;
}

.game-narrative p {
  max-width: 680px;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.95;
}

.game-narrative .game-lead {
  margin-bottom: 20px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.game-facts {
  border-top: 1px solid var(--line);
}

.game-facts div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(201, 168, 106, 0.12);
}

.game-facts dt {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.game-facts dd {
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
}

.case-loop {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-loop div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-loop span {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8px;
}

.case-loop strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.case-loop small {
  color: var(--text-faint);
  font-size: 10px;
}

.case-loop i {
  color: var(--gold-dim);
  font-size: 14px;
  font-style: normal;
}

.fineprint {
  margin-top: 16px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

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

.principle {
  padding: 28px clamp(18px, 3vw, 32px) 30px;
  border-right: 1px solid var(--line);
}

.principle:first-child {
  padding-left: 0;
}

.principle:last-child {
  padding-right: 0;
  border-right: 0;
}

.principle-number {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.principle h3 {
  margin: 22px 0 10px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.principle p {
  max-width: 320px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.9;
}

.principle-en {
  display: block;
  margin-top: 24px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 30px);
}

.shot-frame {
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(18, 20, 24, 0.7);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot figcaption {
  padding: 14px 2px 0;
}

.shot figcaption span {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.shot figcaption p {
  margin-top: 6px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
}

.studio-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.studio-copy p {
  max-width: 680px;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.95;
}

.studio-copy .game-lead {
  margin-bottom: 20px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.5;
}

.case-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.05), rgba(18, 20, 24, 0.82));
}

.case-card::after {
  content: "深";
  position: absolute;
  right: -12px;
  bottom: -32px;
  color: rgba(201, 168, 106, 0.04);
  font-family: var(--serif);
  font-size: 150px;
  line-height: 1;
  pointer-events: none;
}

.case-card-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.case-card-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 24px 0;
  border: 1px solid var(--line-strong);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 24px;
}

.case-card dl {
  position: relative;
  z-index: 1;
}

.case-card dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(201, 168, 106, 0.1);
}

.case-card dt {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.case-card dd {
  color: var(--text);
  font-size: 11px;
  line-height: 1.5;
}

.case-card > p {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.contact {
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.contact h2 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.contact-lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.9;
}

.email-link {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 40px);
  text-decoration: none;
  word-break: break-all;
}

.email-link:hover,
.email-link:focus-visible {
  border-color: var(--gold-bright);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.contact-links a {
  border-bottom: 1px solid transparent;
  color: var(--gold-dim);
  text-decoration: none;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 32px 36px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-visual {
    animation: rise 0.8s ease both;
  }

  .hero-copy > *:nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero-copy > *:nth-child(3) {
    animation-delay: 0.12s;
  }

  .hero-copy > *:nth-child(4) {
    animation-delay: 0.18s;
  }

  .hero-copy > *:nth-child(5) {
    animation-delay: 0.24s;
  }

  .hero-visual {
    animation-delay: 0.14s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
    padding-top: 64px;
  }

  .hero-visual {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(52px, 9vw, 92px);
  }

  .game-body,
  .studio-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
    padding: 12px 20px;
  }

  .brand-copy small {
    display: none;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 9px;
  }

  .hero {
    padding: 52px 20px 64px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 78px);
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .hero-meta div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: baseline;
  }

  .hero-meta dt {
    margin: 0;
  }

  .case-stamp {
    bottom: 16px;
    left: 16px;
  }

  .hero-caption {
    text-align: left;
  }

  .section {
    padding: 64px 20px;
  }

  .section-head {
    gap: 10px;
  }

  .section-index {
    padding-bottom: 5px;
  }

  .section-status {
    width: 100%;
    margin-left: 0;
    white-space: normal;
  }

  .case-loop {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .case-loop i {
    display: none;
  }

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

  .principle,
  .principle:first-child,
  .principle:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .shots {
    display: flex;
    gap: 16px;
    margin-right: -20px;
    padding-right: 20px;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .shot {
    flex: 0 0 74%;
    scroll-snap-align: start;
  }

  .game-facts div {
    grid-template-columns: 78px 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    padding: 20px;
  }
}

@media (max-width: 680px) {
  .game-banner {
    aspect-ratio: 9 / 16;
  }
}

@media (max-width: 560px) {
  .site-nav a[data-optional] {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .hero-frame {
    padding: 7px;
  }

  .hero-frame::after {
    inset: 14px;
  }
}

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

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