:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #eee9df;
  background: #071015;
  font-synthesis: none;
  --ink: #071015;
  --ink-soft: #0d1b20;
  --paper: #eee9df;
  --muted: #87979a;
  --line: rgba(218, 224, 216, 0.15);
  --gold: #d9a85f;
  --gold-bright: #f2cb83;
  --sea: #8fb9ae;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
a { color: inherit; }
[hidden] { display: none !important; }
.site-header, main, footer { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 96px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; }
.brand-mark { position: relative; display: block; width: 31px; height: 31px; border: 1px solid rgba(217, 168, 95, 0.75); border-radius: 50%; }
.brand-mark::before, .brand-mark::after, .brand-mark i { position: absolute; display: block; content: ""; }
.brand-mark::before { inset: 6px; border: 1px solid rgba(217, 168, 95, 0.48); border-radius: 50%; }
.brand-mark::after { top: 4px; bottom: 4px; left: 50%; width: 1px; background: var(--gold); transform: rotate(34deg); }
.brand-mark i { top: 50%; right: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 12px rgba(242, 203, 131, 0.75); }
.brand-name, .footer-brand { font-family: Georgia, "Times New Roman", serif; font-size: 15px; letter-spacing: 0.22em; }
nav { display: flex; gap: clamp(22px, 3vw, 48px); align-items: center; }
nav a { color: #aab5b3; font-size: 13px; text-decoration: none; }
nav a:hover { color: #fff; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 5px; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 14px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3 { margin: 0; font-family: "Songti SC", "STSong", Georgia, serif; font-weight: 500; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 436px; gap: 64px; align-items: center; min-height: 422px; padding: 72px 0 64px; background: radial-gradient(circle at 92% 45%, rgba(84, 124, 116, 0.13), transparent 30rem); }
.eyebrow { margin: 0 0 24px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 0.23em; }
h1 { font-size: clamp(66px, 7vw, 100px); line-height: 1.08; letter-spacing: -0.04em; }
.hero-intro { margin: 30px 0 36px; color: #9daaa8; font-size: 18px; line-height: 1.7; }
.button { display: inline-flex; gap: 28px; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 23px; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-decoration: none; transition: transform 160ms ease, background 160ms ease; }
.button[href]:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #12100c; }
.button-primary:hover { background: var(--gold-bright); }
.button-outline { border: 1px solid rgba(217, 168, 95, 0.55); color: #ead6b3; }
.button-disabled { border: 1px solid var(--line); background: #142125; color: #72817f; cursor: default; }
.hero-download { min-width: 218px; }
.release-status { padding: 20px 32px; border-left: 1px solid rgba(217, 168, 95, 0.55); }
.release-label { margin: 0 0 16px; color: var(--gold); font-size: 12px; letter-spacing: 0.15em; }
.release-title { margin: 0 0 20px; font-family: "Songti SC", "STSong", Georgia, serif; font-size: 40px; }
.release-description { margin: 0; color: #9daaa8; font-size: 15px; line-height: 1.9; white-space: pre-line; }
.downloads { padding-top: 38px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.downloads h2 { margin-bottom: 60px; font-size: 36px; }
.channel { display: grid; grid-template-columns: 40px minmax(250px, 1fr) minmax(220px, 1.2fr) 270px; column-gap: 34px; align-items: center; min-height: 138px; padding: 30px 0; border-top: 1px solid var(--line); }
.channel-index { color: var(--gold); font-size: 10px; letter-spacing: 0.2em; }
.channel h3 { font-size: 25px; }
.channel-title p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.channel-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.package-details { grid-column: 3 / -1; margin-top: 24px; color: var(--muted); font-size: 12px; }
.package-details summary { min-height: 32px; cursor: pointer; color: #ead6b3; }
.package-details dl { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; line-height: 1.8; }
.package-details dt, .package-details dd { margin: 0; }
.package-details dd { overflow-wrap: anywhere; }
.checksum { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.updates { display: grid; grid-template-columns: 182px minmax(0, 1fr); gap: 0; align-items: center; min-height: 90px; border-top: 1px solid var(--line); }
.updates h2 { color: var(--gold); font-family: inherit; font-size: 14px; }
.updates p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
footer { display: flex; gap: 36px; align-items: center; justify-content: space-between; min-height: 96px; border-top: 1px solid var(--line); }
.footer-brand { color: #b9c2c0; font-size: 12px; text-decoration: none; }
.footer-links { display: flex; gap: 100px; align-items: center; color: var(--muted); font-size: 12px; }
.footer-links a { text-decoration: none; }
.contact-mobile { display: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
  .channel { grid-template-columns: 30px minmax(180px, 1fr) minmax(180px, 1fr) 230px; column-gap: 18px; }
}
@media (max-width: 940px) {
  .site-header, main, footer { width: min(760px, calc(100% - 40px)); }
  .hero { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
  .channel { grid-template-columns: minmax(0, 1fr) 270px; gap: 16px 24px; }
  .channel-index { display: none; }
  .channel-title { grid-column: 1; }
  .channel-note { grid-column: 1; }
  .channel > .button { grid-column: 2; grid-row: 1 / 3; }
  .package-details { grid-column: 1 / -1; }
  .footer-links { gap: 30px; }
}
@media (max-width: 620px) {
  .site-header, main, footer { width: min(520px, calc(100% - 40px)); }
  .site-header { min-height: 72px; }
  .brand-name { font-size: 12px; }
  .brand-mark { width: 25px; height: 25px; }
  nav a { font-size: 11px; }
  .updates-link { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 44px 0 40px; }
  h1 { font-size: clamp(56px, 17vw, 74px); }
  .hero-intro { max-width: 320px; margin: 28px 0 0; font-size: 16px; }
  .hero-download { display: none; }
  .release-status { padding: 0 0 0 16px; }
  .release-label, .release-title { display: inline; font-family: inherit; font-size: 14px; line-height: 1.8; color: var(--gold); }
  .release-label::after { content: " · "; }
  .release-description { margin-top: 8px; font-size: 12px; white-space: normal; }
  .release-description br { display: none; }
  .downloads { padding-top: 24px; }
  .downloads h2 { margin-bottom: 30px; font-size: 30px; }
  .channel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 196px; padding: 24px 0 30px; }
  .channel-title, .channel-note, .channel > .button { grid-column: 1; grid-row: auto; }
  .channel-title p { display: none; }
  .channel-note { margin-top: 18px; font-size: 12px; }
  .channel > .button { margin-top: 24px; width: 100%; }
  .channel-note:empty { display: none; }
  .channel:first-child .channel-note::before { content: "iOS · "; }
  .channel:nth-child(2) .channel-note::before { content: "Windows · "; }
  .channel-windows .channel-title p { display: block; margin-top: 18px; }
  .package-details { margin-top: 20px; }
  .package-details dl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .updates { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px 0; }
  .updates h2, .updates p { font-size: 13px; }
  footer { min-height: 60px; gap: 12px; }
  .footer-links > a:first-child, .contact-desktop { display: none; }
  .contact-mobile { display: inline; }
  .app-store-download { background: var(--gold); border-color: var(--gold); color: #12100c; }
  .steam-download { background: none; border: 1px solid rgba(217, 168, 95, 0.55); color: #ead6b3; }
  .steam-download:hover { background: var(--ink-soft); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
