/* Layout: full-bleed bands (hero, gallery, presets) alternate with a 1180px content column;
   HUD-style corner brackets frame every in-game image, like a viewfinder. Single dark look. */
/* Fonts are self-hosted (SIL Open Font License): no requests to third-party servers. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/saira-condensed-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/saira-condensed-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/saira-condensed-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/saira-condensed-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/saira-condensed-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/saira-condensed-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/saira-condensed-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Saira Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/saira-condensed-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* tokens:begin (Generated by tools/design/gen_tokens.py from tools/design/tokens.json. Do not edit by hand.) */
  --bg: #0d1016;
  --panel: #141922;
  --panel-2: #1a202b;
  --line: #262e3b;
  --fg: #e8eaef;
  --muted: #9aa3b3;
  --dim: #868f9f;
  --red: #d63b3b;
  --red-hi: #ef5050;
  --amber: #e7a73c;
  --ok: #4fbf7a;
  --t-ink: #090b0f;
  --t-panel2: #1a202b;
  --t-line-hot: #5a667a;
  --t-steel: #b0b8c6;
  --t-red-edge: #a82a2e;
  --t-danger: #c98a8c;
  --t-staff: #f08a24;
  --t-team-terrorists: #e04848;
  --t-team-specops: #3f7fe0;
  --f-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --t-fast: 120ms; --t-base: 200ms; --t-slow: 420ms; --t-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* tokens:end */

  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4.2vw, 2.9rem);
  --step-4: clamp(2.4rem, 6vw, 4.2rem);

  --col: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--col); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(56px, 9vw, 112px); }
.band + .band { border-top: 1px solid var(--line); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: 0.01em; }
h2 { font-size: var(--step-3); text-transform: uppercase; }
h3, h2.h3 { font-size: var(--step-1); text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0; }
.eyebrow { font: 600 var(--step--1)/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.18em; color: var(--red-hi); }
.lede { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }
.mono { font-family: var(--f-mono); font-size: 0.86em; }
kbd, code { font-family: var(--f-mono); font-size: 0.82em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.08em 0.4em; color: var(--fg); white-space: nowrap; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 6px; border: 1px solid var(--line); padding: 12px 20px; font: 600 var(--step-0)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; transition: background-color .15s, border-color .15s, transform .15s; cursor: pointer; }
.btn:hover { border-color: var(--dim); }
.btn-play { background: linear-gradient(180deg, var(--red-hi), var(--red)); border-color: transparent; color: #fff; padding: 14px 26px 14px 20px; box-shadow: 0 8px 28px -10px rgba(214, 59, 59, .7); }
.btn-play:hover { transform: translateY(-1px); border-color: transparent; }
.btn-play svg { flex: none; }
.btn-play .stack { display: grid; gap: 3px; text-align: left; }
.btn-play .big { font-size: 1.35rem; letter-spacing: 0.06em; }
.btn-play .small { font: 500 0.72rem/1 var(--f-body); letter-spacing: 0.02em; text-transform: none; opacity: .88; }
.btn-ghost { background: rgba(13, 16, 22, .55); color: var(--fg); backdrop-filter: blur(6px); }

/* ---------- nav ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 6px; background: var(--amber); color: #0d1016; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; transform: scale(1.06); }
.slide.on { opacity: 1; animation: drift 14s linear forwards; }
.slide:first-child { opacity: 1; }
.slides.started .slide:first-child:not(.on) { opacity: 0; }
@keyframes drift { from { transform: scale(1.06) translateX(0); } to { transform: scale(1.12) translateX(-1.5%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13,16,22,.94) 0%, rgba(13,16,22,.78) 38%, rgba(13,16,22,.25) 75%, rgba(13,16,22,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13,16,22,0) 30%); }
.hero .wrap { display: grid; gap: 28px; padding-block: clamp(56px, 10vw, 128px) clamp(64px, 9vw, 112px); }
.hero-logo { width: min(520px, 88%); filter: drop-shadow(0 18px 36px rgba(0,0,0,.6)); margin-bottom: -6px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); text-transform: uppercase; max-width: 18ch; letter-spacing: .015em; }
.hero h1 em { font-style: normal; color: var(--red-hi); }
.hero .lede { color: #c9ced8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: var(--step--1); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red-hi); }
.hero-caption { position: absolute; right: var(--gutter-r); bottom: 22px; font: 600 .78rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: rgba(232,234,239,.75); display: flex; align-items: center; gap: 10px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(232,234,239,.3); transition: background .3s; }
.dots i.on { background: var(--red-hi); }
@media (max-width: 640px) {
  .hero-caption { left: var(--gutter-l); right: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(13,16,22,.55) 0%, rgba(13,16,22,.88) 45%, var(--bg) 100%); }
}

/* ---------- status strip ---------- */
.status { background: var(--panel); border-bottom: 1px solid var(--line); }
.status .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding-block: 16px; font-size: var(--step--1); color: var(--muted); }
.status strong { color: var(--amber); font: 700 .82rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.status a { color: var(--fg); text-decoration: none; border-bottom: 1px solid rgba(231,167,60,.5); margin-left: 6px; white-space: nowrap; }
.status a::after { content: " \2192"; color: var(--amber); }
.status a:hover { border-bottom-color: var(--amber); }

/* ---------- viewfinder frame ---------- */
.vf { position: relative; }
.vf::before, .vf::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--red-hi); pointer-events: none; z-index: 2; }
.vf::before { left: -6px; top: -6px; border-right: 0; border-bottom: 0; }
.vf::after { right: -6px; bottom: -6px; border-left: 0; border-top: 0; }
.vf img { border-radius: 3px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about .copy { display: grid; gap: 18px; min-width: 0; }
.about .copy p { color: var(--muted); max-width: 60ch; }
.about .copy p strong { color: var(--fg); font-weight: 600; }
.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.spec div { background: var(--panel); padding: 14px 16px; display: grid; gap: 4px; }
.spec b { font: 700 1.5rem/1 var(--f-display); letter-spacing: .02em; }
.spec span { font-size: .78rem; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .spec div { padding: 12px; } .spec b { font-size: 1.3rem; } .spec span { font-size: .66rem; letter-spacing: .06em; } }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.feature { background: var(--bg); padding: 26px 24px 28px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.feature svg { width: 28px; height: 28px; color: var(--red-hi); }
.feature p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- strips (models / stances) ---------- */
.strip { display: grid; gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.strip figcaption { color: var(--dim); font-size: var(--step--1); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.trio figure { margin: 0; position: relative; border-radius: 4px; overflow: hidden; background: var(--panel); }
.trio img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.trio figure:hover img { transform: scale(1.03); }
.trio figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 11px; background: linear-gradient(0deg, rgba(8,10,14,.92), rgba(8,10,14,0)); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.trio figcaption b { font: 700 1rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; }
.trio figcaption span { font-size: .75rem; color: var(--muted); text-align: right; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.shot { margin: 0; grid-column: span 2; position: relative; cursor: zoom-in; border-radius: 4px; overflow: hidden; background: var(--panel); }
.shot.wide { grid-column: span 3; }
.shot.pano { grid-column: span 3; }
.shot.pano img { aspect-ratio: 32 / 9; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease, filter .3s; filter: saturate(.95); }
.shot:hover img { transform: scale(1.03); filter: saturate(1.1); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(0deg, rgba(8,10,14,.9), rgba(8,10,14,0)); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.shot figcaption b { font: 700 1rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; }
.shot figcaption span { font-size: .75rem; color: var(--muted); text-align: right; }
.shot button { position: absolute; inset: 0; opacity: 0; border: 0; cursor: zoom-in; }
.shot:has(button:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shot, .shot.wide { grid-column: span 1; } .shot.pano { grid-column: 1 / -1; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,6,9,.94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.lightbox figure { margin: 0; display: grid; gap: 12px; max-width: min(1280px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { text-align: center; color: var(--muted); font-size: var(--step--1); }
.lightbox .lb-btn { position: absolute; background: rgba(20,25,34,.8); border: 1px solid var(--line); color: var(--fg); width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: max(16px, env(safe-area-inset-top, 0px)); right: var(--gutter-r); }
.lb-prev { left: var(--gutter-l); top: 50%; }
.lb-next { right: var(--gutter-r); top: 50%; }

/* ---------- presets compare ---------- */
.compare-band { background: var(--panel); }
.compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.compare-copy { display: grid; gap: 18px; min-width: 0; }
.compare-copy p { color: var(--muted); }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; width: max-content; max-width: 100%; }
.tabs button { background: transparent; color: var(--muted); border: 0; padding: 9px 16px; font: 600 .9rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button[aria-pressed="true"] { background: var(--red); color: #fff; }
.preset-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.preset-list li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; font-size: .94rem; color: var(--muted); }
.preset-list b { font: 700 .95rem/1.5 var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--fg); }
.compare { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 4px; overflow: hidden; user-select: none; touch-action: pan-y; background: var(--bg); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .top { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3); pointer-events: none; }
.compare .handle::after { content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: #111; font: 700 .8rem/1 var(--f-body); padding: 8px 10px; border-radius: 20px; white-space: nowrap; }
.compare .tag { position: absolute; top: 12px; font: 700 .78rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; background: rgba(8,10,14,.75); padding: 7px 10px; border-radius: 3px; pointer-events: none; }
.compare .tag.l { left: 12px; }
.compare .tag.r { right: 12px; color: var(--amber); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
.note { font-size: var(--step--1); color: var(--dim); }
@media (max-width: 900px) { .compare-grid { grid-template-columns: 1fr; } }

/* ---------- launcher ---------- */
.launcher { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.launcher .shot-frame img { box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--muted); }
.checks li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border: 2px solid var(--red-hi); transform: rotate(45deg); }
.checks b { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .launcher { grid-template-columns: 1fr; } }

/* ---------- servers ---------- */
.servers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.server-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.server-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.server-card header h3 { font-size: 1.05rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 600 .74rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 20px; border: 1px solid var(--line); color: var(--amber); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.srv-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.srv-table th { text-align: left; font: 600 .74rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 12px 18px 8px; }
.srv-table td { padding: 10px 18px; border-top: 1px solid var(--line); color: var(--dim); }
.srv-table td:first-child { color: var(--muted); }
.srv-empty { padding: 20px 18px 22px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.servers .copy { display: grid; gap: 16px; color: var(--muted); }
.servers .copy h2 { color: var(--fg); }
.servers .copy b { color: var(--fg); font-weight: 600; }
@media (max-width: 860px) { .servers { grid-template-columns: 1fr; } }

/* ---------- patch notes ---------- */
.notes { display: grid; gap: 12px; }
.release { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.release summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 18px 22px; }
.release summary::-webkit-details-marker { display: none; }
.release .ver { font: 800 1.6rem/1 var(--f-display); letter-spacing: .02em; }
.release .sum { color: var(--muted); font-size: .94rem; min-width: 0; }
.release .meta { font-family: var(--f-mono); font-size: .76rem; color: var(--dim); text-align: right; white-space: nowrap; }
.release .chev { transition: transform .2s; color: var(--dim); }
.release[open] .chev { transform: rotate(180deg); }
.release .body { padding: 0 22px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; border-top: 1px solid var(--line); padding-top: 20px; }
.release .body section { min-width: 0; }
.release h3 { margin: 0 0 8px; font: 700 .85rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--red-hi); }
.release ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: .93rem; }
.release ul li::marker { color: var(--dim); }
.release .latest { font: 700 .7rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; background: var(--red); color: #fff; padding: 5px 8px; border-radius: 3px; margin-left: 10px; vertical-align: middle; }
.all-notes { margin-top: 18px; color: var(--muted); font-size: .94rem; }
@media (max-width: 760px) {
  .release summary { grid-template-columns: minmax(0, 1fr) auto; }
  .release .sum { grid-column: 1 / -1; grid-row: 2; }
  .release .meta { display: none; }
  .release .body { grid-template-columns: 1fr; }
}

/* ---------- roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.road-col { border-top: 2px solid var(--line); padding-top: 16px; display: grid; gap: 12px; align-content: start; }
.road-col.done { border-color: var(--ok); }
.road-col.next { border-color: var(--amber); }
.road-col.later { border-color: var(--dim); }
.road-col h3 { display: flex; justify-content: space-between; align-items: baseline; }
.road-col h3 small { font: 500 .78rem/1 var(--f-mono); color: var(--dim); text-transform: none; letter-spacing: 0; }
.road-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .road { grid-template-columns: 1fr; } }

/* ---------- download ---------- */
.download { background:
  linear-gradient(180deg, rgba(13,16,22,.88), rgba(13,16,22,.96)),
  url("img/map-railhouse-640.webp") center / cover; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.dl-main { display: grid; gap: 22px; min-width: 0; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; color: var(--muted); }
.steps li::before { content: counter(s); font: 800 1.1rem/34px var(--f-display); text-align: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--fg); background: var(--panel); }
.steps b { color: var(--fg); font-weight: 600; }
.reqs { background: rgba(20,25,34,.85); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: grid; gap: 14px; }
.reqs dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; font-size: .93rem; }
.reqs dt { color: var(--dim); font: 600 .8rem/1.6 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.reqs dd { margin: 0; color: var(--fg); }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.faq div { display: grid; gap: 8px; align-content: start; }
.faq p { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { background: #090b0f; border-top: 1px solid var(--line); padding-block: 44px max(44px, env(safe-area-inset-bottom, 0px)); }
.foot { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.foot-brand { display: flex; gap: 18px; align-items: flex-start; }
.foot-brand img { width: 84px; height: 84px; flex: none; }
.foot .who { display: grid; gap: 8px; }
.foot .who b { font: 700 1.1rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.foot .who span { color: var(--muted); font-size: .92rem; }
.foot-social { display: flex; gap: 8px; margin-top: 6px; }
.foot-social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); transition: color .15s, border-color .15s; }
.foot-social a:hover { color: var(--fg); border-color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-h { margin: 0 0 4px; font: 600 .78rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .16em; color: var(--fg); }
.foot-cols a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.foot-cols a:hover { color: var(--fg); }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: .8rem; max-width: 100ch; display: grid; gap: 6px; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.on { animation: none; transition: none; transform: none; }
  .shot img, .btn { transition: none; }
}

/* ---------- shared additions: Discord, sub-pages ---------- */
.steps-note { margin: 18px 0 0; color: var(--muted); max-width: 70ch; }
.btn-ghost svg { flex: none; }

.page-head { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(1200px 400px at 85% -10%, rgba(214,59,59,.16), transparent 60%), var(--bg); }
.head-art { position: absolute; inset: 0 0 0 34%; z-index: -1; background-image: var(--art); background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .5; filter: saturate(.85); }
.head-art::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--bg) 0%, rgba(13,16,22,.7) 30%, rgba(13,16,22,.25) 70%, rgba(13,16,22,.45) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(13,16,22,0) 45%),
  radial-gradient(900px 300px at 85% -10%, rgba(214,59,59,.18), transparent 60%); }
@media (max-width: 760px) { .head-art { inset: 0; opacity: .28; background-image: var(--art-s, var(--art)); } .head-art::after { background: linear-gradient(180deg, rgba(13,16,22,.5), var(--bg) 92%); } }
.page-head .wrap { display: grid; gap: 18px; padding-block: clamp(48px, 8vw, 96px) clamp(36px, 6vw, 64px); }
.page-head h1 { font-size: var(--step-4); text-transform: uppercase; max-width: 18ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips a { text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; font: 600 .9rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.chips a:hover { color: var(--fg); border-color: var(--red-hi); }

.map-sec:nth-of-type(even) { background: var(--panel); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.map-grid.flip > .vf { order: 2; }
.map-info { display: grid; gap: 16px; min-width: 0; }
.map-info h2 { font-size: var(--step-4); }
.map-info p { color: var(--muted); max-width: 52ch; }
.map-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 4px 0 0; font-size: .94rem; }
.map-facts dt { color: var(--dim); font: 600 .8rem/1.75 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.map-facts dd { margin: 0; }
.map-hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px dashed var(--line); }
.map-hd-copy { display: grid; gap: 8px; }
.map-hd-copy p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .map-grid, .map-hd { grid-template-columns: 1fr; } .map-grid.flip > .vf { order: 0; } }

.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.modes > div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; gap: 14px; align-content: start; }
.modes ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); }
.modes b { color: var(--fg); font-weight: 600; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }

.cta-band { background: linear-gradient(180deg, rgba(13,16,22,.85), rgba(13,16,22,.95)), url("img/map-northport-640.webp") center / cover; }
.cta { display: grid; gap: 22px; justify-items: start; }

.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.head-row > div { display: grid; gap: 14px; }
.map-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.map-card { position: relative; display: block; border-radius: 4px; overflow: hidden; text-decoration: none; background: var(--panel); }
.map-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s ease; }
.map-card:hover img { transform: scale(1.05); }
.map-card span { position: absolute; inset: auto 0 0 0; padding: 30px 12px 12px; background: linear-gradient(0deg, rgba(8,10,14,.92), rgba(8,10,14,0)); display: grid; gap: 2px; }
.map-card b { font: 700 1.1rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em; }
.map-card small { font-size: .74rem; color: var(--muted); }
@media (max-width: 1000px) { .map-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .map-card img { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .map-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.press-head .press-intro { display: grid; gap: 18px; }
.facts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.facts dt, .facts dd { padding: 12px 18px; border-top: 1px solid var(--line); margin: 0; }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }
.facts dt { color: var(--dim); font: 600 .8rem/1.75 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.facts a { color: var(--fg); }
@media (max-width: 860px) { .facts-grid { grid-template-columns: 1fr; } }
.logo-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.logo-card { margin: 0; background: repeating-conic-gradient(#151a22 0% 25%, #11151c 0% 50%) 0 0 / 22px 22px; border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: grid; gap: 16px; justify-items: center; align-content: center; }
.logo-card img { max-height: 260px; width: auto; }
.logo-card figcaption { color: var(--dim); font-size: var(--step--1); text-align: center; }
@media (max-width: 760px) { .logo-row { grid-template-columns: 1fr; } }
.press-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.press-shot { display: grid; gap: 8px; text-decoration: none; color: var(--muted); font-size: .85rem; }
.press-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); transition: border-color .2s; }
.press-shot:hover img { border-color: var(--red-hi); }
.press-shot:hover { color: var(--fg); }
@media (max-width: 900px) { .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.map-grid.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
@media (max-width: 900px) { .map-grid.flip { grid-template-columns: 1fr; } }

/* ---------- v3: guide, weapons, news, servers, leaderboards, trailer, NL ---------- */

/* page sections with a side index */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc-toc { position: sticky; top: 84px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.doc-toc a { text-decoration: none; color: var(--dim); font: 600 .9rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .1em; padding: 8px 14px; border-left: 2px solid transparent; margin-left: -1px; }
.doc-toc a:hover { color: var(--fg); border-left-color: var(--red-hi); }
.doc-body { display: grid; gap: clamp(48px, 7vw, 80px); }
.doc-body > section { display: grid; gap: 18px; scroll-margin-top: 80px; }
.doc-body h2 { font-size: var(--step-3); text-transform: uppercase; }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body p b, .doc-body li b { color: var(--fg); font-weight: 600; }
.doc-body ul, .doc-body ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .doc-toc { position: static; display: flex; flex-wrap: wrap; border-left: 0; gap: 8px; } .doc-toc a { border: 1px solid var(--line); border-radius: 20px; padding: 8px 13px; margin: 0; font-size: .82rem; } }

.keys { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); font-size: .95rem; }
.keys caption { caption-side: top; }
.keys caption { text-align: left; font: 600 .78rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); padding: 0 0 10px; }
.keys th, .keys td { padding: 11px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.keys tr:first-child th, .keys tr:first-child td { border-top: 0; }
.keys th { width: 38%; font-weight: 500; color: var(--fg); }
.keys td { color: var(--muted); }
.keys kbd { margin-right: 4px; }
.keys .soon { font: 600 .7rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(231,167,60,.4); border-radius: 3px; padding: 3px 5px; margin-left: 6px; white-space: nowrap; }
.key-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .key-grid { grid-template-columns: 1fr; } }
.tip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tip { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.tip h3 { font-size: 1.1rem; }
.tip p { font-size: .95rem; }
@media (max-width: 760px) { .tip-grid { grid-template-columns: 1fr; } }
.speeds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.speeds div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 6px; }
.speeds b { font: 700 1.6rem/1 var(--f-display); color: var(--fg); }
.speeds span { font-size: .82rem; color: var(--dim); }
.speeds i { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--red), var(--amber)); }
@media (max-width: 760px) { .speeds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.callout { border: 1px solid rgba(231,167,60,.35); background: rgba(231,167,60,.06); border-radius: 8px; padding: 16px 18px; color: var(--muted); font-size: .95rem; }
.callout b { color: var(--amber); }

/* weapons */
.filter { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wgroup { display: grid; gap: 18px; }
.wgroup + .wgroup { margin-top: 56px; }
.wgroup > header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.wgroup > header h2 { font-size: var(--step-2); text-transform: uppercase; }
.wgroup > header p { color: var(--dim); font-size: .92rem; }
.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wgrid { grid-template-columns: 1fr; } }
.wcard { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 16px; display: grid; gap: 14px; align-content: start; }
.wcard header { display: grid; gap: 4px; }
.wcard h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.wcard .full { color: var(--dim); font-size: .86rem; }
.wtags { display: flex; flex-wrap: wrap; gap: 6px; }
.wtags span { font: 600 .72rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; padding: 5px 7px; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); }
.wtags .t-specops { color: #7fb2ff; border-color: rgba(127,178,255,.35); }
.wtags .t-terror { color: #ff8a7a; border-color: rgba(255,138,122,.35); }
.wtags .t-both { color: var(--fg); }
.wstats { display: grid; gap: 9px; margin: 0; }
.wstats div { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; font-size: .86rem; }
.wstats dt { color: var(--dim); }
.wstats dd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 70px; align-items: center; gap: 10px; }
.wstats dd b { font-weight: 400; text-align: right; color: var(--fg); font-family: var(--f-mono); font-size: .82rem; }
.wstats .bar { height: 5px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.wstats .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-hi)); border-radius: 3px; }
.wmodes { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.wmodes span { font: 500 .78rem/1 var(--f-mono); color: var(--amber); background: rgba(231,167,60,.08); border-radius: 3px; padding: 5px 7px; }
.wcard.equip .wstats { display: none; }
.wcard p { color: var(--muted); font-size: .92rem; }

/* servers + leaderboards */
.pill.ok { color: var(--ok); }
.server-card.full .srv-table td { color: var(--muted); }
.srv-table td b { color: var(--fg); font-weight: 600; }
.srv-table a { color: var(--fg); }
.srv-table .addr { display: block; margin-top: 4px; background: none; border: 0; padding: 0; font: 400 .78rem/1.2 var(--f-mono); color: var(--dim); cursor: pointer; }
.srv-table .addr:hover { color: var(--fg); }
.srv-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 3px; font: 600 .66rem/1.3 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); vertical-align: 2px; }
.srv-tag.ranked { color: #e8c15a; border-color: rgba(232, 193, 90, .45); }
.srv-tag.need { color: #7fd18b; border-color: rgba(127, 209, 139, .5); }
.srv-tag.verified { color: #7fd6a0; border-color: rgba(79, 191, 122, .45); }
.srv-tag.eac { color: #8fc4ff; border-color: rgba(143, 196, 255, .45); }
.srv-tag.eac::before { content: ""; display: inline-block; width: .8em; height: .9em; margin-right: 4px; vertical-align: -1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M8 0 0 3v6c0 4.6 3.4 8.1 8 9 4.6-.9 8-4.4 8-9V3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M8 0 0 3v6c0 4.6 3.4 8.1 8 9 4.6-.9 8-4.4 8-9V3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.board h3 .srv-tag { vertical-align: 3px; }
.official .srv-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-self: start; }
.official .srv-tags .srv-tag { margin: 0; }
.srv-join { margin-left: 8px; font: 600 .78rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--red-hi); text-decoration: none; white-space: nowrap; }
.srv-join:hover, .srv-join:focus-visible { text-decoration: underline; }
.official .srv-join { margin: 0; justify-self: start; }
.srv-bots { color: var(--dim); font-size: .8rem; }
.srv-updated { padding: 10px 18px; font-size: .8rem; color: var(--dim); border-top: 1px solid var(--line); }
.srv-foot { padding: 12px 18px; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.lb-table td.rank { font-family: var(--f-mono); color: var(--amber); width: 48px; }
.lb-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lb-tools .tabs button { padding: 8px 12px; font-size: .82rem; }
.lb-search input { background: var(--panel); color: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; min-width: 200px; }
.lb-table .badge { display: inline-block; font: 700 .72rem/1 var(--f-mono); color: var(--amber); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; vertical-align: 1px; }
.lb-table a.who { color: inherit; text-decoration: none; font-weight: 700; }
.lb-table a.who:hover { text-decoration: underline; }
@media (max-width: 600px) { .lb-tools .tabs { overflow-x: auto; scrollbar-width: none; } .lb-tools .tabs button { flex: 0 0 auto; } .lb-search, .lb-search input { width: 100%; min-width: 0; } }
.schema { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; overflow-x: auto; font: 400 .82rem/1.6 var(--f-mono); color: var(--muted); margin: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-cards div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.stat-cards b { font: 700 1.05rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.stat-cards span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stat-cards { grid-template-columns: 1fr; } }

/* news */
.news-tools { display: flex; flex-wrap: wrap; gap: 12px; }
.rel-link { margin: 4px 0 0; font-size: .88rem; }
.rel-link a { color: var(--muted); }
[data-releases-status] { color: var(--amber); font-size: .9rem; }

/* trailer */
.trailer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .trailer-grid { grid-template-columns: 1fr; } }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s; }
.yt button { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: #fff; }
.yt button span { width: 84px; height: 84px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 10px 40px -8px rgba(214,59,59,.8); transition: transform .2s, background .2s; }
.yt button:hover span { transform: scale(1.06); background: var(--red-hi); }
.yt:hover img { opacity: .9; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-note { color: var(--dim); font-size: .84rem; }
.page-head + .band { padding-top: clamp(32px, 5vw, 56px); }

/* media page */
.media-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.media-count { color: var(--dim); font: 500 .82rem/1 var(--f-mono); }
.media-grid .shot[hidden] { display: none; }
.media-press { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 4vw, 36px); }
.media-press h2 { margin: 8px 0; }
.media-press .lede { margin: 0; }
@media (max-width: 600px) { .media-tools .tabs { overflow-x: auto; scrollbar-width: none; } .media-tools .tabs button { flex: 0 0 auto; } }

/* player profile page */
.pf-back { color: var(--muted); text-decoration: none; font-size: .88rem; width: max-content; }
.pf-back:hover { color: var(--fg); }
.pf-head h1 { max-width: none; overflow-wrap: anywhere; }
.pf-rank { display: grid; gap: 10px; max-width: 560px; }
.pf-rank-top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.pf-rank-top b { font: 700 1.2rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.pf-rank .badge { display: inline-block; font: 700 .8rem/1 var(--f-mono); color: var(--amber); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; }
.pf-rank .xpbar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.pf-rank .xpbar i { display: block; height: 100%; background: var(--amber); }
.pf-rank .muted, .pf-chart .muted { color: var(--muted); font-size: .9rem; margin: 0; }
.pf-search { max-width: 420px; }
.pf-search input { width: 100%; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pf-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pf-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.pf-stats span { color: var(--dim); font: 600 .74rem/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.pf-stats b { font: 700 1.5rem/1.15 var(--f-mono); }
.pf-stats small { color: var(--muted); font-size: .8rem; }
.pf-trend, .pf-matches { grid-column: 1 / -1; }
.pf-weapons { grid-column: 1 / -1; }
.pf-chart { position: relative; padding: 16px 18px 16px 52px; }
.pf-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.pf-chart .line { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pf-chart .area { fill: rgba(231,167,60,.1); }
.pf-chart circle.w { fill: var(--ok); }
.pf-chart circle.l { fill: var(--red-hi); }
.pf-scale { position: absolute; left: 14px; top: 16px; bottom: 16px; display: flex; flex-direction: column; justify-content: space-between; font: 500 .74rem/1 var(--f-mono); color: var(--dim); }
.pf-bar { display: block; height: 3px; margin-top: 6px; background: var(--panel-2); border-radius: 2px; overflow: hidden; max-width: 220px; }
.pf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-hi)); }
.pf-body .srv-table td.up { color: #6fcf7f; } .pf-body .srv-table td.down { color: #e06a5a; }
.page-head + .pf-results, .pf-results + .pf-body, .page-head + .pf-results[hidden] + .pf-body { padding-top: clamp(24px, 4vw, 40px); }
.pf-foot { grid-column: 1 / -1; margin: 0; }
.pf-copy { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.pf-copy:hover { color: var(--fg); }
.lb-table a.who { color: inherit; }
@media (max-width: 520px) { .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-chart { padding-left: 44px; } }
.pf-body .srv-table td, .pf-body .srv-table th { white-space: nowrap; }

/* ---------- studio ---------- */
.studio-head { position: relative; overflow: hidden; isolation: isolate; }
.studio-head::after { content: ""; position: absolute; z-index: -1; right: max(-80px, calc(50% - 720px)); top: 50%; width: min(560px, 60vw); aspect-ratio: 1; transform: translateY(-50%); background: url(img/team-terminus.webp) center / contain no-repeat; opacity: .07; filter: grayscale(.3); pointer-events: none; }
.studio-head .wrap { justify-items: start; }
.pull { margin: 22px 0 0; padding-left: 18px; border-left: 3px solid var(--red-hi); font: 700 var(--step-2)/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--fg); max-width: 18ch; }
@media (max-width: 640px) { .studio-head::after { display: none; } }
.studio-emblem { width: 88px; height: 88px; margin-bottom: 4px; }
.studio-story, .studio-join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.studio-join { align-items: center; }
.studio-join .hero-cta { justify-content: flex-end; }
.studio-copy p { margin: 0 0 1em; color: var(--muted); font-size: var(--step-1); max-width: 62ch; }
.studio-copy p:last-child { margin-bottom: 0; }
.clans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.clan { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.clan h3 { margin: 0; font: 700 var(--step-1)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.clan p { margin: 0; color: var(--muted); }
.clan-tag { font: 500 1.6rem/1 var(--f-mono); color: var(--amber); }
.clan.now { border-color: rgba(239, 80, 80, .45); }
.clan.now .clan-tag { color: var(--red-hi); font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.member { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.member-photo { width: 180px; height: 180px; border-radius: 6px; object-fit: cover; display: block; background: var(--panel-2); }
.member-mono { display: grid; place-items: center; font: 800 5rem/1 var(--f-display); color: var(--line); background: radial-gradient(circle at 30% 20%, rgba(214,59,59,.18), transparent 60%), var(--panel-2); border: 1px solid var(--line); }
.member-body { display: grid; gap: 4px; }
.member-body h3 { margin: 0; font: 800 var(--step-2)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.member-name { color: var(--fg); font-weight: 500; }
.member-role { font: 600 var(--step--1)/1.4 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--red-hi); margin-top: 2px; }
.member-body p { margin: 10px 0 0; color: var(--muted); }
@media (max-width: 1000px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .studio-story, .studio-join, .clans { grid-template-columns: 1fr; } .studio-join .hero-cta { justify-content: flex-start; } }
@media (max-width: 520px) { .member { grid-template-columns: 1fr; } .member-photo { width: 100%; height: auto; aspect-ratio: 1; } }

/* ---------- scroll reveal (enabled by site.js; content stays visible without JS) ---------- */
.js-reveal .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js-reveal .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .rv { opacity: 1; transform: none; transition: none; } .slide.on { animation: none; } }

/* ---------- layout and small-screen refinements ---------- */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
@media (max-width: 520px) { .news-tools { display: flex; flex-wrap: wrap; gap: 10px; } .news-tools .btn { padding: 10px 14px; font-size: .88rem; } }
@media print { .js-reveal .rv { opacity: 1 !important; transform: none !important; } .nav, .head-art, .slides { display: none; } }

/* ---------- 2026-11 visual pass ---------- */
.nw { white-space: nowrap; }
@media (max-width: 380px) { .nw { white-space: normal; } }
/* roadmap columns share the full width, however many there are */
.road { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 28px; }
.road-col li { position: relative; padding-left: 18px; }
.road-col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; border: 1.5px solid var(--dim); }
.road-col.done li::before { background: var(--ok); border-color: var(--ok); }
.road-col.next li::before { border-color: var(--amber); }
@media (max-width: 860px) { .road { grid-auto-flow: row; grid-auto-columns: auto; } }
/* folded patch notes on the home page */
.release .body.clamp { max-height: 600px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.notes-more { display: flex; margin: -6px auto 22px; }
/* live player count in the hero */
.hero-meta .live { color: var(--fg); font-weight: 500; }
.hero-meta .live::before { background: var(--ok); animation: live-pulse 2s infinite; }
/* a fading dot instead of a growing shadow: opacity runs on the compositor and repaints nothing */
@keyframes live-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .hero-meta .live::before { animation: none; } }
/* official servers */
.official { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.official article { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(214, 59, 59, .10), transparent 55%), var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.official article::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--red-hi); }
.official .srv-tag { margin: 0; justify-self: start; }
.official h3 { font-size: var(--step-2); }
.official p { margin: 0; color: var(--muted); }
.official .addr, .board .addr { justify-self: start; margin-top: 4px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font: 500 .9rem/1 var(--f-mono); color: var(--fg); cursor: pointer; transition: border-color .15s; }
.official .addr:hover, .board .addr:hover { border-color: var(--amber); }
.official .addr::after, .board .addr::after { content: " ⧉"; color: var(--dim); }
@media (max-width: 760px) { .official { grid-template-columns: 1fr; } }

/* ---------- 2026-11 round 3 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* top five on the home page */
.top-players { margin-top: 28px; }
.top-players header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.top-players header a { margin-left: auto; color: var(--muted); font-size: var(--step--1); }
.top-players header a::after { content: " →"; }
.top-players ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.top-players li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 6px; align-content: start; position: relative; }
.top-players li:first-child { border-color: rgba(231, 167, 60, .55); background: linear-gradient(160deg, rgba(231, 167, 60, .12), transparent 60%), var(--panel); }
.top-players .pos { font: 800 1.6rem/1 var(--f-display); color: var(--dim); }
.top-players li:first-child .pos { color: var(--amber); }
.top-players .who { font-weight: 600; color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-players .who:hover { text-decoration: underline; }
.top-players .badge { position: absolute; top: 16px; right: 16px; font: 700 .72rem/1 var(--f-mono); color: var(--amber); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; }
.top-players .stat { color: var(--dim); font-size: .82rem; }
.top-players .stat b { color: var(--fg); font-family: var(--f-mono); font-weight: 500; }
@media (max-width: 960px) { .top-players ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } .top-players li:first-child { grid-column: 1 / -1; } }
/* weapon comparison */
.wcard header { position: relative; padding-right: 92px; }
.wc-add { position: absolute; top: -2px; right: 0; padding: 5px 9px; background: none; border: 1px solid var(--line); border-radius: 4px; font: 600 .7rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.wc-add::before { content: "+ "; }
.wc-add:hover { color: var(--fg); border-color: var(--dim); }
.wc-add[aria-pressed="true"] { color: #0d1016; background: var(--amber); border-color: var(--amber); }
.wc-add[aria-pressed="true"]::before { content: "✓ "; }
.wcard.picked { border-color: rgba(231, 167, 60, .6); }
.wcompare { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(13, 16, 22, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--amber); box-shadow: 0 -12px 40px rgba(0, 0, 0, .45); padding: 16px 0 calc(14px + env(safe-area-inset-bottom, 0px)); max-height: 60vh; overflow: auto; }
.wcompare header { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.wcompare h2 { font-size: var(--step-1); }
.wcompare .wc-clear { margin-left: auto; padding: 8px 14px; }
.wcompare table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.wcompare th, .wcompare td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wcompare thead th, .wcompare tr:first-child th { font: 700 1rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.wcompare tr th[scope="row"] { color: var(--muted); font-weight: 500; width: 1%; }
.wcompare td { font-family: var(--f-mono); }
.wcompare td small { color: var(--dim); }
.wcompare td.best { color: var(--amber); font-weight: 600; }
.wc-x { margin-left: 8px; background: none; border: 0; color: var(--dim); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.wc-x:hover { color: var(--fg); }
.wcompare .wnote { margin: 8px 0 0; color: var(--dim); font-size: .78rem; }
body.has-compare footer { padding-bottom: 320px; }
.wc-min { background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.wc-min svg { transform: rotate(180deg); transition: transform .2s; }
.wcompare.min .wc-min svg { transform: none; }
.wcompare.min .table-scroll, .wcompare.min .wnote { display: none; }
.wcompare.min header { margin-bottom: 0; }
@media (max-width: 640px) {
  .wcompare { max-height: 52vh; padding-top: 12px; }
  .wcompare header .muted { display: none; }
  .wcompare th, .wcompare td { padding: 7px 8px; font-size: .84rem; }
  .wcompare tr th[scope="row"] { white-space: normal; min-width: 92px; }
  .wc-add { padding: 5px 7px; }
}

/* ------------------------------------------------ competitive */
.steps-flow { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.steps-flow li { counter-increment: st; background: var(--bg); padding: 24px 24px 26px; display: grid; gap: 10px; align-content: start; position: relative; }
.steps-flow li::before { content: counter(st, decimal-leading-zero); font: 800 2.4rem/1 var(--f-display); color: var(--line); position: absolute; top: 18px; right: 20px; }
.steps-flow b { font: 700 var(--step-1)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--fg); }
.steps-flow b::before { content: ""; display: block; width: 28px; height: 3px; background: var(--red); margin-bottom: 12px; }
.steps-flow p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps-flow code, .cmd-table code, .host-steps code { white-space: nowrap; }
@media (max-width: 900px) { .steps-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-flow { grid-template-columns: 1fr; } }
.cmd-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cmd-table th, .cmd-table td { text-align: left; vertical-align: top; padding: 10px 0; border-top: 1px solid var(--line); }
.cmd-table tr:first-child th, .cmd-table tr:first-child td { border-top: 0; }
.cmd-table th { font-weight: 400; padding-right: 16px; white-space: nowrap; }
.cmd-table td { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split > div:first-child { display: grid; gap: 18px; }
.host-steps { list-style: none; counter-reset: h; margin: 0; padding: 0; display: grid; gap: 14px; }
.host-steps li { counter-increment: h; position: relative; padding: 6px 0 0 48px; min-height: 34px; color: var(--muted); }
.host-steps li::before { position: absolute; left: 0; top: 0; content: counter(h); font: 800 1.1rem/34px var(--f-display); text-align: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--fg); background: var(--panel); }
.cvar-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; gap: 14px; }
.cvar-card .cmd-table th { padding-right: 12px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .modes { grid-template-columns: 1fr; }
  .cmd-table th, .cmd-table td { display: block; padding: 0; border: 0; }
  .cmd-table tr { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
  .cmd-table tr:first-child { border-top: 0; }
  .cmd-table td { margin-top: 4px; }
}
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; background: linear-gradient(120deg, rgba(214,59,59,.14), rgba(20,25,34,0) 60%), var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(24px, 4vw, 44px); }
.cta-strip > div { display: grid; gap: 12px; max-width: 62ch; }

/* ------------------------------------------------ devlog */
.post-list { display: grid; gap: 18px; }
.post-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .15s; }
.post-card:hover { border-color: #3a4456; }
.post-art { display: block; background: var(--panel-2); }
.post-art img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.post-card > div { padding: 22px 26px 24px; display: grid; gap: 10px; align-content: start; }
.post-card h2 { font-size: var(--step-2); }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--red-hi); }
.post-card p { margin: 0; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: var(--step--1); color: var(--dim); margin: 0; }
.post-meta .tag { font: 600 .72rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--amber); border: 1px solid rgba(231,167,60,.4); border-radius: 3px; padding: 4px 7px; }
.post-card .more { font: 600 .9rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--red-hi); text-decoration: none; margin-top: 4px; }
.post-card .more::after { content: " \2192"; }
@media (max-width: 760px) { .post-card { grid-template-columns: 1fr; } }
.post-head h1 { max-width: 24ch; font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
.post-head .back { font: 600 .85rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); text-decoration: none; }
.post-head .back::before { content: "\2190  "; }
.post-head .back:hover { color: var(--fg); }
.prose { max-width: 720px; font-size: 1.06rem; line-height: 1.7; color: #c9ced8; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: var(--step-2); margin-top: 1.9em; color: var(--fg); }
.prose ul { padding-left: 1.2em; margin-bottom: 0; }
.prose li + li { margin-top: .35em; }
.prose strong { color: var(--fg); }
.prose a { color: var(--red-hi); }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; color: var(--fg); }
.prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose em { color: var(--fg); }
.prose code { font: .92em var(--f-mono); background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; color: var(--fg); }
.prose h2[id] { scroll-margin-top: 90px; }
.prose figure { margin: 2em 0 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
.prose figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--dim); line-height: 1.5; }
.prose .compare { width: 100%; }
.callout { margin: 1.6em 0 0; padding: 18px 22px; border-left: 3px solid var(--amber); background: var(--panel); border-radius: 0 6px 6px 0; }
.callout p { margin: 0; color: var(--fg); }

/* devlog: featured post, topic filter, status, contents, pager */
.post-card[hidden] { display: none; }
.post-card.featured { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border-color: #333d4e; }
.post-card.featured > div { padding: clamp(24px, 3vw, 38px); align-content: center; }
.post-card.featured h2 { font-size: var(--step-3); line-height: 1.05; }
.post-card.featured p { font-size: 1.04rem; }
.post-list.filtered .post-card.featured { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.post-list.filtered .post-card.featured h2 { font-size: var(--step-2); }
@media (max-width: 900px) { .post-card.featured, .post-list.filtered .post-card.featured { grid-template-columns: 1fr; } }
.post-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.post-filter[hidden] { display: none; }
.post-filter button { font: 600 .82rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; cursor: pointer; }
.post-filter button small { font: inherit; color: var(--dim); margin-left: 4px; letter-spacing: 0; }
.post-filter button:hover { color: var(--fg); border-color: #3a4456; }
.post-filter button[aria-pressed="true"] { color: var(--fg); border-color: var(--red); background: rgba(214,59,59,.14); }
.post-meta .state { font: 600 .72rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; border-radius: 3px; padding: 4px 7px; }
.post-meta .state.shipped { color: var(--ok); border: 1px solid rgba(79,191,122,.4); }
.post-meta .state.testing { color: #8fb4ff; border: 1px solid rgba(143,180,255,.4); }
.post-body { display: grid; gap: 34px; }
.post-toc { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; max-width: 720px; }
.post-toc ol { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .95rem; }
.post-toc a { color: var(--muted); text-decoration: none; }
.post-toc a:hover { color: var(--fg); }
@media (min-width: 1100px) {
  .post-body { grid-template-columns: minmax(0, 720px) 250px; justify-content: space-between; column-gap: 56px; }
  .post-toc { grid-column: 2; grid-row: 1 / span 3; align-self: start; position: sticky; top: 96px; }
  .post-body > .prose, .post-rate, .post-end, .post-pager { grid-column: 1; }
}
/* devlog star rating (tools/server-bridge/tcp_devlog.py) */
.post-rate { max-width: 720px; display: grid; gap: 10px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.post-rate[hidden] { display: none; }
.post-rate .rate-q { margin: 0; font: 700 var(--step-1)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.post-rate .rate-note { margin: 0; color: var(--dim); font-size: var(--step--1); }
.post-rate .rate-sum { margin: -4px 0 0; color: var(--muted); font-size: var(--step--1); }
.post-rate .rate-sum b { color: var(--amber); font-weight: 600; }
.post-rate .rate-sum[hidden] { display: none; }
.rate-stars { display: flex; gap: 4px; }
.rate-stars button { width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; color: #3a4456; font-size: 0; transition: color .12s, transform .12s; }
.rate-stars button::before { content: "\2605"; font-size: 32px; line-height: 40px; }
.rate-stars button.on, .rate-stars:hover button { color: var(--amber); }
.rate-stars button:hover ~ button { color: #3a4456; }
.rate-stars button:hover { transform: scale(1.08); }
.rate-stars button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.rate-stars[aria-busy="true"] { opacity: .6; pointer-events: none; }
.post-meta .post-stat { color: var(--muted); }
.post-meta .post-stat b { color: var(--amber); font-weight: 600; }
.post-meta .post-stat .top { font: 600 .72rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--amber); background: rgba(231,167,60,.12); border: 1px solid rgba(231,167,60,.4); border-radius: 3px; padding: 4px 7px; margin-right: 8px; }
.post-end { max-width: 720px; border-top: 1px solid var(--line); padding-top: 26px; display: grid; gap: 14px; }
.post-end p { margin: 0; color: var(--muted); }
.post-end button.btn { color: var(--fg); }
.post-pager { max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-pager a { display: grid; gap: 6px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--fg); font-weight: 600; line-height: 1.35; }
.post-pager a:hover { border-color: #3a4456; }
.post-pager small { font: 600 .74rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.post-pager .prev small::before { content: "\2190  "; }
.post-pager .next { text-align: right; }
.post-pager .next small::after { content: "  \2192"; }
@media (max-width: 560px) { .post-pager { grid-template-columns: 1fr; } .post-pager .next { text-align: left; } }

/* ------------------------------------------------ live boards and results */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.board { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: grid; align-content: start; }
.board header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.board header > div { display: grid; gap: 6px; min-width: 0; }
.board h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board header p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.board-count { font: 600 1.1rem/1 var(--f-display); color: var(--muted); text-align: right; flex: none; white-space: nowrap; }
.board-count b { font-size: 1.9rem; color: var(--fg); }
.board-count small { display: block; margin-top: 6px; font: 400 .75rem/1 var(--f-body); color: var(--dim); }
.board-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.board-table th { font: 600 .72rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); text-align: right; padding: 12px 20px 8px; }
.board-table td { padding: 8px 20px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.board-table th:nth-child(2), .board-table td.who { text-align: left; width: 100%; }
.board-table th:first-child, .board-table td.pos { text-align: left; padding-right: 0; color: var(--dim); }
.board-table tbody tr:first-child td.who { color: var(--amber); font-weight: 600; }
.board-table td.ping { color: var(--muted); }
.board-empty { margin: 0; padding: 18px 20px; color: var(--muted); font-size: .92rem; }
.board .addr { margin: 8px 20px 18px; }
.results ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.results ol:empty { display: none; }
.results li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--panel); padding: 12px 18px 12px 12px; }
.results img { width: 120px; height: 68px; object-fit: cover; border-radius: 4px; display: block; }
.r-main, .r-side { display: grid; gap: 6px; min-width: 0; }
.r-side { justify-items: end; text-align: right; }
.results p { margin: 0; }
.r-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 700 var(--step-1)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.r-top a { text-decoration: none; }
.r-sub, .r-when { color: var(--muted); font-size: var(--step--1); }
.res { font: 600 .72rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 3px; padding: 4px 7px; color: var(--muted); }
.res.specops { color: #7fb2ff; border-color: rgba(127,178,255,.4); }
.res.terrorists { color: var(--red-hi); border-color: rgba(239,80,80,.4); }
.mvp { font-size: .92rem; }
.mvp b { font: 600 .72rem/1 var(--f-display); letter-spacing: .14em; color: var(--amber); margin-right: 4px; }
.results .srv-empty { margin-top: 0; }
@media (max-width: 640px) {
  .results li { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .results img { width: 84px; height: 48px; }
  .r-side { grid-column: 1 / -1; justify-items: start; text-align: left; display: flex; flex-wrap: wrap; gap: 4px 12px; }
}
.results { margin-top: clamp(24px, 3vw, 36px); }

/* ------------------------------------------------ home promo cards */
.promo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.promo-card { position: relative; isolation: isolate; display: grid; align-content: end; min-height: 320px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; background: var(--panel); transition: border-color .2s, transform .2s; }
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.promo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,16,22,0) 0%, rgba(13,16,22,.55) 45%, rgba(13,16,22,.96) 100%); }
.promo-card > div { padding: 28px; display: grid; gap: 10px; }
.promo-card h3 { font-size: var(--step-2); }
.promo-card p { margin: 0; color: #c9ced8; max-width: 52ch; }
.promo-card .more { font: 600 .9rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--red-hi); margin-top: 4px; }
.promo-card .more::after { content: " \2192"; }
.promo-card:hover { border-color: #3a4456; transform: translateY(-2px); }
.promo-card:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } .promo-card { min-height: 300px; } .promo-card::before { background: linear-gradient(180deg, rgba(13,16,22,.2) 0%, rgba(13,16,22,.88) 42%, rgba(13,16,22,.97) 100%); } }

/* ------------------------------------------------ polish */
::selection { background: rgba(214,59,59,.45); color: #fff; }
html { scrollbar-color: #2e3747 var(--bg); }
.section-head .eyebrow, .page-head .eyebrow, .promo-card .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.section-head .eyebrow::before, .page-head .eyebrow::before, .promo-card .eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; flex: none; }
.feature { transition: background-color .2s; }
.feature:hover { background: #10141b; }
.feature svg { transition: transform .2s; }
.feature:hover svg { transform: translateY(-2px); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--red) 0, rgba(214,59,59,0) 40%); }
.btn:active { transform: translateY(1px); }

/* ------------------------------------------------ map layouts */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: clamp(32px, 5vw, 56px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.layout-copy { display: grid; gap: 14px; position: sticky; top: 84px; }
.layout-copy p { margin: 0; color: var(--muted); font-size: .95rem; }
.lo-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button, .lo-toggle { font: 600 .82rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em; background: var(--panel); color: var(--muted); border: 0; padding: 10px 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
.lo-toggle { border: 1px solid var(--line); border-radius: 6px; }
.lo-toggle[aria-pressed="true"] { color: var(--fg); border-color: var(--muted); }
.lo-toggle::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; border: 1px solid currentColor; margin-right: 8px; vertical-align: 1px; }
.lo-toggle[aria-pressed="true"]::before { background: var(--amber); border-color: var(--amber); }
.lo-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step--1); color: var(--muted); }
.lo-legend .k { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.lo-legend .t { background: #ef5050; } .lo-legend .s { background: #5b9bff; }
.layout-fig { margin: 0; position: relative; aspect-ratio: var(--ar); width: min(100%, calc(82vh * var(--ar))); justify-self: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
.layout-fig img, .layout-fig svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.layout-fig svg text { font-family: var(--f-display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; paint-order: stroke; stroke: rgba(9,11,15,.92); stroke-width: .32em; stroke-linejoin: round; fill: #fff; }
.lo-spawn circle { stroke: rgba(9,11,15,.8); stroke-width: 1.5; }
.lo-spawn.terrorists circle, .lo-spawn.terrorists text { fill: #ff6b6b; }
.lo-spawn.specops circle, .lo-spawn.specops text { fill: #6fa8ff; }
.lo-bomb rect { fill: rgba(231,167,60,.18); stroke: var(--amber); stroke-width: 3; }
.lo-bomb .badge { fill: var(--amber); stroke: rgba(9,11,15,.9); stroke-width: 3; }
.lo-bomb text.letter { fill: #11141a; stroke: none; font-weight: 800; }
.lo-bomb text { fill: var(--amber); }
.lo-flag circle { stroke: rgba(9,11,15,.9); stroke-width: 3; }
.lo-flag path { fill: #fff; stroke: none; }
.lo-flag .terrorists circle { fill: #e04848; } .lo-flag .specops circle { fill: #3f7fe0; }
.lo-call text { fill: #e8eaef; font-weight: 600; }
.layout[data-mode="bomb"] .lo-flag, .layout[data-mode="flag"] .lo-bomb, .layout.no-call .lo-call { display: none; }
/* map guides v2: run routes, run-time tables and the "who gets there first" overlay (tools/website/maproutes.py) */
.layout-fig img.lo-first { opacity: 0; transition: opacity .35s ease; mix-blend-mode: screen; pointer-events: none; }
.layout.opt-first .layout-fig img.lo-first { opacity: .72; }
.lo-route polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: calc(var(--u) * .42); }
.lo-route polyline.halo { stroke: rgba(9,11,15,.78); stroke-width: calc(var(--u) * .95); }
.lo-route .terrorists polyline:not(.halo) { stroke: #ff6b6b; stroke-dasharray: calc(var(--u) * 1.4) calc(var(--u) * .8); }
.lo-route .specops polyline:not(.halo) { stroke: #6fa8ff; stroke-dasharray: calc(var(--u) * 1.4) calc(var(--u) * .8); }
.layout-fig .lo-route text { text-transform: none; }
.lo-route circle { stroke: rgba(9,11,15,.9); stroke-width: calc(var(--u) * .25); }
.lo-route .terrorists circle, .lo-route .terrorists text { fill: #ff8a80; }
.lo-route .specops circle, .lo-route .specops text { fill: #8dbaff; }
.layout:not(.opt-routes) .lo-route, .layout[data-mode="bomb"] .lo-route-flag, .layout[data-mode="flag"] .lo-route-bomb { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .layout.opt-routes .lo-route polyline:not(.halo) { animation: lo-march 1.6s linear infinite; }
  @keyframes lo-march { to { stroke-dashoffset: calc(var(--u) * -2.2); } }
}
.lo-first-key { display: none; }
.layout.opt-first .lo-first-key { display: flex; }
.lo-legend .ft { background: #e84a3c; border-radius: 2px; } .lo-legend .fs { background: #4a98ec; border-radius: 2px; } .lo-legend .fb { background: #ffecbe; border-radius: 2px; }
.lo-times { display: grid; gap: 8px; margin-top: 4px; }
.lo-times h4 { margin: 0; font: 600 .78rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.lo-times table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.lo-times th, .lo-times td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.lo-times thead th { font: 600 .74rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.lo-times tbody th { font-weight: 600; color: var(--fg); }
.lo-times td { color: var(--fg); font-weight: 600; }
.lo-times .k { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.lo-times .k.t { background: #ef5050; } .lo-times .k.s { background: #5b9bff; }
.lo-times .note { font-size: var(--step--1); }
.layout[data-mode="bomb"] .lo-t-flag, .layout[data-mode="flag"] .lo-t-bomb { display: none; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .layout-copy { position: static; } .layout-fig { width: 100%; } }

/* ---------- pass 5: captions, headings, touch targets ---------- */
.trio figcaption, .shot figcaption { flex-wrap: wrap; row-gap: 4px; }
.trio figcaption span, .shot figcaption span { margin-left: auto; }
.server-card header h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }
.post-card { position: relative; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card h2 a:focus-visible { outline: none; }
.post-card:has(h2 a:focus-visible) { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.post-card .more { justify-self: start; padding: 6px 0; margin: -2px 0 -6px; }
.post-card:hover .more { color: var(--fg); }
.post-art { overflow: hidden; }
.post-art img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .post-art img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .post-card:hover .post-art img { transform: none; } }
.wc-add { padding: 8px 10px; top: -6px; }
.pf-back { padding: 6px 0; }
.post-head .back { display: inline-block; padding: 8px 0; margin: -8px 0; }
.trio figcaption, .shot figcaption { text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.shot.wide figcaption { padding-top: 40px; background: linear-gradient(0deg, rgba(8,10,14,.97) 35%, rgba(8,10,14,0)); }

/* ---------- studio v2 ---------- */
.studio-hero .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
.studio-hero-copy { display: grid; gap: 18px; justify-items: start; }
.studio-hero h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: .92; letter-spacing: .01em; }
.studio-hero .head-art { inset: 0; opacity: .32; }
.studio-hero .live { font-size: var(--step--1); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.studio-hero .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(79,191,122,.18); }
.studio-hero .live[hidden] { display: none; }
.studio-crest { position: relative; justify-self: center; width: min(320px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.studio-crest::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(214,59,59,.32), rgba(214,59,59,0) 68%); filter: blur(10px); }
.studio-crest::after { content: ""; position: absolute; inset: -4%; border-radius: 50%; border: 1px dashed rgba(239,80,80,.28); animation: crest-spin 60s linear infinite; }
.studio-crest img { position: relative; width: 82%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)); animation: crest-float 7s ease-in-out infinite; }
@keyframes crest-spin { to { transform: rotate(360deg); } }
@keyframes crest-float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .studio-crest::after, .studio-crest img { animation: none; } }
@media (max-width: 760px) { .studio-hero .wrap { grid-template-columns: 1fr; } .studio-crest { order: -1; width: 140px; justify-self: start; } .studio-crest::after { display: none; } }

.studio-facts { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg)); }
.stats-row { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats-row > div { display: grid; grid-template-areas: "dd" "dt" "s"; gap: 2px; padding: clamp(18px, 3vw, 28px) clamp(12px, 2vw, 24px); border-left: 1px solid var(--line); }
.stats-row > div:first-child { border-left: 0; padding-left: 0; }
.stats-row dd:not(.sub) { grid-area: dd; margin: 0; font: 800 clamp(2.2rem, 4.4vw, 3.4rem)/1 var(--f-display); color: var(--fg); }
.stats-row dt { grid-area: dt; font: 700 .8rem/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .16em; color: var(--red-hi); margin-top: 6px; }
.stats-row .sub { grid-area: s; margin: 0; font-size: var(--step--1); color: var(--dim); }
@media (max-width: 900px) { .stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats-row > div:nth-child(4) { border-left: 0; padding-left: 0; } .stats-row > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-row > div { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); } .stats-row > div:nth-child(-n+2) { border-top: 0; } .stats-row > div:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--line) !important; } }

.band-alt { background: linear-gradient(180deg, rgba(20,25,34,.7), rgba(20,25,34,.25)); }

.lineage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: lin; }
.lineage::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, var(--amber), var(--red-hi)); opacity: .55; }
.lineage .clan { position: relative; margin-top: 22px; }
.lineage .clan::before { content: ""; position: absolute; top: -28px; left: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--amber); }
.lineage .clan.now::before { border-color: var(--red-hi); background: var(--red-hi); box-shadow: 0 0 0 5px rgba(239,80,80,.18); }
.lineage .clan.now { background: linear-gradient(160deg, rgba(214,59,59,.14), var(--panel) 55%); }
@media (max-width: 860px) {
  .lineage { grid-template-columns: 1fr; padding-left: 26px; }
  .lineage::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--amber), var(--red-hi)); }
  .lineage .clan { margin-top: 0; }
  .lineage .clan::before { top: 26px; left: -27px; }
}

.team { gap: 20px; }
.member { position: relative; grid-template-columns: 200px minmax(0, 1fr); padding: 0; gap: 0; overflow: hidden; align-items: stretch; transition: border-color .2s; }
.member:hover { border-color: #3a4456; }
.member::before { content: attr(data-callsign); position: absolute; pointer-events: none; right: 14px; bottom: -10px; font: 800 clamp(3.6rem, 7vw, 5.6rem)/.8 var(--f-display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); letter-spacing: .02em; }
.member-photo-wrap { position: relative; overflow: hidden; background: radial-gradient(circle at 60% 30%, rgba(214,59,59,.25), transparent 65%), var(--panel-2); }
.member-photo-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, var(--panel)); }
.member .member-photo { width: 100%; height: 100%; min-height: 220px; aspect-ratio: auto; border-radius: 0; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s, transform .6s cubic-bezier(.2,.7,.2,1); }
.member:hover .member-photo { filter: none; transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .member:hover .member-photo { transform: none; } }
.member-body { padding: 24px 26px 26px 18px; gap: 6px; align-content: start; position: relative; }
.member-body p { margin-top: 8px; }
@media (max-width: 560px) { .member { grid-template-columns: 1fr; } .member-photo-wrap { aspect-ratio: 4 / 3; } .member-photo-wrap::after { background: linear-gradient(180deg, transparent 70%, var(--panel)); } .member-body { padding: 18px 20px 22px; } }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.process li { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px 22px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.process li:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 38px; width: 10px; height: 10px; border-top: 2px solid var(--red-hi); border-right: 2px solid var(--red-hi); transform: rotate(45deg); z-index: 1; }
.step-n { font: 800 2.4rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--red-hi); }
.process h3 { font-size: var(--step-1); }
.process p { margin: 0; color: var(--muted); font-size: .95rem; }
.process a { color: var(--fg); }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } .process li::after { display: none; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

.releases-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.releases-line::before { content: ""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.rel { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 32px; padding: 16px 0; position: relative; }
.rel::before { content: ""; position: absolute; left: 128px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--dim); }
.rel.now::before { border-color: var(--red-hi); background: var(--red-hi); box-shadow: 0 0 0 5px rgba(239,80,80,.18); }
.rel-ver { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; }
.rel-ver b { font: 800 1.5rem/1 var(--f-display); }
.rel-ver .latest { font: 700 .66rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; background: var(--red); color: #fff; padding: 4px 7px; border-radius: 3px; }
.rel-ver small { font-size: .78rem; color: var(--dim); }
.rel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.rel ul li { font-size: .9rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; }
.rel.now ul li { color: var(--fg); border-color: #333d4e; }
@media (max-width: 640px) {
  .releases-line::before { left: 5px; }
  .rel { grid-template-columns: 1fr; gap: 10px; padding-left: 26px; }
  .rel::before { left: 1px; top: 22px; }
  .rel-ver { flex-direction: row; align-items: center; text-align: left; gap: 10px; }
}

.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: rule; }
.rules li { counter-increment: rule; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--red-hi); }
.rules li::before { content: "0" counter(rule); font: 800 3.4rem/1 var(--f-display); color: rgba(239,80,80,.22); }
.rules h3 { font-size: var(--step-2); }
.rules p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

.post-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-trio .post-card { grid-template-columns: 1fr; }
.post-trio .post-art img { height: auto; aspect-ratio: 16 / 9; }
.post-trio .post-card > div { padding: 20px 22px 22px; }
.post-trio .post-card h3 { font-size: var(--step-1); text-transform: uppercase; }
.post-trio .post-card h3 a { text-decoration: none; }
.post-trio .post-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-trio .post-card:hover h3 a { color: var(--red-hi); }
@media (max-width: 900px) { .post-trio { grid-template-columns: 1fr; } .post-trio .post-card { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); } }
@media (max-width: 560px) { .post-trio .post-card { grid-template-columns: 1fr; } }

.studio-join-band { position: relative; overflow: hidden; isolation: isolate; }
.studio-join-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 85% 50%, rgba(214,59,59,.18), transparent 60%); }
.roles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.roles li { display: grid; gap: 4px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.roles b { font: 700 1rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em; }
.roles span { font-size: .85rem; color: var(--dim); }
@media (max-width: 640px) { .roles { grid-template-columns: 1fr; } }
.heritage-band { padding-block: clamp(40px, 6vw, 72px); background: var(--panel); }
.heritage-band .section-head h2 { font-size: var(--step-2); }
.heritage-band .section-head .lede { font-size: 1rem; }
.heritage-band .clan { padding: 18px 20px; }
.heritage-band .clan-tag { font-size: 1.2rem; }
.heritage-band .clan h3 { font-size: 1rem; }
.heritage-band .clan p { font-size: .9rem; }
.workshop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.workshop li { display: grid; gap: 10px; align-content: start; padding: 18px 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; position: relative; overflow: hidden; }
.workshop li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--dim); }
.workshop .ws-testing::before { background: var(--ok); }
.workshop .ws-dev::before { background: var(--amber); }
.workshop b { font-weight: 600; line-height: 1.35; }
.ws-state { display: inline-flex; align-items: center; gap: 7px; font: 700 .7rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .16em; color: var(--amber); }
.ws-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ws-testing .ws-state { color: var(--ok); }
.ws-testing .ws-state::before { animation: live-pulse 2s infinite; }
@media (prefers-reduced-motion: reduce) { .ws-testing .ws-state::before { animation: none; } }
.built-band { padding-block: clamp(40px, 6vw, 72px); }
.heritage-band + .built-band { border-top: 1px solid var(--line); }
.built { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.built .section-head { margin: 0; }
.built .section-head h2 { font-size: var(--step-2); }
.built .section-head .lede { font-size: 1rem; }
.built-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.built-list li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.built-list b { font: 700 1.05rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.built-list span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .built { grid-template-columns: 1fr; } .built-list li { grid-template-columns: 1fr; gap: 2px; } }

/* support page */
.process.plain li::after { display: none; }
.support-note { margin: 22px 0 0; max-width: 72ch; }
/* support: transparency */
.fund-goal { display: inline-flex; align-items: baseline; gap: 14px; margin: 0 0 22px; padding: 14px 20px; border: 1px solid rgba(231,167,60,.45); border-radius: 8px; background: rgba(231,167,60,.07); }
.fund-goal span { font: 600 .8rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fund-goal b { font: 700 2rem/1 var(--f-display); color: var(--amber); }
.fund-covers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fund-covers li { padding: 20px 18px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--amber); border-radius: 8px; }
.fund-covers h3 { margin: 0 0 8px; font-size: 1.05rem; }
.fund-covers p { margin: 0; color: var(--muted); font-size: .92rem; }
.fund-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.fund-split h3 { margin: 0 0 10px; }
.fund-split p { color: var(--muted); margin: 0 0 12px; }
.fund-order { margin: 0; padding-left: 1.3em; color: var(--muted); display: grid; gap: 8px; }
.fund-order li::marker { color: var(--amber); font-weight: 700; }
.fund-empty { padding: 14px 18px; border: 1px dashed var(--line); border-radius: 8px; }
.fund-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fund-table th, .fund-table td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fund-table th:first-child, .fund-table td:first-child { text-align: left; }
.fund-table th { font: 600 .78rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1000px) { .fund-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fund-split { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fund-covers { grid-template-columns: 1fr; } }
.fund-now { margin: 0 0 18px; }
.fund-now-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.fund-now-h span { font: 600 .78rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fund-now-h b { font: 700 1.6rem/1 var(--f-display); color: var(--amber); }
.fund-now-h small { color: var(--muted); }
.fund-bar { height: 10px; border-radius: 5px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.fund-bar i { display: block; height: 100%; background: var(--amber); }
.fund-table .dim { color: var(--muted); font-style: italic; }
.fund-sup-h { margin: 22px 0 10px; font: 600 .82rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fund-sup { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fund-sup li { display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.fund-sup span { color: var(--muted); font-size: .88rem; }

/* ---- Pass 6: site search, instant page changes, section rail, back to top, lit cards ---- */
/* page changes cross-fade instead of flashing (browsers without view transitions just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
.nav { view-transition-name: topbar; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }


.search { width: min(640px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 24px)); margin: max(12px, 12vh) auto auto; padding: 0; border: 1px solid #2c3442; border-radius: 12px; background: #11151c; color: var(--fg); box-shadow: 0 40px 90px -20px rgba(0,0,0,.8); overflow: hidden; }
.search[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: sr-in .16s ease-out; }
.search::backdrop { background: rgba(6, 8, 12, .72); backdrop-filter: blur(4px); }
@keyframes sr-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.sr-box { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--dim); }
.sr-box input { flex: 1; min-width: 0; height: 58px; border: 0; outline: 0; background: none; color: var(--fg); font: 400 1.05rem/1 var(--f-body); }
.sr-box input::-webkit-search-cancel-button { display: none; }
.sr-box input::placeholder { color: var(--dim); }
.sr-box kbd { cursor: pointer; }
.search ul { list-style: none; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.search li a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 14px; align-items: baseline; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; }
.search li[aria-selected=true] a, .search li a:hover { background: #1a202b; }
.search li[aria-selected=true] a { box-shadow: inset 2px 0 0 var(--red-hi); }
.sr-k { grid-row: span 2; font: 600 .72rem/1.6 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); }
.sr-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-d { grid-column: 2; color: var(--dim); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-head, .sr-empty { padding: 10px 12px; color: var(--dim); font-size: .9rem; }
.sr-head { font: 600 .72rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; padding-bottom: 6px; }
.sr-hint { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: .78rem; }
@media (max-width: 600px) { .search li a { grid-template-columns: 1fr; } .sr-k { grid-row: auto; } .sr-d { grid-column: 1; } .sr-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .search[open] { animation: none; } }

.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(17, 21, 28, .9); backdrop-filter: blur(8px); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, transform .2s; }
.to-top:hover { color: var(--fg); border-color: var(--muted); transform: translateY(-2px); }
.to-top[hidden] { display: none; }

.rail { position: fixed; right: 18px; top: 50%; z-index: 30; display: none; gap: 2px; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .3s; }
.rail.on { opacity: 1; pointer-events: auto; }
.rail a { position: relative; display: flex; justify-content: flex-end; align-items: center; height: 22px; padding-right: 22px; text-decoration: none; }
.rail a::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 2px; margin-top: -1px; background: #3a4456; transition: width .2s, background-color .2s; }
.rail a span { font: 600 .7rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); background: rgba(13, 16, 22, .92); border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .15s, transform .15s; pointer-events: none; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a:hover::after { background: var(--fg); width: 14px; }
.rail a[aria-current]::after { background: var(--red-hi); width: 18px; }
@media (min-width: 1500px) { .rail { display: grid; } }

.lit { position: relative; }
.lit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(230, 72, 72, .09), rgba(230, 72, 72, 0) 70%); }
.lit:hover::after { opacity: 1; }

/* deep links from search land below the sticky top bar */
.wcard, .faq > div[id], main > section[id], .release { scroll-margin-top: 84px; }
.wcard:target, .faq > div:target { outline: 1px solid var(--red-hi); outline-offset: 6px; border-radius: 6px; }

/* landing pages */
.more-row { margin: clamp(24px, 4vw, 36px) 0 0; }
.download .dl-main { display: grid; gap: 26px; align-content: start; }
.reqs h2 { font-size: var(--step-1); text-transform: uppercase; letter-spacing: .04em; }
.features .feature h3 { font-size: var(--step-1); }
.doc-body .faq { gap: 26px 40px; }
.doc-body .faq p { font-size: .97rem; }
.shot-wide { margin: 8px 0 0; }
.shot-wide img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.shot-wide figcaption { margin-top: 10px; color: var(--dim); font-size: .86rem; }
.vs-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.vs { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--panel); font-size: .95rem; }
.vs th, .vs td { padding: 13px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.vs thead th, .vs thead td { border-top: 0; font: 700 .82rem/1.3 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vs thead th:last-child { color: var(--red-hi); }
.vs tbody th { width: 22%; font: 600 .8rem/1.75 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.vs tbody td { color: var(--muted); }
.vs tbody td:last-child { color: var(--fg); background: rgba(230, 72, 72, .045); }
@media (max-width: 640px) {
  .vs { min-width: 0; }
  .vs thead { display: none; }
  .vs tr { display: grid; padding: 14px 16px; border-top: 1px solid var(--line); gap: 8px; }
  .vs tbody tr:first-child { border-top: 0; }
  .vs th, .vs td { padding: 0; border: 0; width: auto; }
  .vs tbody th { width: auto; color: var(--fg); }
  .vs tbody td { display: grid; grid-template-columns: 1fr; gap: 2px; }
  .vs tbody td::before { content: attr(data-label); font: 600 .68rem/1.4 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
  .vs tbody td:last-child { background: none; }
  .vs tbody td:last-child::before { color: var(--red-hi); }
}

/* phones: the home gallery and the three feature shots become swipeable rows instead of a long stack */
@media (max-width: 520px) {
  #gallery-grid, .trio { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(var(--gutter-l) * -1); margin-right: calc(var(--gutter-r) * -1); padding-left: var(--gutter-l); padding-right: var(--gutter-r); scroll-padding-left: var(--gutter-l); }
  #gallery-grid::-webkit-scrollbar, .trio::-webkit-scrollbar { display: none; }
  #gallery-grid > .shot, .trio > figure { flex: 0 0 86%; scroll-snap-align: start; }
}

/* ---- Pass 7: cinematic layer. Hero with depth, fog, grain and a HUD compass; map theatre; ghost
   lettering; tilt and glare on shots. Everything here is decoration on top of the plain layout:
   it switches off under prefers-reduced-motion and the page reads the same without it. ---- */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* a faint survey grid behind every page, strongest near the top */
body { background-image: radial-gradient(1100px 520px at 78% -8%, rgba(214,59,59,.10), transparent 65%), linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: auto, 72px 72px, 72px 72px; background-attachment: scroll, fixed, fixed; }

/* hero */
.hero { min-height: min(calc(100svh - 60px), 1040px); display: grid; align-items: center; }
/* the cursor parallax is written straight to .slides and .wrap by site.js: no custom property on .hero, so a cursor move never restyles the whole hero */
.hero .slides { inset: -24px; will-change: transform; }
.hero::before { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .028 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 70% 40%, rgba(13,16,22,0) 35%, rgba(8,10,14,.72) 100%),
    linear-gradient(90deg, rgba(13,16,22,.95) 0%, rgba(13,16,22,.80) 34%, rgba(13,16,22,.18) 72%, rgba(13,16,22,.30) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13,16,22,0) 34%),
    linear-gradient(180deg, rgba(13,16,22,.55) 0%, rgba(13,16,22,0) 18%); }
.hero .wrap { width: 100%; position: relative; z-index: 2; }
.hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fog { position: absolute; left: -30%; width: 160%; height: 70%; bottom: -18%; background:
    radial-gradient(42% 60% at 22% 60%, rgba(190,205,225,.12), rgba(190,205,225,.05) 45%, transparent 78%),
    radial-gradient(34% 50% at 58% 70%, rgba(190,205,225,.09), rgba(190,205,225,.04) 45%, transparent 78%),
    radial-gradient(38% 55% at 86% 55%, rgba(190,205,225,.11), rgba(190,205,225,.05) 45%, transparent 78%);
  /* soft by its gradients alone: a CSS blur on a layer this size had to be redrawn on every frame */
  animation: fog 48s linear infinite alternate; will-change: translate; }
/* one fog bank: each extra full-width moving layer is composited again on every frame */
.fog-b { display: none; }
/* moved with translate, not margin, so the drifting fog never triggers layout or repaints its blur */
@keyframes fog { from { translate: -5% 0; } to { translate: 5% 0; } }
/* the grain is drawn as part of the hero's shading layer (.hero::before) rather than as its own animated full-screen layer */
.grain { display: none; }
.hud { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(232,234,239,.38); opacity: 0; animation: hud-in .7s .5s cubic-bezier(.2,.8,.2,1) forwards; }
.hud-tl { left: 22px; top: 22px; border-right: 0; border-bottom: 0; --hx: 14px; --hy: 14px; }
.hud-tr { right: 22px; top: 22px; border-left: 0; border-bottom: 0; --hx: -14px; --hy: 14px; }
.hud-bl { left: 22px; bottom: 22px; border-right: 0; border-top: 0; --hx: 14px; --hy: -14px; }
.hud-br { right: 22px; bottom: 22px; border-left: 0; border-top: 0; --hx: -14px; --hy: -14px; border-color: var(--red-hi); }
@keyframes hud-in { from { opacity: 0; transform: translate(var(--hx), var(--hy)); } to { opacity: 1; transform: none; } }
.hero-caption { right: 64px; bottom: 30px; z-index: 2; }

/* the compass tape from the in-game HUD, drifting with the cursor */
.compass { position: absolute; left: 50%; top: 22px; z-index: 1; width: min(520px, 46vw); height: 34px; margin-left: calc(min(520px, 46vw) / -2); overflow: hidden; pointer-events: none; opacity: 0; animation: fade-in 1s .7s forwards;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.compass::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 12px; margin-left: -1px; background: var(--amber); box-shadow: 0 0 10px rgba(231,167,60,.9); }
.tape { position: absolute; left: 50%; top: 10px; display: flex; will-change: transform; }
.tape span { flex: none; width: 60px; margin-left: -30px; margin-right: 30px; text-align: center; font: 600 .68rem/1 var(--f-display); letter-spacing: .14em; color: rgba(232,234,239,.55); padding-top: 12px; position: relative; }
.tape span::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 7px; background: rgba(232,234,239,.45); }
.tape span.c { color: var(--amber); }
.tape span.c::before { height: 9px; background: var(--amber); }
@keyframes fade-in { to { opacity: 1; } }

/* entrance: the logo settles, then the copy rises line by line */
.hero-logo { animation: logo-in 1.1s cubic-bezier(.16,.8,.2,1) both; }
@keyframes logo-in { from { transform: scale(1.08) translateY(10px); filter: drop-shadow(0 18px 36px rgba(0,0,0,.6)) brightness(1.9) blur(6px); } to { transform: none; filter: drop-shadow(0 18px 36px rgba(0,0,0,.6)); } }
.hero h1, .hero .lede, .hero .hero-cta, .hero .hero-meta { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 { animation-delay: .18s; } .hero .lede { animation-delay: .3s; } .hero .hero-cta { animation-delay: .42s; } .hero .hero-meta { animation-delay: .54s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero h1 { font-size: clamp(2.1rem, min(5.2vw, 7.6vh), 4.1rem); line-height: .98; text-shadow: 0 2px 30px rgba(0,0,0,.55); }
.hero h1 em { background: linear-gradient(100deg, #ff6a5c 0%, var(--red-hi) 45%, #ff9a7a 60%, var(--red-hi) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 220% 100%; background-position: 30% 0; }
@keyframes ember { from { background-position: 120% 0; } to { background-position: -100% 0; } }

/* a band of light crossing the platinum logo */
.logo-wrap { position: relative; display: block; width: min(520px, 88%, 62vh); margin-bottom: -6px; }
.logo-wrap .hero-logo { width: 100%; margin: 0; display: block; }
.logo-sheen { position: absolute; inset: 0; pointer-events: none; overflow: hidden; -webkit-mask: url(img/logo.webp) center / 100% 100% no-repeat; mask: url(img/logo.webp) center / 100% 100% no-repeat; }
/* the band of light is moved with transform, which the GPU does without repainting the logo */
.logo-sheen::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(105deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.32) 50%, rgba(255,255,255,0) 80%); transform: translateX(-120%); animation: sheen 6.5s 1.2s ease-in-out infinite; will-change: transform; }
@keyframes sheen { 0% { transform: translateX(-120%); } 28%, 100% { transform: translateX(300%); } }
.hero .wrap { gap: clamp(16px, 2.6vh, 28px); padding-block: clamp(56px, 8vh, 110px) clamp(64px, 9vh, 110px); }

/* primary button: a slow breathing glow, and a glint on hover */
.btn-play { position: relative; overflow: hidden; }
.btn-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.btn-play:hover::after { transform: translateX(120%); }
.hero .btn-play { animation: rise .8s .42s cubic-bezier(.2,.8,.2,1) both; overflow: visible; }
/* the breathing glow is a fixed shadow on a pseudo-element whose opacity pulses: no shadow is repainted per frame */
.hero .btn-play::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 10px 44px -6px rgba(239,80,80,.95); opacity: 0; pointer-events: none; animation: breathe 3.6s 1.6s ease-in-out infinite; will-change: opacity; }
/* the hero button lets its glow spill outside, so its hover shine sweeps as a background inside the button instead of a band parked off to the left */
.hero .btn-play::after { border-radius: inherit; transform: none; background-size: 300% 100%; background-position: 100% 0; transition: background-position .7s ease; }
.hero .btn-play:hover::after { transform: none; background-position: 0 0; }
@keyframes breathe { 50% { opacity: 1; } }

/* as the page scrolls, the hero sinks back and dims (browsers with scroll-driven animations) */
@supports (animation-timeline: scroll()) {
  .hero .slides { animation: hero-sink linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  @keyframes hero-sink { to { scale: 1.12; opacity: .35; } }
  .ghost { animation: ghost-drift linear both; animation-timeline: view(); }
  @keyframes ghost-drift { from { translate: 6% 0; } to { translate: -6% 0; } }
}

/* numbers band */
.numbers { position: relative; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(20,25,34,.9), rgba(13,16,22,.6)); }
.numbers::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--red) 0, rgba(214,59,59,0) 55%); }
.numbers .stats-row dd:not(.sub) { font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 20%, #aeb6c4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) { .numbers .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbers .stats-row > div { border-left: 0; padding-left: 0; } .numbers .stats-row > div:last-child { grid-column: span 2; } }

/* ghost lettering behind section heads */
.band, .page-head { overflow-x: clip; }
.section-head, .page-head .wrap { position: relative; isolation: isolate; }
.ghost { position: absolute; right: -2%; top: 50%; z-index: -1; margin-top: -.5em; font: 800 clamp(6rem, 15vw, 13rem)/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(232,234,239,.09); pointer-events: none; user-select: none; }
.page-head .ghost { top: auto; bottom: -.16em; margin: 0; right: -1%; -webkit-text-stroke-color: rgba(232,234,239,.09); }
@media (max-width: 1100px) { .ghost { display: none; } }

/* sub page heads: taller, with grain and a slow push on the key art */
.page-head .wrap { padding-block: clamp(64px, 10vw, 132px) clamp(44px, 7vw, 84px); }
.page-head::before { content: ""; position: absolute; inset: -40px; z-index: -1; background-image: var(--grain); opacity: .08; mix-blend-mode: overlay; pointer-events: none; }
.head-art { animation: art-push 26s ease-out both; opacity: .62; }
@keyframes art-push { from { transform: scale(1.1); } to { transform: none; } }
.page-head h1 { text-shadow: 0 2px 28px rgba(0,0,0,.6); }
.page-head h1, .page-head .lede, .page-head .eyebrow { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.page-head h1 { animation-delay: .08s; } .page-head .lede { animation-delay: .18s; }

/* map theatre (home, wide screens with a mouse): the six cards become a list that drives a full-bleed backdrop */
.theatre { position: relative; isolation: isolate; overflow: hidden; min-height: min(86vh, 820px); display: grid; align-items: center; }
.th-bg { position: absolute; inset: 0; z-index: -2; }
.th-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s ease, transform 7s ease-out; filter: saturate(1.08) contrast(1.05); }
.th-bg img.on { opacity: 1; transform: scale(1); }
.theatre::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(90deg, rgba(13,16,22,.96) 0%, rgba(13,16,22,.84) 30%, rgba(13,16,22,.2) 68%, rgba(13,16,22,.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13,16,22,0) 22%), linear-gradient(180deg, var(--bg) 0%, rgba(13,16,22,0) 22%); }
.theatre::after { content: ""; position: absolute; inset: -60px; z-index: -1; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; pointer-events: none; }
.theatre .wrap { width: 100%; }
.theatre .map-cards { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 460px; }
.theatre .map-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding: 13px 0 13px 18px; border-radius: 0; background: none; overflow: visible; border-left: 2px solid rgba(232,234,239,.14); opacity: 1 !important; transform: none !important; transition: border-color .3s, padding-left .3s; }
.theatre .map-card img { display: none; }
.theatre .map-card::before { content: attr(data-n); font: 600 .78rem/1 var(--f-mono); color: var(--dim); }
.theatre .map-card span { position: static; padding: 0; background: none; display: flex; align-items: baseline; gap: 14px; }
.theatre .map-card b { font: 800 clamp(1.7rem, 2.6vw, 2.5rem)/1 var(--f-display); letter-spacing: .04em; color: rgba(232,234,239,.42); transition: color .3s; }
.theatre .map-card small { font-size: .84rem; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.theatre .map-card.on { border-left-color: var(--red-hi); padding-left: 26px; }
.theatre .map-card.on b { color: #fff; }
.theatre .map-card.on small { opacity: 1; transform: none; }
.theatre .map-card.on::before { color: var(--red-hi); }
.th-word { position: absolute; right: 3%; bottom: 4%; z-index: -1; font: 800 clamp(7rem, 17vw, 16rem)/.8 var(--f-display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.22); pointer-events: none; user-select: none; white-space: nowrap; }
.th-word.swap { animation: word-in .7s cubic-bezier(.2,.8,.2,1); }
@keyframes word-in { from { opacity: 0; transform: translateX(40px); } }
.th-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(232,234,239,.1); z-index: 1; }
.th-bar i { display: block; height: 100%; width: 0; background: var(--red-hi); }
.th-bar i.run { animation: th-run var(--th-ms, 5200ms) linear forwards; }
@keyframes th-run { to { width: 100%; } }

/* shots lean towards the cursor and catch a glare */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out; transform-style: preserve-3d; will-change: transform; }
.tilt.live { transition: transform .08s linear; }
.tilt .glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.16), rgba(255,255,255,0) 60%); mix-blend-mode: screen; }
.tilt.live .glare { opacity: 1; }
.promo-card.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* framed images wipe open as they scroll into view */
.js-reveal .wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.2,.8,.2,1); }
.js-reveal .wipe.in { clip-path: inset(0 0 0 0); }

@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(13,16,22,.5) 0%, rgba(13,16,22,.86) 42%, var(--bg) 100%); }
  .compass, .hud { display: none; }
  .hero-caption { right: auto; bottom: 22px; }
  .fog { filter: blur(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .fog, .grain, .logo-sheen, .hero-logo, .hero h1, .hero h1 em, .hero .lede, .hero .hero-cta, .hero .hero-meta, .hero .btn-play, .hud, .compass, .head-art, .page-head h1, .page-head .lede, .page-head .eyebrow, .th-word.swap, .th-bar i.run, .hero .slides, .ghost { animation: none; }
  .hud, .compass { opacity: 1; } .logo-sheen { display: none; }
  .hero .slides, .hero .wrap, .fog { transform: none; }
  .tilt { transform: none !important; } .th-bg img { transition: opacity .2s; transform: none; }
  .js-reveal .wipe { clip-path: none; }
}
@media print { .hero-fx, .compass, .ghost, .logo-sheen, .th-bg, .th-word { display: none; } body { background-image: none; } }

/* ------------------------------------------------------------------ Pass 8: map and weapon pages */
.text-link { color: var(--fg); font: 600 .86rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--red-hi); padding-bottom: 4px; }
.text-link::after { content: "  \2192"; }
.text-link:hover { color: var(--red-hi); }
.map-more { margin: 10px 0 0; }
.page-head .back { justify-self: start; font: 600 .85rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); text-decoration: none; padding: 8px 0; margin: -8px 0; }
.page-head .back::before { content: "\2190  "; }
.page-head .back:hover { color: var(--fg); }
.wcard h3 a { color: inherit; text-decoration: none; }
.wcard h3 a:hover { color: var(--red-hi); }
.anchor { scroll-margin-top: 90px; }
.name-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.name-list li { padding: 7px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; font: 600 .86rem/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mode-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mode-list li { padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--red); border-radius: 4px; color: var(--muted); line-height: 1.6; }
.mode-list b { color: var(--fg); font: 700 .95rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.map-cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(24px, 4vw, 40px); }
.map-hd-copy h2 { font-size: var(--step-2); text-transform: uppercase; }
.wfacts dd { color: var(--fg); font-variant-numeric: tabular-nums; }
.wfacts .wmodes { margin: 0; }
.wtable { width: 100%; border-collapse: collapse; background: var(--panel); font-size: .95rem; font-variant-numeric: tabular-nums; }
.wtable th, .wtable td { padding: 12px 16px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.wtable th:first-child { text-align: left; }
.wtable thead th { border-top: 0; font: 700 .78rem/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wtable tbody th { font-weight: 600; }
.wtable tbody th a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
.wtable tbody th a:hover { border-color: var(--red-hi); }
.wtable td { color: var(--muted); }
.wtable tr.here th, .wtable tr.here td { color: var(--fg); background: rgba(230, 72, 72, .07); }
.wtable tr.here th { box-shadow: inset 2px 0 0 var(--red); }
.vs-scroll + .yt-note { margin-top: 14px; }
@media (max-width: 1000px) { .map-cards.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .map-cards.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts.wfacts { grid-template-columns: 1fr; } .facts.wfacts dt { padding-bottom: 0; } .facts.wfacts dd { border-top: 0; padding-top: 2px; } }
.prose-block + .vs-scroll { margin-top: 18px; }

/* ------------------------------------------------------------------ match report */
.m-score, .m-teams { grid-column: 1 / -1; }
.m-score { display: grid; gap: 14px; justify-items: center; padding: clamp(20px, 4vw, 36px) 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.m-line { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(14px, 4vw, 40px); width: 100%; max-width: 760px; }
.m-side { display: flex; align-items: baseline; gap: clamp(10px, 2.4vw, 22px); color: var(--muted); }
.m-side.specops { justify-content: flex-end; }
.m-side span { font: 700 clamp(.9rem, 2.2vw, 1.3rem)/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.m-side b { font: 800 clamp(2.6rem, 8vw, 4.6rem)/1 var(--f-display); color: var(--dim); }
.m-side.won b { color: var(--fg); }
.m-side.specops.won span { color: #7fb2ff; }
.m-side.terrorists.won span { color: var(--red-hi); }
.m-mvp { margin: 0; color: var(--muted); }
.m-mvp b { font: 700 .78rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--amber, #f0b34a); margin-right: 6px; }
.m-mvp a, .m-team td a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
.m-mvp a:hover, .m-team td a:hover { border-color: var(--red-hi); }
.m-teams { display: grid; gap: 16px; }
.m-team.specops { border-top: 2px solid #7fb2ff; }
.m-team.terrorists { border-top: 2px solid var(--red); }
.m-team .res { margin-left: 8px; color: var(--amber, #f0b34a); border-color: rgba(240, 179, 74, .4); }
.r-top a { color: inherit; }
.r-top a:hover b { color: var(--red-hi); }
.pf-matches td a { color: inherit; }
.m-team .srv-table th:first-child { width: 24%; }
@media (max-width: 560px) { .m-side { flex-direction: column; align-items: flex-end; gap: 6px; } .m-side.terrorists { flex-direction: column-reverse; align-items: flex-start; } .m-side span { font-size: .78rem; letter-spacing: .08em; } }

/* ------------------------------------------------------------------ devlog reach: nav, hero line, home section, strip above the footer */
.log-strip { border-top: 1px solid var(--line); background: linear-gradient(90deg, rgba(214, 59, 59, .08), rgba(214, 59, 59, 0) 55%), var(--bg); }
.log-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 18px; }
.log-strip-h, .log-strip-all { flex: none; font: 700 .8rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.log-strip-h { color: var(--red-hi); }
.log-strip-all { color: var(--muted); margin-left: auto; }
.log-strip-all::after { content: "  \2192"; }
.log-strip-all:hover { color: var(--fg); }
.log-strip-posts { display: flex; flex-wrap: wrap; gap: 8px 28px; min-width: 0; }
.log-strip-posts a { display: inline-flex; gap: 10px; align-items: baseline; min-width: 0; color: var(--fg); text-decoration: none; font-size: .94rem; }
.log-strip-posts a:hover span { text-decoration: underline; text-decoration-color: var(--red-hi); text-underline-offset: 4px; }
.log-strip-posts time { flex: none; color: var(--dim); font-size: .8rem; }
@media (max-width: 700px) { .log-strip-all { margin-left: 0; } }


/* ---------- performance pass ---------- */
/* the logo sheen is masked with the same logo file the page already loaded for that screen */
@media (max-resolution: 1.2dppx) { .logo-sheen { -webkit-mask-image: url(img/logo-640.webp); mask-image: url(img/logo-640.webp); } }
/* long sections far below the fold are laid out and painted only when the visitor gets near them */
#patch-notes, #roadmap, #faq { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.wgroup > .wnote { margin: 14px 0 0; color: var(--dim); font-size: .82rem; }
/* the hero's looping effects stop while it is scrolled out of view */
.hero.offscreen .fog, .hero.offscreen .logo-sheen::before, .hero.offscreen .btn-play::before, .hero.offscreen .slide { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero .btn-play::before, .logo-sheen::before { animation: none; } }
/* nothing over the hero blurs what is behind it: a backdrop blur over moving images is recalculated on every frame */
.nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13, 16, 22, .93); }
.hero .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13, 16, 22, .78); }

/* ------------------------------------------------------------------ detailed stats: stat leaders and the full profile */
.sb-tools { flex-wrap: wrap; align-items: center; }
.sb-sel select { font: 600 .82rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 30px 9px 12px; max-width: 100%; cursor: pointer; }
.sb-sel select:hover, .sb-sel select:focus-visible { border-color: var(--muted); }
.sb-note { margin: 12px 0 0; }
.pf-detail { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pf-detail:empty { display: none; }
.pf-detail > .sd-top, .pf-detail > .sd-card:not(.sd-half), .pf-detail > .yt-note { grid-column: 1 / -1; }
.sd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.sd-top .yt-note { margin: 0; }
.sd-card { min-width: 0; }
.sd-card .yt-note { margin: 12px 0 0; }
.sd-tiles { margin-top: 4px; }
.sd-tiles div { background: var(--panel-2, var(--panel)); }
.sd-card .sd-tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.sd-bars { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.sd-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.2em; grid-template-areas: "l v p" "b b b"; gap: 4px 12px; align-items: baseline; }
.sd-bars span { grid-area: l; color: var(--muted); font: 600 .78rem/1.2 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.sd-bars b { grid-area: v; font: 700 1rem/1 var(--f-mono); }
.sd-bars em { grid-area: p; font-style: normal; color: var(--dim); font: 600 .85rem/1 var(--f-mono); text-align: right; }
.sd-bars i { grid-area: b; display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--red-hi)) 0 0 / var(--w) 100% no-repeat, var(--panel-2, rgba(232, 234, 239, .06)); }
.sd-rivals { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sd-rival { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 4px; }
.sd-rival span { color: var(--dim); font: 600 .74rem/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.sd-rival b { font: 700 1.25rem/1.2 var(--f-display); overflow-wrap: anywhere; }
.sd-rival b a { color: var(--fg); text-decoration: none; }
.sd-rival b a:hover { color: var(--red-hi); }
.sd-rival small { color: var(--muted); font-size: .84rem; }
.sd-rival small a { color: var(--muted); }
.sd-cal { display: grid; grid-template-rows: repeat(7, 11px); grid-auto-flow: column; grid-auto-columns: 11px; gap: 3px; width: max-content; padding-bottom: 4px; }
.sd-cal i, .sd-legend i { display: block; width: 11px; height: 11px; border-radius: 2px; background: rgba(232, 234, 239, .07); }
.sd-cal .l1, .sd-legend .l1 { background: rgba(214, 59, 59, .35); }
.sd-cal .l2, .sd-legend .l2 { background: rgba(214, 59, 59, .55); }
.sd-cal .l3, .sd-legend .l3 { background: rgba(214, 59, 59, .78); }
.sd-cal .l4, .sd-legend .l4 { background: var(--red-hi); }
.sd-legend { display: flex; align-items: center; gap: 4px; margin: 10px 0 0; color: var(--dim); font-size: .8rem; }
.sd-legend span { margin: 0 6px; }
.sd-h2h-find { margin: 0 0 10px; max-width: 420px; }
.sd-h2h-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sd-h2h-list button { font: 600 .9rem/1 var(--f-body); color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 8px 14px; cursor: pointer; }
.sd-h2h-list button:hover { border-color: var(--red-hi); }
.sd-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; text-align: center; margin: 6px 0 10px; }
.sd-vs > span { color: var(--dim); font: 600 .74rem/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.sd-vs div { display: grid; gap: 4px; }
.sd-vs a { color: var(--fg); font: 700 1.05rem/1.2 var(--f-display); text-decoration: none; overflow-wrap: anywhere; }
.sd-vs b { font: 700 2.2rem/1 var(--f-mono); }
.sd-vs small { color: var(--muted); }
.sd-h2h-m { display: block; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .9rem; }
.sd-h2h-m:hover { color: var(--fg); }
@media (max-width: 860px) { .pf-detail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .sd-card .sd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sd-vs b { font-size: 1.7rem; } }
.sd-card { padding-bottom: 16px; }
.sd-card > :not(header):not(.table-scroll) { margin-inline: 18px; }
.sd-card > header + * { margin-top: 16px; }
.sd-card > .table-scroll { margin-top: 0; }
.sd-card .sd-tiles div { background: var(--panel-2); }

/* optional player accounts: account page, verified tick, Discord line on profiles */
.acct-tick { display: inline-block; vertical-align: -0.12em; color: var(--ok); margin-left: 2px; }
h1 .acct-tick { width: .6em; height: .6em; vertical-align: .08em; }
.acct-perks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.acct-perk { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; }
.acct-perk h2 { font-size: var(--step-1); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.acct-perk p { color: var(--muted); }
.acct-cta { margin-top: 32px; }
.acct-fine { margin-top: 12px; font-size: var(--step--1); }
.acct-narrow { max-width: 640px; }
.acct-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.acct-wide { grid-column: 1 / -1; }
.acct-body { padding: 18px; display: grid; gap: 14px; justify-items: start; }
.acct-field { display: grid; gap: 6px; width: 100%; }
.acct-field span, .acct-choice legend { font: 600 var(--step--1)/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.acct-body input[type=text], .acct-body input:not([type]), .acct-body input[name=name], .acct-body input[name=confirm] { width: 100%; max-width: 360px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; font: 500 var(--step-0)/1.2 var(--f-body); }
.acct-body input:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 1px; }
.acct-choice { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.acct-choice label, .acct-check { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.acct-hint { color: var(--muted); font-size: var(--step--1); max-width: 70ch; }
.acct-hint.bad, .acct-error { color: var(--red-hi); }
.acct-name { font: 700 var(--step-2)/1.1 var(--f-display); }
.acct-inline { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.acct-inline input { flex: 1 1 200px; }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.acct-keys li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--panel-2); border-radius: 6px; }
.acct-keys li .btn { margin-left: auto; padding: 7px 12px; font-size: .82rem; }
.acct-keys li .btn.sure { border-color: var(--red-hi); color: var(--red-hi); }
.acct-danger .btn { border-color: rgba(214, 59, 59, .5); }
.acct-discord-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.acct-discord-line img { border-radius: 50%; }
.server-card header a.pill { text-decoration: none; }
.acct-body button.btn:not(.btn-play), .acct-keys button.btn { background: transparent; color: var(--fg); }
.acct-keys li.muted { color: var(--muted); font-size: var(--step--1); }
.acct-alt { margin-top: 12px; }
.acct-body select { background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: 500 var(--step-0)/1.2 var(--f-body); }
.acct-body select:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 1px; }
.acct-lfs { display: grid; gap: 12px; width: 100%; }
.acct-code { font: 600 1.05em/1 var(--f-mono); letter-spacing: .08em; color: var(--amber); }
.acct-pair { border-color: var(--amber); }
.acct-banned { border-color: var(--red); }
.acct-danger-card .btn { border-color: rgba(214, 59, 59, .5); }
.acct-danger-card .btn.sure { border-color: var(--red-hi); color: var(--red-hi); }
.acct-badges, .pf-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.acct-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font: 600 var(--step--1)/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--ok); background: rgba(79, 191, 122, .08); }
.acct-badge.trusted { color: var(--amber); background: rgba(231, 167, 60, .08); }
.acct-formerly { color: var(--muted); font-size: var(--step--1); margin-top: 6px; }
.acct-lfs-line { display: inline-flex; gap: 8px; align-items: baseline; margin-top: 8px; padding: 6px 12px; border-left: 2px solid var(--ok); background: var(--panel); }
.pf-badges { margin-top: 10px; }
.pf-medals-list { list-style: none; margin: 0; padding: 16px 18px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pf-medals-list li { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; background: var(--panel-2); border-radius: 6px; }
.pf-medals-list .medal { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 .9rem/1 var(--f-display); color: var(--t-ink); background: var(--t-steel); }
.pf-medals-list .t2 .medal { background: var(--ok); }
.pf-medals-list .t3 .medal { background: var(--amber); }
.pf-medals-list b { font: 600 var(--step-0)/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.pf-medals-list small { color: var(--muted); font-size: var(--step--1); }
.pf-medals-list small a { color: inherit; }
.lfs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lfs-list li { display: grid; gap: 4px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--ok); }
.lfs-list li a { font: 600 var(--step-1)/1.1 var(--f-display); text-decoration: none; color: var(--fg); }
.lfs-list li a:hover, .lfs-list li a:focus-visible { text-decoration: underline; }
.lfs-list li span { color: var(--muted); font-size: var(--step--1); }
.m-share { margin-left: 10px; }

/* ---------- release pages (release-<x-y-z>.html, built by tools/website/releases.py) ---------- */
.rel-page { margin: 4px 0 0; font-size: .88rem; grid-column: 1 / -1; }
.rel-page a { color: var(--red-hi); font-weight: 600; text-decoration: none; }
.rel-page a:hover, .rel-page a:focus-visible { text-decoration: underline; }
.rel-head .wrap { display: grid; gap: 10px; }
.rel-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; font: 500 var(--step--1)/1 var(--f-mono); color: var(--muted); }
.rel-facts span { border: 1px solid var(--line); padding: 6px 9px; background: rgba(13,16,22,.6); }
.rel-cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rel-cards a { display: grid; gap: 6px; align-content: start; height: 100%; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--red); text-decoration: none; transition: border-color .2s, transform .2s; }
.rel-cards a:hover, .rel-cards a:focus-visible { border-color: var(--red-hi); transform: translateY(-2px); }
.rel-cards b { font: 600 var(--step-1)/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.rel-cards span { font: 500 var(--step--1)/1 var(--f-mono); color: var(--amber); }
.rel-cards p { margin: 0; color: var(--muted); font-size: .92rem; }
.rel-notes .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.rel-sec { min-width: 0; scroll-margin-top: 84px; }
.rel-sec h2 { font: 600 var(--step-2)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rel-sec ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.rel-sec li::marker { color: var(--red); }
.rel-pager { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 22px; }
.rel-pager a { display: grid; gap: 2px; text-decoration: none; padding: 10px 14px; border: 1px solid var(--line); min-width: 180px; }
.rel-pager a:hover, .rel-pager a:focus-visible { border-color: var(--red-hi); }
.rel-pager span { font-size: var(--step--1); color: var(--muted); }
.rel-pager b { font: 600 var(--step-1)/1.1 var(--f-display); }
.rel-next { margin-left: auto; text-align: right; }
@media (max-width: 760px) { .rel-notes .wrap { grid-template-columns: 1fr; } .rel-pager a { min-width: 0; flex: 1; } }
@media (prefers-reduced-motion: reduce) { .rel-cards a { transition: none; } .rel-cards a:hover { transform: none; } }

/* ---------- accessibility: Windows high contrast and "more contrast" ---------- */
@media (forced-colors: active) {
  .btn, .btn-ghost, .rel-cards a, .rel-pager a, .post-card, .log-card { border: 1px solid ButtonText; }
  .head-art, .hero-fx, .ghost, .fog { display: none; }
  .eyebrow, .rel-cards span { color: LinkText; }
  :focus-visible { outline: 2px solid Highlight; }
}
@media (prefers-contrast: more) {
  :root { --muted: #c2c8d3; --dim: #aeb6c4; --line: #4a5568; }
  .ghost, .fog, .hero-fx { display: none; }
  .hero::before, .page-head::before { opacity: 1; }
}

/* ---------- 3D map viewer (map pages, docs/js/map3d.js) ---------- */
.m3d { display: grid; gap: 12px; margin-top: 18px; }
.m3d-stage { position: relative; aspect-ratio: 16 / 9; max-height: 74vh; width: 100%; border: 1px solid var(--line); overflow: hidden; touch-action: none;
  background: linear-gradient(rgba(13,16,22,.55), rgba(13,16,22,.85)), var(--poster) center / cover no-repeat, var(--panel); }
.m3d.on .m3d-stage { background: var(--bg); }
.m3d-stage::before, .m3d-stage::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--red); z-index: 3; pointer-events: none; }
.m3d-stage::before { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.m3d-stage::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.m3d-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
.m3d-stage canvas:active { cursor: grabbing; }
.m3d-stage canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--amber); }
.m3d-open { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: inline-flex; gap: 8px; align-items: baseline; }
.m3d-open small { font: 500 .78rem/1 var(--f-mono); opacity: .8; text-transform: none; letter-spacing: 0; }
.m3d-status { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; margin: 0; color: var(--muted); font-size: .9rem; z-index: 2; pointer-events: none; }
.m3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.m3d-l { position: absolute; left: 0; top: 0; white-space: nowrap; font: 600 .74rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 6px; background: rgba(9,11,15,.78); border: 1px solid rgba(255,255,255,.14); color: var(--fg); will-change: transform; }
.m3d-l.site { background: var(--red); border-color: var(--red-hi); font-size: .9rem; padding: 4px 8px; }
.m3d-l.spawn, .m3d-l.flag { font-size: .8rem; }
.m3d-l.terrorists { border-color: var(--t-team-terrorists); color: #ffb4b4; }
.m3d-l.specops { border-color: var(--t-team-specops); color: #b7d0ff; }
.m3d-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: .9rem; color: var(--muted); }
.m3d-bar label { display: inline-flex; align-items: center; gap: 8px; }
.m3d-bar input[type=range] { width: min(260px, 60vw); accent-color: var(--red); }
.m3d-bar input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; }
.m3d-bar .m3d-reset { margin-left: auto; }
.m3d:not(.ready) .m3d-bar { opacity: .5; pointer-events: none; }
@media (max-width: 640px) { .m3d-stage { aspect-ratio: 4 / 5; } .m3d-bar .m3d-reset { margin-left: 0; } }

/* ---------- Team Terminus: the Twin T mark, the studio roster and the profile ribbon ---------- */
.tt-mark { fill: var(--t-staff); flex: none; display: inline-block; vertical-align: -2px; }
.roster { position: relative; margin-top: 28px; display: grid; gap: 22px; padding: 24px 26px 26px; background: linear-gradient(180deg, rgba(240,138,36,.06), transparent 120px), var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--t-staff); border-radius: 8px; scroll-margin-top: 90px; }
.roster-head { display: flex; gap: 18px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.roster-head .tt-big { filter: drop-shadow(0 0 14px rgba(240,138,36,.35)); }
.roster-head h3 { margin: 0; font: 800 var(--step-1)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.roster-head p { margin: 4px 0 0; color: var(--muted); max-width: 65ch; }
.roster-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 28px; }
.roster-group { min-width: 0; }
.roster-group h4 { margin: 0 0 8px; font: 600 var(--step--1)/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--red-hi); }
.roster-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.roster-group li { display: grid; grid-template-columns: 18px minmax(0, 1fr); grid-template-rows: auto auto; gap: 3px 12px; align-items: center; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--t-staff); border-radius: 2px 4px 4px 2px; transition: border-color .15s, background .15s; }
.roster-group li:hover { border-color: rgba(240,138,36,.45); border-left-color: var(--t-staff); background: linear-gradient(90deg, rgba(240,138,36,.08), transparent 60%), var(--panel-2); }
.roster-group li .tt-mark { grid-row: 1 / 3; align-self: center; }
.roster-group li b { min-width: 0; color: var(--t-staff); font: 700 var(--step-0)/1.2 var(--f-display); letter-spacing: .03em; overflow-wrap: anywhere; }
.roster-group li b a { color: inherit; text-decoration: none; }
.roster-group li b a:hover, .roster-group li b a:focus-visible { text-decoration: underline; }
.roster-group li span { grid-column: 2; color: var(--muted); font: 600 var(--step--1)/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .07em; overflow-wrap: anywhere; }
.pf-team { margin: 8px 0 0; }
.tt-ribbon { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; color: var(--fg); text-decoration: none; background: linear-gradient(90deg, rgba(240,138,36,.18), rgba(240,138,36,.04)); border: 1px solid rgba(240,138,36,.45); border-left: 3px solid var(--t-staff); border-radius: 2px; font: 600 var(--step--1)/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em; }
.tt-ribbon .tt-name { color: var(--t-staff); }
.tt-ribbon .tt-role { color: var(--muted); letter-spacing: .06em; }
.tt-ribbon .tt-role::before { content: "·"; margin-right: 8px; color: var(--dim); }
.tt-ribbon:hover, .tt-ribbon:focus-visible { border-color: var(--t-staff); }
@media (max-width: 520px) { .roster { padding: 18px 16px 18px; } .roster-head { gap: 14px; align-items: flex-start; } .roster-head .tt-big { width: 32px; height: 32px; } .tt-ribbon { flex-wrap: wrap; row-gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .roster-group li { transition: none; } }
.roster-group li b small { margin-left: 8px; color: var(--fg); opacity: .75; font: 500 var(--step--1)/1 var(--f-body); letter-spacing: 0; }
.member-stack { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.member-stack li { font: 600 .72rem/1 var(--f-mono); color: var(--t-steel); padding: 5px 7px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 3px; }

/* virus scan badge beside the download buttons, checksum panel (tools/website/scanbadge.py) */
.scan-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(13,16,22,.55); color: var(--fg); text-decoration: none; transition: border-color var(--t-base), background-color var(--t-base); }
.scan-chip:hover { border-color: var(--t-line-hot); background: rgba(20,25,34,.8); }
.scan-chip .scan-ico { color: var(--ok); flex: none; }
.scan-chip.is-flagged .scan-ico { color: var(--amber); }
.scan-chip .stack { display: grid; gap: 3px; text-align: left; }
.scan-chip b { font: 600 0.92rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em; }
.scan-chip small { font: 500 0.72rem/1 var(--f-mono); color: var(--muted); letter-spacing: 0; }
.scan-chip[hidden] { display: none; }
.scan-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; }
.scan-panel .lede { margin-bottom: 18px; }
.scan-when { color: var(--dim); font-size: var(--step--1); }
.scan-sha { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.scan-sha p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.sha-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.sha-label { grid-column: 1 / -1; font: 600 0.78rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.sha-row code.sha { white-space: normal; word-break: break-all; font-size: 0.8rem; line-height: 1.5; padding: 8px 10px; user-select: all; }
.sha-copy { padding: 8px 14px; font-size: 0.85rem; }
.rel-scan { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.rel-scan .sha-row { flex: 1 1 420px; max-width: 760px; }
.rel-scan .sha-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.rel-scan .sha-label { grid-column: auto; }
@media (max-width: 860px) { .scan-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ devlog, cinematic: update posts lead with their teaser art */
/* hero: the download button with "What's new" under it, and a card for the newest post */
.hero-dl { display: grid; gap: 10px; justify-items: start; }
.hero-notes { display: inline-flex; align-items: center; gap: 8px; padding-left: 4px; color: #c9ced8; text-decoration: none; font: 600 .78rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.hero-notes::after { content: "\2192"; color: var(--red-hi); transition: transform .2s; }
.hero-notes:hover { color: #fff; }
.hero-notes:hover::after { transform: translateX(3px); }
/* shared */
.cine-kicker { display: inline-flex; align-items: center; gap: 14px; font: 600 clamp(.8rem, 1.2vw, .98rem)/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.cine-kicker::before { content: ""; width: 44px; height: 3px; background: var(--red-hi); border-radius: 2px; flex: none; }
.cine-read { display: inline-flex; gap: 10px; align-items: center; }
/* home: the feature band */
.feature-band { position: relative; isolation: isolate; overflow: hidden; min-height: min(78vh, 760px); display: grid; align-items: end; border-block: 1px solid var(--line); }
.fb-art, .fb-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,16,22,.92) 0%, rgba(13,16,22,.62) 34%, rgba(13,16,22,0) 62%), linear-gradient(0deg, rgba(13,16,22,.96) 0%, rgba(13,16,22,0) 46%), linear-gradient(180deg, rgba(13,16,22,.55) 0%, rgba(13,16,22,0) 18%); }
.fb-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: end; padding-block: clamp(64px, 10vw, 120px) clamp(40px, 6vw, 64px); }
.fb-copy { display: grid; gap: 18px; max-width: 620px; }
.fb-copy h2 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: .94; text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.fb-copy h2 a { color: inherit; text-decoration: none; }
.fb-copy p { font-size: 1.08rem; color: #c9ced8; max-width: 52ch; margin: 0; }
.fb-side { display: grid; gap: 10px; align-self: end; }
.fb-side .eyebrow { margin-bottom: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.fb-mini { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 8px; border: 1px solid rgba(232,234,239,.14); border-radius: 8px; background: rgba(13,16,22,.8); color: var(--fg); text-decoration: none; transition: border-color .2s; }
.fb-mini:hover { border-color: var(--red-hi); }
.fb-mini img { width: 112px; height: 63px; object-fit: cover; border-radius: 5px; }
.fb-mini span { display: grid; gap: 6px; font: 700 1.02rem/1.1 var(--f-display); text-transform: uppercase; }
.fb-mini small { font: 600 .68rem/1 var(--f-display); letter-spacing: .14em; color: var(--red-hi); }
/* devlog page: the feature post opens the page, every other post in a grid below */
.cine-head { min-height: min(84vh, 820px); display: grid; align-items: end; }
.cine-art { position: absolute; inset: 0; z-index: -1; background: var(--art) center / cover no-repeat; }
.cine-art::after, .cine-post .head-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,16,22,.92) 0%, rgba(13,16,22,.55) 36%, rgba(13,16,22,0) 64%), linear-gradient(0deg, var(--bg) 0%, rgba(13,16,22,0) 42%), linear-gradient(180deg, rgba(13,16,22,.5) 0%, rgba(13,16,22,0) 20%); }
.cine-head .wrap, .cine-post .wrap { padding-block: clamp(120px, 16vw, 220px) clamp(48px, 6vw, 72px); }
.cine-title, .cine-post h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .94; max-width: 14ch; text-transform: uppercase; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.cine-title a { color: inherit; text-decoration: none; }
.cine-head .lede, .cine-post .lede { color: #c9ced8; max-width: 54ch; }
.cine-head .post-meta, .cine-post .post-meta, .cine-post .back { text-shadow: 0 1px 8px rgba(0,0,0,.9); color: #c9ced8; }
.devlog-intro h1 { font-size: var(--step-3); text-transform: uppercase; }
.page-head + .devlog-intro { padding-top: clamp(40px, 6vw, 72px); }
.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid .post-card { grid-template-columns: 1fr; }
.post-grid .post-art img { height: auto; }
.post-grid .post-card > div { padding: 20px; }
.post-grid .post-card h2 { font-size: var(--step-1); }
.post-grid .post-card p:not(.post-meta) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-grid:not(.filtered) .post-card.is-lead { display: none; }
.post-grid.filtered .post-card, .post-list.filtered.post-grid .post-card.featured { grid-template-columns: 1fr; }
/* post page: an update post opens on its teaser art at full strength */
.cine-post { min-height: min(86vh, 860px); display: grid; align-items: end; }
.cine-post .head-art { inset: 0; opacity: 1; filter: none; }
@media (max-width: 1100px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .fb-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .feature-band { min-height: 0; }
  .fb-art, .fb-art img { height: 300px; bottom: auto; }
  .feature-band::before { background: linear-gradient(180deg, rgba(13,16,22,.2) 0, rgba(13,16,22,.1) 120px, var(--bg) 300px); }
  .fb-grid { padding-top: 210px; }
  .fb-side { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .cine-head, .cine-post { min-height: 0; }
  .cine-art, .cine-post .head-art { background-image: var(--art-s); background-size: auto 340px; background-position: 58% 0; opacity: 1; }
  .cine-art::after, .cine-post .head-art::after { background: linear-gradient(180deg, rgba(13,16,22,.15) 0, rgba(13,16,22,.1) 140px, var(--bg) 340px); }
  .cine-head .wrap, .cine-post .wrap { padding-top: 250px; }
}

/* ------------------------------------------------------------------ home hero: the newest devlog as a glass card beside the game */
.hero-dev { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(232, 234, 239, .2); border-radius: 12px; background: rgba(13, 16, 22, .8); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .8); animation: rise .8s cubic-bezier(.2, .8, .2, 1) .5s both; transition: border-color .2s; }
.hero-dev:hover { border-color: rgba(239, 80, 80, .55); }
.hero-dev .hd-k { display: inline-flex; align-items: center; gap: 10px; font: 700 .74rem/1.2 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--red-hi); }
.hero-dev .hd-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 4px rgba(239, 80, 80, .25); flex: none; }
.hero-dev .hd-art { display: block; overflow: hidden; border-radius: 8px; }
.hero-dev .hd-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hero-dev:hover .hd-art img { transform: scale(1.03); }
.hero-dev h2 { margin: 0; font-size: var(--step-3); line-height: .98; text-transform: uppercase; overflow-wrap: anywhere; }
.hero-dev h2 a { color: inherit; text-decoration: none; }
.hero-dev h2 a:hover { color: #fff; }
.hero-dev p { margin: 0; color: #c9ced8; font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-dev .hd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.hero-dev .hd-read { display: inline-flex; align-items: center; gap: 10px; }
.hero-dev time { color: var(--muted); font-size: .82rem; }
.hero-meta .hero-notes { padding: 0; font-size: inherit; letter-spacing: .12em; }
.hero-meta .hero-notes::before { display: none; }
/* two columns from 1001px: the game on the left, the devlog on the right */
@media (min-width: 1001px) {
  .hero .wrap:has(> .hero-dev) { grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 420px); column-gap: clamp(32px, 4vw, 64px); max-width: 1320px; }
  @media (min-width: 1360px) { .hero .wrap:has(> .hero-dev) { max-width: 1440px; } }
  .hero .wrap:has(> .hero-dev) > * { grid-column: 1; }
  .hero .wrap > .hero-dev { grid-column: 2; grid-row: 1 / span 6; align-self: center; }
}
@media (max-width: 1000px) { .hero-dev { max-width: 560px; } .hero-dev p { -webkit-line-clamp: 3; line-clamp: 3; } }
@media (max-width: 600px) { .hero-dev { padding: 14px; gap: 12px; } .hero-dev h2 { font-size: var(--step-2); } .hero-dev p { -webkit-line-clamp: 2; line-clamp: 2; } }
@media (prefers-reduced-motion: reduce) { .hero-dev, .hero-dev .hd-art img { animation: none; transition: none; } .hero-dev:hover .hd-art img { transform: none; } }

/* ---------- devlog comments (js/site.js [data-cmt], service tools/accounts/tcp_comments.py) ---------- */
.cmt { margin-top: 8px; padding-top: 36px; border-top: 1px solid var(--line); max-width: 720px; scroll-margin-top: 90px; }
.cmt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cmt-head h2 { margin: 0; font: 700 var(--step-2)/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 12px; }
.cmt-head h2 .n { font: 600 .9rem/1 var(--f-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 5px 10px; }
.cmt-sort { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cmt-sort button { background: transparent; color: var(--muted); border: 0; padding: 8px 14px; font: 600 .82rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.cmt-sort button + button { border-left: 1px solid var(--line); }
.cmt-sort button[aria-pressed="true"] { background: var(--panel-2); color: var(--fg); }
.cmt .av { flex: none; width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; font: 700 1.15rem/1 var(--f-display); color: #fff; text-transform: uppercase; border: 1px solid rgba(255,255,255,.08); }
.cmt .av.sm { width: 32px; height: 32px; font-size: .95rem; }
.cmt .av.crest { background: #0d1016 url(img/team-terminus.webp) center/cover; border-color: rgba(240,138,36,.55); }
.cmt .av.none { background: var(--panel-2); color: var(--dim); }
.cmt-compose { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 30px; }
.cmt-compose .box { flex: 1; min-width: 0; display: grid; gap: 10px; }
.cmt-compose .as { font-size: var(--step--1); color: var(--muted); }
.cmt-compose .as b { color: var(--fg); font-weight: 600; }
.cmt textarea { width: 100%; min-height: 96px; resize: vertical; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; font: 400 1rem/1.5 var(--f-body); box-sizing: border-box; }
.cmt textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.cmt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cmt-hint { font-size: .8rem; color: var(--dim); max-width: 46ch; }
.cmt-hint a { color: var(--muted); }
.cmt-send { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.cmt .count { font: 400 .78rem/1 var(--f-mono); color: var(--dim); }
.cmt .count.over { color: var(--red-hi); }
.cmt .btn-sm { padding: 10px 16px; font-size: .9rem; }
.cmt .btn-post { background: linear-gradient(180deg, var(--red-hi), var(--red)); color: #fff; border-color: transparent; }
.cmt .btn-post[disabled] { opacity: .5; cursor: default; }
.cmt-err { color: var(--red-hi); font-size: .88rem; margin: 0; }
.cmt-gate { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(214,59,59,.10), rgba(20,25,34,0) 60%), var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; margin-bottom: 30px; }
.cmt-gate h3 { margin: 0 0 4px; font: 700 1.25rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; }
.cmt-gate p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 44ch; }
.cmt-rules { margin: -14px 0 26px; font-size: .88rem; color: var(--muted); }
.cmt-rules summary { cursor: pointer; color: var(--dim); font-size: .82rem; width: max-content; }
.cmt-rules summary:hover { color: var(--fg); }
.cmt-rules ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.cmt-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cmt-item { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.cmt-list > .cmt-item:first-child { border-top: 0; padding-top: 0; }
.cmt-item .main { flex: 1; min-width: 0; }
.cmt-meta { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-size: var(--step--1); color: var(--dim); }
.cmt-meta .name { color: var(--fg); font-weight: 600; text-decoration: none; font-size: .98rem; }
.cmt-meta a.name:hover { text-decoration: underline; }
.cmt-meta .acct-tick { color: var(--ok); margin-left: -4px; }
.cmt-flag { font: 700 .68rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.cmt-flag.staff { color: var(--t-staff); border-color: rgba(240,138,36,.45); background: rgba(240,138,36,.08); }
.cmt-flag.pin { color: var(--amber); border-color: rgba(231,167,60,.4); }
.cmt-flag.you { color: var(--fg); }
.cmt-flag.wait { color: var(--amber); border-color: rgba(231,167,60,.4); background: rgba(231,167,60,.08); }
.cmt-body { margin: 6px 0 8px; color: #d5d9e1; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.cmt-held { margin: 0 0 8px; font-size: .84rem; color: var(--amber); }
.cmt-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cmt-actions button { background: none; border: 0; padding: 0; color: var(--dim); font: 600 .8rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; cursor: pointer; }
.cmt-actions button:hover, .cmt-actions button:focus-visible { color: var(--fg); }
.cmt-actions button[disabled] { cursor: default; }
.cmt-actions button[disabled]:hover { color: var(--dim); }
.cmt-actions .like { display: inline-flex; gap: 6px; align-items: center; }
.cmt-actions .like.on { color: var(--red-hi); }
.cmt-actions .sure { color: var(--red-hi); }
.cmt-replies { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 16px; }
.cmt-replies .cmt-item { border: 0; padding: 0; }
.cmt-replies .cmt-item.team-reply { border-left: 2px solid var(--t-staff); margin-left: -20px; padding-left: 18px; }
.cmt-reply { margin-top: 14px; display: grid; gap: 10px; }
.cmt-gone { color: var(--dim); font-style: italic; font-size: .92rem; padding: 4px 0; margin: 0; }
.cmt-more { margin-top: 22px; display: flex; justify-content: center; }
.cmt-empty { color: var(--muted); margin: 0; }
.cmt-list > .cmt-item.cmt-pinned { background: linear-gradient(90deg, rgba(231,167,60,.06), transparent 70%); border: 1px solid rgba(231,167,60,.18); border-radius: 8px; padding: 16px; margin-bottom: 18px; }
.cmt-note { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 6px; padding: 12px 14px; color: var(--muted); font-size: .9rem; margin: 0 0 30px; }
.cmt-menu { position: relative; }
.cmt-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 5; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; width: min(300px, 80vw); box-shadow: 0 20px 40px -12px rgba(0,0,0,.7); display: grid; gap: 8px; margin: 0; }
.cmt-pop legend { font: 700 1rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.cmt-pop label { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; }
.cmt-pop .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.cmt-actions .cmt-pop .btn { padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--fg); font-size: .82rem; }
.cmt-actions .cmt-pop .btn-post { background: linear-gradient(180deg, var(--red-hi), var(--red)); border-color: transparent; color: #fff; }
.post-meta .post-cmts { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
@media (max-width: 600px) {
  .cmt-compose { padding: 12px; gap: 10px; }
  .cmt-compose > .av { display: none; }
  .cmt .av { width: 34px; height: 34px; }
  .cmt-replies { padding-left: 12px; }
  .cmt-replies .cmt-item.team-reply { margin-left: -14px; padding-left: 12px; }
  .cmt-gate .btn { width: 100%; justify-content: center; }
  .cmt-send { width: 100%; justify-content: space-between; }
}
.cmt-pop input { accent-color: var(--red-hi); }

/* ------------------------------------------------------------------ top bar (build.py nav()): wordmark, four section panels, live servers, utilities, Download */
.nav.tb { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; border: 0; background: linear-gradient(180deg, rgba(8, 10, 14, .95), rgba(8, 10, 14, .84)); transition: background .3s, box-shadow .3s; }
.nav.tb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, rgba(232, 234, 239, .04), rgba(232, 234, 239, .14) 20%, rgba(239, 80, 80, .55) 50%, rgba(232, 234, 239, .14) 80%, rgba(232, 234, 239, .04)); }
.nav.tb.scrolled { background: rgba(10, 12, 16, .97); box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .9); }
.nav.tb > .wrap { display: flex; align-items: center; gap: 12px; height: 72px; max-width: 1440px; transition: height .3s; }
.nav.tb.scrolled > .wrap { height: 60px; }
.tb a { -webkit-tap-highlight-color: transparent; }

/* wordmark, cut from the game logo; a light sweeps across it on hover */
.tb-brand { position: relative; display: block; flex: none; margin-right: 6px; padding-right: 22px; text-decoration: none; }
.tb-brand::after { content: ""; position: absolute; right: 0; top: 50%; height: 30px; margin-top: -15px; width: 1px; background: linear-gradient(180deg, transparent, rgba(232, 234, 239, .22), transparent); }
.tb-wm { display: block; width: auto; height: 40px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .65)); transition: height .3s; }
.tb-shine { position: absolute; left: 0; top: 50%; height: 40px; aspect-ratio: 527 / 96; transform: translateY(-50%); pointer-events: none; mix-blend-mode: screen; transition: height .3s;
  -webkit-mask: url(img/wordmark.webp) center / contain no-repeat; mask: url(img/wordmark.webp) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 0 40%, rgba(255, 255, 255, .75) 48%, rgba(255, 140, 128, .55) 50%, rgba(255, 255, 255, .75) 52%, transparent 60% 100%) 100% 0 / 300% 100% no-repeat; }
.tb-brand:hover .tb-shine, .tb-brand:focus-visible .tb-shine { animation: tb-sweep 1s ease forwards; }
@keyframes tb-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.nav.tb.scrolled .tb-wm, .nav.tb.scrolled .tb-shine { height: 33px; }

/* section groups */
.tg-row { display: flex; align-self: stretch; gap: 2px; }
.tg { display: flex; }
.tg > button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; border: 0; background: none; cursor: pointer; color: #b9c0cc; font: 600 .84rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: color .15s; }
.tg > button svg { opacity: .55; transition: transform .25s, opacity .2s; }
.tg > button::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 2px; background: var(--red-hi); box-shadow: 0 0 14px rgba(239, 80, 80, .8); transform: scaleX(0); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.tg > button:hover, .tg.open > button, .tg.on > button { color: #fff; }
.tg.open > button::after, .tg > button:hover::after, .tg.on > button::after { transform: none; }
.tg.on:not(.open) > button::after { box-shadow: none; opacity: .75; }
.tg.open > button svg { transform: rotate(180deg); opacity: 1; color: var(--red-hi); }
.tg.has-new > button::before { content: ""; position: absolute; top: calc(50% - 12px); right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 3px rgba(239, 80, 80, .2); }

/* mega panels */
.tp { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 80; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(900px 300px at 12% 0%, rgba(214, 59, 59, .10), transparent 70%), #0b0d12; border-top: 1px solid rgba(232, 234, 239, .08); border-bottom: 1px solid rgba(232, 234, 239, .1); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .95); }
.tg.open .tp { display: block; animation: tp-in .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tp-in { from { opacity: 0; transform: translateY(-8px); } }
.tp > .wrap { display: grid; grid-template-columns: 330px minmax(0, 1fr); column-gap: 44px; max-width: 1440px; padding-top: 28px; }
.tp-list { display: grid; gap: 4px; align-content: start; align-self: start; }
.pi { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--fg); text-decoration: none; transition: background .15s; }
.pi > svg { width: 40px; height: 40px; padding: 10px; border: 1px solid rgba(232, 234, 239, .12); border-radius: 9px; color: #9aa3b2; background: rgba(255, 255, 255, .03); transition: color .15s, border-color .15s; }
.pi span { display: grid; gap: 4px; min-width: 0; }
.pi b { display: flex; align-items: center; gap: 8px; font: 600 .98rem/1.1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.pi small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.pi:hover, .pi:focus-visible, .pi[aria-current] { background: rgba(255, 255, 255, .05); }
.pi:hover > svg, .pi:focus-visible > svg, .pi[aria-current] > svg { color: var(--red-hi); border-color: rgba(239, 80, 80, .45); }
.pi[aria-current] b { color: #fff; }
.pi b em { display: none; padding: 3px 5px; border-radius: 3px; background: var(--red); color: #fff; font: 700 .58rem/1 var(--f-display); font-style: normal; letter-spacing: .1em; }
.pi.fresh b em { display: inline-block; }
.tp-art { min-width: 0; }
.pt { position: relative; display: block; overflow: hidden; border-radius: 10px; color: #fff; text-decoration: none; border: 1px solid rgba(232, 234, 239, .1); background: #12161d; }
.pt img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.pt:hover img, .pt:focus-visible img { transform: scale(1.05); filter: saturate(1.1); }
.pt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 14, .92), rgba(8, 10, 14, .1) 55%, transparent); }
.pt > span { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 14px 16px; font: 700 1rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.pt .br { position: absolute; inset: 8px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .2s, inset .25s; background-repeat: no-repeat;
  --c: linear-gradient(var(--red-hi), var(--red-hi));
  background-image: var(--c), var(--c), var(--c), var(--c), var(--c), var(--c), var(--c), var(--c);
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%; }
.pt:hover .br, .pt:focus-visible .br { opacity: 1; inset: 10px; }
.pt-maps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pt-maps .pt { aspect-ratio: 16 / 8.2; }
.tp-play, .tp-compete, .tp-community { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 100%; min-height: 340px; max-height: 470px; }
.pt-big { grid-row: 1 / 3; min-height: 0; }
.pt-big img, .pt-sm img { position: absolute; inset: 0; }
.pt-sm { min-height: 0; }
.pt-sm > span { font-size: .92rem; }
.pt em { font: 700 .62rem/1 var(--f-display); letter-spacing: .2em; color: var(--red-hi); font-style: normal; }
.pt-big > span { gap: 10px; padding: 24px 26px; }
.pt-big em { font-size: .7rem; letter-spacing: .22em; }
.pt-big strong { font: 700 2rem/1.02 var(--f-display); letter-spacing: .02em; text-wrap: balance; }
.pt-big u { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 .78rem/1 var(--f-display); letter-spacing: .16em; color: #e8eaef; }
.tp-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 14px 0 16px; border-top: 1px solid rgba(232, 234, 239, .08); font: 500 .74rem/1.3 var(--f-mono); color: #8b93a3; letter-spacing: .04em; }
.tp-foot a { display: inline-flex; gap: 8px; align-items: center; flex: none; color: #e8eaef; text-decoration: none; font: 600 .76rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; }
.tp-foot a:hover { color: var(--red-hi); }
.tb-scrim { position: fixed; inset: 0; z-index: -1; background: rgba(4, 6, 9, .62); animation: tp-fade .3s both; }
.tb-scrim[hidden] { display: none; }
@keyframes tp-fade { from { opacity: 0; } }

/* live servers */
.tl { position: relative; margin-left: auto; flex: none; }
.tl-btn { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid rgba(232, 234, 239, .16); background: rgba(255, 255, 255, .03); color: #c4cad4; cursor: pointer; font: 600 .74rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.tl-btn i { width: 7px; height: 7px; border-radius: 50%; background: #6b7383; }
.tl-btn svg { opacity: .6; transition: transform .25s; }
.tl.on .tl-btn { border-color: rgba(64, 196, 120, .32); background: rgba(64, 196, 120, .07); color: #cfe9d9; }
.tl.on .tl-btn i, .ms-live.on i { background: #40c478; animation: tb-pulse 2s infinite; }
@keyframes tb-pulse { 0% { box-shadow: 0 0 0 0 rgba(64, 196, 120, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(64, 196, 120, 0); } }
.tl.open .tl-btn svg { transform: rotate(180deg); }
.tl-pop { display: none; position: absolute; right: 0; top: calc(100% + 14px); z-index: 90; width: 340px; padding: 14px; border-radius: 14px; background: #0f1218; border: 1px solid rgba(232, 234, 239, .12); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .95); }
.tl.open .tl-pop { display: grid; gap: 8px; animation: tp-in .25s both; }
.tl-h { padding: 2px 4px 6px; font: 700 .66rem/1 var(--f-display); letter-spacing: .22em; text-transform: uppercase; color: #8b93a3; }
.tl-list { display: grid; gap: 8px; }
.tl-list:empty { display: none; }
.tl-s { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--fg); background: rgba(255, 255, 255, .03); border: 1px solid rgba(232, 234, 239, .06); }
.tl-s:hover { border-color: rgba(64, 196, 120, .4); }
.tl-s img, .tl-ph { display: block; width: 64px; height: 40px; object-fit: cover; border-radius: 6px; background: #1a1f28; }
.tl-s span { display: grid; gap: 4px; min-width: 0; }
.tl-s strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .86rem/1.1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.tl-s small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .76rem; }
.tl-s em { font: 600 .8rem/1 var(--f-mono); font-style: normal; color: #6fdc9b; }
.tl-all { justify-self: end; display: inline-flex; gap: 8px; align-items: center; padding: 6px 4px 2px; color: #e8eaef; text-decoration: none; font: 600 .74rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; }
.tl-all:hover { color: #6fdc9b; }

/* search, language, support and account as one segmented control */
.tu { display: inline-flex; align-items: stretch; height: 38px; flex: none; border: 1px solid rgba(232, 234, 239, .14); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.tu > button, .tu > a, .tu .nav-langs summary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 100%; padding: 0 10px; border: 0; background: none; color: #9aa3b2; cursor: pointer; text-decoration: none; font: 600 .74rem/1 var(--f-display); letter-spacing: .1em; }
.tu > * + * { border-left: 1px solid rgba(232, 234, 239, .1); }
.tu > :first-child { border-radius: 9px 0 0 9px; } .tu > :last-child { border-radius: 0 9px 9px 0; }
.tu > button:hover, .tu > a:hover, .tu .nav-langs summary:hover, .tu .nav-langs[open] summary { color: #fff; background: rgba(255, 255, 255, .06); }
.tu kbd { padding: 3px 5px; border: 1px solid rgba(232, 234, 239, .12); border-radius: 4px; background: none; color: #8b93a3; font: 500 .66rem/1 var(--f-mono); }
.tu .tu-heart { color: var(--amber); }
.tu .tu-heart:hover, .tu .tu-heart[aria-current] { color: #14100a; background: var(--amber); }
.tu [data-nav-account][aria-current] { color: #fff; background: rgba(255, 255, 255, .08); }
.tu .nav-langs { position: relative; display: flex; }
.tu .nav-langs summary { list-style: none; }
.tu .nav-langs summary::-webkit-details-marker { display: none; }
.tu .nav-langs > div { position: absolute; top: calc(100% + 12px); right: -1px; z-index: 90; min-width: 160px; display: grid; padding: 6px; background: #0f1218; border: 1px solid rgba(232, 234, 239, .12); border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.tu .nav-langs a { padding: 9px 12px; border-radius: 6px; color: var(--fg); text-decoration: none; font-size: .92rem; }
.tu .nav-langs a:hover { background: rgba(232, 234, 239, .07); }

/* Download, with the current version and a slow sheen */
.tb-dl { position: relative; overflow: hidden; flex: none; height: 40px; padding: 0 8px 0 14px; gap: 9px; font-size: .86rem; white-space: nowrap; }
.tb-dl small { padding: 5px 6px; border-radius: 5px; background: rgba(0, 0, 0, .22); font: 600 .68rem/1 var(--f-mono); letter-spacing: 0; text-transform: none; }
.tb-dl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); animation: tb-dl-sheen 5s 2s infinite; pointer-events: none; }
@keyframes tb-dl-sheen { 0%, 80% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.tb-burger { display: none; position: relative; flex-direction: column; justify-content: center; gap: 5px; flex: none; width: 42px; height: 42px; padding: 0 11px; border: 1px solid rgba(232, 234, 239, .16); border-radius: 10px; background: rgba(255, 255, 255, .03); cursor: pointer; }
.tb-burger i { display: block; height: 2px; background: #e8eaef; border-radius: 1px; }
.tb-burger i:nth-child(3) { width: 60%; background: var(--red-hi); }
.tb-burger.has-new::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 3px #0b0d12; }
.ms { display: none; }

@media (max-width: 1499px) { .tu kbd { display: none; } }
@media (max-width: 1399px) { .tl-btn b { display: none; } .tl-btn { padding: 0 10px 0 12px; } .tg > button { padding: 0 12px; letter-spacing: .13em; } .tg > button::after { left: 12px; right: 12px; } .tp > .wrap { grid-template-columns: 300px minmax(0, 1fr); column-gap: 32px; } }
@media (max-width: 1279px) { .tb-dl small { display: none; } .tb-dl { padding: 0 14px; } .tb-wm, .tb-shine { height: 34px; } .tb-brand { padding-right: 16px; } }
@media (max-width: 1179px) {
  .tg-row, .tl, .tu { display: none; }
  .tb-dl { margin-left: auto; }
  .tb-burger { display: flex; }
  .ms:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 90; overflow: auto; overscroll-behavior: contain; padding: 0 16px 110px; background: radial-gradient(600px 300px at 0 0, rgba(214, 59, 59, .12), transparent 70%), #0b0d12; animation: tp-fade .2s both; }
  html.ms-open { overflow: hidden; }
  .ms-top { display: flex; align-items: center; gap: 10px; height: 64px; border-bottom: 1px solid rgba(232, 234, 239, .08); }
  .ms-top .tb-brand { margin-right: auto; padding-right: 0; } .ms-top .tb-brand::after { display: none; }
  .ms-top .tb-wm, .ms-top .tb-shine { height: 30px; }
  .ms-search, .ms-x { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(232, 234, 239, .16); border-radius: 10px; background: none; color: #e8eaef; cursor: pointer; }
  .ms-live { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(232, 234, 239, .14); background: rgba(255, 255, 255, .03); color: #c4cad4; text-decoration: none; font: 600 .8rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
  .ms-live.on { border-color: rgba(64, 196, 120, .3); background: rgba(64, 196, 120, .07); color: #cfe9d9; }
  .ms-live i { width: 8px; height: 8px; border-radius: 50%; background: #6b7383; }
  .ms-live u { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; color: #e8eaef; text-decoration: none; }
  .ms-dev { display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center; margin-bottom: 8px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(232, 234, 239, .1); color: #fff; text-decoration: none; }
  .ms-dev img { width: 108px; height: 61px; object-fit: cover; border-radius: 8px; }
  .ms-dev span { display: grid; gap: 6px; font: 700 1rem/1.08 var(--f-display); text-transform: uppercase; }
  .ms-dev em { font: 700 .64rem/1 var(--f-display); letter-spacing: .2em; color: var(--red-hi); font-style: normal; }
  .ms-g { border-bottom: 1px solid rgba(232, 234, 239, .08); }
  .ms-g summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; font: 700 1.5rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: #e8eaef; cursor: pointer; }
  .ms-g summary::-webkit-details-marker { display: none; }
  .ms-g summary svg { width: 20px; height: 20px; color: #8b93a3; transition: transform .2s; }
  .ms-g[open] summary { color: #fff; } .ms-g[open] summary svg { transform: rotate(180deg); color: var(--red-hi); }
  .ms-g .pi { padding: 8px 2px; } .ms-g .pi[aria-current] { padding-inline: 8px; }
  .ms-g > .pi:last-child { margin-bottom: 12px; }
  .ms-maps { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; margin: 0 -16px 6px; padding: 0 16px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; }
  .ms-maps a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; color: #fff; text-decoration: none; scroll-snap-align: start; }
  .ms-maps img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .ms-maps span { position: absolute; inset: auto 0 0; padding: 18px 10px 8px; background: linear-gradient(0deg, rgba(8, 10, 14, .9), transparent); font: 700 .8rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
  .ms-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 20px 0; font: 600 .78rem/1 var(--f-mono); }
  .ms-langs > b, .ms-langs > a { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(232, 234, 239, .12); color: #9aa3b2; text-decoration: none; }
  .ms-langs > b { color: #fff; border-color: var(--red-hi); background: rgba(239, 80, 80, .12); }
  .ms-langs .ms-heart { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; color: var(--amber); border-color: rgba(231, 167, 60, .4); font-family: var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
  .ms-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, #0b0d12 70%, rgba(11, 13, 18, 0)); }
  .ms-foot .btn { width: 100%; justify-content: center; }
  .ms-foot small { font: 500 .72rem/1 var(--f-mono); opacity: .85; text-transform: none; letter-spacing: 0; }
}
@media (max-width: 480px) {
  .nav.tb > .wrap, .nav.tb.scrolled > .wrap { gap: 10px; height: 64px; }
  .tb-brand { padding-right: 0; } .tb-brand::after { display: none; }
  .tb-wm, .tb-shine, .nav.tb.scrolled .tb-wm, .nav.tb.scrolled .tb-shine { height: 28px; }
  .tb-dl { height: 40px; padding: 0 12px; font-size: .76rem; } .tb-dl > svg { display: none; }
}
@media (max-width: 400px) { .tb-wm, .tb-shine, .nav.tb.scrolled .tb-wm, .nav.tb.scrolled .tb-shine { height: 24px; } .nav.tb > .wrap, .nav.tb.scrolled > .wrap { gap: 8px; } .tb-dl { padding: 0 10px; font-size: .72rem; letter-spacing: .06em; } .tb-burger { width: 40px; height: 40px; padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) {
  .nav.tb, .nav.tb > .wrap, .tb-wm, .tg > button::after, .pt img, .pt .br { transition: none; }
  .tb-brand:hover .tb-shine, .tb-dl::after, .tl.on .tl-btn i, .ms-live.on i, .tg.open .tp, .tl.open .tl-pop, .tb-scrim, .ms:not([hidden]) { animation: none; }
  .pt:hover img { transform: none; }
}
@media (forced-colors: active) {
  .tg > button::after { background: Highlight; }
  .tu, .tl-btn, .tb-burger, .tp, .tl-pop, .pt { border: 1px solid ButtonText; }
  .tb-shine, .tb-dl::after, .pt::after { display: none; }
}
@media print { .nav.tb { position: static; } }

/* weekly highlights on the home page (site.js [data-week], bridge /recap.json) */
.week { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.wk-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.wk-head h3 { margin: 6px 0 4px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.wk-head p { margin: 0; font-size: var(--step--1); }
.wk-all { margin-left: auto; color: var(--muted); font-size: var(--step--1); }
.wk-all::after { content: " →"; }
.wk-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin: 0 0 14px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.wk-stats div { background: var(--panel); padding: 14px 16px; }
.wk-stats dt { font: 600 .72rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.wk-stats dd { margin: 8px 0 0; font: 700 clamp(1.25rem, 2vw, 1.6rem)/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--fg); }
.wk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; }
.wk-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 280px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(9,11,15,.15) 0%, rgba(9,11,15,.55) 45%, rgba(9,11,15,.94) 100%), var(--wk-art) center / cover no-repeat, var(--panel); }
.wk-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.wk-hero .wk-big { margin: 0; font: 800 clamp(1.7rem, 3vw, 2.4rem)/1.05 var(--f-display); letter-spacing: .01em; overflow-wrap: anywhere; }
.wk-hero .wk-big a { color: var(--fg); text-decoration: none; }
.wk-hero .wk-sub { color: #d6dae3; }
.wk-more { align-self: flex-start; margin-top: 6px; font: 600 .78rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--fg); padding: 10px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; text-decoration: none; backdrop-filter: blur(6px); background: rgba(9,11,15,.35); }
.wk-more:hover { border-color: var(--red-hi); }
.wk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wk-card.best { grid-column: span 2; }
.wk-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.wk-label { font: 600 .72rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.wk-hero .wk-label { color: var(--amber); }
.wk-val { margin: 0; font: 700 1.15rem/1.2 var(--f-display); overflow-wrap: anywhere; }
.wk-val a, .wk-val span { color: var(--fg); text-decoration: none; }
.wk-val a:hover, .wk-hero .wk-big a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wk-sub { font-size: var(--step--1); color: var(--muted); }
.wk-sub a { color: inherit; }
@media (max-width: 1100px) { .wk-grid { grid-template-columns: 1fr; } .wk-hero { min-height: 220px; } .wk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wk-card:last-child:nth-child(even) { grid-column: span 2; } .wk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wk-card { padding: 14px; } }

/* server banners page (banners.html, images from tools/server-bridge/tcp_banner.py) */
.banners { display: grid; gap: clamp(28px, 4vw, 44px); }
.banners > * { min-width: 0; max-width: 1100px; }
.bn > * { min-width: 0; }
.bn { display: grid; gap: 16px; padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.bn header h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.bn header p { margin: 0; color: var(--muted); }
.bn-figs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; }
.bn-fig { margin: 0; display: grid; gap: 8px; max-width: 100%; }
.bn-fig img { display: block; max-width: 100%; height: auto; border-radius: 4px; background: var(--panel) linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.bn-fig figcaption { font: 600 .74rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.bn[data-size="wide"] .bn-small img, .bn[data-size="small"] .bn-wide img { opacity: .55; }
.bn-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.bn-codes { position: relative; }
.bn-code { display: none; margin: 0; padding: 16px 110px 16px 16px; background: #0a0d12; border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; font: .82rem/1.55 var(--f-mono); color: #cfd5df; white-space: pre-wrap; word-break: break-all; }
.bn[data-fmt="html"][data-size="wide"] [data-fmt-for="html"][data-size-for="wide"], .bn[data-fmt="html"][data-size="small"] [data-fmt-for="html"][data-size-for="small"],
.bn[data-fmt="bb"][data-size="wide"] [data-fmt-for="bb"][data-size-for="wide"], .bn[data-fmt="bb"][data-size="small"] [data-fmt-for="bb"][data-size-for="small"],
.bn[data-fmt="md"][data-size="wide"] [data-fmt-for="md"][data-size-for="wide"], .bn[data-fmt="md"][data-size="small"] [data-fmt-for="md"][data-size-for="small"],
.bn[data-fmt="url"][data-size="wide"] [data-fmt-for="url"][data-size-for="wide"], .bn[data-fmt="url"][data-size="small"] [data-fmt-for="url"][data-size-for="small"] { display: block; }
.bn-code code { white-space: inherit; word-break: inherit; background: none; padding: 0; border: 0; font: inherit; color: inherit; }
.bn-copy { position: absolute; top: 8px; right: 8px; padding: 8px 14px; font-size: .8rem; }
.bn-how h2 { margin: 0 0 10px; font-size: 1.2rem; }
.bn-how ul { margin: 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 6px; }
@media (max-width: 640px) { .bn-code { padding: 14px; padding-top: 52px; } }

/* ---------- official trailer: hero button, home band and lightbox ---------- */
.btn-trailer { padding: 10px 22px 10px 10px; gap: 14px; border-color: rgba(232, 234, 239, .28); }
.btn-trailer:hover { border-color: rgba(232, 234, 239, .6); background: rgba(13, 16, 22, .72); }
.btn-trailer .bt-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(232, 234, 239, .5); transition: background-color .2s, border-color .2s; }
.btn-trailer:hover .bt-ico { background: var(--red); border-color: var(--red); }
.btn-trailer .stack { display: grid; gap: 4px; text-align: left; }
.btn-trailer .big { font-size: 1.12rem; letter-spacing: .06em; }
.btn-trailer .small { font: 500 .72rem/1 var(--f-body); letter-spacing: .02em; text-transform: none; color: var(--muted); }

.trailer-band { position: relative; padding-block: clamp(56px, 8vw, 112px); background: radial-gradient(120% 70% at 50% 0%, rgba(214, 59, 59, .14), transparent 60%), #07090c; border-block: 1px solid var(--line); overflow: hidden; }
.trailer-band .wrap { display: grid; gap: clamp(22px, 3vw, 36px); }
.tb-head { display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 760px; margin-inline: auto; }
.tb-head h2 { margin: 0; font: 700 clamp(2rem, 5vw, 3.6rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.tb-head .lede { margin: 0; }
.yt-trailer { width: 100%; max-width: 1280px; margin-inline: auto; border-radius: 10px; border: 1px solid rgba(232, 234, 239, .14); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6); isolation: isolate; }
.yt-trailer picture, .yt-trailer picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt-trailer picture img { object-fit: cover; opacity: .8; transform: scale(1.02); transition: opacity .4s, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.yt-trailer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 9, .2), rgba(5, 6, 9, .1) 40%, rgba(5, 6, 9, .75)); pointer-events: none; z-index: 1; }
.yt-trailer:hover picture img { opacity: .92; transform: scale(1.05); }
.yt-trailer .tb-logo { position: absolute; left: 50%; top: 40%; width: min(38%, 420px); height: auto; transform: translate(-50%, -50%); z-index: 2; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .8)); pointer-events: none; opacity: 1; }
.yt-trailer button { z-index: 3; align-content: end; justify-items: center; gap: 12px; padding-bottom: clamp(20px, 6%, 56px); }
.yt-trailer button span { width: clamp(64px, 9vw, 96px); height: clamp(64px, 9vw, 96px); }
.yt-trailer button b { font: 600 clamp(.8rem, 1.2vw, 1rem)/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.yt-trailer .hud { z-index: 2; opacity: 1; animation: none; pointer-events: none; }
.yt-trailer.playing .hud, .yt-trailer.playing::after { display: none; }
.yt-trailer iframe { z-index: 4; }
.tb-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; max-width: 1280px; width: 100%; margin-inline: auto; }
.tb-foot .yt-note { margin: 0; flex: 1 1 280px; }
.tb-foot .yt-note a { color: inherit; }
@media (max-width: 600px) { .yt-trailer .tb-logo { top: 36%; width: 50%; } .yt-trailer button b { display: none; } .yt-trailer button { padding-bottom: 7%; } .yt-trailer button span { width: 56px; height: 56px; } }

.trailer-lb { width: min(1280px, calc(100vw - 32px), calc((100vh - 110px) * 16 / 9)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.trailer-lb::backdrop { background: rgba(5, 6, 9, .94); }
.trailer-lb .tl-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); }
@supports (height: 100dvh) { .trailer-lb { width: min(1280px, calc(100vw - 32px), calc((100dvh - 110px) * 16 / 9)); } }
.trailer-lb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.trailer-lb .tl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); font: 600 .82rem/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase; }
.trailer-lb .tl-close { background: rgba(20, 25, 34, .8); border: 1px solid var(--line); color: var(--fg); width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; flex: none; }
.trailer-lb .tl-close:hover { border-color: var(--red-hi); }
@media (prefers-reduced-motion: reduce) { .yt-trailer picture img { transition: none; transform: none; } }
.tb-media { border-top: 0; }
