:root {
  color-scheme: light dark;
  --bg: #e7e8e2;
  --surface: #f2f2ed;
  --surface-2: #d7d9d2;
  --ink: #121514;
  --muted: #4b514e;
  --line: #adb1aa;
  --accent: #ad2b2d;
  --accent-dark: #7f1f22;
  --on-accent: #fff8f4;
  --header: rgba(231, 232, 226, .9);
  --shadow: rgba(40, 48, 44, .16);
}

[data-theme="dark"] {
  --bg: #111513;
  --surface: #181d1a;
  --surface-2: #242a26;
  --ink: #e7e8e2;
  --muted: #adb5b0;
  --line: #3b443f;
  --accent: #cf484a;
  --accent-dark: #ac3033;
  --on-accent: #fff8f4;
  --header: rgba(17, 21, 19, .9);
  --shadow: rgba(0, 0, 0, .32);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111513;
    --surface: #181d1a;
    --surface-2: #242a26;
    --ink: #e7e8e2;
    --muted: #adb5b0;
    --line: #3b443f;
    --accent: #cf484a;
    --accent-dark: #ac3033;
    --on-accent: #fff8f4;
    --header: rgba(17, 21, 19, .9);
    --shadow: rgba(0, 0, 0, .32);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Arial Narrow", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; line-height: 1.65; }
body::after { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.section-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding: 104px 0; }

.site-header { position: sticky; top: 0; z-index: 10; height: 72px; border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(14px); }
.nav-shell { width: min(1280px, calc(100% - 40px)); height: 100%; margin: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--accent); color: var(--on-accent); font-family: Impact, "Arial Narrow", sans-serif; font-size: 19px; letter-spacing: .04em; clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 18% 100%, 0 82%); }
.brand strong { display: block; font-size: 17px; letter-spacing: .08em; }
.brand small { display: block; margin-top: 6px; color: var(--muted); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.primary-nav { display: flex; justify-content: center; gap: clamp(17px, 2.5vw, 34px); }
.primary-nav a { position: relative; padding: 22px 0 20px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 14px; height: 2px; background: var(--accent); transition: right .22s ease; }
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { right: 0; }
.theme-toggle { border: 1px solid var(--line); background: transparent; padding: 8px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.theme-toggle:active, .button:active, .filter:active { transform: translateY(1px); }
.menu-toggle { display: none; }

.hero { position: relative; min-height: calc(100dvh - 72px); overflow: hidden; display: grid; align-items: center; background: #151918; color: #f0f1eb; }
.hero-art { position: absolute; inset: 0; background: url("/assets/images/red-alert-2.jpg") center/cover no-repeat; filter: saturate(.72) contrast(1.16); transform: scale(1.03); }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,15,14,.96) 0%, rgba(12,15,14,.86) 39%, rgba(12,15,14,.3) 72%, rgba(12,15,14,.52) 100%), linear-gradient(0deg, rgba(12,15,14,.7), transparent 45%); }
.hero-copy { position: relative; width: min(1180px, calc(100% - 48px)); margin: auto; padding: 56px 0 136px; }
.eyebrow { margin: 0 0 20px; color: #e06464; font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { max-width: 740px; margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Microsoft YaHei", sans-serif; font-size: clamp(68px, 10vw, 142px); font-weight: 900; letter-spacing: .015em; line-height: .88; text-transform: uppercase; text-shadow: 0 4px 28px rgba(0,0,0,.4); }
.hero-lead { max-width: 560px; margin: 26px 0 0; color: #d5d8d1; font-size: clamp(17px, 2vw, 22px); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; text-decoration: none; font-weight: 800; white-space: nowrap; transition: background .2s ease, border-color .2s ease, transform .1s ease; }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { border-color: rgba(255,255,255,.5); background: rgba(15,18,17,.52); color: #f1f2ed; }
.button-secondary:hover { border-color: #fff; background: rgba(15,18,17,.76); }
.hero-index { position: absolute; left: 50%; bottom: 0; width: min(1180px, calc(100% - 48px)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.34); background: rgba(16,19,18,.72); backdrop-filter: blur(10px); }
.hero-index div { padding: 18px 22px; border-right: 1px solid rgba(255,255,255,.2); }
.hero-index div:last-child { border-right: 0; }
.hero-index strong { display: inline-block; margin-right: 10px; color: #ee6c6b; font: 700 28px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hero-index span { color: #d4d7d1; font-size: 13px; font-weight: 700; }

.finder { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.finder-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; padding-block: 40px; }
.finder h2 { margin: 0; font-size: clamp(27px, 4vw, 42px); line-height: 1.05; }
.finder p { margin: 10px 0 0; color: var(--muted); }
.search-form label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.search-control { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--ink); background: var(--surface); }
.search-control input { min-width: 0; padding: 14px 16px; border: 0; background: transparent; color: var(--ink); outline: 0; }
.search-control input::placeholder { color: var(--muted); opacity: 1; }
.search-control button { border: 0; border-left: 1px solid var(--line); background: transparent; padding: 0 18px; cursor: pointer; font-weight: 800; }
.search-status { min-height: 24px; font-size: 12px; }

.section-heading { display: grid; gap: 15px; max-width: 760px; margin-bottom: 34px; }
.section-heading h2, .guide-intro h2, .online h2, .mods h2, .faq h2 { margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: .98; letter-spacing: -.035em; }
.section-heading p, .guide-intro > p:last-child, .online-copy > p, .mods-copy > p, .faq-layout > div > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 17px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter { border: 1px solid var(--line); background: transparent; padding: 8px 15px; cursor: pointer; font-size: 13px; font-weight: 800; }
.filter:hover, .filter.is-active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.version-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.version-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); overflow: hidden; box-shadow: 0 8px 24px var(--shadow); }
.version-card img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; filter: saturate(.8); }
.version-card-featured { display: grid; grid-template-columns: 1.05fr .95fr; grid-row: span 2; }
.version-card-featured img { height: 100%; min-height: 540px; aspect-ratio: auto; object-position: 35% center; }
.version-body { padding: 25px; }
.resource-type { display: block; margin-bottom: 13px; color: var(--accent); font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.version-card h3 { margin: 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.05; }
.version-card p { margin: 14px 0 20px; color: var(--muted); }
.version-card dl { margin: 20px 0; border-top: 1px solid var(--line); }
.version-card dl div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.version-card dt { color: var(--muted); }
.version-card dd { margin: 0; font-weight: 700; }
.text-link { display: inline-block; color: var(--accent); font-weight: 900; text-underline-offset: 5px; }
.text-link:hover { color: var(--accent-dark); }
.text-link-muted { color: var(--muted); text-decoration: none; }
.terminal-visual, .map-visual, .dossier-visual { position: relative; min-height: 215px; padding: 28px; overflow: hidden; background: #171c19; color: #dde2dc; }
.terminal-visual { display: grid; align-content: center; background-image: linear-gradient(rgba(205,66,68,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(205,66,68,.08) 1px, transparent 1px); background-size: 28px 28px; }
.terminal-visual span, .terminal-visual i { font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.terminal-visual strong { color: #e15b5c; font: 68px/.9 Impact, sans-serif; }
.map-visual { background: radial-gradient(circle at 68% 43%, transparent 0 8%, rgba(207,72,74,.5) 8.5% 9.5%, transparent 10%), linear-gradient(135deg, #303a34, #111513); }
.map-visual::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(30deg, transparent 49%, #ddd 50%, transparent 51%), linear-gradient(150deg, transparent 49%, #ddd 50%, transparent 51%); background-size: 46px 46px; }
.map-visual b { position: absolute; font: 16px/1 ui-monospace, monospace; }
.map-visual b:nth-of-type(1) { left: 12%; top: 35%; color: #e6e7df; }
.map-visual b:nth-of-type(2) { right: 11%; bottom: 28%; color: #e55759; }
.dossier-visual { display: grid; align-content: end; background: linear-gradient(rgba(17,21,19,.2), rgba(17,21,19,.92)), url("/assets/images/strategy-room.jpg") center/cover; }
.dossier-visual strong { position: relative; color: #fff; font-size: 35px; line-height: 1; }
.dossier-visual span { position: relative; color: #d6d8d2; font: 12px ui-monospace, monospace; }
.empty-state { padding: 60px; border: 1px dashed var(--line); text-align: center; }
.empty-state strong { font-size: 25px; }
.empty-state p { color: var(--muted); }

.guide-hub { background: var(--surface-2); }
.guide-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.guide-intro { position: sticky; top: 120px; align-self: start; }
.guide-intro h2 { margin-bottom: 24px; }
.guide-list { border-top: 1px solid var(--line); }
.guide-row { display: grid; grid-template-columns: 96px 1fr 1.25fr auto; gap: 24px; align-items: center; padding: 28px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s ease, padding .2s ease; }
.guide-row:hover { padding-inline: 18px; background: var(--surface); }
.guide-code { color: var(--accent); font: 11px ui-monospace, monospace; }
.guide-row strong { font-size: 22px; }
.guide-row small { color: var(--muted); font-size: 14px; }
.guide-row b { font-size: 12px; }

.compact-heading h2 { font-size: clamp(38px, 5vw, 62px); }
.tab-shell { display: grid; grid-template-columns: 250px 1fr; border-top: 1px solid var(--ink); }
.tabs { display: grid; align-content: start; border-right: 1px solid var(--line); }
.tabs button { padding: 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; font-weight: 800; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.tab-panel { padding-left: 42px; }
.tab-panel article { display: grid; grid-template-columns: 70px 1.2fr 1fr auto; gap: 22px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.tab-panel article span { color: var(--accent); font: 12px ui-monospace, monospace; }
.tab-panel h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.tab-panel p { margin: 0; color: var(--muted); font-size: 14px; }
.article-status { color: var(--muted); font-size: 12px; white-space: nowrap; }

.online { background: #161a18; color: #e9ebe5; }
.online-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 74px; align-items: start; }
.online-copy > p { color: #b8beb9; margin-top: 22px; }
.online ol { list-style: none; margin: 35px 0; padding: 0; counter-reset: online; }
.online li { position: relative; padding: 18px 0 18px 54px; border-bottom: 1px solid #39403c; counter-increment: online; }
.online li::before { content: counter(online); position: absolute; left: 0; top: 18px; color: #e35c5d; font: 700 24px/1 ui-monospace, monospace; }
.online li strong, .online li span { display: block; }
.online li span { margin-top: 5px; color: #adb4af; }
.compatibility { border: 1px solid #454c48; background: #202622; box-shadow: 18px 18px 0 #0c0f0e; }
.compatibility h3 { margin: 0; padding: 24px; border-bottom: 1px solid #454c48; font-size: 26px; }
.compat-grid { display: grid; grid-template-columns: 1fr 1fr; }
.compat-grid div { min-height: 150px; padding: 24px; border-right: 1px solid #454c48; border-bottom: 1px solid #454c48; }
.compat-grid div:nth-child(even) { border-right: 0; }
.compat-grid strong, .compat-grid span { display: block; }
.compat-grid strong { color: #ea6667; font-size: 18px; }
.compat-grid span { margin-top: 10px; color: #bcc2bd; font-size: 13px; }
.compat-note { margin: 0; padding: 18px 24px; color: #98a09b; font-size: 12px; }

.mods-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.mods-visual { position: relative; border: 1px solid var(--line); background: var(--surface); box-shadow: 18px 18px 0 var(--surface-2); }
.mods-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(.35) saturate(.72) contrast(1.08); }
.mods-visual div { padding: 22px; }
.mods-visual span, .mods-visual strong { display: block; }
.mods-visual span { color: var(--accent); font: 11px ui-monospace, monospace; }
.mods-visual strong { margin-top: 5px; font-size: 24px; }
.mods-copy > p { margin: 20px 0 28px; }
.mod-links { border-top: 1px solid var(--line); }
.mod-links a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mod-links strong, .mod-links span { display: block; }
.mod-links span { color: var(--muted); font-size: 13px; }
.mod-links a:hover strong { color: var(--accent); }

.faq { background: var(--surface-2); }
.faq-layout { display: grid; grid-template-columns: .6fr 1.4fr; gap: 80px; }
.accordion { border-top: 1px solid var(--ink); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { position: relative; padding: 23px 42px 23px 0; cursor: pointer; list-style: none; font-weight: 900; font-size: 18px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 6px; font: 28px/1 ui-monospace, monospace; }
.accordion details[open] summary::after { content: "-"; }
.accordion details p { max-width: 720px; margin: 0; padding: 0 42px 24px 0; color: var(--muted); }

.site-footer { padding: 70px 0 24px; background: #0f1211; color: #e5e7e1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 65px; }
.footer-grid > div { display: grid; align-content: start; gap: 9px; }
.footer-grid p { max-width: 430px; color: #9da49f; }
.footer-grid > div > strong { margin-bottom: 10px; }
.footer-grid > div > a:not(.brand) { color: #adb4af; text-decoration: none; font-size: 14px; }
.footer-grid > div > a:hover { color: #fff; }
.legal { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 60px; padding-top: 22px; border-top: 1px solid #343a36; color: #7f8782; font-size: 11px; }
.legal p { margin: 0; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: hero-in 1.1s cubic-bezier(.16,1,.3,1) both; }
  .hero-copy > * { animation: copy-in .75s cubic-bezier(.16,1,.3,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  @keyframes hero-in { from { opacity: .4; transform: scale(1.09); } to { opacity: 1; transform: scale(1.03); } }
  @keyframes copy-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 920px) {
  .nav-shell { grid-template-columns: 1fr auto auto; gap: 12px; }
  .menu-toggle { display: grid; grid-template-columns: 22px auto; align-items: center; gap: 2px 8px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { grid-column: 1; display: block; width: 22px; height: 2px; background: currentColor; }
  .menu-toggle b { grid-column: 2; grid-row: 1 / span 3; font-size: 12px; }
  .primary-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { padding: 11px 0; }
  .finder-layout, .guide-layout, .online-grid, .mods-layout, .faq-layout { grid-template-columns: 1fr; gap: 44px; }
  .guide-intro { position: static; }
  .version-card-featured { display: block; grid-row: auto; }
  .version-card-featured img { min-height: 0; aspect-ratio: 460 / 215; }
  .guide-row { grid-template-columns: 86px 1fr auto; }
  .guide-row small { grid-column: 2; }
  .guide-row b { grid-column: 3; grid-row: 1 / span 2; }
  .tab-shell { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(3, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .tabs button { text-align: center; }
  .tab-panel { padding-left: 0; }
  .tab-panel article { grid-template-columns: 70px 1fr auto; }
  .tab-panel p { grid-column: 2; }
  .article-status { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 680px) {
  .section-shell, .hero-copy, .hero-index { width: min(100% - 30px, 1180px); }
  .section-pad { padding: 72px 0; }
  .site-header { height: 64px; }
  .nav-shell { width: calc(100% - 28px); }
  .brand-mark { width: 34px; height: 34px; font-size: 16px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .theme-toggle { padding: 7px 8px; font-size: 10px; }
  .primary-nav { top: 64px; }
  .hero { min-height: calc(100dvh - 64px); }
  .hero-art { background-position: 61% center; }
  .hero-scrim { background: linear-gradient(90deg, rgba(12,15,14,.94), rgba(12,15,14,.55)), linear-gradient(0deg, rgba(12,15,14,.8), transparent 58%); }
  .hero-copy { padding: 40px 0 156px; }
  .hero h1 { font-size: clamp(58px, 20vw, 86px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-index { grid-template-columns: 1fr 1fr 1fr; }
  .hero-index div { padding: 14px 10px; }
  .hero-index strong, .hero-index span { display: block; }
  .hero-index strong { margin: 0 0 5px; font-size: 23px; }
  .hero-index span { font-size: 10px; }
  .finder-layout { padding-block: 30px; gap: 28px; }
  .version-grid { grid-template-columns: 1fr; }
  .version-card-featured { display: block; }
  .guide-row { grid-template-columns: 1fr auto; gap: 7px 14px; padding-block: 22px; }
  .guide-code { grid-column: 1; }
  .guide-row strong { grid-column: 1; font-size: 20px; }
  .guide-row small { grid-column: 1; }
  .guide-row b { grid-column: 2; grid-row: 1 / span 3; }
  .tabs { overflow-x: auto; }
  .tabs button { min-width: 100px; padding: 15px 10px; }
  .tab-panel article { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 22px 0; }
  .tab-panel article span, .tab-panel h3, .tab-panel p { grid-column: 1; }
  .article-status { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .compat-grid { grid-template-columns: 1fr; }
  .compat-grid div { min-height: 0; border-right: 0; }
  .compatibility { box-shadow: 9px 9px 0 #0c0f0e; }
  .footer-grid, .legal { grid-template-columns: 1fr; gap: 32px; }
  .legal { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
