:root {
  --ink: #15130f;
  --ink-2: #2a261f;
  --paper: #f6f2ea;
  --paper-2: #efe8dc;
  --card: #fffaf2;
  --gold: #b08d57;
  --gold-2: #d8bc8a;
  --red: #8c1d18;
  --muted: #6f675b;
  --line: rgba(21, 19, 15, 0.12);
  --max: 1120px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  background: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.12em;
}

.brand-text small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.22em;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}

.nav a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

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

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active {
  color: var(--ink);
  font-weight: 600;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(176, 141, 87, 0.24), transparent 62%),
    radial-gradient(700px 420px at 8% 92%, rgba(140, 29, 24, 0.18), transparent 60%),
    linear-gradient(155deg, #1a1611 0%, #0f0d0a 58%, #1b1712 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 242, 234, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 242, 234, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 82%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(88px, 13vw, 168px) 0 clamp(96px, 14vw, 176px);
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.04em;
}

.hero h1 span {
  display: inline-block;
  margin-top: 16px;
  color: rgba(246, 242, 234, 0.56);
  font-family: var(--sans);
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .lead {
  max-width: 640px;
  margin: 30px 0 0;
  color: rgba(246, 242, 234, 0.76);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.hero-mark {
  position: absolute;
  right: -2vw;
  bottom: -12vw;
  z-index: 1;
  color: rgba(216, 188, 138, 0.07);
  font-family: var(--serif);
  font-size: clamp(280px, 42vw, 620px);
  line-height: 0.8;
  user-select: none;
  pointer-events: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #17140f;
}

.btn-primary:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
}

.btn-ghost {
  border-color: rgba(246, 242, 234, 0.32);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

/* Sections */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h1,
.section-head h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.card {
  position: relative;
  padding: 34px 30px 38px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 141, 87, 0.5);
  box-shadow: 0 18px 50px rgba(21, 19, 15, 0.08);
}

.card-index {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

/* Game */

.section-dark {
  color: var(--paper);
  background:
    radial-gradient(760px 420px at 78% 20%, rgba(176, 141, 87, 0.16), transparent 65%),
    linear-gradient(150deg, #191510, #0e0c09 70%);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.game-copy h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.game-copy .lead {
  margin: 0 0 18px;
  color: rgba(246, 242, 234, 0.82);
  font-size: 17px;
  line-height: 1.9;
}

.game-copy p:not(.lead):not(.eyebrow) {
  margin: 0 0 24px;
  color: rgba(246, 242, 234, 0.6);
  font-size: 15px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 14px;
  border: 1px solid rgba(216, 188, 138, 0.32);
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.game-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  justify-self: center;
  width: 100%;
  border: 1px solid rgba(216, 188, 138, 0.28);
  background:
    radial-gradient(circle at 50% 45%, rgba(176, 141, 87, 0.26), transparent 58%),
    linear-gradient(160deg, #221c14, #100d09);
  overflow: hidden;
}

.game-art::before,
.game-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(216, 188, 138, 0.18);
  border-radius: 50%;
}

.game-art::before {
  width: 78%;
  height: 78%;
}

.game-art::after {
  width: 58%;
  height: 58%;
}

.game-art-ring {
  position: absolute;
  width: 92%;
  height: 92%;
  border: 1px dashed rgba(216, 188, 138, 0.2);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}

.game-art-title {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--gold-2);
}

.game-art-sub {
  position: absolute;
  bottom: 26px;
  z-index: 2;
  margin: 0;
  color: rgba(246, 242, 234, 0.45);
  font-size: 9px;
  letter-spacing: 0.24em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Split / contact */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.split h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
}

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

.contact-panel {
  padding: 34px 32px;
  background: var(--card);
  border: 1px solid var(--line);
}

.contact-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-value {
  margin: 0 0 22px;
  font-size: 18px;
  color: var(--ink);
  word-break: break-word;
}

.contact-value a {
  border-bottom: 1px solid rgba(176, 141, 87, 0.5);
}

.contact-value a:hover {
  color: var(--gold);
}

.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.contact-card {
  padding: 30px 28px;
  background: var(--card);
  border: 1px solid var(--line);
}

.contact-card h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.contact-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.contact-card .contact-value {
  margin: 0;
  font-size: 15px;
}

.company-block {
  max-width: 760px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.company-block h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.company-block dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px 24px;
  margin: 0 0 24px;
}

.company-block dt {
  color: var(--muted);
  font-size: 13px;
}

.company-block dd {
  margin: 0;
  font-size: 15px;
}

/* Legal pages */

.legal-page {
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
}

.legal-container {
  max-width: 860px;
}

.legal-container h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.25;
}

.legal-meta {
  margin: 0 0 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.legal-container h2 {
  margin: 44px 0 14px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.legal-container h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.legal-container p,
.legal-container li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.95;
}

.legal-container ul {
  margin: 10px 0 18px;
  padding-left: 22px;
}

.legal-container li {
  margin-bottom: 8px;
}

.legal-container a {
  color: var(--red);
  border-bottom: 1px solid rgba(140, 29, 24, 0.35);
}

.legal-container a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Footer */

.site-footer {
  background: #100e0b;
  color: rgba(246, 242, 234, 0.72);
  padding: 48px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 24px 48px;
  align-items: start;
}

.footer-brand {
  margin: 0 0 6px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.footer-brand span {
  color: rgba(246, 242, 234, 0.4);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.footer-legal {
  margin: 0;
  color: rgba(246, 242, 234, 0.5);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--gold-2);
}

.copyright {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 242, 234, 0.1);
  color: rgba(246, 242, 234, 0.38);
  font-size: 12px;
}

/* Responsive */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
    gap: 12px;
  }

  .nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 13px;
  }

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

  .game-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .game-art {
    max-width: 360px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h1 span {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .company-block dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .company-block dt {
    margin-top: 12px;
  }
}

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

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

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
  }

  .legal-page {
    padding: 0;
  }
}
