:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #171a1f;
  --muted: #5d6673;
  --line: #d9d5ca;
  --accent: #1f6f68;
  --accent-strong: #164e49;
  --warm: #c7863f;
  --soft: #ebe6dc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, white);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.language-toggle {
  min-height: 32px;
  border: 1px solid var(--line);
  padding: 5px 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  align-items: center;
  padding: 60px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 8vw, 84px);
}

h2 {
  font-size: clamp(30px, 5vw, 48px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
}

.lead {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 22px);
}

.zh {
  margin-top: 12px;
  color: var(--muted);
}

[data-lang][hidden] {
  display: none !important;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  font-weight: 720;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  color: white;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button.secondary:hover {
  color: white;
}

.studio-board {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(42, 36, 25, 0.08);
}

.board-top {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  color: var(--muted);
  font-size: 13px;
}

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

.release-cell {
  min-height: 148px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.release-cell:nth-child(2n) {
  border-right: 0;
}

.release-cell:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.release-cell strong {
  display: block;
  margin-bottom: 8px;
}

.release-cell span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.meter {
  height: 6px;
  margin-top: 18px;
  background: var(--soft);
}

.meter i {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--accent);
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
}

.card p,
.muted {
  color: var(--muted);
}

.meta {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.page-title {
  padding: 72px 0 52px;
}

.page-title h1 {
  max-width: 900px;
}

.content {
  padding: 0 0 80px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: 36px;
  align-items: start;
}

.prose {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(24px, 5vw, 44px);
}

.prose h2 {
  margin-top: 44px;
  font-size: 28px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 30px;
}

.prose p,
.prose ul {
  margin-top: 14px;
  color: var(--muted);
}

.prose ul {
  padding-left: 22px;
}

.side-note {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 22px;
  color: var(--muted);
}

.game-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.app-icon {
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(31, 111, 104, 0.18) 46% 54%, transparent 54%),
    var(--soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  border: 1px solid var(--line);
  padding: 4px 9px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 840px) {
  .nav {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding: 40px 0 44px;
  }

  .hero-grid,
  .content-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .release-cell {
    min-height: 128px;
  }
}

@media (max-width: 560px) {
  .wrap,
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .release-grid,
  .game-card {
    grid-template-columns: 1fr;
  }

  .hero .studio-board {
    display: none;
  }

  .release-cell,
  .release-cell:nth-child(2n),
  .release-cell:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .release-cell:last-child {
    border-bottom: 0;
  }

  .app-icon {
    width: 104px;
  }
}
