:root {
  --bg: #02091a;
  --bg-2: #050f26;
  --panel: #091733;
  --panel-2: #0d1f42;
  --panel-3: #132a55;
  --line: #12244a;
  --line-2: #1b3566;
  --acc: #15ccf1;
  --acc-2: #5fddfa;
  --acc-dim: rgba(21, 204, 241, 0.14);
  --txt: #e8f3fb;
  --txt-2: #9bb2ce;
  --dim: #63799b;
  --ok: #85cf0e;
  --warn: #ffb454;
  --bad: #ff5f6e;
  --k-client: #7cff6b;
  --k-tool: #ffb454;
  --display: "Oswald", "PT Sans Narrow", "Arial Narrow", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --pixel: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --shell: 1600px;
  --header-h: 66px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 18% -8%, #0b2246 0%, transparent 62%),
    radial-gradient(900px 520px at 92% 4%, #0a1c3d 0%, transparent 58%),
    var(--bg);
  color: var(--txt);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.md-spectrum {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(22px) saturate(1.05);
  opacity: 0.38;
  transform: translateZ(0);
}

.md-steve-wrap {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 35;
  pointer-events: none;
  will-change: transform;
}
.md-steve {
  width: 32px;
  height: 64px;
  margin: 0;
  padding: 0;
  transform-origin: 16px 32px;
}
.md-steve svg {
  display: block;
  width: 32px;
  height: 64px;
  overflow: visible;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}
.md-steve .arm-l,
.md-steve .arm-r,
.md-steve .leg-l,
.md-steve .leg-r {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}
.md-steve-wrap.is-run .arm-l,
.md-steve-wrap.is-run .leg-r { animation: md-steve-step 0.28s steps(2) infinite; }
.md-steve-wrap.is-run .arm-r,
.md-steve-wrap.is-run .leg-l { animation: md-steve-step 0.28s steps(2) infinite reverse; }
.md-steve-wrap.is-run .md-steve svg { animation: md-steve-bob 0.28s steps(2) infinite; }

@keyframes md-steve-step {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}
@keyframes md-steve-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1px); }
}

.md-steve-say {
  position: absolute;
  left: 16px;
  bottom: 72px;
  box-sizing: border-box;
  width: max-content;
  max-width: none;
  padding: 9px 14px;
  border: 1px solid var(--acc);
  border-radius: 8px;
  background: rgba(2, 9, 26, 0.96);
  color: #e8f4ff;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.md-steve-say::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--acc);
  border-bottom: 0;
}
.md-steve-wrap.is-say .md-steve-say {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.md-steve-wrap.say-end .md-steve-say {
  transform: translate(-92%, 4px);
}
.md-steve-wrap.is-say.say-end .md-steve-say {
  transform: translate(-92%, 0);
}
.md-steve-wrap.say-end .md-steve-say::after {
  left: auto;
  right: 16px;
  margin-left: 0;
}

main {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; text-transform: uppercase; }
p { margin: 0; }
code { font-family: var(--mono); color: var(--acc-2); font-size: 0.92em; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(2, 9, 26, 0.94);
  border-bottom: 1px solid var(--line);
}

.hdr-in {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 9px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--acc), #0b7fa8);
  color: #02121a;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-sub { color: var(--dim); font-size: 15px; }

.hdr-nav { display: flex; gap: 24px; font-size: 16px; }
.hdr-nav a { color: var(--txt-2); }
.hdr-nav a:hover { color: var(--txt); }

.hdr-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  max-width: 620px;
  margin-left: auto;
  padding: 0 12px;
  height: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hdr-search:focus-within { border-color: var(--line-2); }
.hdr-search .ico { color: var(--dim); }

.hdr-search input {
  flex: 1;
  border: 0;
  background: none;
  color: var(--txt);
  font-family: var(--body);
  font-size: 16px;
  outline: none;
}

.hdr-search input::placeholder { color: var(--dim); }

.hdr-lang { display: flex; gap: 4px; font-size: 15px; font-family: var(--mono); }

.hdr-lang a,
.hdr-lang button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--dim);
  font: inherit;
  cursor: pointer;
}

.hdr-lang a.on,
.hdr-lang button.on { background: var(--acc-dim); color: var(--acc); opacity: 1; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 22px 0 16px;
}

h1 {
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: 0.01em;
}

h1 span { color: var(--acc); }
h1 i { color: var(--acc); font-style: normal; }

.hero-sub {
  margin-top: 10px;
  max-width: 62ch;
  color: var(--txt-2);
  font-size: 18px;
  line-height: 1.55;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--txt);
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.btn:hover { border-color: var(--acc); background: var(--panel-3); }

.btn-acc {
  background: var(--acc);
  border-color: var(--acc);
  color: #02121a;
  font-weight: 600;
}

.btn-acc:hover { background: var(--acc-2); border-color: var(--acc-2); }

.hero-stats { display: flex; gap: 12px; }

.stat {
  min-width: 108px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  color: var(--txt);
}

.stat span { color: var(--dim); font-size: 15px; }
.stat-warn { border-color: var(--warn); }
.stat-warn b { color: var(--warn); }
.stat-timer { border-color: var(--acc); }
.stat-timer b { color: var(--acc); }

.badge-hot, .badge-new {
  position: absolute;
  z-index: 3;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-hot {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.6);
}

.badge-new {
  background: linear-gradient(135deg, #15ccf1, #5fddfa);
  color: #02121a;
  box-shadow: 0 0 12px rgba(21, 204, 241, 0.6);
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.08); }
}

.top-voted-banner {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--acc);
  background: linear-gradient(135deg, rgba(21, 204, 241, 0.08), rgba(21, 204, 241, 0.02));
}

.top-voted-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 8px;
}

.top-voted-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.top-voted-item {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-voted-rank {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--acc);
}

.top-voted-name {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
}

.top-voted-votes {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}

.vote-btn {
  appearance: none;
  -webkit-appearance: none;
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 0;
  height: 26px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: #c6c6c6;
  color: #3f3f3f;
  font-size: 8px;
  font-family: var(--pixel);
  font-weight: 400;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 1px 1px 0 #fff;
  box-shadow:
    inset 2px 2px 0 #fff,
    inset -2px -2px 0 #373737,
    0 0 0 2px #000;
}

.vote-btn:hover {
  background: #6bc85a;
  color: #fff;
  text-shadow: 1px 1px 0 #2d5a24;
  box-shadow:
    inset 2px 2px 0 #b6f09f,
    inset -2px -2px 0 #2d5a24,
    0 0 0 2px #000;
}

.vote-btn:active {
  transform: none;
  background: #5aad4b;
}

.vote-btn.voted {
  background: #5aad4b;
  color: #fff;
  text-shadow: 1px 1px 0 #2d5a24;
  box-shadow:
    inset 2px 2px 0 #2d5a24,
    inset -2px -2px 0 #b6f09f,
    0 0 0 2px #000;
}

.chip-hot {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.14), rgba(247, 147, 30, 0.08));
  border-color: rgba(255, 107, 53, 0.35);
  color: #ff6b35;
  font-weight: 600;
}

.chip-hot:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.22), rgba(247, 147, 30, 0.14));
  border-color: #ff6b35;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 14px;
}

.step {
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-n { font-family: var(--mono); font-size: 13px; color: var(--acc); }
.step h3 { margin: 6px 0 6px; font-size: 19px; letter-spacing: 0.04em; }
.step p { color: var(--txt-2); font-size: 16px; }

/* ---------- chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }

.filter-sec { padding-bottom: 14px; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-k {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-right: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 15px;
  color: var(--txt-2);
}

.chip:hover { border-color: var(--line-2); color: var(--txt); }
.chip b { color: var(--dim); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.d-client { background: var(--k-client); }
.d-tool { background: var(--k-tool); }
.d-upd { background: var(--acc); }

/* ---------- sections ---------- */

.sec { padding-bottom: 28px; }
#clients.sec { padding-top: 4px; scroll-margin-top: 72px; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}
#clients .sec-head {
  border-bottom: 2px solid color-mix(in srgb, var(--acc) 82%, #7ee0ff);
  padding-bottom: 10px;
}

.sec-head h2 {
  position: relative;
  padding-left: 12px;
  font-size: 24px;
  letter-spacing: 0.05em;
}

.sec-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--acc);
  border-radius: 2px;
}

.more { margin-left: auto; color: var(--acc); font-size: 16px; }
.more:hover { color: var(--acc-2); }

/* ---------- card rows ---------- */

.row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 176px;
  align-items: start;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.row::-webkit-scrollbar { height: 8px; }
.row::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  align-items: start;
  gap: 12px;
}

#clients .grid.is-masonry {
  display: block;
  position: relative;
}

#clients .grid.is-masonry > .card {
  position: absolute;
  height: max-content;
  min-height: 0;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4px;
  background: #2a2a2a;
  border: 0;
  border-radius: 0;
  box-shadow:
    inset 2px 2px 0 #5a5a5a,
    inset -2px -2px 0 #111,
    0 0 0 2px #000;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow:
      inset 2px 2px 0 #6a6a6a,
      inset -2px -2px 0 #111,
      0 0 0 2px #fff;
  }
  .card:hover .poster {
    animation: poster-sway 1.2s ease-in-out infinite;
  }
  .card:hover .poster-item {
    animation: item-rotate 0.6s ease-in-out;
  }
}

@keyframes poster-sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-1.5deg); }
  75% { transform: rotate(1.5deg); }
}

@keyframes item-rotate {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

.card:hover {
  border-color: transparent;
}

.card-link { 
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  color: inherit; 
}
.hide { display: none !important; }
.card-flash { outline: 2px solid var(--acc); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; }

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  color: var(--c, var(--acc));
  background:
    radial-gradient(120% 70% at 50% 12%, rgba(255, 255, 255, 0.2) 0%, transparent 58%),
    linear-gradient(170deg, var(--c, #15ccf1) 0%, #02091a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 6px 8px;
  box-shadow: inset 1px 1px 0 #00000088;
}
.poster-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: 0;
  pointer-events: none;
}
.poster.has-photo {
  padding: 26px 6px 10px;
  background: #02091a;
}
.poster.has-photo .cubes,
.poster.has-photo .poster-item,
.poster.has-photo .pline,
.poster.has-photo .pfoot {
  display: none;
}
.poster.has-photo .kind,
.poster.has-photo .tier {
  z-index: 3;
}
.poster.has-photo::before {
  z-index: 2;
}
.poster.has-photo::after {
  z-index: 1;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(2, 9, 26, 0.78));
}
.poster.has-photo .pname {
  position: relative;
  z-index: 4;
  margin-top: auto;
  padding: 3px 8px;
  background: rgba(2, 9, 26, 0.42);
  text-shadow: 0 2px 8px #000, 0 0 18px #000;
}

/* Верхняя и нижняя акцентные полосы, как на баннере. */
.poster::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: color-mix(in srgb, var(--c, #15ccf1) 55%, #ffffff);
}

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: color-mix(in srgb, var(--c, #15ccf1) 55%, #ffffff);
}

.tier {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(2, 9, 26, 0.78);
  color: color-mix(in srgb, var(--c, #15ccf1) 45%, #ffffff);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.tier.free { color: var(--k-client); }

.pname {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 0 rgba(2, 9, 26, 0.55), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.pname.sm { font-size: 16px; }
.pname.xs { font-size: 15px; }

.pline {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--c, #15ccf1) 40%, #ffffff);
}

.cubes {
  width: 78%;
  margin: auto 0;
  opacity: 0.28;
  pointer-events: none;
}
.poster-item {
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px auto auto;
  z-index: 1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  overflow: visible;
}
.client-poster .poster-item {
  width: 80px;
  height: 80px;
}
[data-kind="legacy"] .cubes { width: 50%; }
[data-kind="hvh"] .cubes { width: 90%; }
[data-kind="util"] .cubes { width: 64%; }
[data-kind="anarchy"] .cubes { width: 84%; }

.pfoot {
  font-size: 8px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.kind {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(2, 9, 26, 0.78);
  color: var(--k-client);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.kind-tool { color: var(--k-tool); }

.card h3 {
  margin: 10px 2px 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: var(--body);
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
}

.card h3 .client-pre {
  display: block;
  width: fit-content;
  margin: 0 0 4px;
}

.client-pre {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 180, 84, 0.14);
  border: 1px solid rgba(255, 180, 84, 0.35);
  color: var(--warn);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  vertical-align: middle;
}

.ver {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--acc-dim);
  color: var(--acc);
}

.dl { margin-left: auto; color: var(--dim); }

.p-1 { background: linear-gradient(160deg, #0f9b6c, #063a2a); }
.p-2 { background: linear-gradient(160deg, #1f6fd0, #08203f); }
.p-3 { background: linear-gradient(160deg, #d13b3b, #3a0d0d); }
.p-4 { background: linear-gradient(160deg, #5aa832, #16330c); }
.p-5 { background: linear-gradient(160deg, #8b4fd6, #26113f); }
.p-6 { background: linear-gradient(160deg, #c98b2a, #3a2708); }
.p-7 { background: linear-gradient(160deg, #2b3a56, #0a1223); }
.p-8 { background: linear-gradient(160deg, #b0762f, #2f1d07); }
.p-9 { background: linear-gradient(160deg, #7b5cd6, #1c1240); }
.p-10 { background: linear-gradient(160deg, #1f8fb0, #06222c); }
.p-11 { background: linear-gradient(160deg, #c2456f, #3c0f21); }
.p-12 { background: linear-gradient(160deg, #3f7fb5, #0c2438); }
.p-13 { background: linear-gradient(160deg, #d1642a, #3a1a06); }
.p-14 { background: linear-gradient(160deg, #2fa39b, #08302d); }
.p-15 { background: linear-gradient(160deg, #9b3fd1, #2a0b3d); }
.p-16 { background: linear-gradient(160deg, #4a5bd6, #101744); }
.p-17 { background: linear-gradient(160deg, #b8352f, #350c0a); }
.p-18 { background: linear-gradient(160deg, #d76ea8, #3d1229); }
.p-19 { background: linear-gradient(160deg, #6f7ad3, #171c42); }
.p-20 { background: linear-gradient(160deg, #3fae5e, #0d3319); }
.p-mc { background: linear-gradient(160deg, #4f9c3a, #123c17); }
.p-tool { background: linear-gradient(160deg, #15ccf1, #06394a); }
.p-tool2 { background: linear-gradient(160deg, #ffb454, #4a2c05); }
.p-tool3 { background: linear-gradient(160deg, #85cf0e, #1f3305); }
.p-tool4 { background: linear-gradient(160deg, #5fddfa, #0a3b4a); }

.focus {
  margin: 0 2px 8px;
  color: var(--dim);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  margin: 0 2px 10px;
  color: var(--txt);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  min-height: calc(1.5em * 4);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.client-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}
.client-poster { width: 100%; }
.client-kicker {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.client-copy h1 { font-size: clamp(32px, 4vw, 48px); }
.client-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}
.client-line { color: var(--txt-2); font-size: 16px; margin-bottom: 16px; }
.client-actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-pills, .similar-row { display: flex; flex-wrap: wrap; gap: 8px; }

.client-seo {
  margin: 12px 0 36px;
  padding: 32px 48px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.client-seo h2 {
  margin: 28px 0 12px;
  font-size: 22px;
  color: var(--acc);
}
.client-seo h2:first-child { margin-top: 0; }
.client-seo h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  color: var(--txt);
}
.client-seo p {
  color: var(--txt-2);
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.term-grid .term-card p {
  font-size: 16px;
  line-height: 1.6;
}
.client-steps {
  color: var(--txt-2);
  padding-left: 1.35em;
  margin: 4px 0 18px;
}
.client-steps li { margin: 8px 0; padding-left: 6px; }

@media (max-width: 760px) {
  .client-layout { grid-template-columns: 1fr; }
  .client-poster { max-width: 220px; }
  .client-facts { grid-template-columns: 1fr 1fr; }
  .client-seo { padding: 22px 18px 18px; margin: 8px 0 28px; }
}

.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 2px 6px;
  padding: 5px 6px;
  font-family: var(--mono);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.25);
}
.meta[hidden],
.card-tags[hidden] {
  display: none !important;
}

.card-link .meta,
.card-link .card-tags,
a.card .meta,
a.card .card-tags {
  display: none !important;
}

.card-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 2px 6px;
  position: relative;
  z-index: 2;
}
.card-toggle {
  appearance: none;
  border: 1px solid #000;
  background: #1a3a4a;
  color: #d7f6ff;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 1px 1px 0 #3a6a7a, inset -1px -1px 0 #061018;
}
.card-toggle:hover,
.card-toggle.on {
  border-color: var(--acc);
  color: var(--acc);
}

#clients .grid.is-masonry > .card:hover,
#clients .grid.is-masonry > .card:has(.card-toggle:hover),
#clients .grid.is-masonry > .card:has(.card-toggle.on),
#clients .grid.is-masonry > .card:has([data-pop]:hover) {
  z-index: 24;
}

.card-toggles [data-pop] {
  display: none;
  position: absolute;
  left: -4px;
  right: -4px;
  top: calc(100% + 4px);
  z-index: 8;
  margin: 0;
  padding: 8px 8px 10px;
  background: #1e1e1e;
  border: 0;
  box-shadow:
    inset 2px 2px 0 #5a5a5a,
    inset -2px -2px 0 #111,
    0 0 0 2px #000;
}
.card-toggles [data-pop]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.card-toggles:has([data-card-toggle="meta"]:hover) [data-pop="meta"],
.card-toggles:has([data-card-toggle="meta"].on) [data-pop="meta"],
.card-toggles:has([data-pop="meta"]:hover) [data-pop="meta"] {
  display: flex;
}
.card-toggles:has([data-card-toggle="tags"]:hover) [data-pop="tags"],
.card-toggles:has([data-card-toggle="tags"].on) [data-pop="tags"],
.card-toggles:has([data-pop="tags"]:hover) [data-pop="tags"] {
  display: flex;
}

.versions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.versions-t {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt-2);
}

.vlist { display: flex; flex-wrap: wrap; gap: 6px; }

.vlist span {
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--acc-dim);
  color: var(--acc);
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- modules ---------- */

.mods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mod {
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mod-c {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mod-fight { color: var(--bad); }
.mod-move { color: var(--acc); }
.mod-vis { color: var(--k-client); }
.mod-util { color: var(--warn); }

.mod h3 { margin: 6px 0 6px; font-size: 18px; letter-spacing: 0.04em; }
.mod p:last-child { color: var(--txt-2); font-size: 16px; }

/* ---------- table ---------- */

.tbl-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }

.tbl th {
  padding: 11px 14px;
  text-align: left;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt-2);
}

.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--panel-2); }
.tbl td:last-child { color: var(--txt-2); }

.ac {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--acc-dim);
  color: var(--acc);
  font-family: var(--mono);
  font-size: 13px;
}

.ac-off { background: rgba(155, 178, 206, 0.12); color: var(--dim); }

.note { margin-top: 10px; color: var(--dim); font-size: 14px; }

/* ---------- top list ---------- */

.top {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.top li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.top li:last-child { border-bottom: 0; }
.top li:hover { background: var(--panel-2); }
.top .n { font-family: var(--mono); font-size: 14px; color: var(--acc); }
.top a { color: var(--txt-2); }
.top li:hover a { color: var(--txt); }
.top .dl { font-family: var(--mono); font-size: 14px; }

/* ---------- news ---------- */

.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.news-it {
  display: block;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.news-it:hover { border-color: var(--acc); }
.news-top { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.news-it h3 { margin: 8px 0; font-size: 18px; letter-spacing: 0.03em; }
.news-x { color: var(--txt-2); font-size: 16px; }

.tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--acc-dim);
  color: var(--acc);
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- cta ---------- */

.cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--panel-2), var(--bg-2));
}

.cta h2 { font-size: 24px; letter-spacing: 0.04em; }
.cta p { color: var(--txt-2); margin-top: 6px; }
.cta .btn { margin-left: auto; }

/* ---------- tags ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tags a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--txt-2);
  font-size: 15px;
}

.card-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 3px;
  margin: 4px 2px 10px;
  padding: 0;
}
.client-copy .tags {
  margin-top: 14px;
}
.client-seo .tags {
  margin: 8px 0 18px;
}
.card-tags span,
.card-tags a {
  flex: 0 0 auto;
  width: auto;
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  text-decoration: none;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.tags b { color: var(--dim); font-family: var(--mono); font-size: 13px; font-weight: 500; }

/* ---------- faq ---------- */

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--acc); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 16px 14px; color: var(--txt-2); font-size: 16px; }

/* ---------- footer ---------- */

.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 24px 0 34px;
}

.foot-in {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.foot-brand { display: flex; align-items: center; gap: 10px; max-width: 520px; }
.foot-brand p { color: var(--dim); font-size: 14px; }
.foot nav { display: flex; gap: 16px; margin-left: auto; font-size: 16px; }
.foot nav a { color: var(--txt-2); }
.foot nav a:hover { color: var(--acc); }
.foot-c { color: var(--dim); font-family: var(--mono); font-size: 14px; }

/* ---------- help toast ---------- */

.help-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: min(340px, calc(100vw - 36px));
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--acc);
  background: rgba(5, 15, 38, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  color: var(--txt);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.help-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.milestone-popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 9, 26, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.milestone-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.milestone-card {
  width: min(380px, 100%);
  padding: 28px 22px;
  border-radius: 12px;
  border: 2px solid var(--acc);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(21, 204, 241, 0.3);
  position: relative;
  animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .news { grid-template-columns: repeat(2, 1fr); }
  .mods { grid-template-columns: repeat(2, 1fr); }
  .menu-btn { display: flex; }
  .hdr-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(2, 9, 26, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 14px;
  }
  body.nav-open .hdr-nav { display: flex; padding-left: 0; }
  body.nav-open .hdr-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 16px 0 12px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step p { display: none; }
  .step { padding: 8px; }
  .step h3 { font-size: 16px; margin: 4px 0 0; }
  .news { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero-stats { flex-wrap: wrap; }
  .hdr-lang { display: flex; }
  .brand-sub { display: none; }
  .cta .btn { margin-left: 0; }
  .hdr-search { min-width: 0; max-width: none; }
}

/* ---------- toast notifications ---------- */

.toast-container {
  position: fixed;
  top: calc(var(--header-h) + 18px);
  right: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: min(340px, calc(100vw - 36px));
}

.toast {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: rgba(5, 15, 38, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color: var(--txt);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.toast-success { border-color: var(--ok); }
.toast-success .toast-icon { color: var(--ok); }
.toast-error { border-color: var(--bad); }
.toast-error .toast-icon { color: var(--bad); }
.toast-info { border-color: var(--acc); }
.toast-info .toast-icon { color: var(--acc); }
.toast-warning { border-color: var(--warn); }
.toast-warning .toast-icon { color: var(--warn); }

/* ---------- view counter ---------- */

.view-count {
  position: absolute;
  z-index: 2;
  bottom: 38px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(2, 9, 26, 0.82);
  color: var(--txt-2);
  font-family: var(--mono);
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.view-count::before {
  content: "👁";
  font-size: 10px;
}

@media (max-width: 760px) {
  .toast-container {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* ---------- header extras / cards / pages ---------- */

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--txt);
}

.hdr-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--txt-2);
  cursor: pointer;
  font-size: 16px;
}
.icon-btn:hover { border-color: var(--acc); color: var(--acc); }

.hdr-lang .off {
  padding: 4px 8px;
  color: var(--dim);
  opacity: 0.45;
}

button.chip {
  cursor: pointer;
  font: inherit;
  color: var(--txt-2);
}
.chip.on { border-color: var(--acc); color: var(--acc); background: var(--acc-dim); }

.card-actions,
.mc-hotbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin: 8px 0 0;
  padding: 3px;
  background: #c6c6c6;
  border: 0;
  box-shadow:
    inset 2px 2px 0 #ffffffe6,
    inset -2px -2px 0 #555,
    0 0 0 2px #000;
}

.fav-btn, .like-btn, .share-btn, .note-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  min-height: 0;
  border: 0;
  background: #8b8b8b;
  cursor: pointer;
  color: #fff;
  font-family: var(--pixel);
  border-radius: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  line-height: 0;
  isolation: isolate;
  display: grid;
  place-items: center;
  box-shadow:
    inset 2px 2px 0 #2c2c2c,
    inset -2px -2px 0 #fff;
}

.fav-btn:hover, .like-btn:hover, .share-btn:hover, .note-btn:hover,
.fav-btn:focus-visible, .like-btn:focus-visible, .share-btn:focus-visible, .note-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
  z-index: 1;
  background: #9d9d9d;
}

.fav-btn:active, .like-btn:active, .share-btn:active, .note-btn:active {
  background: #737373;
}

.btn-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
  pointer-events: none;
}

.fav-btn svg, .like-btn svg, .share-btn svg, .note-btn svg, .mc-heart, .mc-hud, .btn-ico svg {
  display: block;
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  margin: 0;
  overflow: visible;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.fav-btn { color: #ffaa00; }
.fav-btn.on {
  background: #7a6320;
  box-shadow:
    inset 2px 2px 0 #2c2c2c,
    inset -2px -2px 0 #ffe566,
    0 0 0 2px #fff inset;
}
.like-btn { color: #ff5555; }
.like-btn.on {
  background: #7a3030;
  box-shadow:
    inset 2px 2px 0 #2c2c2c,
    inset -2px -2px 0 #ff9a9a,
    0 0 0 2px #fff inset;
}
.share-btn, .note-btn { color: #3f3f3f; }
.note-btn.on { color: #55ffff; }

.like-btn .mc-count {
  position: absolute;
  right: 3px;
  bottom: 2px;
  z-index: 2;
  color: #fff;
  font-family: var(--pixel);
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--txt);
  cursor: pointer;
  font-size: 18px;
}
.to-top:hover { border-color: var(--acc); color: var(--acc); }

.catalog-empty {
  text-align: center;
  padding: 36px 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--txt-2);
}
.catalog-empty .btn { margin-top: 12px; }

.help-toast-x {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.help-toast-x:hover { color: var(--txt); background: var(--panel-2); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 9, 26, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal[hidden] { display: none !important; }
.modal-card {
  width: min(420px, 100%);
  padding: 18px 16px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  position: relative;
}
.modal-card h2 { font-size: 20px; margin-bottom: 6px; padding-right: 28px; }
.modal-sub { color: var(--txt-2); font-size: 16px; margin-bottom: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 10px; color: var(--txt-2); font-size: 14px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--txt);
  padding: 9px 10px;
  font: inherit;
  resize: vertical;
}
.help-toast-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-sm { padding: 8px 12px; font-size: 14px; height: auto; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.in { opacity: 1; transform: none; }

.page-simple { 
  padding: 32px 22px 64px; 
  max-width: var(--shell);
  margin: 0 auto;
}
.prose h1 { margin: 8px 0 14px; }
.prose h2 { margin: 22px 0 10px; font-size: 22px; color: var(--acc); }
.prose p, .prose li { color: var(--txt-2); font-size: 18px; }
.prose ul { padding-left: 18px; }
.term-grid, .guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.term-card, .guide-card, .ram-card, .change {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.term-k, .guide-k, .change-d {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.term-card h3 a { color: inherit; }
.term-card h3 a:hover { color: var(--acc); }
.page-simple h3 { margin: 18px 0 8px; font-size: 18px; }
.term-card h2 a { color: var(--acc); }
.term-card h2 a:hover { color: var(--txt); }
.term-card p, .guide-card p, .change li { color: var(--txt-2); font-size: 16px; }
.ram-out {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--acc);
  background: var(--acc-dim);
}
.ram-out b { display: block; font-size: 32px; font-family: var(--display); color: var(--acc); }
.crumbs { display: flex; gap: 8px; padding: 18px 0 8px; color: var(--dim); font-size: 15px; }
.crumbs a:hover { color: var(--acc); }
.change ul { margin: 0; padding-left: 18px; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .md-spectrum { display: none !important; }
  .md-steve-wrap { display: none !important; }
}

@media (hover: none), (pointer: coarse) {
  .md-steve-wrap { display: none !important; }
}

#item-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 85;
  width: max-content;
  max-width: 240px;
  padding: 6px 8px;
  background: #100010;
  color: #aaa;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.45;
  pointer-events: none;
  box-shadow:
    2px 0 0 #24005a,
    -2px 0 0 #24005a,
    0 2px 0 #24005a,
    0 -2px 0 #24005a,
    0 0 0 4px #100010;
}
#item-tip[hidden] { display: none !important; }
#item-tip b,
#item-tip span { display: block; }
.item-tip-name { color: #fcfc00; font-weight: 700; }
.item-tip-free { color: #55ff55; font-weight: 700; }
.item-tip-lore { color: #aaa; margin-top: 2px; }
.item-tip-meta { color: #55ffff; font-size: 13px; margin-top: 4px; }
.item-tip-mods { color: #fff; font-size: 13px; margin-top: 4px; }

.mc-dock {
  display: none;
}
@media (max-width: 760px) {
  body {
    padding-bottom: 64px;
  }
  .mc-dock {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 50;
    padding: 4px;
    background: #c6c6c6;
    box-shadow:
      inset 2px 2px 0 #fff,
      inset -2px -2px 0 #555,
      0 0 0 2px #000;
  }
  .mc-dock-slot {
    appearance: none;
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 48px;
    padding: 4px 0 3px;
    border: 0;
    background: #8b8b8b;
    color: #1a1a1a;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
      inset 2px 2px 0 #2c2c2c,
      inset -2px -2px 0 #fff;
  }
  .mc-dock-slot span {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
  }
  .mc-dock-slot svg {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
  }
  .mc-dock-slot.on {
    background: #9d9d9d;
    box-shadow:
      inset 2px 2px 0 #2c2c2c,
      inset -2px -2px 0 #fff,
      0 0 0 2px #fff inset;
  }
  .to-top,
  .help-toast {
    bottom: 72px;
  }
}

.dl-wait {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 9, 26, 0.82);
}
.dl-wait[hidden] { display: none !important; }
.dl-wait-card {
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--acc);
  background: var(--panel);
  text-align: center;
}
.dl-wait-card h2 { font-size: 22px; letter-spacing: 0.04em; margin-bottom: 8px; }
.dl-wait-card p { color: var(--txt-2); }
.dl-wait-n {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-size: 72px;
  line-height: 1;
  color: var(--acc);
}
.dl-wait-bar {
  height: 6px;
  margin: 16px 0 18px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.dl-wait-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--acc);
  transition: width 0.2s linear;
}
.updated { margin: 8px 0 0; color: var(--dim); font-size: 14px; }
.rate { margin: 6px 0 0; color: var(--txt-2); }
.rate b { color: var(--warn); }

.pick-lead { margin: -4px 0 16px; color: var(--txt-2); font-size: 15px; }
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.pick {
  --pk: var(--acc);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--pk);
  border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pk) 9%, var(--panel)), var(--panel) 70%);
  color: var(--txt);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pick:hover {
  border-color: color-mix(in srgb, var(--pk) 60%, var(--line-2));
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--pk) 70%, transparent);
}
.pick-ver { --pk: var(--k-client); }
.pick-srv { --pk: var(--warn); }
.pick-all { --pk: var(--txt-2); }
.pick-k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pk);
}
.pick-t { font-size: 17px; font-weight: 600; line-height: 1.25; }
.pick-s { font-size: 14px; color: var(--dim); }
.pick-a {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--pk);
  transition: transform 0.15s;
}
.pick:hover .pick-a { transform: translate(4px, -50%); }

