:root {
  --bg: #f4efe7;
  --panel: rgba(255, 251, 245, 0.92);
  --ink: #171410;
  --muted: #635a4e;
  --line: rgba(23, 20, 16, 0.12);
  --accent: #973e2c;
  --shadow: 0 24px 56px rgba(52, 31, 18, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(151, 62, 44, 0.14), transparent 30%),
    linear-gradient(180deg, #faf7f1 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 20, 16, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 16, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
}

a {
  color: inherit;
}

[data-lang] {
  display: none;
}

html[data-ui-lang="en"] [data-lang="en"],
html[data-ui-lang="cn"] [data-lang="cn"] {
  display: inline;
}

.blog-card[data-lang] {
  display: none;
}

html[data-ui-lang="en"] .blog-card[data-lang="en"],
html[data-ui-lang="cn"] .blog-card[data-lang="cn"] {
  display: block;
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.hero {
  padding: 18px 24px 24px;
}

.hero-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
}

.topbar {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.topbar a:hover,
.topbar a:focus-visible {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
}

.lang-button.active {
  background: var(--ink);
  color: #f8f4ef;
}

.eyebrow,
.section-heading span,
.fact-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-family: Baskerville, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(3.6rem, 10vw, 6.4rem);
  line-height: 0.9;
  font-weight: 600;
}

.hero-copy {
  width: min(780px, 100%);
  margin: 24px 0 0;
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  color: var(--ink);
}

.icon-link {
  width: 46px;
  height: 46px;
  justify-content: center;
  padding: 0;
}

.icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-meta > span,
.award-list > span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
}

.hero-meta strong {
  font-weight: 600;
  color: var(--ink);
}

.hero-meta em {
  font-style: normal;
}

.section-block {
  margin-top: 42px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 24px 18px;
}

.section-heading.left {
  margin: 0 0 18px;
}

.section-heading::before,
.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-heading.left::before {
  display: none;
}

.game-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 28px;
  margin-bottom: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.game-copy {
  display: grid;
  gap: 0;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.game-title,
.footer-title {
  margin: 0;
  font-family: Baskerville, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
}

.game-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.game-year {
  color: var(--muted);
  white-space: nowrap;
}

.game-tagline {
  margin: 12px 0 16px;
  font-size: 1rem;
  color: var(--accent);
}

.game-description,
.about-copy p,
.footer p {
  margin: 0;
  line-height: 1.82;
  color: var(--muted);
}

.game-description {
  margin-bottom: 20px;
}

.cta-row,
.link-list,
.award-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.group-title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--ink);
}

.button-link,
.tag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button-link.primary {
  background: var(--ink);
  color: #f8f4ef;
}

.tag-link,
.button-link:not(.primary) {
  background: rgba(255, 255, 255, 0.58);
}

.button-link:hover,
.button-link:focus-visible,
.tag-link:hover,
.tag-link:focus-visible {
  transform: translateY(-2px);
}

.tag-link {
  border-color: var(--line);
}

.game-cover {
  padding: 16px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-grid {
  display: grid;
  gap: 14px;
}

.media-grid-double {
  grid-template-columns: 1fr;
}

.media-frame {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.media-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cover-frame {
  margin-top: 14px;
  color: #f8f4ee;
}

.cover-index {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.cover-title {
  margin: 0 0 8px;
  font-family: Baskerville, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 0.92;
}

.cover-subtitle {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  opacity: 0.84;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: start;
}

.blog-sections {
  display: grid;
  gap: 18px;
}

.blog-block {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.92);
  box-shadow: var(--shadow);
}

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

.blog-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.blog-card h3 {
  margin: 0 0 10px;
  font-family: Baskerville, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.12;
}

.blog-card p {
  margin: 0 0 10px;
  line-height: 1.7;
  color: var(--muted);
}

.blog-card a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #f8f4ef;
  text-decoration: none;
}

.about-copy {
  padding: 4px 24px 0;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-logo {
  width: min(100%, 240px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-facts {
  display: grid;
  gap: 16px;
}

.fact-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.92);
  box-shadow: var(--shadow);
}

.fact-label {
  color: var(--accent);
}

.fact-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.08rem;
  line-height: 1.6;
  font-weight: 500;
}

.footer {
  margin-top: 56px;
  padding: 0 24px;
}

.footer-title {
  font-size: 2rem;
}

@media (min-width: 900px) {
  .game-entry {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 520px);
    align-items: start;
  }

  .media-grid-double {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .about-grid,
  .blog-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 1180px);
  }

  .hero,
  .footer,
  .about-copy {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-bar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 36px;
  }

  .about-logo {
    width: min(100%, 200px);
  }

  .section-heading {
    margin-left: 8px;
    margin-right: 8px;
  }

  .game-entry {
    padding: 18px;
  }

  .game-meta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-copy,
  .game-description,
  .about-copy p,
  .footer p {
    font-size: 0.98rem;
  }
}
