:root {
  --bg: #120f17;
  --panel: #1c1724;
  --line: #2e2638;
  --text: #ece6f2;
  --muted: #a99db6;
  --accent: #f0b35a;
  --accent-soft: rgba(240, 179, 90, 0.12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
header.top {
  border-bottom: 1px solid var(--line);
  background: rgba(18, 15, 23, 0.92);
  position: sticky; top: 0; z-index: 2;
  backdrop-filter: blur(6px);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.brand span { color: var(--accent); }
.langs { display: flex; gap: 4px; }
.langs button {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 14px; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.2; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0; max-width: 640px; }
section { padding: 24px 0; }
h2 { font-size: 22px; margin: 0 0 12px; scroll-margin-top: 72px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; display: grid; gap: 8px;
}
.card .tag { display: inline-block; width: fit-content; font-size: 13px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
dl.info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; overflow-wrap: anywhere; }
.doc p, .doc li { color: var(--text); }
.doc .muted { color: var(--muted); }
.doc ul { padding-left: 20px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--panel); }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0 32px; color: var(--muted); font-size: 14px; }
[data-lang]:not(.on) { display: none !important; }

/* ---------- Home page ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { border-radius: 6px; }
body.home {
  background:
    radial-gradient(1200px 600px at 50% -120px, rgba(240, 179, 90, 0.16), transparent 70%),
    radial-gradient(900px 500px at 50% 420px, rgba(64, 160, 170, 0.10), transparent 70%),
    var(--bg);
}
.hero-game { text-align: center; padding: 28px 0 24px; }
.hero-game .logo { width: min(560px, 92%); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)); }
.hero-game .lead { color: var(--text); font-size: 18px; max-width: 640px; margin: 8px auto 20px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.badge {
  display: inline-block; background: var(--accent); color: #1a1208; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; box-shadow: 0 0 24px rgba(240, 179, 90, 0.35);
}
.cta .sub { color: var(--muted); font-size: 14px; }
.home section.wrap { padding: 36px 16px; }
.home h2 { text-align: center; font-size: clamp(22px, 4.5vw, 30px); margin-bottom: 20px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.feat .ico { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.feat h3 { margin: 0 0 6px; font-size: 17px; color: var(--accent); }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cls {
  background: linear-gradient(180deg, rgba(240, 179, 90, 0.08), var(--panel) 55%);
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 20px; text-align: center;
}
.cls img { width: 100%; max-width: 230px; height: auto; aspect-ratio: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); }
.cls h3 { margin: 8px 0 6px; font-size: 20px; }
.cls p { margin: 0; color: var(--muted); font-size: 15px; text-align: left; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.note { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.bosses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.bosses figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px 12px; text-align: center; }
.bosses img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.bosses figcaption { font-size: 14px; color: var(--text); margin-top: 4px; }
.studio { max-width: 720px; }
.studio p { color: var(--muted); text-align: center; margin: 0 0 20px; }
.studio dl.info { width: fit-content; max-width: 100%; margin: 0 auto; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 640px) {
  .shots { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .shots img { border-radius: 8px; }
  .bosses { grid-template-columns: repeat(2, 1fr); }
  .hero-game .lead { font-size: 16px; }
}
@media (max-width: 520px) {
  dl.info { grid-template-columns: 1fr; gap: 0 0; }
  dl.info dd { margin-bottom: 8px; }
}
