/* WinMate – retro arcade theme */
@font-face {
  font-family: "Silkscreen";
  src: url("/fonts/silkscreen-400.e6c72ea470.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("/fonts/silkscreen-700.5741b7f01a.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #07081a;
  --bg-2: #0d0f2b;
  --surface: #11143a;
  --surface-2: #181c4c;
  --surface-3: #222868;
  --border: #2a3074;
  --border-strong: #4550b4;
  --text: #f1f3ff;
  --muted: #a5abd9;
  --accent: #3ee0ff;
  --accent-strong: #19c3ef;
  --accent-ink: #03111c;
  --pink: #ff4fd8;
  --yellow: #ffd23f;
  --green: #39f59a;
  --red: #ff5a76;
  --blue: #3a8bff;
  --tile: #eef1ff;
  --shadow: #02030c;
  --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
  --glow-pink: 0 0 0 1px color-mix(in srgb, var(--pink) 60%, transparent), 0 0 18px color-mix(in srgb, var(--pink) 30%, transparent);
  --pixel: 4px 4px 0 var(--shadow);
  --pixel-sm: 3px 3px 0 var(--shadow);
  --radius: 6px;
  --font-pixel: "Silkscreen", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "JetBrains Mono", ui-monospace, monospace;
  --header-h: 60px;
  --g-basics: var(--yellow);
  --g-play: var(--pink);
  --g-tech: var(--accent);
  --bg-opacity: 1;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef0fb;
    --bg-2: #e3e6f8;
    --surface: #ffffff;
    --surface-2: #f0f2fc;
    --surface-3: #e2e6fa;
    --border: #c9cfee;
    --border-strong: #8f9ad6;
    --text: #0e1030;
    --muted: #4d5382;
    --accent: #0a84c9;
    --accent-strong: #076aa3;
    --accent-ink: #ffffff;
    --pink: #c21d9e;
    --yellow: #a87700;
    --green: #0f8a4f;
    --red: #c41f43;
    --blue: #1a5fd6;
    --tile: #f4f5fd;
    --shadow: #c3c9ea;
    --glow: 0 0 0 1px var(--accent);
    --glow-pink: 0 0 0 1px var(--pink);
    --bg-opacity: .45;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eef0fb;
  --bg-2: #e3e6f8;
  --surface: #ffffff;
  --surface-2: #f0f2fc;
  --surface-3: #e2e6fa;
  --border: #c9cfee;
  --border-strong: #8f9ad6;
  --text: #0e1030;
  --muted: #4d5382;
  --accent: #0a84c9;
  --accent-strong: #076aa3;
  --accent-ink: #ffffff;
  --pink: #c21d9e;
  --yellow: #a87700;
  --green: #0f8a4f;
  --red: #c41f43;
  --blue: #1a5fd6;
  --tile: #f4f5fd;
  --shadow: #c3c9ea;
  --glow: 0 0 0 1px var(--accent);
  --glow-pink: 0 0 0 1px var(--pink);
  --bg-opacity: .45;
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; }
body.has-selbar { padding-bottom: 88px; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--font-mono); }
code { font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); padding: .05em .35em; border-radius: 4px; }
pre code { background: none; border: 0; padding: 0; }
kbd {
  display: inline-block; min-width: 1.6em; padding: .05em .4em; font: 400 .72rem/1.5 var(--font-pixel); text-align: center;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 3px; border-radius: 4px;
}
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.wrap { width: min(1400px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(920px, 100% - 32px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: #000; padding: 8px 12px; font-weight: 700; }
.skip:focus { top: 12px; }
.px-icon { width: 1em; height: 1em; display: block; }
.px-icon .px-accent, .invader-sprite .px-accent { fill: var(--px-accent, currentColor); }

/* ---------------------------------------------------------------- arcade background */
.arcade-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: var(--bg-opacity); }
.bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 50% 100%, color-mix(in srgb, var(--pink) 22%, transparent), transparent 70%),
    radial-gradient(50% 40% at 85% 0%, color-mix(in srgb, var(--blue) 25%, transparent), transparent 70%),
    linear-gradient(var(--bg), var(--bg-2));
}
.bg-stars { position: absolute; top: 0; left: 0; background: transparent; animation: twinkle 3.2s steps(2) infinite, drift 120s linear infinite; }
.bg-stars.s2 { animation-duration: 4.6s, 180s; animation-delay: -1.3s, -40s; opacity: .8; }
.bg-stars.s3 { animation-duration: 2.4s, 240s; animation-delay: -.7s, -90s; opacity: .6; }
.bg-stars.s1{width:2px;height:2px;box-shadow:1488px 909px 0 #8be9ff, 456px 85px 0 #ffe27a, 1061px 880px 0 #8be9ff, 1439px 1091px 0 #ff9ae8, 644px 1165px 0 #ffffff, 1191px 1239px 0 #ffe27a, 803px 1015px 0 #ff9ae8, 1281px 142px 0 #ffffff, 547px 400px 0 #8be9ff, 291px 1378px 0 #ff9ae8, 1943px 778px 0 #ffffff, 424px 825px 0 #ffe27a, 1075px 669px 0 #8be9ff, 422px 691px 0 #8be9ff, 1147px 475px 0 #ff9ae8, 1334px 1347px 0 #ffffff, 713px 282px 0 #ffffff, 1748px 809px 0 #ffe27a, 407px 741px 0 #ffe27a, 1640px 400px 0 #8be9ff, 229px 102px 0 #8be9ff, 1711px 338px 0 #ffe27a, 1783px 1313px 0 #8be9ff, 1335px 1217px 0 #8be9ff, 1783px 465px 0 #ffe27a, 48px 1245px 0 #8be9ff, 553px 98px 0 #8be9ff, 681px 489px 0 #8be9ff, 1051px 703px 0 #ffffff, 1131px 2px 0 #ffe27a, 413px 41px 0 #8be9ff, 419px 582px 0 #ff9ae8, 1504px 1354px 0 #8be9ff, 1046px 1359px 0 #ffe27a, 1426px 256px 0 #ffffff, 255px 1278px 0 #ffffff, 972px 1106px 0 #ff9ae8, 1626px 1163px 0 #ffffff, 772px 349px 0 #ff9ae8, 1855px 735px 0 #ff9ae8, 16px 1129px 0 #ffe27a, 577px 159px 0 #8be9ff, 1763px 1054px 0 #ffe27a, 1107px 1165px 0 #ffe27a, 1779px 582px 0 #ffe27a, 1736px 367px 0 #8be9ff, 511px 1042px 0 #ffe27a, 1116px 414px 0 #ff9ae8, 411px 1373px 0 #8be9ff, 1483px 443px 0 #ffffff, 913px 950px 0 #ff9ae8, 1824px 1213px 0 #ff9ae8, 710px 844px 0 #ffe27a, 861px 1019px 0 #8be9ff, 1802px 377px 0 #ff9ae8, 1254px 511px 0 #ff9ae8, 356px 188px 0 #ffe27a, 1923px 369px 0 #ffffff, 542px 1154px 0 #ffffff, 420px 547px 0 #ff9ae8, 1046px 1259px 0 #ffffff, 1385px 119px 0 #ffe27a, 1813px 1210px 0 #8be9ff, 929px 995px 0 #8be9ff, 741px 105px 0 #ff9ae8, 434px 377px 0 #ffffff, 739px 405px 0 #8be9ff, 434px 1160px 0 #ffffff, 1149px 36px 0 #ffffff, 87px 1200px 0 #ffe27a}
.bg-stars.s2{width:3px;height:3px;box-shadow:959px 1065px 0 #ffe27a, 922px 231px 0 #ffffff, 1683px 827px 0 #ff9ae8, 620px 208px 0 #8be9ff, 1053px 498px 0 #ff9ae8, 528px 584px 0 #8be9ff, 1090px 854px 0 #ffffff, 1693px 829px 0 #ffffff, 1416px 830px 0 #8be9ff, 651px 36px 0 #ffe27a, 1760px 56px 0 #ffe27a, 861px 266px 0 #ffffff, 329px 557px 0 #ff9ae8, 20px 214px 0 #8be9ff, 829px 1307px 0 #ffffff, 594px 318px 0 #ff9ae8, 1595px 60px 0 #ff9ae8, 1052px 884px 0 #ff9ae8, 105px 361px 0 #ffe27a, 1362px 1051px 0 #8be9ff, 1046px 822px 0 #ffffff, 863px 852px 0 #ff9ae8, 1602px 631px 0 #ffffff, 125px 161px 0 #ffffff, 906px 324px 0 #ff9ae8, 711px 19px 0 #ffffff, 910px 715px 0 #ffffff, 1301px 244px 0 #ffffff, 8px 1288px 0 #ffffff, 600px 734px 0 #ffffff, 1821px 1034px 0 #ffffff, 981px 1123px 0 #ffffff, 308px 1191px 0 #ffe27a, 602px 109px 0 #ffe27a, 228px 63px 0 #8be9ff, 1088px 1246px 0 #ff9ae8, 712px 246px 0 #ffffff, 1829px 697px 0 #ffe27a, 713px 1343px 0 #ffe27a, 1741px 1365px 0 #ffe27a}
.bg-stars.s3{width:4px;height:4px;box-shadow:267px 1296px 0 #8be9ff, 164px 960px 0 #ffffff, 984px 613px 0 #ffe27a, 1933px 992px 0 #ffffff, 182px 1102px 0 #8be9ff, 1191px 574px 0 #ffe27a, 858px 872px 0 #ffe27a, 1932px 697px 0 #ffe27a, 309px 698px 0 #ffffff, 1517px 493px 0 #ff9ae8, 1105px 1104px 0 #ff9ae8, 402px 75px 0 #ffe27a, 1826px 353px 0 #8be9ff, 963px 49px 0 #ffffff, 1571px 657px 0 #8be9ff, 1602px 260px 0 #ffe27a, 790px 380px 0 #8be9ff, 1076px 608px 0 #ff9ae8}
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-400px); } }
.bg-floor { position: absolute; left: -50%; right: -50%; bottom: 0; height: 42vh; perspective: 340px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 55%); mask-image: linear-gradient(transparent, #000 55%); }
.bg-grid {
  position: absolute; left: 0; right: 0; top: -100%; height: 300%; transform-origin: 50% 0; transform: rotateX(62deg);
  background-image:
    linear-gradient(color-mix(in srgb, var(--pink) 55%, transparent) 2px, transparent 2px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, transparent) 2px, transparent 2px);
  background-size: 64px 64px;
  animation: grid-run 2.4s linear infinite;
  opacity: .35;
}
@keyframes grid-run { from { translate: 0 0; } to { translate: 0 64px; } }
.invader { position: absolute; left: -80px; color: var(--green); opacity: .16; --px-accent: var(--pink); }
.invader .invader-sprite { width: 48px; height: 48px; animation: wiggle .8s steps(2) infinite; }
.invader.i1 { top: 16vh; animation: fly 46s linear infinite; }
.invader.i2 { top: 48vh; color: var(--accent); animation: fly 64s linear infinite; animation-delay: -30s; }
.invader.i3 { top: 72vh; color: var(--yellow); animation: fly 38s linear infinite reverse; animation-delay: -12s; }
.invader.i3 .invader-sprite { width: 32px; height: 32px; }
@keyframes fly { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 160px)); } }
@keyframes wiggle { 0% { transform: translateY(0); } 100% { transform: translateY(-4px); } }
.bg-scan { position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .18) 2px 3px); opacity: .35; }

/* ---------------------------------------------------------------- buttons */
.btn, .btn-ghost, .btn-small, .chip, .icon-btn {
  font: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 2px solid var(--border-strong); color: var(--text); background: var(--surface-2);
  transition: transform .08s steps(2), box-shadow .08s steps(2), background-color .15s, border-color .15s, color .15s;
}
.btn { padding: .65em 1.1em; border-radius: var(--radius); font-weight: 700; box-shadow: var(--pixel-sm); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); color: var(--text); border-color: var(--accent); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); box-shadow: 4px 4px 0 var(--shadow), 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-primary kbd { background: color-mix(in srgb, var(--accent-ink) 12%, transparent); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg, .btn-small svg, .btn-ghost svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-ghost { padding: .55em .9em; border-radius: var(--radius); background: transparent; border-color: transparent; font-weight: 600; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; }
.btn-small { padding: .25em .6em; border-radius: 4px; font-size: .8rem; font-weight: 600; margin-left: auto; }
.btn-small.done { border-color: var(--green); color: var(--green); }
.icon-btn { width: 40px; height: 40px; border-radius: var(--radius); background: transparent; border-color: transparent; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.key-btn { font: 700 1rem var(--font-pixel); }
.chip { padding: .35em .75em; border-radius: 999px; font-size: .875rem; font-weight: 600; background: var(--surface-2); border-width: 1px; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.bundle-chip { --px-accent: var(--text); }
.bundle-chip .px-icon { width: 16px; height: 16px; color: var(--g-color, var(--accent)); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 2px solid var(--border); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--pink), var(--yellow), var(--accent)); background-size: 300% 100%; animation: rainbow 8s linear infinite; opacity: .8; }
@keyframes rainbow { to { background-position: 300% 0; } }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; }
.brand img { image-rendering: pixelated; width: 32px; height: auto; }
.brand:hover img { animation: hop .4s steps(2); }
@keyframes hop { 50% { transform: translateY(-4px); } }
.brand-name { font-family: var(--font-pixel); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.nav { display: flex; gap: .25rem; margin-left: .5rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: .4rem .7rem; border-radius: var(--radius); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.lang-switch { font-family: var(--font-pixel); font-size: .9rem; }

/* ---------------------------------------------------------------- marquee + HUD */
.marquee { padding: 1.4rem 0 1rem; }
.marquee-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.marquee-copy { max-width: 760px; }
.marquee h1 { font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.15rem); margin-bottom: .3rem; }
.h1-pixel { font-family: var(--font-pixel); font-weight: 700; color: var(--yellow); text-shadow: 3px 3px 0 var(--shadow), 0 0 16px color-mix(in srgb, var(--yellow) 35%, transparent); margin-right: .25em; }
.marquee .lead { margin: 0; color: var(--muted); font-size: 1rem; max-width: 70ch; }
.hud { display: flex; gap: 0; margin: 0; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 2px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--pixel); overflow: hidden; }
.hud-cell { padding: .45rem .95rem; border-right: 2px solid var(--border); text-align: center; }
.hud-cell:last-child { border-right: 0; }
.hud dt { font: 400 .62rem var(--font-pixel); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.hud dd { margin: 0; font: 700 1.35rem/1.2 var(--font-pixel); color: var(--accent); text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent); }
.hud-sel dd { color: var(--pink); text-shadow: 0 0 12px color-mix(in srgb, var(--pink) 55%, transparent); }
.bump { animation: bump .32s steps(3); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------------------------------------------------------------- catalog layout */
.catalog { padding: .5rem 0 3rem; }
.catalog-layout { display: grid; grid-template-columns: 312px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.catalog-layout > * { min-width: 0; }
.sidebar { position: sticky; top: calc(var(--header-h) + 12px); display: grid; gap: .9rem; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; padding: 2px 8px 10px 2px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.panel { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 2px solid var(--border); border-radius: var(--radius); padding: .85rem; box-shadow: var(--pixel-sm); }
.panel-title { font: 400 .8rem var(--font-pixel); color: var(--muted); letter-spacing: .08em; margin-bottom: .6rem; }
.panel-title::before { content: "▶ "; color: var(--pink); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius); padding: 3px; gap: 3px; }
.segmented button { font: 600 .85rem var(--font); color: var(--muted); background: transparent; border: 0; border-radius: 4px; padding: .5em .2em; cursor: pointer; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 2px 2px 0 var(--shadow); }
.pm-hint { margin: .6rem 0 0; }

/* bundles */
.g-basics { --g-color: var(--g-basics); }
.g-play { --g-color: var(--g-play); }
.g-tech { --g-color: var(--g-tech); }
.bundle-group + .bundle-group { margin-top: .75rem; }
.group-title { display: flex; align-items: center; gap: .5rem; font: 400 .66rem var(--font-pixel); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .4rem; color: var(--g-color); }
.group-title::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--g-color) 0 4px, transparent 4px 8px); opacity: .5; }
.bundle-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; }
.bundle-tile {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .38rem .6rem;
  font: 600 .86rem/1.2 var(--font); color: var(--text); text-align: left; cursor: pointer;
  background: var(--surface-2); border: 2px solid var(--border); border-radius: var(--radius);
  transition: border-color .12s, background-color .12s, transform .08s steps(2), box-shadow .08s steps(2);
  --px-accent: var(--text);
}
.bundle-tile:hover { border-color: var(--g-color); transform: translateX(3px); box-shadow: -3px 0 0 var(--g-color); }
.bundle-tile:hover .bt-icon { animation: hop .4s steps(2); }
.bundle-tile.pop { animation: pop .28s steps(4); }
.bt-icon { width: 20px; height: 20px; color: var(--g-color); display: grid; place-items: center; }
.bt-icon .px-icon { width: 20px; height: 20px; }
.bt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-count { font: 400 .62rem var(--font-pixel); color: var(--muted); }
.bundle-tile.active { border-color: var(--g-color); background: color-mix(in srgb, var(--g-color) 16%, var(--surface-2)); box-shadow: 0 0 0 1px var(--g-color), 0 0 14px color-mix(in srgb, var(--g-color) 35%, transparent); }
.bundle-tile.active .bt-count { color: var(--g-color); }
.bundle-tile.active .bt-count::before { content: "✓"; margin-right: 1px; }

.cat-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.cat-nav a { display: flex; justify-content: space-between; gap: .5rem; padding: .28rem .5rem; border-radius: 4px; text-decoration: none; color: var(--text); font-size: .88rem; }
.cat-nav a:hover { background: var(--surface-2); }
.cat-nav a.active { background: var(--surface-3); box-shadow: inset 3px 0 0 var(--pink); }
.cat-nav a.active span:first-child::before { content: "▶ "; color: var(--pink); font-size: .7em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.count { font: .72rem var(--font-pixel); color: var(--muted); }
.keys-panel { cursor: pointer; }
.keys-panel:hover { border-color: var(--border-strong); }
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .84rem; }
.keys li { display: flex; align-items: center; gap: .6rem; }
.keys kbd { min-width: 3.4em; }
.keys-all { gap: .5rem; font-size: .95rem; }
.keys-all kbd { min-width: 9em; }

.toolbar { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .75rem 0 .7rem; margin-bottom: .25rem; background: var(--bg); box-shadow: 0 2px 0 var(--border); }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--radius); padding: 0 .8rem; box-shadow: var(--pixel-sm); }
.search:focus-within { border-color: var(--accent); box-shadow: var(--pixel-sm), var(--glow); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--text); background: transparent; border: 0; padding: .7rem 0; outline: none; caret-color: var(--pink); }
.search-kbd { font-size: .7rem; }
.toggle { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--pink); }
.empty { padding: 2rem; text-align: center; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius); }

.cat { margin: 1.2rem 0 2rem; scroll-margin-top: calc(var(--header-h) + 90px); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; margin-bottom: .9rem; border-bottom: 2px dashed var(--border); }
.cat-head h2 { font: 400 1.05rem var(--font-pixel); margin: 0; letter-spacing: .03em; }
.cat-link { color: var(--muted); text-decoration: none; white-space: nowrap; }
.cat-link:hover { color: var(--accent); }

/* ---------------------------------------------------------------- cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
.card {
  position: relative; display: flex; flex-direction: column; background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 2px solid var(--border); border-radius: var(--radius); scroll-margin: 150px 0 110px;
  transition: border-color .12s, transform .08s steps(2), box-shadow .08s steps(2), background-color .12s;
}
.card:hover { border-color: var(--border-strong); transform: translate(-1px, -1px); box-shadow: var(--pixel-sm); }
.card-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.card-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: start; padding: .75rem .75rem .3rem; cursor: pointer; }
.card-text { display: grid; gap: .1rem; }
.card-name { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.card-desc { font-size: .8rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.check { width: 22px; height: 22px; border: 2px solid var(--border-strong); border-radius: 3px; background: var(--bg); position: relative; margin-top: 2px; }
.card-check:checked + .card-body .check { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); }
.card-check:checked + .card-body .check::after {
  content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 11px;
  border: solid var(--accent-ink); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.card:has(.card-check:focus-visible) { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.card.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: var(--glow); }
.card.via-bundle { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 8%, var(--surface)); box-shadow: var(--glow-pink); }
.card.via-bundle .card-check:checked + .card-body .check { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 10px color-mix(in srgb, var(--pink) 60%, transparent); }
.card.unavailable .card-body { opacity: .45; cursor: not-allowed; }
.card.unavailable.selected { border-color: var(--red); box-shadow: none; }
.card.pop { animation: pop .28s steps(4); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(.96); } 70% { transform: scale(1.025); } 100% { transform: scale(1); } }
.card-foot { display: flex; align-items: center; gap: .5rem; padding: 0 .75rem .55rem calc(.75rem + 44px + .7rem); min-height: 1.6rem; }
.pms { display: inline-flex; gap: 3px; }
.pm-dot { display: inline-block; width: 8px; height: 8px; }
.pm-winget { background: var(--blue); } .pm-scoop { background: var(--green); } .pm-choco { background: #c08a55; }
.na-note { font-size: .72rem; font-weight: 700; color: var(--red); }
.via { font: 400 .62rem var(--font-pixel); color: var(--pink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-more { margin-left: auto; font-size: .76rem; color: var(--muted); text-decoration: none; }
.card-more:hover { color: var(--accent); text-decoration: underline; }

.tile { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--tile); border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(10, 20, 60, .08), 2px 2px 0 var(--shadow); }
.tile img { width: 32px; height: 32px; object-fit: contain; }
.card:hover .tile { animation: hop .4s steps(2); }
.tile-xs { width: 28px; height: 28px; border-radius: 6px; }
.tile-xs img { width: 20px; height: 20px; }
.tile-sm { width: 34px; height: 34px; border-radius: 7px; }
.tile-sm img { width: 24px; height: 24px; }
.tile-lg { width: 96px; height: 96px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(10, 20, 60, .08), var(--pixel); }
.tile-lg img { width: 68px; height: 68px; }

/* ---------------------------------------------------------------- selection bar */
.selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 96%, transparent); border-top: 2px solid var(--pink); box-shadow: 0 -8px 24px color-mix(in srgb, var(--pink) 18%, transparent); animation: rise .2s steps(4); }
@keyframes rise { from { transform: translateY(100%); } }
.selbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; }
.selbar-info { display: flex; align-items: center; gap: .6rem; min-width: 0; flex-wrap: wrap; }
.coin { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 .35em; font: 700 1.1rem var(--font-pixel); color: #141000; background: var(--yellow); border-radius: 999px; box-shadow: 2px 2px 0 var(--shadow), 0 0 14px color-mix(in srgb, var(--yellow) 45%, transparent); }
.selbar-text { font-weight: 600; }
.selbar-bundles { display: flex; flex-wrap: wrap; gap: .35rem; }
.sel-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .25rem .15rem .5rem; font-size: .8rem; font-weight: 600; border: 1px solid var(--g-color); border-radius: 999px; background: color-mix(in srgb, var(--g-color) 14%, transparent); --px-accent: var(--text); }
.sel-chip .px-icon { width: 14px; height: 14px; color: var(--g-color); }
.sel-chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .75rem; padding: 0 .3rem; border-radius: 999px; }
.sel-chip button:hover { color: var(--text); background: var(--surface-3); }
.selbar-actions { display: flex; gap: .5rem; flex: none; align-items: center; }
.btn-start::before { content: "▶"; font-size: .75em; animation: blink 1s steps(1) infinite; }

/* ---------------------------------------------------------------- dialogs */
.dialog {
  width: min(780px, 100% - 24px); max-height: min(92vh, 900px); padding: 1.5rem; color: var(--text); background: var(--surface);
  border: 2px solid var(--border-strong); border-radius: 10px; box-shadow: 10px 10px 0 var(--shadow), 0 0 40px color-mix(in srgb, var(--accent) 18%, transparent);
}
.dialog[open] { animation: dlg-in .22s steps(4); }
@keyframes dlg-in { from { transform: scale(.92); opacity: 0; } }
.dialog::backdrop { background: rgba(3, 4, 16, .75); }
.dialog h2 { font-size: 1.45rem; padding-right: 3rem; }
.dialog-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.dialog-close { font-size: 1.1rem; }
.dlg-warnings { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.dlg-warnings li { font-size: .9rem; padding: .55rem .8rem; border-radius: var(--radius); background: var(--surface-2); border-left: 4px solid var(--accent); }
.dlg-warnings li.warn { border-left-color: var(--yellow); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.2rem; }
.dlg-steps { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: .4rem; }
.dlg-script summary { cursor: pointer; font-weight: 650; color: var(--muted); }
.dlg-script pre { max-height: 320px; overflow: auto; background: #05061a; color: #d9e2ff; border: 2px solid var(--border); border-radius: var(--radius); padding: .9rem; font-size: .78rem; line-height: 1.5; }

.bundle-dialog { width: min(720px, 100% - 24px); }
.bundle-dialog[open] { display: flex; flex-direction: column; }
.bundle-dialog:has(.bd-icon.g-basics) { --g-color: var(--g-basics); }
.bundle-dialog:has(.bd-icon.g-play) { --g-color: var(--g-play); }
.bundle-dialog:has(.bd-icon.g-tech) { --g-color: var(--g-tech); }
.bd-head { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.bd-icon { display: grid; place-items: center; width: 64px; height: 64px; color: var(--g-color); background: var(--bg); border: 2px solid var(--g-color); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--shadow), 0 0 18px color-mix(in srgb, var(--g-color) 30%, transparent); --px-accent: var(--text); }
.bd-icon .px-icon { width: 40px; height: 40px; animation: hop 1.2s steps(2) infinite; }
.bd-head .eyebrow { font: 400 .7rem var(--font-pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--g-color, var(--muted)); margin: 0 0 .2rem; }
.bd-head h2 { margin-bottom: .3rem; }
.bd-head p { margin: 0; }
.bd-meta { margin: 1rem 0 .5rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; }
.bd-meta a { margin-left: auto; }
.bd-list { list-style: none; margin: 0; padding: .4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .9rem; align-items: start; overflow-y: auto; max-height: 42vh; background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius); }
.bd-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.bd-col-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; margin: .1rem 0 .45rem; padding: 0 .5rem .35rem; border-bottom: 2px solid var(--border); }
.bd-col-head strong { font: 400 .72rem var(--font-pixel); letter-spacing: .06em; text-transform: uppercase; }
.bd-col-extra .bd-col-head strong { color: var(--muted); }
.bd-list label { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: .55rem; padding: .35rem .5rem; border-radius: 4px; cursor: pointer; font-size: .9rem; }
.bd-text { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; min-width: 0; }
.bd-list label:hover { background: var(--surface-2); }
.bd-list input { width: 17px; height: 17px; accent-color: var(--g-color, var(--accent)); flex: none; }
.bd-name { font-weight: 600; }
.bd-list label:has(input:not(:checked)) .bd-name, .bd-list label:has(input:not(:checked)) .tile { opacity: .45; }
.tag { font: 400 .58rem var(--font-pixel); padding: .1rem .35rem; border-radius: 3px; border: 1px solid currentColor; }
.tag-own { color: var(--accent); } .tag-na { color: var(--red); } .tag-other { color: var(--yellow); }
.bd-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; margin-top: 1rem; }
.bd-action { display: grid; gap: .25rem; align-content: start; }
.bd-action .btn, .bd-action .btn-ghost { width: 100%; }
.bd-action .small { line-height: 1.35; text-align: center; }
.help-dialog { width: min(560px, 100% - 24px); }

.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 100; transform: translate(-50%, 20px); opacity: 0;
  background: var(--yellow); color: #141000; font-weight: 700; padding: .6rem 1rem; border-radius: var(--radius); box-shadow: var(--pixel-sm);
  transition: opacity .2s steps(3), transform .2s steps(3); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- content pages */
.page { padding: 1.5rem 0 4rem; }
.about { width: min(1040px, 100% - 32px); }
.section-sm { margin-top: 3rem; }
.notice { background: var(--surface-2); border: 2px solid var(--border-strong); border-left: 6px solid var(--yellow); padding: .8rem 1rem; border-radius: var(--radius); }
.callout { margin-top: 1.5rem; background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--pixel); }
.callout h3, .callout h2 { font-size: 1.2rem; }
.callout p:last-child { margin-bottom: 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.5rem; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; }
.breadcrumbs a { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--pixel-sm); }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-no { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: .8rem; font: 700 1.1rem var(--font-pixel); background: var(--yellow); color: #111; box-shadow: 3px 3px 0 var(--shadow); }
.table-wrap { overflow-x: auto; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font: 400 .9rem var(--font-pixel); background: var(--surface-2); }
.compare tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.compare tr:last-child > * { border-bottom: 0; }
.faq { display: grid; gap: .6rem; }
.faq-item { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 700 1.3rem/1 var(--font-pixel); color: var(--pink); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; }
.faq-a { padding: 0 1.2rem 1.1rem; color: var(--muted); }
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: start; margin-bottom: 1.5rem; }
.app-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem); }
.lead { font-size: clamp(1.02rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 65ch; }
.app-links { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.app-page h2 { margin-top: 2.2rem; }
.cmds { display: grid; gap: .8rem; }
.cmd { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cmd-head { display: flex; align-items: center; gap: .55rem; padding: .5rem .8rem; font-weight: 700; background: var(--surface-2); border-bottom: 2px solid var(--border); }
.cmd pre { margin: 0; padding: .85rem 1rem; overflow-x: auto; font-size: .9rem; }
.cmd-missing .cmd-head { border-bottom: 0; }
.cmd-missing p { margin: 0; padding: .6rem 1rem; }
.ids { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; }
.ids dt { color: var(--muted); font-weight: 600; }
.ids dd { margin: 0; overflow-wrap: anywhere; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
.mini-list a { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 600; }
.mini-list a:hover { border-color: var(--accent); }
.list-hero { margin-bottom: 2rem; }
.list-hero-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 1rem; color: var(--g-color); background: var(--surface); border: 2px solid var(--g-color); border-radius: var(--radius); box-shadow: var(--pixel); --px-accent: var(--text); }
.list-hero-icon .px-icon { width: 44px; height: 44px; }
.list-apps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: .7rem; }
.list-app { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list-app-head { display: flex; gap: .9rem; align-items: center; padding: .8rem 1rem; color: var(--text); text-decoration: none; }
.list-app-head span:last-child { display: grid; }
.list-app-head:hover strong { color: var(--accent); }
.list-app pre { margin: 0; padding: .6rem 1rem; background: var(--surface-2); border-top: 1px solid var(--border); overflow-x: auto; font-size: .82rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.big-code { font: 700 clamp(4rem, 12vw, 8rem)/1 var(--font-pixel); color: var(--pink); text-shadow: 6px 6px 0 var(--shadow); margin: 2rem 0 1rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 2px solid var(--border); background: color-mix(in srgb, var(--surface) 94%, transparent); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 2rem; }
.site-footer h2 { font: 400 .8rem var(--font-pixel); color: var(--muted); letter-spacing: .08em; margin: 0 0 .7rem; }
.site-footer ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .3rem; }
.footer-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.site-footer a { color: var(--text); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-about p { color: var(--muted); max-width: 42ch; margin-top: .8rem; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1.2rem; }
.footer-bottom a { color: var(--accent); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .sidebar > * { min-width: 0; }
  #bundles { grid-row: span 2; }
  .cat-nav { grid-column: 1 / -1; }
  .cat-nav ul { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .4rem; padding-bottom: .3rem; }
  .cat-nav a { white-space: nowrap; border: 1px solid var(--border); border-radius: 999px; }
  .bundle-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .keys-panel { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hud { width: 100%; }
  .hud-cell { flex: 1; padding: .4rem .5rem; }
  .hud dd { font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .wrap, .wrap.narrow, .about { width: calc(100% - 24px); }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  #bundles { grid-row: auto; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .app-hero { grid-template-columns: 1fr; }
  .bd-list { grid-template-columns: 1fr; }
  .bd-col + .bd-col { margin-top: .5rem; }
  .selbar-bundles, .selbar-actions .btn-ghost, .selbar kbd, .selbar-text .small { display: none; }
  .dialog { padding: 1.1rem; }
  .dlg-actions .btn, .dlg-actions .btn-ghost { flex: 1 1 100%; }
  .dlg-actions kbd { display: none; }
  .invader { display: none; }
  .key-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- script options, profiles, trust */
.dlg-options { display: grid; gap: .55rem; margin: 0 0 1rem; padding: .8rem .9rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.dlg-options legend { padding: 0 .4rem; font: 400 .72rem var(--font-pixel); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.engine-info { margin: -.4rem 0 1rem; overflow-wrap: anywhere; }
.engine-info code { font-size: .8em; }
.profile-panel p { margin: 0 0 .6rem; }
.profile-actions { display: flex; gap: .4rem; }
.profile-actions .btn-small { margin-left: 0; cursor: pointer; }
.sources td, .sources th { font-size: .9rem; }
.security section { margin-top: 2.5rem; }
.security section ul, .security section ol { padding-left: 1.3rem; display: grid; gap: .45rem; }
.security .compare { min-width: 760px; }
.security .compare tbody th { white-space: normal; max-width: 16rem; color: var(--text); }

/* Animations off (header toggle) */
:root[data-fx="off"] .bg-stars, :root[data-fx="off"] .bg-floor, :root[data-fx="off"] .invader, :root[data-fx="off"] .bg-scan { display: none; }
:root[data-fx="off"] *, :root[data-fx="off"] *::before, :root[data-fx="off"] *::after { animation: none !important; transition: none !important; }
