:root {
  color-scheme: dark;
  --ink: #071117;
  --ink-soft: #0d1c22;
  --panel: rgba(12, 27, 32, .82);
  --text: #eef0dc;
  --muted: #a7b6b3;
  --gold: #d7b45f;
  --gold-light: #f3dfa1;
  --blue: #6ab7e9;
  --red: #d2766e;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--text); line-height: 1.6; }
a { color: inherit; }
.lang-en { display: none; }
body[data-language="en"] .lang-zh { display: none; }
body[data-language="en"] .lang-en { display: inline; }
.topbar { align-items: center; background: rgba(7, 17, 23, .92); border-bottom: 1px solid rgba(215, 180, 95, .2); display: flex; gap: 30px; justify-content: space-between; padding: 17px clamp(20px, 5vw, 72px); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.brand { align-items: center; display: inline-flex; font-size: .78rem; font-weight: 700; gap: 10px; letter-spacing: .18em; text-decoration: none; }
.brand-mark, .panel-mark { color: var(--gold-light); font-family: Georgia, serif; font-size: 1.35rem; letter-spacing: -.15em; }
.nav-links { display: flex; gap: clamp(15px, 3vw, 38px); margin-left: auto; }
.nav-links a, .footer a, .support-links a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.nav-links a:hover, .footer a:hover, .support-links a:hover { color: var(--gold-light); }
.language-toggle { background: transparent; border: 1px solid rgba(215, 180, 95, .55); border-radius: 99px; color: var(--gold-light); cursor: pointer; font-size: .72rem; padding: 6px 12px; }
.hero { align-items: center; display: flex; min-height: min(700px, calc(100vh - 60px)); overflow: hidden; padding: 72px clamp(20px, 8vw, 130px); position: relative; }
.hero-art, .hero-shade { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.hero-art { filter: saturate(.78) contrast(1.04); opacity: .75; }
.hero-shade { background: linear-gradient(90deg, rgba(7, 17, 23, .98) 0%, rgba(7, 17, 23, .84) 39%, rgba(7, 17, 23, .25) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 33%, rgba(7, 17, 23, .24) 100%); }
.hero-content { max-width: 650px; position: relative; z-index: 1; }
.eyebrow { color: var(--gold); font-size: .7rem; letter-spacing: .23em; margin: 0 0 17px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--gold-light); font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(3.6rem, 11vw, 8rem); font-weight: 400; letter-spacing: .02em; line-height: .98; margin-bottom: 28px; }
h2 { font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(2rem, 4vw, 3.65rem); font-weight: 400; letter-spacing: .01em; line-height: 1.18; margin-bottom: 24px; }
h3 { font-size: 1.03rem; font-weight: 500; margin-bottom: 8px; }
.hero-lead { color: #d6ded7; font-size: clamp(1.06rem, 2.2vw, 1.3rem); line-height: 1.8; max-width: 590px; }
.hero-actions, .support-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 17px; }
.button { border: 1px solid rgba(215, 180, 95, .55); border-radius: 6px; display: inline-flex; font-size: .9rem; justify-content: center; padding: 12px 20px; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { border-color: var(--gold-light); transform: translateY(-2px); }
.button.primary { background: #49698d; color: #fff5d2; }
.button.primary:hover { background: #5e84ac; }
.button.ghost { background: rgba(12, 27, 32, .7); color: var(--text); }
.button.is-disabled { cursor: not-allowed; opacity: .48; pointer-events: none; }
.hero-note, .download-meta, .checksum { color: var(--muted); font-size: .8rem; }
.scroll-cue { bottom: 28px; color: var(--gold); font-size: 1.7rem; left: 50%; position: absolute; }
.section { margin: 0 auto; max-width: 1200px; padding: clamp(72px, 10vw, 145px) clamp(20px, 5vw, 72px); }
.intro { display: grid; gap: 45px; grid-template-columns: minmax(250px, 1fr) minmax(280px, 1fr); }
.section-copy, .download-copy > p, .support-section p { color: var(--muted); font-size: 1rem; line-height: 1.85; }
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); padding-top: 0; }
.feature-card { background: var(--panel); border: 1px solid rgba(215, 180, 95, .32); border-radius: 8px; min-height: 245px; padding: 28px; position: relative; }
.feature-card::after { background: var(--gold); content: ""; height: 2px; left: 28px; position: absolute; top: 0; width: 40px; }
.feature-card.accent-blue::after { background: var(--blue); }
.feature-card.accent-red::after { background: var(--red); }
.feature-number { color: var(--gold); display: block; font-size: .72rem; letter-spacing: .15em; margin-bottom: 52px; }
.feature-card p { color: var(--muted); font-size: .98rem; line-height: 1.8; }
.codex { border-top: 1px solid rgba(215, 180, 95, .16); }
.codex-heading { align-items: end; display: flex; gap: 40px; justify-content: space-between; margin-bottom: 48px; }
.codex-heading h2 { margin-bottom: 0; max-width: 700px; }
.codex-heading .section-copy { margin: 0; max-width: 285px; }
.codex-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.unit-card { background: linear-gradient(145deg, rgba(18, 35, 41, .95), rgba(9, 20, 25, .95)); border: 1px solid rgba(215, 180, 95, .36); border-radius: 8px; min-width: 0; overflow: hidden; padding: 18px; position: relative; }
.unit-card::before { background: var(--gold); content: ""; height: 3px; left: 0; position: absolute; right: 0; top: 0; }
.unit-card.unit-blue { border-color: rgba(106, 183, 233, .42); }.unit-card.unit-blue::before { background: var(--blue); }
.unit-card.unit-red { border-color: rgba(210, 118, 110, .42); }.unit-card.unit-red::before { background: var(--red); }
.unit-card.unit-violet { border-color: rgba(181, 145, 227, .46); }.unit-card.unit-violet::before { background: #b591e3; }
.unit-card.unit-shadow { border-color: rgba(119, 108, 151, .6); }.unit-card.unit-shadow::before { background: #786c99; }
.unit-art { align-items: center; background: radial-gradient(circle, rgba(215, 180, 95, .18), transparent 68%); display: flex; height: 142px; justify-content: center; margin: -2px -2px 8px; }
.unit-blue .unit-art { background: radial-gradient(circle, rgba(106, 183, 233, .2), transparent 68%); }.unit-red .unit-art { background: radial-gradient(circle, rgba(210, 118, 110, .18), transparent 68%); }.unit-violet .unit-art { background: radial-gradient(circle, rgba(181, 145, 227, .2), transparent 68%); }.unit-shadow .unit-art { background: radial-gradient(circle, rgba(119, 108, 151, .22), transparent 68%); }
.unit-art img { image-rendering: pixelated; max-height: 112px; max-width: 112px; object-fit: contain; transform: scale(1.45); }
.unit-card-top { align-items: center; display: flex; gap: 10px; justify-content: space-between; }.unit-card-top h3 { font-size: 1rem; margin-bottom: 0; overflow-wrap: anywhere; }.cost { align-items: center; background: var(--gold); border-radius: 50%; color: var(--ink); display: inline-flex; flex: 0 0 25px; font-size: .78rem; font-weight: 700; height: 25px; justify-content: center; }
.unit-role { color: var(--gold); font-size: .72rem; letter-spacing: .08em; margin: 6px 0 12px; text-transform: uppercase; }.unit-blue .unit-role { color: var(--blue); }.unit-red .unit-role { color: var(--red); }.unit-violet .unit-role { color: #c4a1ee; }.unit-shadow .unit-role { color: #aa9bc9; }
.unit-description { color: var(--muted); font-size: .88rem; line-height: 1.72; min-height: 4.1em; }
.unit-stats { border-top: 1px solid rgba(167, 182, 179, .2); display: flex; gap: 18px; margin: 14px 0 0; padding-top: 12px; }.unit-stats div { align-items: baseline; display: flex; gap: 6px; }.unit-stats dt { color: #778b88; font-size: .62rem; text-transform: uppercase; }.unit-stats dd { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .83rem; margin: 0; }
.formation-rules { border-top: 1px solid rgba(215, 180, 95, .16); }
.formation-heading { align-items: end; display: flex; gap: 40px; justify-content: space-between; margin-bottom: 48px; }.formation-heading h2 { margin-bottom: 0; max-width: 620px; }.formation-heading .section-copy { margin: 0; max-width: 350px; }
.capacity-examples { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.capacity-example { background: rgba(18, 35, 41, .9); border: 1px solid rgba(215, 180, 95, .34); border-radius: 8px; overflow: hidden; padding: 20px; position: relative; }.capacity-example::before { background: var(--gold); content: ""; height: 3px; left: 0; position: absolute; right: 0; top: 0; }.capacity-example.capacity-blue { border-color: rgba(106, 183, 233, .42); }.capacity-example.capacity-blue::before { background: var(--blue); }.capacity-example.capacity-red { border-color: rgba(210, 118, 110, .42); }.capacity-example.capacity-red::before { background: var(--red); }
.example-title { align-items: center; color: var(--text); display: flex; font-size: .84rem; gap: 8px; justify-content: space-between; margin-bottom: 17px; }.example-title strong { color: var(--gold-light); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .73rem; font-weight: 500; white-space: nowrap; }
.capacity-rank { background: rgba(7, 17, 23, .55); border: 1px solid rgba(167, 182, 179, .22); border-radius: 5px; display: grid; gap: 3px; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 92px; padding: 4px; }.formation-token { align-items: center; background: rgba(215, 180, 95, .18); border: 1px solid rgba(215, 180, 95, .52); border-radius: 4px; display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow: hidden; padding: 4px 2px; }.formation-token.size-2 { background: rgba(106, 183, 233, .2); border-color: rgba(106, 183, 233, .62); grid-column: span 2; }.formation-token.size-4 { background: rgba(210, 118, 110, .2); border-color: rgba(210, 118, 110, .62); grid-column: span 4; }.formation-token img { image-rendering: pixelated; max-height: 49px; max-width: 49px; object-fit: contain; }.formation-token span { color: #d5dfd8; font-size: .56rem; line-height: 1.2; text-align: center; white-space: nowrap; }.capacity-example > p { color: var(--muted); font-size: .86rem; line-height: 1.7; margin: 14px 0 0; min-height: 3.2em; }
.formation-lanes { align-items: center; border-top: 1px solid rgba(167, 182, 179, .2); display: grid; gap: 50px; grid-template-columns: .85fr 1.15fr; margin-top: 56px; padding-top: 48px; }.formation-lanes-copy h3 { font-size: 1.2rem; font-weight: 400; margin-bottom: 13px; }.formation-lanes-copy > p:last-child { color: var(--muted); font-size: .88rem; line-height: 1.8; margin: 0; }.rank-stack { border-left: 2px solid rgba(215, 180, 95, .5); display: grid; gap: 8px; padding-left: 20px; position: relative; }.rank-stack::before, .rank-stack::after { color: var(--gold); content: ""; font-size: .8rem; position: absolute; right: -3px; }.rank-stack::before { content: "敌方基地"; right: 0; top: -29px; }.rank-stack::after { bottom: -29px; content: "我方基地"; right: 0; }.rank-line { align-items: center; background: rgba(215, 180, 95, .09); border: 1px solid rgba(215, 180, 95, .26); border-radius: 5px; display: flex; gap: 12px; min-height: 67px; padding: 7px 11px; }.rank-middle { background: rgba(106, 183, 233, .09); border-color: rgba(106, 183, 233, .3); }.rank-back { background: rgba(181, 145, 227, .09); border-color: rgba(181, 145, 227, .3); }.rank-name { color: var(--gold); font-size: .66rem; letter-spacing: .1em; min-width: 43px; }.rank-middle .rank-name { color: var(--blue); }.rank-back .rank-name { color: #c4a1ee; }.mini-unit { align-items: center; display: flex; gap: 7px; }.mini-unit img { image-rendering: pixelated; height: 42px; object-fit: contain; width: 42px; }.mini-unit span { color: #c8d3cd; font-size: .65rem; white-space: nowrap; }
.formation-activation { align-items: center; border: 1px solid rgba(215, 180, 95, .35); border-radius: 8px; display: flex; gap: 18px; justify-content: center; margin-top: 42px; padding: 19px 22px; }.activation-step { align-items: center; color: var(--muted); display: flex; gap: 10px; }.activation-step > span { align-items: center; border: 1px solid #70827f; border-radius: 50%; display: inline-flex; font-size: .66rem; height: 25px; justify-content: center; width: 25px; }.activation-step p { font-size: .73rem; margin: 0; }.activation-step.active { color: var(--gold-light); }.activation-step.active > span { background: var(--gold); border-color: var(--gold); color: var(--ink); }.formation-activation > b { color: var(--gold); font-weight: 400; }
.named-formations { border-top: 1px solid rgba(167, 182, 179, .2); margin-top: 54px; padding-top: 46px; }.named-formations-heading { align-items: baseline; display: flex; gap: 24px; justify-content: space-between; }.named-formations-heading .eyebrow { margin-bottom: 0; white-space: nowrap; }.named-formations-heading > p:last-child { color: var(--muted); font-size: .8rem; margin: 0; text-align: right; }.formation-catalog { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 23px; }.formation-card { background: linear-gradient(145deg, rgba(18, 35, 41, .95), rgba(9, 20, 25, .95)); border: 1px solid rgba(215, 180, 95, .35); border-radius: 8px; min-width: 0; padding: 17px; position: relative; }.formation-card::before { background: var(--gold); content: ""; height: 3px; left: 0; position: absolute; right: 0; top: 0; }.formation-card.formation-blue { border-color: rgba(106, 183, 233, .42); }.formation-card.formation-blue::before { background: var(--blue); }.formation-card.formation-violet { border-color: rgba(135, 122, 219, .48); }.formation-card.formation-violet::before { background: #877adb; }.formation-card.formation-purple { border-color: rgba(181, 145, 227, .45); }.formation-card.formation-purple::before { background: #b591e3; }.formation-card.formation-knight { border-color: rgba(106, 183, 233, .42); }.formation-card.formation-knight::before { background: #6ab7e9; }.formation-card-head { align-items: center; display: flex; gap: 12px; margin-bottom: 13px; }.formation-card-head img { image-rendering: pixelated; height: 35px; object-fit: contain; width: 35px; }.formation-card-head h3 { font-size: .95rem; margin-bottom: 2px; }.formation-card-head p { color: var(--muted); font-size: .62rem; margin: 0; }.formation-tier { border-top: 1px solid rgba(167, 182, 179, .17); padding: 10px 0 0; }.formation-tier + .formation-tier { margin-top: 10px; }.tier-two { border-top-color: rgba(215, 180, 95, .34); }.tier-label { color: var(--gold); display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .65rem; margin-bottom: 7px; }.tier-two .tier-label { color: var(--gold-light); }.recipe { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }.recipe-unit { align-items: center; background: rgba(7, 17, 23, .5); border: 1px solid rgba(167, 182, 179, .25); border-radius: 4px; display: inline-flex; gap: 5px; padding: 3px 6px 3px 3px; }.recipe-unit img { image-rendering: pixelated; height: 25px; object-fit: contain; width: 25px; }.recipe-unit > span { color: #d2ddd6; font-size: .62rem; white-space: nowrap; }.formation-tier > p { color: var(--muted); font-size: .66rem; line-height: 1.5; margin: 8px 0 0; }.pvp-formation-flow { align-items: center; background: rgba(7, 17, 23, .55); border: 1px solid rgba(215, 180, 95, .32); border-radius: 8px; display: grid; gap: 30px; grid-template-columns: .9fr 1.1fr; margin-top: 35px; padding: 22px 25px; }.pvp-formation-flow .eyebrow { margin-bottom: 8px; }.flow-copy { color: var(--muted); font-size: .78rem; line-height: 1.7; margin: 0; }.flow-track { align-items: center; display: flex; gap: 10px; justify-content: center; }.flow-box { align-items: center; background: rgba(215, 180, 95, .13); border: 1px solid rgba(215, 180, 95, .46); border-radius: 5px; display: flex; flex-direction: column; gap: 3px; justify-content: center; min-height: 70px; padding: 8px; text-align: center; width: 115px; }.flow-box strong { color: var(--gold-light); font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; line-height: 1; }.flow-box span { color: var(--muted); font-size: .62rem; line-height: 1.35; }.flow-track > b { color: var(--gold); font-weight: 400; }.flow-disabled { border-color: rgba(167, 182, 179, .3); background: rgba(167, 182, 179, .06); }.flow-disabled strong { color: #8b9a97; }.mode-scope { border-left: 2px solid var(--gold); color: var(--muted); font-size: .75rem; line-height: 1.7; margin: 26px 0 0; padding-left: 13px; }
.formation-card-head p { font-size: .72rem; }
.recipe-unit > span { font-size: .7rem; }
.formation-tier > p { font-size: .76rem; line-height: 1.65; }
.flow-copy { font-size: .88rem; line-height: 1.8; }
.flow-box span { font-size: .68rem; line-height: 1.4; }
.mode-scope { font-size: .84rem; line-height: 1.8; }
.mode-row p { font-size: .95rem; }
.named-formations-heading > p:last-child { font-size: .9rem; }
.formation-token span { font-size: .62rem; }
.mini-unit span { font-size: .72rem; }
.modes { border-top: 1px solid rgba(215, 180, 95, .16); display: grid; gap: 55px; grid-template-columns: .8fr 1.2fr; }
.mode-list { border-top: 1px solid rgba(167, 182, 179, .25); }
.mode-row { align-items: center; border-bottom: 1px solid rgba(167, 182, 179, .25); display: flex; gap: 23px; padding: 23px 0; }
.mode-row p { color: var(--muted); font-size: .95rem; margin: 0; }
.mode-icon { align-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); display: inline-flex; flex: 0 0 38px; font-family: Georgia, serif; height: 38px; justify-content: center; }
.download-section { align-items: center; background: linear-gradient(135deg, #0d2027, #0a1419); border: 1px solid rgba(215, 180, 95, .3); border-radius: 12px; display: grid; gap: 50px; grid-template-columns: 1.35fr .65fr; margin-bottom: 30px; }
.download-meta { min-height: 1.6em; }
.download-copy .button { margin-top: 12px; }
.checksum { overflow-wrap: anywhere; }
.download-panel { align-items: center; aspect-ratio: 1; border: 1px solid rgba(215, 180, 95, .4); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; min-width: 210px; overflow: hidden; position: relative; text-align: center; }
.download-panel::before { border: 1px solid rgba(106, 183, 233, .45); border-radius: 50%; content: ""; height: 72%; position: absolute; width: 72%; }
.download-panel p { color: var(--gold); font-size: .73rem; letter-spacing: .18em; margin: 18px 0 4px; position: relative; }
.download-panel small { color: var(--muted); position: relative; }
.panel-mark { font-size: 3.4rem; position: relative; }
.panel-orbit { border: 1px solid var(--red); border-radius: 50%; height: 7px; position: absolute; width: 7px; }
.orbit-one { left: 17%; top: 42%; }.orbit-two { right: 16%; bottom: 34%; background: var(--blue); border-color: var(--blue); }
.support-section { align-items: center; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; padding-bottom: 90px; }
.support-section h2 { margin-bottom: 0; }
.support-actions { margin: 0; }
.support-links { flex-basis: 100%; margin: 15px 0 0; }
.support-links span { color: #637371; margin: 0 10px; }
.footer { align-items: center; border-top: 1px solid rgba(215, 180, 95, .17); color: #70827f; display: flex; font-size: .72rem; justify-content: space-between; padding: 22px clamp(20px, 5vw, 72px); }
@media (max-width: 760px) {
  .topbar { gap: 12px; padding: 15px 18px; }.nav-links { display: none; }
  .hero { min-height: 670px; padding: 70px 23px; }.hero-art { object-position: 62% center; }.hero-shade { background: linear-gradient(90deg, rgba(7, 17, 23, .94), rgba(7, 17, 23, .64)), linear-gradient(0deg, var(--ink) 0%, transparent 40%); }
  h1 { font-size: clamp(3.6rem, 18vw, 6rem); }.intro, .modes, .download-section { display: block; }.intro .section-copy { margin-top: 32px; }.feature-grid { grid-template-columns: 1fr; padding-top: 0; }.feature-card { min-height: 0; }.feature-number { margin-bottom: 28px; }.codex-heading, .formation-heading { align-items: start; display: block; margin-bottom: 32px; }.codex-heading .section-copy, .formation-heading .section-copy { margin-top: 20px; }.codex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.unit-card { padding: 14px; }.unit-art { height: 118px; }.unit-art img { transform: scale(1.25); }.unit-description { font-size: .74rem; }.unit-stats { gap: 10px; }.capacity-examples, .formation-catalog { grid-template-columns: 1fr; }.capacity-example > p { min-height: 0; }.formation-lanes { display: block; margin-top: 40px; }.rank-stack { margin-top: 42px; }.formation-activation { align-items: stretch; flex-direction: column; gap: 10px; }.formation-activation > b { display: none; }.named-formations-heading { align-items: start; display: block; }.named-formations-heading > p:last-child { margin-top: 12px; text-align: left; }.pvp-formation-flow { display: block; }.flow-track { flex-wrap: wrap; margin-top: 22px; }.mode-scope { margin-top: 20px; }
  .mode-list { margin-top: 34px; }.download-section { margin-left: 16px; margin-right: 16px; padding: 55px 28px; }.download-panel { margin: 50px auto 0; width: min(230px, 70vw); }.support-section { display: block; }.support-actions { margin-top: 28px; }.footer { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 760px) {
  .unit-description { font-size: .82rem; }
  .unit-role { font-size: .68rem; }
}
