/* ICEMANISAAC design tokens. Single dark theme by decision (brand-principles.md). */
@font-face { font-family: "Saira Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/SairaCondensed-700.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/SairaCondensed-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Barlow-Regular.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Barlow-Bold.woff") format("woff"); }

:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #050607;
  --bg-2: #0B0D11;
  --bg-3: #11141A;
  --bg-4: #171B22;
  --line: #1C2128;
  --line-2: #2A3039;
  /* text */
  --fg: #EEF1F4;
  --fg-2: #C5CBD4;
  --mute: #8B93A0;
  --mute-2: #5F6773;
  /* brand */
  --ice: #34E7FF;
  --ice-deep: #16B8D1;
  --ice-ink: #04141B;
  --ice-glow: rgba(52, 231, 255, 0.18);
  --live: #FF3B5C;
  /* game accent (overridden per [data-game]) */
  --accent: var(--ice);
  --accent-ink: var(--ice-ink);
  --accent-2: var(--ice-deep);
  --tint: var(--bg-2);
  /* type */
  --display: "Saira Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* scale */
  --fs-0: 12px; --fs-1: 13px; --fs-2: 15px; --fs-3: 17px; --fs-4: 20px;
  --display-xs: 20px; --display-sm: 28px; --display-md: clamp(32px, 4vw, 44px); --display-lg: clamp(44px, 6.4vw, 84px); --display-xl: clamp(48px, 6.6vw, 96px);
  /* geometry */
  --eagle-mask: url("/img/brand/eagle-mask.png");
  --radius: 2px;
  --radius-lg: 4px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1320px;
  --brand-h: 68px; --games-h: 44px; --header-h: 68px;
  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: 420ms;
}

[data-game="dmz"]        { --accent: #F4C74F; --accent-ink: #141206; --accent-2: #C9A46A; --tint: #141306; }
[data-game="battlefield"]{ --accent: #FF4A3D; --accent-ink: #1A0604; --accent-2: #3D8BFF; --tint: #160807; }
[data-game="wardogs"]    { --accent: #D9A24A; --accent-ink: #1A1204; --accent-2: #7C8A5A; --tint: #141108; }
[data-game="gta"]        { --accent: #FF4FA3; --accent-ink: #1F0012; --accent-2: #3BE3FF; --tint: #170A12; }


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: var(--fs-2); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: .95; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap-wide { max-width: 1600px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: .95; font-weight: 800; }
.mono { font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; min-width: 0; }
.eyebrow .ac { color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.eyebrow.plain::before { display: none; }
.lede { font-size: var(--fs-3); color: var(--fg-2); max-width: 36em; }
.muted { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); font-weight: 700; font-size: var(--fs-1); letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease-out); white-space: nowrap; }
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.small { padding: 8px 12px; font-size: var(--fs-0); }
.btn .arrow { width: 14px; height: 14px; }
.btn.ghost { border-color: transparent; color: var(--mute); }
.btn.ghost:hover { color: var(--fg); }

/* section scaffolding */
.section { padding-block: 64px; }
.section.tight { padding-block: 40px; }
.section-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: var(--display-md); }
.section-head .more { margin-left: auto; font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.section-head .more::after { content: ""; width: 14px; height: 1px; background: var(--mute); }
.section-head .more:hover { color: var(--fg); }
.section-head .lede { margin-top: 10px; }
@media (max-width: 640px) { .section { padding-block: 44px; } .section-head { flex-direction: column; align-items: flex-start; gap: 8px; } .section-head .more { margin-left: 0; } }

.rule { height: 1px; background: var(--line); }
.corner { position: absolute; width: 10px; height: 10px; border-color: var(--line-2); border-style: solid; border-width: 0; pointer-events: none; }
.corner.tr { right: 0; top: 0; border-left-width: 1px; border-bottom-width: 1px; }
.corner.bl { left: 0; bottom: 0; border-right-width: 1px; border-top-width: 1px; }

/* skip link */
.skip { position: absolute; left: 16px; top: -48px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 200; font-weight: 700; }
.skip:focus { top: 8px; }


/* ===== Header: one bar. Games (or the current game's sections) left, mark centre, Isaac's pages right ===== */
.hdr { position: sticky; top: 0; z-index: 90; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr .row1 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: var(--brand-h); gap: 16px; }
.hdr nav ul { display: flex; gap: 2px; align-items: center; }
.hdr nav a, .hdr nav .tab-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); border-radius: var(--radius); position: relative; transition: color .18s; white-space: nowrap; }
.hdr nav a:hover, .hdr nav .tab-btn:hover, .hdr nav a[aria-current="page"], .hdr nav .game-tab.on .tab-btn { color: var(--fg); }
.hdr nav a[aria-current="page"]::after, .hdr nav .game-tab.on .tab-btn::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--accent); }
/* `.left` must not scroll: overflow-x:auto forces overflow-y:auto and clipped every dropdown (game tabs, game switcher) below the bar.
   Inside a game the sections list is the only thing that can grow, so that list scrolls on its own instead. */
.hdr .left { display: flex; align-items: center; justify-self: start; min-width: 0; max-width: 100%; height: 100%; overflow: visible; }
.hdr .left > nav { flex: none; }
.hdr .left > nav.gamectx { flex: 1 1 auto; }
/* no overflow clipping anywhere in the bar: the Settings dropdown hangs below it */
.hdr .gamectx .secs { overflow: visible; min-width: 0; flex-wrap: nowrap; }
.hdr .right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; justify-self: end; }
.hdr .primary ul { gap: 4px; }
/* brand, centred */
.hdr .brand { display: grid; place-items: center; height: var(--brand-h); justify-self: center; padding: 0 12px; }
.hdr .brand .eagle { width: 66px; height: 40px; background: var(--ice); -webkit-mask: var(--eagle-mask) center / contain no-repeat; mask: var(--eagle-mask) center / contain no-repeat; transition: transform .3s var(--ease-out), filter .3s; }
.hdr .brand .wordmark { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg); line-height: 1; white-space: nowrap; }
.hdr .brand .wordmark b { font-weight: 800; color: var(--ice); transition: color .3s; }
.hdr .brand:hover .eagle { transform: translateY(-1px); filter: drop-shadow(0 0 10px var(--ice-glow)); }
body[data-game] .hdr .brand .eagle { background: var(--accent); }
body[data-game] .hdr .brand .wordmark b { color: var(--accent); }
body[data-game] .hdr .brand:hover .eagle { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent)); }
/* games on the left (outside a game) */
.hdr .games { height: 100%; display: flex; align-items: stretch; }
.hdr .games ul { gap: 0; height: 100%; }
.hdr .games .game-tab { height: 100%; display: flex; }
.hdr .games .tab-btn { gap: 8px; padding: 0 16px 0 12px; height: 100%; border-radius: 0; }
.hdr .games .game-tab:first-child .tab-btn { padding-left: 0; }
.hdr nav .game-tab.on .tab-btn::after { left: 0; right: 16px; bottom: 0; height: 2px; }
.hdr .games .glogo { opacity: .72; transition: opacity .18s; }
.hdr .games .tab-btn:hover .glogo, .hdr .games .game-tab.on .glogo { opacity: 1; }
.hdr .games .glogo.sm { height: 22px; max-width: 104px; }
.hdr .games .glogo.mark.gta { height: 32px; } .hdr .games .glogo.mark.wardogs { height: 20px; }
.hdr .games .tab-btn:hover .glogo.mark, .hdr .games .game-tab.on .glogo.mark { color: var(--accent); }
.hdr .gamectx .glink .glogo.mark { color: var(--accent); } .hdr .gamectx .glink .glogo.mark.gta { height: 34px; }
.hdr .games .glogo.text.sm { font-size: 16px; letter-spacing: .1em; color: var(--mute); }
.hdr .games .tab-btn:hover .glogo.text, .hdr .games .game-tab.on .glogo.text { color: var(--fg); }
/* inside a game: switcher, game logo, sections */
.hdr .gamectx { display: flex; align-items: stretch; height: 100%; min-width: 0; }
.hdr .gamectx .switch { position: relative; display: flex; align-items: center; }
.hdr .gamectx .sw-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--mute); margin-right: 10px; }
.hdr .gamectx .sw-btn svg { width: 11px; height: 11px; transform: rotate(90deg); }
.hdr .gamectx .sw-btn:hover, .hdr .gamectx .switch:focus-within .sw-btn, .hdr .gamectx .switch.open .sw-btn { color: var(--fg); border-color: var(--fg); }
.hdr .gamectx .switch .panel { position: absolute; top: calc(100% + 10px); left: 0; min-width: 200px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.6); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .22s var(--ease-out), visibility 0s linear .22s; z-index: 95; }
.hdr .gamectx .switch:hover .panel, .hdr .gamectx .switch:focus-within .panel, .hdr .gamectx .switch.open .panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hdr .gamectx .switch .panel ul { display: grid; gap: 2px; }
.hdr .gamectx .switch .panel a { padding: 10px 12px; border-radius: var(--radius); }
.hdr .gamectx .switch .panel a:hover { background: var(--bg-3); }
.hdr .gamectx .switch .panel .glogo.sm { height: 20px; max-width: 110px; }
.hdr .gamectx .switch .panel .glogo.text.sm { font-size: 15px; color: var(--fg); }
.hdr .gamectx .glink { display: inline-flex; align-items: center; padding: 0 14px 0 0; margin-right: 6px; border-right: 1px solid var(--line); }
.hdr .gamectx .glink .glogo.sm { height: 24px; max-width: 112px; }
.hdr .gamectx .glink .glogo.text.sm { font-size: 17px; color: var(--fg); }
.hdr .gamectx .secs { gap: 0; height: 100%; }
.hdr .gamectx .secs a { height: 100%; padding: 0 12px; border-radius: 0; font-size: 14px; }
.hdr .gamectx .secs a[aria-current="page"]::after { left: 12px; right: 12px; bottom: 0; }
.hdr .gamectx .secs a.soon { opacity: .6; }
/* Settings drops down to its pages (Graphics, Controller, Keyboard & Mouse) */
.hdr .gamectx .secs .sec-group { position: relative; }
.hdr .gamectx .secs .sec-group > a .chev { width: 9px; height: 9px; margin-left: 2px; }
.hdr .gamectx .secs .sec-group .panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.6); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .22s var(--ease-out), visibility 0s linear .22s; z-index: 95; }
.hdr .gamectx .secs .sec-group:hover .panel, .hdr .gamectx .secs .sec-group:focus-within .panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hdr .gamectx .secs .sec-group .panel ul { display: grid; gap: 2px; height: auto; }
.hdr .gamectx .secs .sec-group .panel a { height: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); font-family: var(--body); font-size: var(--fs-2); font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--fg-2); }
.hdr .gamectx .secs .sec-group .panel a:hover { background: var(--bg-3); color: var(--fg); }
.hdr .gamectx .secs .sec-group .panel a::after { content: none; }
.hdr .gamectx .secs .sec-group .panel a[aria-current="page"] { color: var(--accent); }
.hdr .gamectx .secs .sec-group .panel .k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-2); }
.chev { width: 10px; height: 10px; opacity: .7; }
/* section strip under the bar (phones only) */
.hdr .substrip { display: none; }

/* game tab dropdowns */
.game-tab { position: relative; }
.game-tab .panel { position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 6px); width: 300px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .18s, transform .22s var(--ease-out), visibility 0s linear .22s; z-index: 95; overflow: hidden; }
.game-tab:hover .panel, .game-tab:focus-within .panel, .game-tab.open .panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
/* the first tab sits on the page's left gutter: its panel hangs from its left edge so it never runs off the viewport */
.game-tab:first-child .panel { left: 0; transform: translate(0, 6px); }
.game-tab:first-child:hover .panel, .game-tab:first-child:focus-within .panel, .game-tab:first-child.open .panel { transform: translate(0, 0); }
.game-tab .panel .art { position: relative; display: block; aspect-ratio: 16 / 7; background: var(--bg-3) center / cover no-repeat; padding: 0; border-radius: 0; filter: saturate(.85); transition: filter .25s; }
.game-tab .panel .art:hover { filter: saturate(1) brightness(1.08); }
.game-tab .panel .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg-2) 100%); }
.game-tab .panel .art .t { position: absolute; left: 14px; bottom: 8px; font-family: var(--display); font-size: 22px; font-weight: 800; text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px #000; z-index: 1; }
.game-tab .panel .art .t small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--accent); font-weight: 400; margin-bottom: 2px; }
.game-tab .panel ul { display: block; padding: 6px; }
.game-tab .panel li a { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; font-family: var(--body); font-size: var(--fs-2); font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--fg-2); border-radius: var(--radius); }
.game-tab .panel li a:hover { background: var(--bg-3); color: var(--fg); }
.game-tab .panel li a:hover::after { content: none; }
.game-tab .panel li a .k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.game-tab .panel li a .k.soon { color: var(--mute-2); }
.game-tab .panel .hub { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }

/* live pill */
.live { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); white-space: nowrap; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mute-2); }
.live[data-live="false"] { color: var(--mute); }
.live[data-live="true"] { border-color: color-mix(in srgb, var(--live) 50%, var(--line-2)); }
.live[data-live="true"] .dot { background: var(--live); box-shadow: 0 0 0 3px rgba(255,59,92,.22); animation: pulse 1.8s ease-in-out infinite; }
.live .vc { font-family: var(--body); font-weight: 400; font-size: var(--fs-0); letter-spacing: 0; text-transform: none; color: var(--mute); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(255,59,92,.22); } 50% { box-shadow: 0 0 0 6px rgba(255,59,92,.08); } }

/* mobile menu */
.menu-btn { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); }
.menu-btn svg { width: 18px; height: 18px; }
.mobile-nav { display: none; }
/* compact bar: narrower windows (and the preview pane) keep the full layout with tighter spacing */
@media (max-width: 1180px) {
  .hdr nav a, .hdr nav .tab-btn { font-size: 13px; padding: 8px 7px; letter-spacing: .08em; }
  .hdr .games .tab-btn { padding: 0 10px 0 8px; gap: 5px; }
  .hdr .games .glogo.sm { height: 19px; max-width: 88px; } .hdr .games .glogo.text.sm { font-size: 14px; } .hdr .games .glogo.mark.gta { height: 28px; } .hdr .games .glogo.mark.wardogs { height: 17px; }
  .hdr .gamectx .glink .glogo.sm { height: 21px; max-width: 96px; } .hdr .gamectx .glink .glogo.text.sm { font-size: 15px; }
  .hdr .gamectx .secs a { padding: 0 8px; font-size: 12.5px; letter-spacing: .06em; }
  .hdr .gamectx .glink { padding-right: 10px; margin-right: 2px; }
  .hdr .gamectx .sw-btn { margin-right: 6px; }
  .hdr .brand { padding: 0 6px; } .hdr .brand .eagle { width: 50px; height: 31px; }
  .hdr .right { gap: 6px; }
  .hdr .live { height: 30px; padding: 0 9px; } .hdr .live .txt { display: none; }
  .hdr .row1 { gap: 8px; }
}
@media (max-width: 760px) {
  .hdr .row1 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .hdr .left { visibility: hidden; overflow: hidden; width: 100%; }
  .hdr .left > * { width: 0; }
  .hdr .primary { display: none; }
  .hdr .brand .eagle { width: 46px; height: 28px; }
  /* inside a game, the sections ride in a swipeable strip under the bar */
  .hdr .substrip { display: block; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
  .hdr .substrip nav { display: flex; gap: 0; height: var(--games-h); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hdr .substrip nav::-webkit-scrollbar { display: none; }
  .hdr .substrip nav a { flex: none; display: inline-flex; align-items: center; padding: 0 12px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); position: relative; white-space: nowrap; }
  .hdr .substrip nav a:first-child { padding-left: 0; }
  .hdr .substrip nav a[aria-current="page"] { color: var(--fg); }
  .hdr .substrip nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--accent); }
  .hdr .substrip nav a:first-child[aria-current="page"]::after { left: 0; }
  body[data-game] { --header-h: calc(var(--brand-h) + var(--games-h)); }
  .menu-btn { display: grid; }
}
@media (max-width: 420px) {
  .hdr .row1 { gap: 8px; }
  .hdr .live { padding: 0 10px; } .hdr .live .txt { display: none; }
  .mobile-nav { display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--header-h)); z-index: 85; background: var(--bg); overflow: auto; padding: 16px var(--gutter-r) 48px var(--gutter); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease-out), visibility 0s linear .25s; }
  body.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  body.menu-open { overflow: hidden; }
  .mobile-nav .grp { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .mobile-nav .grp h4 { font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .14em; color: var(--mute); font-weight: 400; margin-bottom: 6px; }
  .mobile-nav a.big { display: block; padding: 10px 0; font-family: var(--display); font-size: 30px; font-weight: 800; text-transform: uppercase; }
  .mobile-nav .mg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-nav .mg a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--display); font-size: 18px; font-weight: 700; text-transform: uppercase; }
  .mobile-nav .mg a span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--accent); font-weight: 400; margin-top: 2px; }
  .mobile-nav .socials { display: flex; gap: 14px; padding-top: 16px; color: var(--mute); }
  .mobile-nav .socials svg { width: 20px; height: 20px; }
}

/* ===== Footer ===== */
.foot { border-top: 1px solid var(--line); margin-top: 48px; background: var(--bg); }
.foot .top { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; padding-block: 40px; }
.foot .brandcol .eagle { display: block; width: 40px; height: 24px; background: var(--ice); -webkit-mask: var(--eagle-mask) center / contain no-repeat; mask: var(--eagle-mask) center / contain no-repeat; margin-bottom: 14px; }
.foot .brandcol .name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; }
.foot .brandcol p { color: var(--mute); font-size: var(--fs-1); max-width: 30em; margin-top: 8px; }
.foot h4 { font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 400; margin-bottom: 12px; }
.foot .col ul { display: grid; gap: 8px; }
.foot .col a { color: var(--fg-2); font-size: var(--fs-1); }
.foot .col a:hover { color: var(--fg); }
.foot .socials { display: flex; flex-wrap: wrap; gap: 10px; }
.foot .socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--mute); transition: color .2s, border-color .2s; }
.foot .socials a:hover { color: var(--fg); border-color: var(--line-2); }
.foot .socials svg { width: 16px; height: 16px; }
.foot .discord { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; }
.foot .bottom { border-top: 1px solid var(--line); padding-block: 16px 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-2); }
.foot .bottom .r { margin-left: auto; }
@media (max-width: 900px) { .foot .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .top { grid-template-columns: 1fr; gap: 24px; } .foot .bottom .r { margin-left: 0; } }

/* ===== Persistent player ===== */
.player-slot { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; }
.player-slot .poster { position: absolute; inset: 0; background: var(--bg-3) center / cover no-repeat; }
.player-slot .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,7,.15), rgba(5,6,7,.75)); }
.player-fixed { position: absolute; z-index: 80; background: #000; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; display: none; }
.player-fixed.on { display: block; }
.player-fixed.mini { position: fixed; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); aspect-ratio: 16 / 9; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.player-fixed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-fixed .close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; background: rgba(5,6,7,.7); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--fg); opacity: 0; transition: opacity .2s; }
.player-fixed:hover .close, .player-fixed.mini .close { opacity: 1; }
.player-fixed .close svg { width: 12px; height: 12px; }
.pbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(180deg, transparent, rgba(5,6,7,.9)); font-size: var(--fs-1); }
.pbar .live { height: 28px; padding: 0 10px; font-size: 12px; background: rgba(5,6,7,.6); }
.pbar .ttl { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar .prov { margin-left: auto; display: flex; gap: 6px; }
.prov a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: var(--radius); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.14); background: rgba(5,6,7,.55); }
.prov a svg { width: 12px; height: 12px; }
.prov a.yt:hover { border-color: #FF0033; } .prov a.tw:hover { border-color: #9146FF; }
.play-btn { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); background: rgba(5,6,7,.55); backdrop-filter: blur(6px); border-radius: var(--radius-lg); transition: transform .25s var(--ease-out), background .2s, border-color .2s; }
.play-btn:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.play-btn svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
@media (max-width: 640px) { .pbar { padding: 10px; gap: 8px; } .pbar .prov { display: none; } .play-btn { width: 56px; height: 56px; } }
.player-slot.is-playing .play-btn, .player-slot.is-playing .poster, .player-slot.is-playing .pbar { opacity: 0; pointer-events: none; }


/* ===== Tool cards ===== */
.toolgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .toolgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .toolgrid { grid-template-columns: 1fr; } }
.tool { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 212px; padding: 18px 18px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; transition: border-color .25s, transform .3s var(--ease-out), background .25s; isolation: isolate; }
.tool::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; z-index: -1; }
.tool:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--bg-3); }
.tool:hover::before { opacity: 1; }
.tool .game { color: var(--mute); }
.tool h3 { font-size: 30px; font-weight: 800; line-height: .95; }
.tool p { color: var(--mute); font-size: var(--fs-1); flex: 1; }
.tool .go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tool .go::after { content: ""; width: 18px; height: 1px; background: var(--accent); transition: width .25s var(--ease-out); }
.tool:hover .go::after { width: 30px; }
.tool.soon { border-style: dashed; }
.tool.soon .go { color: var(--mute); } .tool.soon .go::after { background: var(--mute); }
.tool .status { position: absolute; right: 12px; top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); padding: 3px 6px; border-radius: var(--radius); }
.tool .status.building { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* ===== Game tiles ===== */
.gamegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .gamegrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gamegrid { grid-template-columns: 1fr; } }
.gtile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); min-width: 0; }
.gtile .art { position: absolute; inset: 0; background: var(--bg-3) center / cover no-repeat; transition: transform .8s var(--ease-out), filter .4s; filter: saturate(.85); }
.gtile:hover .art { transform: scale(1.05); filter: saturate(1); }
.gtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,7,0) 35%, rgba(5,6,7,.92) 100%); }
.gtile .meta { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.gtile .meta .k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 4px; }
.gtile .meta h3 { font-size: 30px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.gtile .meta p { color: var(--fg-2); font-size: var(--fs-1); margin-top: 4px; }
.gtile .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); z-index: 2; }
.gtile:hover .bar { transform: scaleX(1); }
.gtile.wide { aspect-ratio: 16 / 7; }

/* ===== Video cards ===== */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .vgrid { grid-template-columns: 1fr; } }
.vcard { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; min-width: 0; transition: border-color .25s, transform .3s var(--ease-out); }
.vcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.vcard .thumb { display: block; position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--bg-4), var(--bg-2)) center / cover no-repeat; border-bottom: 1px solid var(--line); }
.vcard .thumb .tag { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: rgba(5,6,7,.75); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); padding: 3px 7px; border-radius: var(--radius); }
.vcard .thumb .pl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; background: rgba(5,6,7,.6); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); opacity: 0; transition: opacity .2s; }
.vcard:hover .thumb .pl { opacity: 1; }
.vcard .thumb .pl svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.vcard .body { display: block; padding: 12px 14px 14px; }
.vcard .body b { display: block; font-size: var(--fs-2); line-height: 1.3; font-weight: 700; }
.vcard .body span { display: block; color: var(--mute); font-size: var(--fs-0); margin-top: 4px; }

/* ===== Guide embed ===== */
.embed { position: relative; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; }
.embed .poster { position: relative; aspect-ratio: 16 / 9; background: var(--bg-3) center / cover no-repeat; }
.embed .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,7,.1), rgba(5,6,7,.6)); }
.embed .poster .play-btn { z-index: 2; }
.embed .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 16px; background: linear-gradient(180deg, transparent, rgba(5,6,7,.95)); pointer-events: none; }
@media (max-width: 640px) { .embed .cap { position: static; background: var(--bg-2); border-top: 1px solid var(--line); padding: 10px 12px; } }
.embed .cap b { display: block; font-size: var(--fs-2); }
.embed .cap span { color: var(--mute); font-size: var(--fs-0); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* ===== Merch strip ===== */
/* merch + gear band: two doors (Academy collection, SCUF controller), as big as the game panels */
.merchband { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 56px; }
.merchband .wrap { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.merchband .mb { position: relative; display: grid; min-height: 300px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); overflow: hidden; transition: border-color .25s; }
.merchband .mb:hover { border-color: var(--line-2); }
.merchband .mb .body { position: relative; z-index: 1; align-self: end; display: grid; gap: 8px; justify-items: start; padding: 24px 26px 26px; }
.merchband .mb .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ice); }
.merchband .mb b { font-family: var(--display); font-size: clamp(30px, 3vw, 44px); font-weight: 800; line-height: .95; text-transform: uppercase; color: #fff; }
.merchband .mb .s { color: var(--mute); font-size: var(--fs-1); max-width: 30em; }
.merchband .mb .btn { margin-top: 6px; }
.merchband .mb:hover .btn { border-color: var(--fg); }
.merchband .academy .pics { position: absolute; inset: 0 0 auto 0; height: 62%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.merchband .academy .pics img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1s var(--ease-out), filter .4s; }
.merchband .academy:hover .pics img { transform: scale(1.04); filter: saturate(1); }
.merchband .academy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,7,0) 20%, rgba(5,6,7,.6) 50%, var(--bg) 66%); }
.merchband .scuf .pic { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 42%, rgba(52,231,255,.16), transparent 70%); }
.merchband .scuf .pic::before { content: ""; position: absolute; inset: 5% 5% 30% 34%; background: var(--img) center / contain no-repeat; transition: transform 1s var(--ease-out); }
@media (max-width: 900px) { .merchband .scuf .pic::before { inset: 4% 4% 42% 30%; } }
.merchband .scuf:hover .pic::before { transform: scale(1.04); }
.merchband .scuf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,7,0) 45%, var(--bg) 72%); }
@media (max-width: 900px) { .merchband { padding-block: 40px; } .merchband .wrap { grid-template-columns: 1fr; } .merchband .mb { min-height: 260px; } }

/* ===== Settings tables / spec lists ===== */
.spec { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.spec .row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: var(--fs-1); }
.spec .row:first-child { border-top: 0; }
.spec .row b { font-family: var(--mono); font-weight: 500; font-size: var(--fs-1); color: var(--fg); font-variant-numeric: tabular-nums; }
.spec .row .copy { opacity: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--mute); margin-left: 8px; }
.spec .row:hover .copy { opacity: 1; }
.spec .head { padding: 10px 14px; background: var(--bg-3); font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: flex; justify-content: space-between; }

/* ===== Pending / status blocks ===== */
/* point tiles */
.pts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; background: var(--bg-2); min-width: 0; }
.pt b { display: block; font-family: var(--display); text-transform: uppercase; font-size: 20px; font-weight: 700; }
.pt span { color: var(--mute); font-size: var(--fs-1); display: block; margin-top: 2px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pts { grid-template-columns: 1fr; } }

.pending { border: 1px dashed var(--line-2); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 8px; background: var(--bg-2); }
.pending h3 { font-size: var(--display-sm); }
.pending p { color: var(--mute); max-width: 44em; }
.pending .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.note { font-size: var(--fs-0); color: var(--mute); }

/* ===== Chips / tags ===== */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); background: var(--bg-2); }
.chip.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

/* ===== Breadcrumb / page header ===== */
.pagehead { padding-block: 40px 24px; display: grid; gap: 12px; }
.pagehead h1 { font-size: var(--display-lg); }
.pagehead .lede { margin-top: 4px; }
.crumbs { display: flex; gap: 10px; font-family: var(--mono); font-size: var(--fs-0); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.crumbs a:hover { color: var(--fg); }
.crumbs b { color: var(--fg); font-weight: 500; }

/* ===== Channel links ===== */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1000px) { .channels { grid-template-columns: 1fr; } }
.chan { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); transition: border-color .2s, transform .3s var(--ease-out); }
.chan:hover { border-color: var(--line-2); transform: translateY(-2px); }
.chan img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.chan > span { min-width: 0; }
.chan b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan span { color: var(--mute); font-size: var(--fs-0); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.chan .sub { margin-left: auto; }

/* ===== Social directory ===== */
.socgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .socgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .socgrid { grid-template-columns: 1fr; } }
.soc { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); transition: border-color .2s, transform .3s var(--ease-out); min-width: 0; }
.soc:hover { border-color: var(--line-2); transform: translateY(-2px); }
.soc .ic { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); flex: none; }
.soc .ic svg { width: 18px; height: 18px; }
.soc b { display: block; font-family: var(--display); font-size: 20px; text-transform: uppercase; font-weight: 700; }
.soc span { color: var(--mute); font-size: var(--fs-0); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* game logos used in chrome, cards and the board */
.glogo { display: block; object-fit: contain; }
.glogo.md { height: 30px; width: auto; max-width: 84px; }
.glogo.sm { height: 18px; width: auto; max-width: 72px; }
/* one-colour mark: the wordmark's alpha as a mask over currentColor; width follows the logo's own ratio */
.glogo.mark { background: currentColor; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; aspect-ratio: var(--ratio); width: auto; color: var(--fg); transition: color .18s; }
.glogo.mark.gta { height: 30px; }
.glogo.lg { height: 56px; width: auto; max-width: 200px; }
.glogo.text { font-family: var(--display); text-transform: uppercase; font-weight: 800; letter-spacing: .02em; line-height: 1; color: #fff; }
.glogo.text.md { font-size: 24px; } .glogo.text.sm { font-size: 16px; } .glogo.text.lg { font-size: 44px; }


/* ===== Landing board: four games, one mark ===== */
.board { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: calc(100vh - var(--header-h)); min-height: 560px; max-height: 960px; gap: 2px; background: var(--line); border-bottom: 1px solid var(--line); isolation: isolate; }
.quad { position: relative; display: block; overflow: hidden; background: var(--bg-2); color: #fff; min-width: 0; }
.quad .art { position: absolute; inset: 0; background: var(--bg-3) center / cover no-repeat; filter: saturate(.8) brightness(.78); transform: scale(1.02); transition: transform 1.2s var(--ease-out), filter .5s; }
.quad .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,7,.15) 0%, rgba(5,6,7,.05) 40%, rgba(5,6,7,.85) 100%); transition: opacity .5s; }
.quad:hover .art, .quad:focus-visible .art { transform: scale(1.06); filter: saturate(1) brightness(.95); }
/* the DMZ key art carries a baked-in logo along its bottom edge; crop it out */
.quad[data-game="dmz"] .art { transform: scale(1.16); transform-origin: 50% 28%; } .quad[data-game="dmz"]:hover .art { transform: scale(1.2); }
.quad .body { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; display: grid; gap: 8px; justify-items: start; }
.quad .logo { display: block; }
/* the mark alone, big; what is inside appears as chips on hover (no standing subtext) */
.quad .glogo.lg { height: 80px; max-width: 340px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.quad .glogo.lg.gta { height: 160px; } .quad .glogo.lg.wardogs { height: 64px; } .quad .glogo.lg.battlefield { height: 120px; max-width: 360px; }
.quad .glogo.text.lg { font-size: 48px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
/* hover: the row eases open, then each chip rises in with a short stagger (--i set per chip) */
.quad .peek { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 6px; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height .55s var(--ease-out), opacity .4s ease, transform .55s var(--ease-out); }
.quad:hover .peek, .quad:focus-visible .peek { max-height: 120px; opacity: 1; transform: none; }
/* chips: `is-tool`, not `tool` — `.tool` is the big tool card component and its min-height stretched the whole row */
.quad .pk { display: inline-block; padding: 6px 10px; border: 1px solid rgba(255,255,255,.3); background: rgba(5,6,7,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap; opacity: 0; transform: translate(-16px, 10px); transition: opacity .35s ease, transform .5s var(--ease-out); transition-delay: 0s; }
.quad:hover .pk, .quad:focus-visible .pk { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * 45ms); }
/* right-hand quadrants mirror the left: chips arrive from the right, last to first */
.quad[data-game="gta"] .pk, .quad[data-game="wardogs"] .pk { transform: translate(16px, 10px); }
.quad[data-game="gta"]:hover .pk, .quad[data-game="gta"]:focus-visible .pk, .quad[data-game="wardogs"]:hover .pk, .quad[data-game="wardogs"]:focus-visible .pk { transform: none; transition-delay: calc(60ms + (var(--n, 1) - 1 - var(--i, 0)) * 45ms); }
.quad .pk.is-tool { border-color: var(--accent); color: var(--accent); }
.quad::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); z-index: 2; }
.quad:hover::after, .quad:focus-visible::after { transform: scaleX(1); }
.quad .tag { position: absolute; top: 20px; left: 28px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: rgba(5,6,7,.6); border: 1px solid rgba(255,255,255,.2); }
.quad .tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.quad .tag.soon { color: rgba(255,255,255,.75); }
/* alternate quadrants anchor their text to the opposite corner so the centre stays clear */
.quad[data-game="gta"] .body, .quad[data-game="wardogs"] .body { left: auto; right: 28px; justify-items: end; text-align: right; }
.quad[data-game="gta"] .tag, .quad[data-game="wardogs"] .tag { left: auto; right: 28px; }
.quad[data-game="gta"] .peek, .quad[data-game="wardogs"] .peek { justify-content: flex-end; }
/* the quadrants give way to the plate: each one has a circular notch cut from its centre corner, so the disc sits in a hole instead of on top of the art */
.board { --plate-r: 140px; }
.quad { -webkit-mask: radial-gradient(circle at var(--cx) var(--cy), transparent calc(var(--plate-r) + 14px), #000 calc(var(--plate-r) + 15px)); mask: radial-gradient(circle at var(--cx) var(--cy), transparent calc(var(--plate-r) + 14px), #000 calc(var(--plate-r) + 15px)); }
.quad[data-game="dmz"] { --cx: 100%; --cy: 100%; }
.quad[data-game="gta"] { --cx: 0%; --cy: 100%; }
.quad[data-game="battlefield"] { --cx: 100%; --cy: 0%; }
.quad[data-game="wardogs"] { --cx: 0%; --cy: 0%; }
/* centre plate */
.plate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: grid; justify-items: center; }
.plate .mark { display: grid; place-items: center; width: 280px; height: 280px; border-radius: 50%; background: rgba(5,6,7,.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 0 10px rgba(5,6,7,.35), inset 0 0 0 1px rgba(255,255,255,.04); transition: transform .35s var(--ease-out), border-color .3s; cursor: pointer; }
.plate .mark:hover, .plate[data-open="true"] .mark { transform: scale(1.04); }
.plate .mark .eagle { width: 180px; height: 110px; background: var(--ice); -webkit-mask: var(--eagle-mask) center / contain no-repeat; mask: var(--eagle-mask) center / contain no-repeat; filter: drop-shadow(0 0 16px var(--ice-glow)); }
.plate .mark .wm { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .05em; text-transform: uppercase; color: #fff; line-height: 1; }
.plate .mark .wm b { color: var(--ice); }
.plate .mark .sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
/* the disc opens into its own quadrant: Merch · Gear / Socials · About. The eagle sinks back while it is open. */
.plate .pmenu { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: rgba(255,255,255,.14); opacity: 0; visibility: hidden; transform: scale(.92); transition: opacity .35s ease, transform .6s var(--ease-out), visibility 0s linear .6s; pointer-events: none; }
.plate[data-open="true"] .pmenu, .plate:hover .pmenu, .plate:focus-within .pmenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; pointer-events: auto; }
/* while the quadrant is open the whole disc shrinks to a small hub between the four doors, and grows back on leave */
.plate .mark { position: relative; z-index: 2; transform-origin: 50% 50%; transition: transform .6s var(--ease-out), box-shadow .6s ease, border-color .3s; }
.plate[data-open="true"] .mark, .plate:hover .mark, .plate:focus-within .mark { transform: scale(.34); box-shadow: 0 10px 30px rgba(0,0,0,.7), 0 0 0 10px rgba(5,6,7,.35); border-color: rgba(255,255,255,.35); }
.plate .pmenu { z-index: 1; }
/* the four doors fade up one after another as the disc shrinks */
.plate .pmenu .q { opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .45s var(--ease-out), background .18s, color .18s; }
.plate[data-open="true"] .pmenu .q, .plate:hover .pmenu .q, .plate:focus-within .pmenu .q { opacity: 1; transform: none; }
.plate:hover .pmenu .q:nth-child(1), .plate[data-open="true"] .pmenu .q:nth-child(1) { transition-delay: 80ms; } .plate:hover .pmenu .q:nth-child(2), .plate[data-open="true"] .pmenu .q:nth-child(2) { transition-delay: 140ms; }
.plate:hover .pmenu .q:nth-child(3), .plate[data-open="true"] .pmenu .q:nth-child(3) { transition-delay: 200ms; } .plate:hover .pmenu .q:nth-child(4), .plate[data-open="true"] .pmenu .q:nth-child(4) { transition-delay: 260ms; }
.plate .pmenu .q { display: grid; place-items: center; background: rgba(5,6,7,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); transition: background .18s, color .18s; }
.plate .pmenu .q span { transform: translate(var(--qx, 0), var(--qy, 0)); }
.plate .pmenu .q:nth-child(1) span { --qx: 12px; --qy: 12px; } .plate .pmenu .q:nth-child(2) span { --qx: -12px; --qy: 12px; }
.plate .pmenu .q:nth-child(3) span { --qx: 12px; --qy: -12px; } .plate .pmenu .q:nth-child(4) span { --qx: -12px; --qy: -12px; }
.plate .pmenu .q:hover, .plate .pmenu .q:focus-visible { background: var(--ice); color: #06151a; }
@media (max-width: 1000px) {
  .board { height: auto; max-height: none; min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; padding-top: 0; }
  .quad { aspect-ratio: 1 / 1; }
  .quad .body { left: 18px; right: 18px; bottom: 16px; }
  .quad[data-game="gta"] .body, .quad[data-game="wardogs"] .body { right: 18px; }
  .quad .glogo.lg { height: 52px; max-width: 220px; } .quad .glogo.text.lg { font-size: 32px; } .quad .glogo.lg.gta { height: 108px; } .quad .glogo.lg.wardogs { height: 42px; } .quad .glogo.lg.battlefield { height: 80px; max-width: 230px; }
  .quad .peek { display: none; }
  .quad .tag { top: 14px; left: 18px; } .quad[data-game="gta"] .tag, .quad[data-game="wardogs"] .tag { right: 18px; }
  .board { --plate-r: 95px; }
  .plate .mark { width: 190px; height: 190px; }
  .plate .mark .eagle { width: 118px; height: 72px; }
  .plate .pmenu .q { font-size: 13px; }
}
@media (max-width: 560px) {
  .quad .glogo.lg { height: 36px; max-width: 150px; } .quad .glogo.text.lg { font-size: 24px; } .quad .glogo.lg.gta { height: 74px; } .quad .glogo.lg.wardogs { height: 30px; } .quad .glogo.lg.battlefield { height: 56px; max-width: 160px; }
  .board { --plate-r: 68px; }
  .plate .mark { width: 136px; height: 136px; }
  .plate .mark .eagle { width: 82px; height: 50px; }
  .plate .pmenu .q { font-size: 11px; letter-spacing: .08em; }
  .plate .pmenu .q:nth-child(n) span { --qx: 6px; --qy: 6px; } .plate .pmenu .q:nth-child(2) span { --qx: -6px; } .plate .pmenu .q:nth-child(3) span { --qy: -6px; } .plate .pmenu .q:nth-child(4) span { --qx: -6px; --qy: -6px; }
}

/* feature block: the live game's tools as big art cards */
.feature { padding-block: 44px 40px; }
.bigcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bigcard { position: relative; display: block; min-height: 340px; border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); color: var(--fg); }
.bigcard .art { position: absolute; inset: 0; background: var(--bg-3) center / cover no-repeat; transition: transform 1s var(--ease-out), filter .4s; filter: saturate(.9); }
.bigcard .art.preview { filter: none; }
.bigcard { border-color: rgba(255,255,255,.16); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.feature { padding-block: 40px 8px; }
.watchrow { padding-block: 40px 48px; }
.bigcard:hover .art { transform: scale(1.04); filter: saturate(1); }
.bigcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,7,.05) 20%, rgba(5,6,7,.9) 100%); }
.bigcard .body { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: grid; gap: 6px; }
.bigcard .logo { margin-bottom: 4px; }
.bigcard h3 { font-size: 40px; line-height: .95; color: #fff; }
.bigcard p { color: rgba(255,255,255,.78); max-width: 34em; font-size: var(--fs-1); }
.bigcard .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.bigcard .go svg { width: 14px; height: 14px; transition: transform .3s; } .bigcard:hover .go svg { transform: translateX(4px); }
.feature .quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.feature .quick a { padding: 9px 14px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.feature .quick a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) { .bigcards { grid-template-columns: 1fr; } .bigcard { min-height: 260px; } .bigcard h3 { font-size: 32px; } }

/* latest: player + two cards */
.watchrow { padding-block: 8px 48px; }
.watchgrid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; }
.watchgrid .vgrid.side { grid-template-columns: 1fr; align-content: start; }
.watchgrid .vgrid.side .vcard { display: grid; grid-template-columns: 168px 1fr; align-items: center; }
.watchgrid .vgrid.side .vcard .thumb { border-bottom: 0; border-right: 1px solid var(--line); height: 100%; }
.watchgrid .vgrid.side .vcard .body { padding: 12px 14px; }
.watchgrid .vgrid.side .vcard .body b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .watchgrid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .watchgrid .vgrid.side .vcard { grid-template-columns: 120px 1fr; } .watchgrid .vgrid.side .vcard .body b { -webkit-line-clamp: 2; font-size: var(--fs-1); } }
.hero .playerwrap, .watchgrid .playerwrap { position: relative; }

/* home tools band */
.band { padding-block: 24px 56px; }

/* latest / featured strip */
.ticker { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-block: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); overflow: hidden; white-space: nowrap; }
.ticker b { color: var(--accent); font-weight: 500; }
.ticker span + span::before { content: "·"; margin: 0 10px; color: var(--mute-2); }

/* about teaser */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: 56px; border-top: 1px solid var(--line); }
.about-teaser h2 { font-size: var(--display-md); }
.about-teaser p { color: var(--mute); margin-top: 12px; max-width: 40em; }
@media (max-width: 900px) { .about-teaser { grid-template-columns: 1fr; } }


/* ===== Game hub ===== */
.ghero { position: relative; min-height: 420px; display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--tint); }
.ghero .art { position: absolute; inset: 0 0 0 34%; background: var(--bg-3) center 30% / cover no-repeat; transform: scale(1.04); filter: saturate(.9); }
.ghero .art.fx { animation: artIn 1.6s var(--ease-out) both; }
@keyframes artIn { from { transform: scale(1.12); filter: saturate(.5) brightness(.6); } to { transform: scale(1.04); filter: saturate(.9) brightness(1); } }
.ghero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 33%, rgba(5,6,7,.92) 44%, rgba(5,6,7,.45) 64%, rgba(5,6,7,.2) 100%); z-index: 1; }
.ghero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(180deg, transparent, var(--bg) 100%); z-index: 1; }
.ghero .wrap { position: relative; z-index: 2; width: 100%; padding-block: 56px 36px; display: grid; gap: 16px; }
.ghero .glogo { height: 44px; width: auto; max-width: 320px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.ghero h1 { font-size: var(--display-lg); }
.ghero h1 .ac { color: var(--accent); }
.ghero .lede { max-width: 32em; }
.ghero .acc-line { width: 64px; height: 3px; background: var(--accent); }
.ghero .quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 760px) { .ghero { min-height: 340px; } .ghero .wrap { padding-block: 40px 28px; } .ghero .art { inset: 0; } .ghero::before { background: linear-gradient(180deg, rgba(5,6,7,.35) 0%, rgba(5,6,7,.75) 45%, var(--bg) 100%); } }

/* overview hero: a bold header, the mark alone over the key art, and the art fades to black before the panels start */
.ghero.cine { min-height: clamp(380px, 50vh, 580px); align-items: center; border-bottom: 0; }
.ghero.cine .art { inset: 0; background-position: center 30%; }
.ghero.cine::before { background: linear-gradient(180deg, rgba(5,6,7,.5) 0%, rgba(5,6,7,.1) 40%, rgba(5,6,7,.1) 60%, rgba(5,6,7,.7) 85%, var(--bg) 100%); }
.ghero.cine::after { height: 40%; background: linear-gradient(180deg, transparent 0%, var(--bg) 100%); }
.ghero.cine .wrap { padding-block: 48px 72px; gap: 12px; justify-items: center; text-align: center; }
.ghero.cine h1.mark { margin: 0; line-height: 0; font-size: var(--display-lg); filter: drop-shadow(0 16px 40px rgba(0,0,0,.8)); }
/* official art that already carries the lockup (REDSEC): keep the art as published, the h1 is for screen readers */
.ghero.cine h1.mark.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ghero.cine[data-game="battlefield"] .art { background-position: center 62%; }
.ghero.cine[data-game="battlefield"] { min-height: clamp(420px, 56vh, 640px); }
.ghero.cine[data-game="battlefield"]::before { background: linear-gradient(180deg, rgba(5,6,7,0) 0%, rgba(5,6,7,0) 70%, rgba(5,6,7,.7) 88%, var(--bg) 100%); }
.ghero.cine .glogo.hero { height: 150px; max-width: 640px; }
.ghero.cine .glogo.hero.gta { height: 220px; } .ghero.cine .glogo.hero.wardogs { height: 96px; }
@media (max-width: 760px) { .ghero.cine { min-height: 300px; } .ghero.cine .wrap { padding-block: 32px 48px; } .ghero.cine .glogo.hero { height: 84px; max-width: 300px; } .ghero.cine .glogo.hero.gta { height: 130px; } .ghero.cine .glogo.hero.wardogs { height: 56px; } }

/* overview: the tools, big, with real previews of what opens; then every guide page as a tile */
/* the tools are framed, elevated panels on black: nothing from the hero bleeds into them */
.hubtools { position: relative; z-index: 2; margin-top: 0; padding-block: 8px 8px; }
.toolpanel { border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.6); background: var(--bg-2); }
.toolpanel:hover { border-color: color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,.16)); }
.toolpanel .art.preview { filter: none; background-position: center; }
.toolpanel::after { background: linear-gradient(180deg, rgba(5,6,7,.05) 0%, rgba(5,6,7,0) 30%, rgba(5,6,7,.6) 62%, rgba(5,6,7,.96) 100%); }
.toolpanel p { font-size: var(--fs-1); color: rgba(255,255,255,.72); max-width: 26em; }
.toolpanels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toolpanel { position: relative; display: block; min-height: 440px; border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); color: var(--fg); }
.toolpanel .art { position: absolute; inset: 0; background: var(--bg-3) center / cover no-repeat; filter: saturate(.9); transition: transform 1.2s var(--ease-out), filter .4s; transform: scale(1.02); }
.toolpanel:hover .art, .toolpanel:focus-visible .art { transform: scale(1.06); filter: saturate(1); }
.toolpanel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,7,0) 30%, rgba(5,6,7,.55) 65%, rgba(5,6,7,.94) 100%); }
.toolpanel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); z-index: 2; }
.toolpanel:hover::before, .toolpanel:focus-visible::before { transform: scaleX(1); }
.toolpanel .body { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1; display: grid; gap: 8px; }
.toolpanel .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.toolpanel h2 { font-size: clamp(36px, 4vw, 56px); line-height: .92; color: #fff; }
.toolpanel p { color: rgba(255,255,255,.78); max-width: 30em; font-size: var(--fs-1); }
.toolpanel .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.35); background: rgba(5,6,7,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; width: max-content; transition: border-color .2s, background .2s; }
.toolpanel:hover .go { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.toolpanel .go svg { width: 14px; height: 14px; }
.toolpanel.soon .k { color: rgba(255,255,255,.6); }
.toolpanel { min-height: 500px; }
.guidetiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.guidetiles .sectile { min-height: 230px; }
.guidetiles .sectile b { font-size: 28px; }
.guidetiles.lead { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.guidetiles.lead .sectile, .sectile.big { min-height: 320px; }
.guidetiles.lead .sectile b, .sectile.big b { font-size: 34px; }
.sectile.soon .art { filter: saturate(.4) brightness(.6); }
.sectile.soon .k { color: var(--mute); }
.sectile.soon b { color: rgba(255,255,255,.8); }
/* a game with a single tool or a single guide gets the full width, not half a grid */
.toolpanels .toolpanel:only-child { grid-column: 1 / -1; min-height: 400px; }
@media (max-width: 1000px) { .toolpanel { min-height: 380px; } }
@media (max-width: 760px) { .toolpanels { grid-template-columns: 1fr; } .toolpanel { min-height: 300px; } .toolpanel .body { left: 18px; right: 18px; bottom: 18px; } .guidetiles .sectile { min-height: 180px; } .guidetiles.lead .sectile, .sectile.big { min-height: 220px; } }
@media (max-width: 480px) { .guidetiles, .guidetiles.lead { grid-template-columns: 1fr 1fr; gap: 10px; } .guidetiles .sectile { min-height: 140px; } .guidetiles .sectile b { font-size: 20px; } .guidetiles.lead .sectile, .sectile.big { min-height: 160px; } .guidetiles.lead .sectile b, .sectile.big b { font-size: 22px; } }

/* section tabs under hero */
.gtabs { position: sticky; top: var(--header-h); z-index: 60; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.gtabs .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.gtabs .wrap::-webkit-scrollbar { display: none; }
.gtabs a { flex: none; position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 14px; font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.gtabs a:hover { color: var(--fg); }
.gtabs a[aria-current="page"] { color: var(--fg); }
.gtabs a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--accent); }
.gtabs a .k { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--accent); }
.gtabs a .k.soon { color: var(--mute-2); }

/* hub content */
.hubgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .hubgrid { grid-template-columns: 1fr; } }
.featured { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; }
.featured .body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.featured .body h3 { font-size: var(--display-sm); }
.featured .body p { color: var(--mute); font-size: var(--fs-1); }
.seclist { display: grid; gap: 10px; align-content: start; }
.secrow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); transition: border-color .2s, transform .3s var(--ease-out); min-width: 0; }
.secrow:hover { border-color: var(--line-2); transform: translateX(4px); }
.secrow .ic { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--accent); }
.secrow .ic svg { width: 18px; height: 18px; }
.secrow b { display: block; font-family: var(--display); font-size: 20px; text-transform: uppercase; font-weight: 700; line-height: 1; }
.secrow span { color: var(--mute); font-size: var(--fs-0); display: block; margin-top: 3px; }
.secrow .st { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.secrow .st.soon { color: var(--mute-2); }

/* guide page */
.guide { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .guide { grid-template-columns: 1fr; } }
.guide aside { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 56px); }
.guide .meta { display: flex; gap: 10px; flex-wrap: wrap; }
.guide h2 { font-size: var(--display-md); }

/* controller reference */
.ctlgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .ctlgrid { grid-template-columns: 1fr; } }
.ctl { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; }
.ctl .img { aspect-ratio: 1; background: var(--bg-3) center / contain no-repeat; border-bottom: 1px solid var(--line); }
.ctl .b { padding: 12px 14px 14px; }
.ctl .b .k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ctl .b h3 { font-size: 22px; margin-top: 2px; }
.ctl .b ul { margin-top: 10px; display: grid; gap: 4px; font-size: var(--fs-0); }
.ctl .b li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 4px; }
.ctl .b li span { color: var(--mute); }
.ctl .b li b { font-family: var(--mono); font-weight: 500; }

/* explore other games */
.othergames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .othergames { grid-template-columns: 1fr; } }
.othergames .gtile { aspect-ratio: 16 / 8; }
.othergames .gtile .meta h3 { font-size: 24px; }

/* hub: section tiles (replaces the status list) */
.seclist { grid-template-columns: 1fr 1fr; gap: 10px; }
.sectile { position: relative; display: block; min-height: 120px; border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); color: var(--fg); }
.sectile .art { position: absolute; inset: 0; background: var(--bg-3) center / cover no-repeat; filter: saturate(.85); transition: transform .8s var(--ease-out); }
.sectile:hover .art { transform: scale(1.05); }
.sectile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,7,.1) 10%, rgba(5,6,7,.9) 100%); }
.sectile .body { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: grid; gap: 2px; }
.sectile .k { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sectile b { font-family: var(--display); text-transform: uppercase; font-size: 22px; font-weight: 800; line-height: 1; color: #fff; }
@media (max-width: 560px) { .seclist { grid-template-columns: 1fr; } }
/* guide page: one video, two links */
.guidefeat { max-width: 960px; margin: 0 auto; display: grid; gap: 14px; }
.guidefeat .gcap { display: flex; gap: 8px; flex-wrap: wrap; }
.ghero .glogo.hero { height: 56px; width: auto; max-width: 340px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.ghero .glogo.hero.gta { height: 110px; } .ghero .glogo.hero.wardogs { height: 48px; }


/* ===== SCUF showcase ===== */
.scuf { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: 48px; border-bottom: 1px solid var(--line); overflow: hidden; }
.scuf .bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 70% at 75% 50%, var(--ice-glow), transparent 70%); opacity: .7; }
.scuf > * { position: relative; z-index: 1; }
.scuf h1 { font-size: var(--display-lg); }
.scuf h1 .ac { color: var(--ice); }
.scuf .seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.scuf .seg button { padding: 9px 16px; font-family: var(--display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--mute); border-right: 1px solid var(--line-2); }
.scuf .seg button:last-child { border-right: 0; }
.scuf .seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.scuf .offer { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.scuf .code { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: var(--radius); font-family: var(--mono); font-size: var(--fs-1); letter-spacing: .1em; }
.scuf .code b { color: var(--ice); }
.scuf .pic { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.scuf .pic img { width: 100%; max-width: 560px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); transition: opacity .3s, transform .5s var(--ease-out); }
.scuf .pic img[hidden] { display: none; }
.scuf .pic .lbl { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.scuf .pic .lbl b { color: var(--fg); font-weight: 500; }
@media (max-width: 900px) { .scuf { grid-template-columns: 1fr; } .scuf .pic { order: -1; max-width: 420px; margin-inline: auto; } }

/* category tiles */
.catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .catgrid { grid-template-columns: 1fr; } }
.cat { position: relative; display: block; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; }
.cat img { position: absolute; inset: 12% 12% 20% 12%; width: 76%; height: 68%; object-fit: contain; transition: transform .6s var(--ease-out); filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); }
.cat:hover img { transform: scale(1.06) translateY(-4px); }
.cat .lbl { position: absolute; left: 14px; bottom: 12px; right: 14px; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-size: 22px; text-transform: uppercase; font-weight: 700; }
.cat .lbl span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--mute); font-weight: 400; }
.cat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ice); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.cat:hover::after { transform: scaleX(1); }

/* equipment lists */
.equip { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding-block: 36px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.equip:first-of-type { border-top: 0; }
.equip .fig { display: grid; gap: 8px; align-content: start; }
.equip .fig img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.equip .fig .note { font-size: var(--fs-0); color: var(--mute-2); }
.equip h2 { font-size: var(--display-sm); margin-bottom: 12px; }
.equip .items { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 760px) { .equip { grid-template-columns: 1fr; } .equip .fig { grid-template-columns: 120px 1fr; align-items: center; } .equip .items { grid-template-columns: 1fr; } }
.equip .item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-1); }
.equip .item .n { font-weight: 700; }
.equip .item .r { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); white-space: nowrap; }
.equip .item:hover .r { text-decoration: underline; }
.equip .full { margin-top: 14px; }
.gear-toc { position: sticky; top: var(--header-h); z-index: 60; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.gear-toc .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.gear-toc a { flex: none; padding: 12px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.gear-toc a:hover { color: var(--fg); }


.shopgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .shopgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .shopgrid { grid-template-columns: 1fr; } }
.prod { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; transition: border-color .25s, transform .3s var(--ease-out); }
.prod:hover { border-color: var(--line-2); transform: translateY(-3px); }
.prod .img { display: block; position: relative; aspect-ratio: 1; background: var(--bg-3); overflow: hidden; }
.prod .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.prod .img img.alt { opacity: 0; }
.prod:hover .img img.alt { opacity: 1; }
.prod .b { display: flex; padding: 12px 14px 14px; justify-content: space-between; gap: 12px; align-items: baseline; }
.prod .b b { font-weight: 700; }
.prod .b span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.collections { display: flex; gap: 8px; flex-wrap: wrap; }
.collections a { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.collections a:hover, .collections a.on { color: var(--fg); border-color: var(--line-2); }


/* ===== Tool pages: game-coded surfaces. Brand tokens are not used inside .gsurf. ===== */
.toolhdr { border-bottom: 1px solid var(--line); background: var(--bg); }
.toolhdr .wrap { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.toolhdr .crumbs { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.toolhdr .crumbs > * { margin-right: 8px; }
.toolhdr .right { display: flex; gap: 8px; align-items: center; }

/* ---------- Map surface (game palette, no brand tokens) ---------- */
.gsurf { --g-bg: #101210; --g-panel: #171A17; --g-line: #2A2E2A; --g-fg: #E9E6DC; --g-mute: #9A9A8E; --g-key: #E0B354; --g-exfil: #5FAE8A; --g-boss: #D6604A; --g-svc: #B9B6A8; --tray-h: 0px;
  background: var(--g-bg); color: var(--g-fg); display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - var(--header-h)); min-height: 560px; max-height: 1100px; border-bottom: 1px solid var(--g-line); position: relative; }
.rail { border-right: 1px solid var(--g-line); background: var(--g-panel); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.rail .top { padding: 14px 14px 12px; border-bottom: 1px solid var(--g-line); display: flex; align-items: center; gap: 12px; }
.rail .top .glogo.rail { height: 34px; width: auto; flex: none; }
.rail .top .chip { white-space: nowrap; background: transparent; border-color: var(--g-line); color: var(--g-mute); }
.rail .top .x { display: none; }
.rail .mapname { font-family: var(--display); text-transform: uppercase; font-size: 30px; font-weight: 800; line-height: .9; padding-left: 12px; border-left: 1px solid var(--g-line); }
.rail .mapname small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--g-mute); margin-bottom: 4px; font-weight: 400; }
.rail .search { margin: 12px 14px 6px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--g-line); background: #0C0E0C; padding: 9px 10px; font-size: 13px; color: var(--g-mute); border-radius: 2px; }
.rail .search:focus-within { border-color: var(--g-mute); }
.rail .search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--g-fg); font: inherit; outline: none; }
.rail .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.rail .search svg { width: 14px; height: 14px; flex: none; }
.rail .search kbd { font-family: var(--mono); font-size: 10px; border: 1px solid var(--g-line); padding: 1px 5px; }
.rtabs { display: flex; border-bottom: 1px solid var(--g-line); margin-top: 8px; }
.rtabs button { flex: 1; padding: 9px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g-mute); border-bottom: 2px solid transparent; }
.rtabs button[aria-selected="true"] { color: var(--g-fg); border-color: var(--g-fg); }
.layers { padding: 8px 14px 14px; display: grid; gap: 3px; overflow: auto; flex: 1; min-height: 0; align-content: start; overscroll-behavior: contain; }
.lall { display: flex; align-items: center; gap: 6px; padding: 4px 0 2px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-mute); }
.lall button { border: 1px solid var(--g-line); padding: 3px 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--g-fg); font-weight: 700; }
.lall button:hover { border-color: var(--g-mute); }
.lgrp { display: flex; align-items: center; gap: 10px; padding: 10px 0 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-mute); }
.lgrp::after { content: ""; flex: 1; height: 1px; background: var(--g-line); }
.lrow { display: flex; align-items: center; gap: 10px; padding: 7px 8px; font-size: 13px; border: 1px solid transparent; border-radius: 2px; width: 100%; text-align: left; color: var(--g-fg); min-height: 36px; }
.lrow .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow.hit { align-items: flex-start; } .lrow.hit .t b { display: block; font-weight: 600; } .lrow.hit .t small { display: block; font-size: 11px; color: var(--g-mute); white-space: normal; line-height: 1.3; }
.lrow.hit .n { text-align: right; line-height: 1.3; flex: none; }
.lrow:hover { background: #1A1E1A; }
.lrow[aria-pressed="true"] { background: #1E221E; border-color: #2E332E; }
.lrow[aria-pressed="false"] .ic { color: var(--g-mute); }
.lrow .ic { width: 20px; height: 20px; display: grid; place-items: center; color: var(--g-fg); flex: none; }
.lrow .ic svg { width: 15px; height: 15px; }
.lrow .n { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--g-mute); font-variant-numeric: tabular-nums; }
.lrow .sw { width: 26px; height: 14px; border: 1px solid var(--g-line); position: relative; background: #0C0E0C; flex: none; }
.lrow .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; background: var(--g-mute); }
.lrow[aria-pressed="true"] .sw::after { left: auto; right: 2px; background: var(--g-key); }
.rail .creator { margin-top: auto; border-top: 1px solid var(--g-line); padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--g-mute); }
.rail .creator .eagle { width: 22px; height: 14px; background: var(--ice); -webkit-mask: var(--eagle-mask) center / contain no-repeat; mask: var(--eagle-mask) center / contain no-repeat; flex: none; }
.rail .creator b { color: var(--g-fg); font-weight: 500; }

.gmap { position: relative; min-height: 560px; overflow: hidden; background: #0D0F0D; touch-action: none; cursor: grab; outline: none; }
.gmap.grabbing { cursor: grabbing; }
.gmap:focus-visible { box-shadow: inset 0 0 0 2px var(--g-mute); }
#map-canvas { position: absolute; left: 0; top: 0; display: block; }
#map-markers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#map-markers > * { position: absolute; left: 0; top: 0; pointer-events: auto; }
#map-markers .off { display: none; }
.gmap .loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--g-mute); pointer-events: none; }
/* place-name labels: fixed screen size, strong halo, never scale with the map */
.gmap .poi { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--g-fg); white-space: nowrap; pointer-events: none; font-size: 13.5px; line-height: 1;
  text-shadow: 0 0 2px #000, 0 0 3px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 8px rgba(0,0,0,.9); }
.gmap .poi.sec { font-size: 11.5px; color: #D6D3C7; letter-spacing: .1em; }
.gmap .poi.sel { color: var(--g-key); background: rgba(12,14,12,.92); padding: 3px 7px; text-shadow: none; z-index: 6; box-shadow: 0 0 0 1px var(--g-key); }
.gmap .poi.pl { font-family: var(--body); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 10.5px; color: var(--g-fg); background: rgba(12,14,12,.85); padding: 2px 6px; text-shadow: none; border-radius: 2px; }
.gmap .poi.pl.key { color: var(--g-key); } .gmap .poi.pl.boss { color: var(--g-boss); } .gmap .poi.pl.exfil { color: var(--g-exfil); }
.gpin.fan::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; }
/* pins: tactical squares — dark plate, colored outline and glyph; rarity/boss color via --pin */
.gpin { width: 24px; height: 24px; margin: -12px 0 0 -12px; display: grid; place-items: center; color: var(--pin, var(--g-svc)); cursor: pointer; border-radius: 3px; }
.gpin::before { content: ""; position: absolute; inset: 1px; border-radius: 3px; background: rgba(10,12,10,.94); box-shadow: 0 0 0 1.5px var(--pin, var(--g-svc)), 0 2px 4px rgba(0,0,0,.7); z-index: -1; }
.gpin svg { width: 14px; height: 14px; position: relative; }
.gpin.svc { --pin: #B9B6A8; } .gpin.svc svg { width: 12px; height: 12px; }
.gpin.key { --pin: var(--g-key); } .gpin.exfil { --pin: #5FAE8A; } .gpin.boss { --pin: var(--g-boss); }
.gpin.key, .gpin.exfil, .gpin.boss { z-index: 2; }
.gpin.key::before, .gpin.boss::before, .gpin.exfil::before { background: color-mix(in srgb, var(--pin) 18%, rgba(10,12,10,.94)); }
.gpin:hover { z-index: 4; } .gpin:hover::before { box-shadow: 0 0 0 2px var(--pin, var(--g-svc)), 0 0 10px color-mix(in srgb, var(--pin, var(--g-svc)) 50%, transparent); }
.gpin.sel { z-index: 5; color: #fff; }
.gpin.sel::before { background: var(--pin, var(--g-svc)); box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0,0,0,.6); }
.gpin.sel svg { color: #0B0C0B; }
.gpin.sel::after { content: ""; position: absolute; inset: -9px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.7); animation: pinpulse 1.6s ease-out infinite; }
@keyframes pinpulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gpin.sel::after { animation: none; transform: none; opacity: .8; } }
.gpin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* clusters */
.gcl { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: grid; place-items: center; color: var(--g-fg); background: rgba(16,18,16,.95); box-shadow: 0 0 0 1.5px var(--g-fg), 0 2px 6px rgba(0,0,0,.6); cursor: zoom-in; z-index: 3; }
.gcl svg { width: 14px; height: 14px; }
.gcl i { position: absolute; top: -7px; right: -8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--g-fg); color: #111; font-family: var(--mono); font-style: normal; font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 1.5px #0d0f0d; }
.gcl.key i { background: var(--g-key); } .gcl.boss i { background: var(--g-boss); } .gcl.exfil i { background: var(--g-exfil); }
.gcl.key { box-shadow: 0 0 0 1.5px var(--g-key), 0 2px 6px rgba(0,0,0,.6); color: var(--g-key); }
.gcl.boss { box-shadow: 0 0 0 1.5px var(--g-boss), 0 2px 6px rgba(0,0,0,.6); color: var(--g-boss); }
.gcl.exfil { box-shadow: 0 0 0 1.5px var(--g-exfil), 0 2px 6px rgba(0,0,0,.6); color: var(--g-exfil); }
.gcl.mix { box-shadow: 0 0 0 1.5px var(--g-fg), 0 0 0 3px var(--g-key), 0 2px 6px rgba(0,0,0,.6); }
/* hover tooltip */
.gmap .tip { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; background: rgba(12,14,12,.96); border: 1px solid var(--g-line); padding: 6px 9px; display: grid; gap: 2px; white-space: nowrap; }
.gmap .tip b { font-family: var(--display); text-transform: uppercase; font-size: 15px; line-height: 1; font-weight: 700; }
.gmap .tip small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-mute); }
/* map chrome */
.gmap .ctl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; border: 1px solid var(--g-line); background: rgba(16,18,16,.92); z-index: 8; }
.gmap .ctl button { width: 38px; height: 38px; display: grid; place-items: center; font-size: 18px; color: var(--g-fg); border-bottom: 1px solid var(--g-line); }
.gmap .ctl button:hover { background: #1E221E; }
.gmap .ctl button:last-child { border: 0; }
.gmap .zoom { position: absolute; right: 12px; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--g-mute); background: rgba(16,18,16,.85); padding: 4px 8px; border: 1px solid var(--g-line); z-index: 8; }
.gmap .north { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--g-mute); display: flex; align-items: center; gap: 6px; z-index: 8; }
.gmap .north i { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 12px solid var(--g-fg); }
.gmap .credit { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: rgba(233,230,220,.5); z-index: 8; text-shadow: 0 1px 2px #000; }
/* inspector */
.insp { position: absolute; left: 12px; top: 40px; width: min(300px, calc(100% - 24px)); background: #171A17; border: 1px solid var(--g-line); font-size: 13px; z-index: 9; max-height: calc(100% - 52px); overflow: auto; }
.insp .ih { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--g-line); position: sticky; top: 0; background: #171A17; z-index: 1; }
.insp .ih .gpin { position: relative; margin: 0; width: 26px; height: 26px; flex: none; }
.insp .ih .gpin svg { width: 13px; height: 13px; }
.insp .ih > div { min-width: 0; }
.insp .ih b { font-family: var(--display); text-transform: uppercase; font-size: 18px; font-weight: 700; line-height: 1; display: block; overflow-wrap: anywhere; }
.insp .ih small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-key); }
.insp .ih .x { margin-left: auto; color: var(--g-mute); font-size: 18px; width: 28px; height: 28px; flex: none; }
.insp .ib { padding: 10px 12px; display: grid; gap: 8px; }
.insp .ib p { margin: 0; color: var(--g-mute); line-height: 1.45; }
.insp .kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; }
.insp .kv span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-mute); padding-top: 2px; }
.insp .kv div { overflow-wrap: anywhere; }
.insp .photo { aspect-ratio: 16 / 9; background: #121412 center / cover no-repeat; border: 1px solid var(--g-line); }
.insp .ia { display: flex; gap: 6px; }
.insp .ia button { flex: 1; text-align: center; border: 1px solid var(--g-line); padding: 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g-fg); }
.insp .ia button.p { background: var(--g-fg); color: #111; border-color: var(--g-fg); }
/* mobile tray: hidden on desktop */
.tray { display: none; }

@media (max-width: 900px) {
  .gsurf { --tray-h: calc(60px + env(safe-area-inset-bottom, 0px)); display: block; height: auto; max-height: none; min-height: 0; }
  .gmap { height: calc(100dvh - var(--header-h) - var(--tray-h)); min-height: 420px; }
  /* the rail becomes a bottom sheet above the tray */
  .rail { position: fixed; left: 0; right: 0; bottom: var(--tray-h); top: auto; z-index: 84; border: 0; border-top: 1px solid var(--g-line); max-height: min(70dvh, 560px); height: auto; transform: translateY(102%); visibility: hidden; transition: transform .28s var(--ease-out), visibility 0s linear .28s; box-shadow: 0 -12px 32px rgba(0,0,0,.5); }
  .sheet-open .rail { transform: none; visibility: visible; transition: transform .28s var(--ease-out), visibility 0s; }
  .rail .top { padding: 12px 14px 10px; align-items: center; }
  .rail .top .chip { display: none; }
  .rail .top .x { display: grid; place-items: center; width: 36px; height: 36px; color: var(--g-mute); margin-left: auto; }
  .rail .top .x svg { width: 16px; height: 16px; }
  .rail .mapname { font-size: 22px; } .rail .top .glogo.rail { height: 26px; }
  .rail .search { margin: 10px 14px 4px; }
  .rail .search kbd { display: none; }
  .layers { max-height: none; }
  .rail .creator { display: none; }
  /* inspector: bottom sheet above the tray, map stays visible above it */
  .insp { position: fixed; top: auto; left: 0; right: 0; bottom: var(--tray-h); width: auto; max-height: 46dvh; border-width: 1px 0 0; z-index: 83; box-shadow: 0 -12px 32px rgba(0,0,0,.5); }
  .insp .photo { aspect-ratio: 21 / 9; }
  .gmap .poi { font-size: 12.5px; } .gmap .poi.sec { font-size: 10.5px; }
  .gpin { width: 28px; height: 28px; margin: -14px 0 0 -14px; } .gpin svg { width: 16px; height: 16px; } .gpin.svc svg { width: 14px; height: 14px; }
  .gcl { width: 32px; height: 32px; margin: -16px 0 0 -16px; } .gcl svg { width: 16px; height: 16px; }
  .insp .ih .x { width: 40px; height: 40px; }
  .gmap .north { bottom: auto; top: 12px; left: auto; right: 62px; } .gmap .zoom { display: none; }
  .gmap .credit { top: auto; bottom: 8px; left: 10px; right: 10px; font-size: 9px; }
  .gmap .tip { display: none; }
  /* bottom-docked tray, fixed to the browser viewport like the in-game tac map */
  .tray { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: var(--tray-h); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 85; background: rgba(12,14,12,.97); border-top: 1px solid var(--g-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .tray .strip { flex: 1; min-width: 0; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent); }
  .tray .strip::-webkit-scrollbar { display: none; }
  .tb { flex: none; width: 62px; height: 60px; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--g-mute); font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; position: relative; }
  .tb svg { width: 20px; height: 20px; }
  .tb span { white-space: nowrap; }
  .tb[aria-pressed="true"] { color: var(--g-fg); }
  .tb[aria-pressed="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 2px; background: var(--g-key); }
  .tb[data-layer="exfil"][aria-pressed="true"]::after { background: var(--g-exfil); } .tb[data-layer="boss"][aria-pressed="true"]::after { background: var(--g-boss); }
  .tb[data-layer="poi"][aria-pressed="true"]::after { background: var(--g-fg); }
  .tb[data-layer]:not([data-layer="poi"]):not([data-layer="key"]):not([data-layer="exfil"]):not([data-layer="boss"])[aria-pressed="true"]::after { background: var(--g-fg); }
  .tb.fixed { width: 78px; color: var(--g-fg); background: #151815; border-left: 1px solid var(--g-line); }
  .tb.fixed:first-child { width: 64px; }
  .tb.fixed:first-child { border-left: 0; border-right: 1px solid var(--g-line); }
  .tb.fixed i { font-style: normal; color: var(--g-acc-ink, #141206); background: var(--g-key); padding: 0 4px; margin-left: 3px; border-radius: 8px; font-weight: 700; }
  .tray .strip::after { content: ""; flex: none; width: 10px; }
  .tb[aria-expanded="true"] { background: #1E221E; }
  body.map-page { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* teaser panels under a tool: the rest of the game's pages */
.teasers { padding-block: 40px 44px; }
.teasergrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.teaser { position: relative; display: block; min-height: 220px; border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); color: var(--fg); }
.teaser.tool { grid-column: span 2; min-height: 260px; }
.teaser .art { position: absolute; inset: 0; background: var(--bg-3) center / cover no-repeat; filter: saturate(.85); transition: transform .9s var(--ease-out), filter .4s; }
.teaser:hover .art { transform: scale(1.04); filter: saturate(1); }
.teaser::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,7,.1) 10%, rgba(5,6,7,.92) 100%); }
.teaser .body { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: grid; gap: 4px; }
.teaser .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.teaser h3 { font-size: 26px; line-height: .95; color: #fff; }
.teaser.tool h3 { font-size: 34px; }
.teaser p { color: rgba(255,255,255,.75); font-size: var(--fs-0); display: none; }
.teaser.tool p { display: block; max-width: 30em; }
.teaser .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
.teaser .go svg { width: 12px; height: 12px; transition: transform .3s; } .teaser:hover .go svg { transform: translateX(4px); }
@media (max-width: 1000px) { .teasergrid { grid-template-columns: repeat(2, 1fr); } .teaser.tool { grid-column: span 2; } }
@media (max-width: 560px) { .teasergrid { grid-template-columns: 1fr; } .teaser.tool { grid-column: auto; } .teaser { min-height: 180px; } }

/* tool status strip under surfaces */
.toolnote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-block: 20px 8px; }
@media (max-width: 900px) { .toolnote { grid-template-columns: 1fr; } }
.toolnote .c { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; background: var(--bg-2); min-width: 0; }
.toolnote .c h4 { font-family: var(--display); text-transform: uppercase; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.toolnote .c p { color: var(--mute); font-size: var(--fs-1); }

/* ===== Weapon Lab (game-coded: DMZ gold on near-black; no brand tokens inside .lab) ===== */
.lab { --l-bg: #0E0E0D; --l-panel: #151514; --l-panel-2: #1C1C1A; --l-line: #2A2A27; --l-fg: #ECEAE2; --l-mute: #9A9A8E; --l-acc: #FFD23D; --l-acc-ink: #0E0E0D; --l-good: #FFD23D; --l-bad: #FF5A4F; --l-sel: #262010;
  background: var(--l-bg); color: var(--l-fg); border-bottom: 1px solid var(--l-line); }
.lab .labhead { padding: 28px 0 14px; }
.lab .labhead .glogo.lab { height: 40px; width: auto; margin-bottom: 10px; display: block; }
.lab .labhead h1 { font-size: clamp(40px, 6vw, 64px); line-height: .9; }
.lab .labhead p { max-width: 720px; color: var(--l-mute); margin-top: 10px; font-size: 15px; line-height: 1.5; }
/* scenario bar */
.lab { --sc-h: 118px; }
.lab .scenario { position: sticky; top: var(--header-h); z-index: 20; background: rgba(15,17,15,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--l-line); border-bottom: 1px solid var(--l-line); }
.lab .scenario .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-end; padding-block: 10px; }
.lab .sc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lab .sc .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--l-mute); width: 100%; }
.lab .sc .lbl b { color: var(--l-fg); font-weight: 500; margin-left: 6px; }
.lab .seg { display: inline-flex; align-items: center; border: 1px solid var(--l-line); overflow: hidden; background: #0C0E0C; }
.lab .seg button { padding: 7px 11px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--l-mute); border-right: 1px solid var(--l-line); min-width: 36px; }
.lab .seg button:last-of-type { border-right: 0; }
.lab .seg button[aria-pressed="true"] { background: var(--l-acc); color: var(--l-acc-ink); }
.lab .seg button:disabled { opacity: .35; cursor: not-allowed; }
.lab .seg .segl { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--l-mute); padding: 0 10px; }
.lab .hp { display: grid; line-height: 1.1; }
.lab .hp b { font-family: var(--display); font-size: 22px; font-weight: 800; }
.lab .hp small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--l-mute); }
.lab .sc.range { flex: 0 1 320px; min-width: 200px; display: grid; gap: 4px; }
.lab .sc.range input { width: 100%; accent-color: var(--l-acc); margin: 4px 0 0; }
.lab .sc.range .ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--l-mute); }
/* body */
.lab .labbody { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; padding-block: 18px 28px; }
.lab .wlist { position: sticky; top: calc(var(--header-h) + var(--sc-h) + 12px); border: 1px solid var(--l-line); background: var(--l-panel); display: grid; }
.lab .listtoggle { display: none; }
.lab .lh { display: grid; gap: 8px; padding: 12px 12px 8px; }
.lab .search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--l-line); background: #0C0E0C; padding: 8px 10px; color: var(--l-mute); font-size: 13px; }
.lab .search svg { width: 14px; height: 14px; flex: none; }
.lab .search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--l-fg); font: inherit; outline: none; }
.lab select { background: #0C0E0C; border: 1px solid var(--l-line); color: var(--l-fg); font: inherit; font-size: 12px; padding: 7px 10px; }
.lab .classes { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 12px 8px; }
.lab .classes .chip { padding: 4px 9px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; border: 1px solid var(--l-line); color: var(--l-mute); background: transparent; }
.lab .classes .chip.on { color: var(--l-acc-ink); background: var(--l-acc); border-color: var(--l-acc); }
.lab .lcount { padding: 4px 12px 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--l-mute); border-bottom: 1px solid var(--l-line); }
.lab .guns { display: grid; max-height: calc(100vh - var(--header-h) - var(--sc-h) - 190px); min-height: 280px; overflow: auto; overscroll-behavior: contain; }
.lab .gun { display: grid; grid-template-columns: 22px 60px 1fr auto 18px; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--l-line); text-align: left; width: 100%; color: var(--l-fg); }
.lab .gun:hover { background: var(--l-panel-2); }
.lab .gun.on { background: var(--l-sel); box-shadow: inset 3px 0 0 var(--l-acc); }
.lab .gun .rk { font-family: var(--mono); font-size: 11px; color: var(--l-mute); text-align: right; }
.lab .gun img { width: 60px; height: 30px; object-fit: contain; }
.lab .gun .noimg { width: 60px; height: 30px; }
.lab .gun .nm { min-width: 0; } .lab .gun .nm b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab .gun .nm span { display: block; font-size: 11px; color: var(--l-mute); }
.lab .gun .tt { text-align: right; line-height: 1.05; } .lab .gun .tt b { font-family: var(--mono); font-size: 15px; font-weight: 500; display: block; } .lab .gun .tt span { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--l-mute); }
.lab .gun .add { font-family: var(--mono); font-size: 14px; color: var(--l-mute); text-align: center; }
.lab .gun.on .add { color: var(--l-acc); }
.lab .wstage { display: grid; gap: 16px; min-width: 0; }
.lab .ch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; }
.lab .ch span { font-family: var(--display); text-transform: uppercase; font-size: 20px; font-weight: 700; }
.lab .ch small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--l-mute); }
.lab .ch .clear { margin-left: auto; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; border: 1px solid var(--l-line); padding: 5px 9px; color: var(--l-fg); }
/* compare cards */
.lab .cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.lab .empty { grid-column: 1 / -1; border: 1px dashed var(--l-line); padding: 28px; text-align: center; color: var(--l-mute); }
.lab .empty h3 { font-size: 26px; color: var(--l-fg); margin-bottom: 6px; }
.lab .wcard { border: 1px solid var(--l-line); background: var(--l-panel); border-top: 3px solid var(--c, var(--l-acc)); min-width: 0; }
.lab .wcard header { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-bottom: 1px solid var(--l-line); position: relative; }
.lab .wcard header .rank { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 3px 7px; background: var(--l-panel-2); color: var(--l-mute); border-right: 1px solid var(--l-line); border-bottom: 1px solid var(--l-line); }
.lab .wcard header .rank.top { background: var(--c, var(--l-acc)); color: var(--l-acc-ink); }
.lab .wcard header .img { width: 110px; height: 52px; display: grid; place-items: center; flex: none; margin-top: 8px; } .lab .wcard header img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lab .wcard header .hd { min-width: 0; flex: 1; } .lab .wcard header small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--l-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab .wcard header h3 { font-size: 28px; line-height: .95; }
.lab .wcard header .x { color: var(--l-mute); font-size: 18px; width: 28px; height: 28px; flex: none; }
.lab .ttkbox { padding: 12px 12px 10px; border-bottom: 1px solid var(--l-line); }
.lab .ttkbox .big { display: flex; align-items: baseline; gap: 6px; }
.lab .ttkbox .big b { font-family: var(--mono); font-size: 28px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; color: var(--c, var(--l-fg)); }
.lab .ttkbox .big em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--l-mute); }
.lab .ttkbox .best { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; background: var(--l-acc); color: var(--l-acc-ink); padding: 3px 6px; font-weight: 700; }
.lab .ttkbox .sub { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: var(--l-mute); }
.lab .ttkbox .sub b { color: var(--l-fg); font-family: var(--mono); font-weight: 500; }
.lab .ttkbox .warn { margin-top: 8px; font-size: 11px; color: var(--l-acc); }
.lab .groups { padding: 6px 12px 10px; display: grid; gap: 8px; }
.lab .grp .gh { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0 4px; border-bottom: 1px solid var(--l-line); margin-bottom: 4px; }
.lab .grp .gh span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--l-fg); }
.lab .grp .gh small { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--l-mute); }
.lab .row { display: grid; grid-template-columns: 104px 1fr 78px; gap: 8px; align-items: center; font-size: 11.5px; padding: 2px 0; }
.lab .row > span { color: var(--l-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab .row .rank { font-family: var(--mono); font-size: 9px; color: var(--l-mute); opacity: .8; margin-left: 5px; }
.lab .key { padding: 0 12px 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--l-mute); }
.lab .row i { height: 6px; background: #0C0E0C; border: 1px solid var(--l-line); display: block; }
.lab .row i em { display: block; height: 100%; background: var(--c, var(--l-acc)); opacity: .9; }
.lab .row b { font-family: var(--mono); font-weight: 500; text-align: right; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lab .row b small { color: var(--l-mute); font-size: 9px; margin-left: 2px; }
.lab .row b .was { text-decoration: line-through; margin-right: 4px; }
.lab .row.mod.up b { color: var(--l-good); } .lab .row.mod.down b { color: var(--l-bad); }
.lab .row.na i { opacity: .3; }
.lab .buildbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--l-line); font-size: 11px; color: var(--l-mute); }
.lab .gsbtn { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; border: 1px solid var(--l-line); padding: 6px 10px; color: var(--l-fg); }
.lab .gsbtn[aria-pressed="true"] { background: var(--l-acc); color: var(--l-acc-ink); border-color: var(--l-acc); }
/* chart */
.lab .chart, .lab .dmg .dt, .lab .gunsmith, .lab .sources { border: 1px solid var(--l-line); background: var(--l-panel); padding: 12px 14px 14px; min-width: 0; }
.lab .chart:empty, .lab .dmg:empty { display: none; }
.lab .chart svg { width: 100%; height: auto; display: block; }
.lab .chart .grid { stroke: var(--l-line); stroke-width: 1; }
.lab .chart .tk { fill: var(--l-mute); font-family: var(--mono); font-size: 10px; }
.lab .chart .cur { stroke: var(--l-fg); stroke-dasharray: 3 3; opacity: .6; }
.lab .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; margin-top: 6px; }
.lab .legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 6px; }
.lab .legend .muted { color: var(--l-mute); margin-left: auto; }
.lab .chart .rd { font-family: var(--mono); font-size: 11px; font-weight: 700; paint-order: stroke; stroke: #0F110F; stroke-width: 3px; }
.lab .sources .val { font-size: 12.5px; color: var(--l-mute); margin: 0 0 8px; line-height: 1.5; } .lab .sources .val b { color: var(--l-fg); }
/* damage tables */
.lab .dmg { display: grid; gap: 12px; }
.lab .dt { overflow: auto; }
.lab table { border-collapse: collapse; width: 100%; font-size: 12px; }
.lab th, .lab td { text-align: right; padding: 5px 8px; border-bottom: 1px solid var(--l-line); white-space: nowrap; }
.lab th:first-child, .lab td:first-child { text-align: left; color: var(--l-mute); }
.lab th { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--l-mute); font-weight: 400; }
.lab td b { font-family: var(--mono); font-weight: 500; } .lab td small { display: block; font-family: var(--mono); font-size: 9px; color: var(--l-mute); }
.lab tr.on td { background: var(--l-sel); } .lab tr.on td:first-child { color: var(--l-acc); }
/* gunsmith */
.lab .gsgrid { display: grid; grid-template-columns: 1fr 260px; gap: 14px; align-items: start; }
.lab .slot { border: 1px solid var(--l-line); margin-bottom: 6px; background: #0C0E0C; }
.lab .slot summary { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lab .slot summary::-webkit-details-marker { display: none; }
.lab .slot summary small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--l-mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lab .slot[open] summary { border-bottom: 1px solid var(--l-line); color: var(--l-acc); }
.lab .opts { display: grid; }
.lab .opt { display: grid; grid-template-columns: 190px 1fr; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--l-line); text-align: left; width: 100%; color: var(--l-fg); align-items: start; }
.lab .opt:last-child { border-bottom: 0; }
.lab .opt:hover { background: var(--l-panel-2); }
.lab .opt[aria-pressed="true"] { background: var(--l-sel); box-shadow: inset 3px 0 0 var(--l-acc); }
.lab .opt:disabled { opacity: .4; cursor: not-allowed; }
.lab .opt .an b { display: block; font-size: 12.5px; font-weight: 700; } .lab .opt .an small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--l-mute); }
.lab .opt .mods { display: flex; flex-wrap: wrap; gap: 3px 6px; }
.lab .opt .mods i { font-style: normal; font-family: var(--mono); font-size: 10px; padding: 2px 5px; border: 1px solid var(--l-line); color: var(--l-fg); white-space: nowrap; }
.lab .opt .mods i.good { color: var(--l-good); border-color: rgba(255,210,61,.35); } .lab .opt .mods i.bad { color: var(--l-bad); border-color: rgba(255,90,79,.35); } .lab .opt .mods i.none { color: var(--l-mute); border-style: dashed; }
.lab .buildsum { border: 1px solid var(--l-line); padding: 12px; position: sticky; top: calc(var(--header-h) + var(--sc-h) + 12px); font-size: 12px; }
.lab .buildsum h4 { font-size: 18px; margin-bottom: 8px; } .lab .buildsum h5 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--l-mute); margin: 10px 0 4px; font-weight: 400; }
.lab .buildsum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lab .buildsum li b { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--l-mute); font-weight: 400; }
.lab .buildsum ul.small li { font-family: var(--mono); font-size: 10.5px; } .lab .buildsum ul.small small { color: var(--l-mute); }
.lab .buildsum p { color: var(--l-mute); margin: 0; } .lab .buildsum .fine { margin-top: 10px; font-size: 11px; line-height: 1.45; }
.lab .buildsum .chips { display: flex; flex-wrap: wrap; gap: 3px 5px; } .lab .buildsum .chips i { font-style: normal; font-family: var(--mono); font-size: 10px; padding: 2px 5px; border: 1px solid var(--l-line); white-space: nowrap; } .lab .buildsum .chips i.good { color: var(--l-good); } .lab .buildsum .chips i.bad { color: var(--l-bad); }
/* sources */
.lab .sources ul { margin: 0; padding-left: 18px; font-size: 12px; color: var(--l-mute); display: grid; gap: 4px; }
.lab .sources a { color: var(--l-fg); text-decoration: underline; text-decoration-color: var(--l-line); }
.lab .sources .cav { margin-top: 10px; }
.lab .sources.quiet { border: 0; background: none; padding: 0 2px; } .lab .sources .foot { margin: 0; font-size: 11.5px; color: var(--l-mute); }
.lab .note { color: var(--l-mute); font-size: 12px; padding: 10px 12px; }
@media (max-width: 1000px) {
  .lab .labbody { grid-template-columns: 1fr; }
  .lab .wlist { position: static; }
  .lab .listtoggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; font-family: var(--display); text-transform: uppercase; font-size: 18px; font-weight: 700; color: var(--l-fg); }
  .lab .listtoggle svg { width: 18px; height: 18px; } .lab .listtoggle span { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--l-mute); font-weight: 400; }
  .lab .listtoggle { position: sticky; top: var(--header-h); z-index: 15; background: var(--l-panel); }
  .lab .listbody { display: none; } .lab.list-open .listbody { display: block; border-top: 1px solid var(--l-line); }
  .lab .guns { max-height: 60dvh; min-height: 0; }
  .lab .gsgrid { grid-template-columns: 1fr; } .lab .buildsum { position: static; }
  .lab .scenario .wrap { gap: 8px 16px; }
  .lab .labhead h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  .lab .opt { grid-template-columns: 1fr; gap: 4px; }
  .lab .row { grid-template-columns: 96px 1fr 72px; }
  .lab .ttkbox .big b { font-size: 26px; }
  .lab .scenario { position: static; }
  .lab .seg button { padding: 7px 9px; }
  .lab .scenario .wrap { padding-block: 8px; gap: 6px 14px; }
  .lab .sc .lbl { width: auto; } .lab .sc.range .lbl { width: 100%; }
}


/* Scroll reveals: content is visible at rest; only when JS adds .js do elements start hidden and reveal. */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-reveal="left"] { transform: translateX(-24px); }
html.js [data-reveal="scale"] { transform: scale(.96); }
html.js [data-reveal-group] > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
html.js [data-reveal-group].in > * { opacity: 1; transform: none; }
html.js [data-reveal-group].in > *:nth-child(2) { transition-delay: .07s; }
html.js [data-reveal-group].in > *:nth-child(3) { transition-delay: .14s; }
html.js [data-reveal-group].in > *:nth-child(4) { transition-delay: .21s; }
html.js [data-reveal-group].in > *:nth-child(5) { transition-delay: .28s; }
html.js [data-reveal-group].in > *:nth-child(6) { transition-delay: .35s; }
html.js [data-reveal-group].in > *:nth-child(n+7) { transition-delay: .4s; }

/* headline word stagger */
html.js .split .w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(1deg); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
html.js .split.in .w { opacity: 1; transform: none; }

/* scroll-driven parallax where supported */
@supports (animation-timeline: scroll()) {
  [data-parallax] { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes parallax { from { transform: translateY(0) scale(1.04); } to { transform: translateY(14%) scale(1.04); } }
}

/* ticker drift */
.ticker .track { display: inline-flex; gap: 0; animation: drift 46s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js [data-reveal-group] > *, html.js .split .w { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-parallax] { animation: none !important; }
  .ticker .track { animation: none; }
  .ghero .art.fx { animation: none; }
  /* reduced motion: no travel, but hover states still cross-fade instead of snapping */
  *, *::before, *::after { animation-duration: .01ms !important; transition-property: opacity, color, background-color, border-color, box-shadow, filter !important; }
  .quad .peek, .quad .pk, .plate .pmenu, .plate .pmenu .q, .game-tab .panel, .gamectx .switch .panel, .secs .sec-group .panel { transform: none !important; }
  /* the chip row still opens (max-height eases even here) so the logo rests in its corner and moves up on hover */
  .quad .peek { transition-property: max-height, opacity !important; }
}
