:root {
  --bg: #070a10;
  --bg-soft: #0b111a;
  --panel: #101824;
  --line: rgba(160, 190, 220, 0.14);
  --line-strong: rgba(79, 209, 217, 0.42);
  --text: #e9eef5;
  --muted: #93a1b2;
  --bronze: #c9a25f;
  --cyan: #4fd1d9;
  --cyan-dim: rgba(79, 209, 217, 0.12);
  --danger: #e0796a;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --display: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(79, 209, 217, 0.10), transparent 65%),
    radial-gradient(700px 420px at 8% 8%, rgba(201, 162, 95, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(160, 190, 220, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 190, 220, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
}
img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--cyan); color: #041014;
  border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 16, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-wrap { display: flex; align-items: center; gap: 20px; padding: 14px 24px; max-width: 1180px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.16em; font-size: 15px; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 2px; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--bronze); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.lang-toggle, .nav-toggle {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer;
}
.lang-toggle:hover, .nav-toggle:hover { border-color: var(--line-strong); color: var(--cyan); }
.nav-toggle { display: none; font-size: 16px; padding: 6px 12px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(7, 10, 16, 0.98); border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px; margin: 0;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { max-width: 1180px; margin: 0 auto; padding: clamp(52px, 8vw, 110px) 24px clamp(40px, 6vw, 76px); display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.kicker { margin: 0 0 14px; color: var(--bronze); font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.hero h1 { margin: 0 0 20px; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.01em; white-space: nowrap; }
.hero h1 .accent { color: var(--cyan); }
.lede { color: var(--muted); font-size: clamp(16px, 1.7vw, 20px); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #63dfe6, #34b5c0); color: #041014; }
.btn-primary:hover { background: linear-gradient(135deg, #7cebf1, #45c8d2); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.hero-art { position: relative; aspect-ratio: 1; min-height: 300px; }
.orb {
  position: absolute; inset: 9%; border-radius: 50%;
  background:
    radial-gradient(circle at 63% 27%, rgba(201, 162, 95, 0.55), transparent 17%),
    radial-gradient(circle at 38% 60%, rgba(79, 209, 217, 0.42), transparent 21%),
    radial-gradient(circle at 70% 68%, rgba(44, 96, 104, 0.65), transparent 26%),
    radial-gradient(circle at 34% 26%, #2c6570, #12313a 42%, #071018 74%);
  box-shadow: inset -34px -26px 80px rgba(0, 0, 0, 0.8), 0 0 90px rgba(79, 209, 217, 0.16);
}
.orbit { position: absolute; inset: 2%; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-16deg) scaleY(0.44); }
.orbit.two { inset: 8%; border-color: rgba(201, 162, 95, 0.24); transform: rotate(22deg) scaleY(0.62); }
.orbit::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* Sections and cards */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(34px, 5vw, 70px) 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 40px); }
.section-head .more { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.section-head .more:hover { color: var(--cyan); }
.section-intro { color: var(--muted); max-width: 65ch; margin: -10px 0 26px; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, var(--panel), rgba(16, 24, 36, 0.35)); color: var(--text); text-decoration: none; transition: transform 0.24s ease, border-color 0.24s ease; }
.game-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #12303a, #0a121b 55%, #1c170f); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media.missing::after { content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; background: radial-gradient(circle at 30% 30%, rgba(79, 209, 217, 0.16), transparent 60%), linear-gradient(135deg, #12303a, #0a121b); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.card-body h3 { margin: 0; font-size: 26px; }
.card-body p { margin: 0; color: var(--muted); }
.game-card-title { color: inherit; text-decoration: none; }
.card-body .btn { align-self: flex-start; margin-top: 6px; min-height: 40px; padding: 8px 18px; font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag { font-size: 12px; color: var(--bronze); border: 1px solid rgba(201, 162, 95, 0.35); border-radius: 999px; padding: 3px 10px; }
.card-link { margin-top: 8px; color: var(--cyan); font-size: 14px; font-weight: 600; }

/* Screenshots */
.shot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shot { display: block; position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(140deg, #122a33, #0a1119); }
.shot:first-child { grid-column: span 2; grid-row: span 2; }
.shot.wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.missing::after { content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; background: radial-gradient(circle at 30% 25%, rgba(79, 209, 217, 0.14), transparent 55%), linear-gradient(140deg, #122a33, #0a1119); }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.video-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.video-frame { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(79, 209, 217, 0.16), transparent 55%), linear-gradient(145deg, #0d2028, #080d14); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); background: rgba(7, 10, 16, 0.62); color: var(--text); padding: 12px 20px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.play-btn:hover { background: var(--cyan-dim); color: var(--cyan); }
.play-btn .tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.video-body { padding: 16px 18px 18px; }
.video-body h3 { margin: 0 0 4px; font-size: 19px; }
.video-body p { margin: 0; color: var(--muted); font-size: 14px; }
.video-body .provider { color: var(--bronze); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 24, 36, 0.55); color: var(--text); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease; }
.news-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.news-card time { color: var(--bronze); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.news-card h3 { margin: 0; font-size: 21px; line-height: 1.35; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }
.news-card .card-link { margin-top: auto; }

/* Game detail */
.game-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.game-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 75% 0%, var(--accent-glow, rgba(79, 209, 217, 0.16)), transparent 65%); pointer-events: none; }
.game-hero-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(52px, 7vw, 96px) 24px clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.game-hero h1 { margin: 0 0 14px; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; }
.game-hero .tagline { font-size: clamp(17px, 1.8vw, 21px); color: var(--muted); max-width: 56ch; }
.hero-shot { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(140deg, #122a33, #0a1119); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shot.missing::after { content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }
.game-description { max-width: 820px; color: var(--muted); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-list li { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: rgba(16, 24, 36, 0.55); color: var(--text); }
.feature-list li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--accent, var(--cyan)); box-shadow: 0 0 10px var(--accent, var(--cyan)); vertical-align: 2px; }
.req-list, .download-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.req-list li { color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: rgba(16, 24, 36, 0.55); }
.download-row .meta { color: var(--muted); font-size: 13px; }
.status-note { color: var(--muted); font-size: 13px; }

/* Press */
.press-logo { display: inline-flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 20px; padding: 26px 34px; background: rgba(16, 24, 36, 0.6); }
.press-logo svg { width: 74px; height: 74px; }
.press-logo span { font-family: var(--display); font-size: 44px; letter-spacing: 0.16em; }
.fact-list { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 0; border-top: 1px solid var(--line); margin: 8px 0 0; }
.fact-list dt, .fact-list dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fact-list dt { color: var(--bronze); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.fact-list dd { color: var(--text); }
.press-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }

/* Prose (legal, news post) */
.prose { max-width: 800px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) 24px 80px; overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 0 0 10px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 2.1em 0 0.6em; }
.prose h3 { font-size: 20px; margin: 1.6em 0 0.5em; }
.prose p, .prose li { color: #c3ccd8; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.45em 0; }
.prose strong { color: var(--text); }
.prose .post-meta { color: var(--bronze); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 26px; }
.prose .back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; }
.legal-updated { color: var(--muted); font-size: 13px; margin-top: -6px; margin-bottom: 30px; }

/* Footer */
.site-footer { margin-top: clamp(40px, 7vw, 90px); border-top: 1px solid var(--line); background: rgba(8, 13, 20, 0.7); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 44px 24px 26px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-inner h2 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze); margin: 0 0 12px; }
.footer-inner p, .footer-inner a { color: var(--muted); font-size: 14px; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--cyan); }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* Page heads and states */
.page-head { max-width: 1180px; margin: 0 auto; padding: clamp(52px, 7vw, 92px) 24px clamp(18px, 3vw, 34px); }
.page-head h1 { margin: 0 0 14px; font-size: clamp(38px, 6vw, 64px); line-height: 1.06; }
.loading, .empty-state, .error-state { color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; }
.noscript-note { margin: 20px auto; max-width: 720px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.game-description { margin-bottom: 10px; }
.error-state { color: var(--danger); border-color: rgba(224, 121, 106, 0.4); }
.notice { color: var(--muted); font-size: 14px; }
.contact-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: linear-gradient(120deg, rgba(201, 162, 95, 0.08), rgba(79, 209, 217, 0.06)); }
.contact-strip h2 { margin: 0 0 6px; font-size: 26px; }
.contact-strip p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .hero, .game-hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .game-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot:first-child { grid-column: span 2; grid-row: auto; }
  .video-grid, .feature-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .wrap, .nav-wrap, .hero, .section, .game-hero-inner, .footer-inner, .footer-bottom { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: clamp(38px, 12vw, 52px); }
  .cta-row .btn { width: 100%; }
  .fact-list { grid-template-columns: 1fr; }
  .fact-list dt { padding-bottom: 0; border-bottom: 0; }
  .fact-list dd { padding-top: 2px; }
  .footer-inner { grid-template-columns: 1fr; }
  .press-logo { padding: 20px 22px; }
  .press-logo span { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
