:root {
  --bg: #0a0a0b;
  --panel: #111113;
  --line: #232327;
  --line-2: #2f2f34;
  --ink: #ededef;
  --ink-2: #a1a1a8;
  --ink-3: #87878f;
  --amber: #f5b301;
  --amber-ink: #0a0a0b;
  --ok: #3ccf7a;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font: 700 22px/1 var(--display); letter-spacing: .02em; text-transform: uppercase;
}
.brand .shield {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--amber); color: var(--amber-ink);
  clip-path: polygon(50% 0, 100% 18%, 92% 72%, 50% 100%, 8% 72%, 0 18%);
  font: 800 13px/1 var(--display);
}
.brand small { color: var(--amber); font-weight: 700; margin-left: -10px; }
.brand .badge { width: 28px; height: 28px; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--ink-2); padding: 6px 12px; border-radius: 6px;
  font-size: 14px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--ink); }
.live-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--mono); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px;
  white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--ok); opacity: 0; animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

@media (max-width: 760px) {
  .bar .wrap { gap: 12px; }
  .nav { gap: 0; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav a { padding: 6px 7px; font-size: 13px; white-space: nowrap; }
  .brand small, .bar .live-chip { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 9vw, 112px) 0 40px; position: relative; }
.eyebrow {
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); display: flex; align-items: center; gap: 10px;
}
.hero h1 {
  font: 700 clamp(64px, 15vw, 196px)/.86 var(--display);
  letter-spacing: -.01em; margin: 18px 0 0; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.hero h1 .count { color: var(--ink); display: inline-block; min-width: 4ch; }
.hero .lede {
  font: 600 clamp(24px, 3.6vw, 40px)/1.1 var(--display);
  color: var(--ink-2); margin: 10px 0 0; max-width: 20ch;
}
.hero .lede b { color: var(--amber); font-weight: 600; }
.delta { font: 500 13px/1 var(--mono); color: var(--ink-3); margin-top: 22px; }
.delta .up { color: var(--ok); }
.delta .down { color: #ff6b5b; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 600 14px/1 var(--sans); padding: 12px 18px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink);
  transition: transform .12s ease, border-color .15s, background .15s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn.primary:hover { background: #ffc21f; }
.btn.small { padding: 8px 12px; font-size: 13px; }

/* hazard tape divider, the one decorative motif */
.tape {
  height: 10px; border-block: 1px solid var(--line);
  background: repeating-linear-gradient(-45deg, var(--amber) 0 10px, var(--bg) 10px 20px);
  opacity: .9;
}

/* ---------- stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  margin: 8px 0 0; background: var(--line); gap: 1px;
}
.stat { background: var(--bg); padding: 20px 20px 18px; min-width: 0; }
.stat .k { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font: 700 clamp(28px, 3.4vw, 40px)/1 var(--display); margin-top: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { font: 400 12px/1.3 var(--mono); color: var(--ink-3); margin-top: 8px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:first-child { grid-column: span 2; } }

/* ---------- sections ---------- */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { section.block { padding: 96px 0; } }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.head h2 {
  font: 700 clamp(40px, 6vw, 72px)/.9 var(--display); text-transform: uppercase; margin: 10px 0 0;
}
.head p { color: var(--ink-2); max-width: 46ch; margin: 0; }

/* ---------- chart ---------- */
.chart-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--panel); }
.chart-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; }
.seg button {
  font: 500 12px/1 var(--mono); color: var(--ink-2); background: none; border: 0;
  padding: 7px 12px; border-radius: 6px; cursor: pointer; transition: background .15s, color .15s;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chart { position: relative; height: 260px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .tip {
  position: absolute; pointer-events: none; transform: translate(-50%, -120%);
  background: var(--ink); color: var(--bg); font: 500 12px/1.3 var(--mono);
  padding: 6px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity .1s;
}
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--ink-3); font: 13px var(--mono); text-align: center; padding: 0 20px; }

/* ---------- departments ---------- */
.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dept { background: var(--bg); padding: 28px 24px 26px; position: relative; min-height: 220px; transition: background .2s; }
.dept:hover { background: var(--panel); }
.dept h3 { font: 700 34px/1 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.dept p { color: var(--ink-2); margin: 0; font-size: 14px; }
.dept .stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--ink-3)); transform: scaleY(0); transform-origin: top; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.dept:hover .stripe { transform: scaleY(1); }
@media (max-width: 900px) { .depts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .depts { grid-template-columns: 1fr; } .dept { min-height: 0; } }

/* ---------- tiles (links to tools) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile {
  display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; background: var(--panel); transition: border-color .15s, transform .2s;
}
.tile:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.tile .k { font: 500 11px/1 var(--mono); color: var(--amber); letter-spacing: .12em; text-transform: uppercase; }
.tile h3 { font: 700 28px/1 var(--display); text-transform: uppercase; margin: 12px 0 8px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- server browser ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
input[type="text"], input[type="search"], textarea, select {
  font: 14px var(--sans); color: var(--ink); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; min-width: 0;
}
input[type="checkbox"] { accent-color: var(--amber); width: 16px; height: 16px; }
textarea { width: 100%; resize: vertical; min-height: 92px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink-3); }

.srv-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
@media (max-width: 760px) { .srv-summary { grid-template-columns: repeat(2, 1fr); } }

.fillmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(14px, 1fr)); gap: 3px; margin-bottom: 28px; }
.fillmap i { aspect-ratio: 1; border-radius: 2px; background: var(--line-2); display: block; }
.fillmap-legend { display: flex; gap: 16px; font: 12px var(--mono); color: var(--ink-3); margin: -16px 0 28px; flex-wrap: wrap; }
.fillmap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fillmap-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

table.srv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.srv th {
  text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 12px 12px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap;
}
table.srv th[aria-sort]::after { content: " ↓"; color: var(--amber); }
table.srv th[aria-sort="ascending"]::after { content: " ↑"; }
table.srv td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.srv tr:hover td { background: var(--panel); }
.bar-fill { width: 120px; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.bar-fill i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.bar-fill.full i { background: var(--amber); }
.tag { font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-2); }
.tag.good { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.tag.full { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.srv-id { font: 12px var(--mono); color: var(--ink-3); }
@media (max-width: 700px) {
  table.srv .hide-sm { display: none; }
  .bar-fill { width: 60px; }
}

/* ---------- toolkit ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--panel); min-width: 0; }
.card h2, .card h3 { font: 700 26px/1 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.card > p { color: var(--ink-2); margin: 0 0 16px; font-size: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 auto; }
.out {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  font: 14px var(--mono); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 10px 10px 12px;
}
.out code { flex: 1; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.counter { font: 12px var(--mono); color: var(--ink-3); margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; }
.counter .warn { color: var(--amber); }

.ref { width: 100%; border-collapse: collapse; font-size: 14px; }
.ref td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref td:first-child { font: 500 13px var(--mono); color: var(--amber); white-space: nowrap; padding-right: 16px; width: 1%; }
.ref td:nth-child(2) { color: var(--ink-2); }
.ref tr.hidden { display: none; }
.ref .args { color: var(--ink-3); }

.phon { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.phon div { background: var(--bg); padding: 10px 12px; }
.phon b { font: 700 22px/1 var(--display); color: var(--amber); display: block; }
.phon span { font: 13px var(--mono); color: var(--ink-2); }

pre.code {
  font: 13px/1.6 var(--mono); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; margin: 10px 0 0; color: var(--ink-2);
}
pre.code .c { color: var(--ink-3); }
pre.code .h { color: var(--amber); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); font: 500 13px var(--mono); padding: 10px 14px; border-radius: 8px;
  transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-3); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer p { margin: 0; max-width: 62ch; }
footer a { color: var(--ink-2); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

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

.status { font: 500 13px/1 var(--mono); color: var(--ink-3); display: flex; align-items: center; gap: 10px; margin-top: 22px; }

/* ---------- account chip in the bar ---------- */
.who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.who img { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); }
.who:hover { color: var(--ink); }
@media (max-width: 760px) { .who span { display: none; } }

/* ---------- showcase list ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .board { grid-template-columns: 1fr; } }
.gcard { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); transition: border-color .15s, transform .2s; position: relative; }
.gcard:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.gcard .img { aspect-ratio: 16 / 10; background: var(--bg) center / cover no-repeat; border-bottom: 1px solid var(--line); }
.gcard .img.empty { display: grid; place-items: center; color: var(--ink-3); font: 12px var(--mono); }
.gcard .body { padding: 16px 18px 18px; }
.gcard h3 { font: 700 26px/1 var(--display); text-transform: uppercase; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard p { margin: 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.gcard .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; font: 12px var(--mono); color: var(--ink-3); }
.gcard .rank {
  position: absolute; top: 12px; left: 12px; font: 800 20px/1 var(--display); padding: 6px 10px 5px; border-radius: 6px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line-2);
}
.gcard .rank.top { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.stars { color: var(--amber); letter-spacing: 1px; }
.stars .off { color: var(--line-2); }
.empty-state { border: 1px dashed var(--line-2); border-radius: 12px; padding: 48px 24px; text-align: center; color: var(--ink-2); }
.empty-state h3 { font: 700 30px/1 var(--display); text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }

/* ---------- gallery page ---------- */
.ghero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.ghero .bg { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .28; filter: saturate(.8); }
.ghero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg)); }
.ghero .wrap { position: relative; padding-top: 56px; padding-bottom: 32px; }
@media (min-width: 900px) { .ghero .wrap { padding-top: 88px; } }
.ghero h1 { font: 800 clamp(36px, 5.2vw, 72px)/.95 var(--display); text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
.ghero .server { font: 500 14px var(--mono); color: var(--amber); margin: 0 0 14px; }
.ghero .tagline { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin: 14px 0 0; }
.ghero .by { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.ghero .by img { width: 22px; height: 22px; border-radius: 50%; }
.gbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; }
.rate { display: inline-flex; gap: 2px; }
.rate button { background: none; border: 0; padding: 2px; font-size: 26px; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .1s, transform .1s; }
.rate button.on { color: var(--amber); }
.rate button:hover { transform: scale(1.12); }
.rate button:disabled { cursor: default; transform: none; }
.score { display: flex; align-items: baseline; gap: 8px; }
.score b { font: 700 40px/1 var(--display); }
.score span { font: 12px var(--mono); color: var(--ink-3); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 32px 0 24px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--ink-2); font: 600 15px var(--sans); padding: 12px 14px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); }
.tabs .n { font: 12px var(--mono); color: var(--ink-3); margin-left: 6px; }

.masonry { columns: 3 280px; column-gap: 16px; }
.shot { break-inside: avoid; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); cursor: zoom-in; display: block; width: 100%; padding: 0; text-align: left; color: inherit; font: inherit; }
.shot img { width: 100%; display: block; background: var(--bg); }
.shot .cap { padding: 10px 12px 12px; }
.shot .cap b { display: block; font-weight: 600; font-size: 14px; }
.shot .cap span { font: 12px var(--mono); color: var(--ink-3); }

.lore { max-width: 70ch; font-size: 17px; line-height: 1.75; color: var(--ink); }
.lore h2 { font: 700 36px/1 var(--display); text-transform: uppercase; margin: 40px 0 12px; }
.lore h3 { font: 700 24px/1.1 var(--display); text-transform: uppercase; margin: 28px 0 8px; color: var(--ink-2); }
.lore p { margin: 0 0 16px; }
.lore blockquote { margin: 0 0 16px; padding-left: 16px; border-left: 2px solid var(--amber); color: var(--ink-2); }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(5,5,6,.94); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; }
.lightbox .lb-cap { text-align: center; margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.lightbox .lb-btn { position: fixed; top: 50%; transform: translateY(-50%); background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.lightbox .lb-prev { left: 16px; } .lightbox .lb-next { right: 16px; }
.lightbox .lb-close { position: fixed; top: 16px; right: 16px; }

dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 24px; width: min(460px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h3 { font: 700 26px/1 var(--display); text-transform: uppercase; margin: 0 0 12px; }

/* ---------- editor ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font: 12px var(--mono); color: var(--ink-3); }
.field input, .field textarea { width: 100%; }
.drop { border: 1px dashed var(--ink-3); border-radius: 12px; padding: 28px; text-align: center; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 6%, transparent); }
.drop b { color: var(--ink); }
.items { display: grid; gap: 10px; margin-top: 16px; }
.item { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--bg); }
.item img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--panel); }
.item .f { display: grid; grid-template-columns: 1fr 1fr 110px; gap: 6px; min-width: 0; }
.item .f input, .item .f select { padding: 7px 9px; font-size: 13px; }
.item .acts { display: flex; gap: 4px; }
.icon-btn { background: var(--panel); border: 1px solid var(--line-2); color: var(--ink-2); width: 32px; height: 32px; border-radius: 6px; cursor: pointer; font-size: 14px; display: grid; place-items: center; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn.on { color: var(--amber); border-color: var(--amber); }
.item.uploading { opacity: .55; }
@media (max-width: 700px) {
  .item { grid-template-columns: 72px 1fr; }
  .item img { width: 72px; height: 52px; }
  .item .f { grid-template-columns: 1fr; grid-column: 1 / -1; grid-row: 2; }
  .item .acts { grid-column: 2; grid-row: 1; justify-content: end; }
}
.savebar { position: sticky; bottom: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 32px; }
.savebar .wrap { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.savebar .msg { margin-right: auto; font: 12px var(--mono); color: var(--ink-3); }
.btn.danger { color: #ff6b5b; }
.btn.danger:hover { border-color: #ff6b5b; }
.score .stars { font-size: 18px; }

/* =========================================================
   Directory home
   ========================================================= */
.nav-cta { margin-left: 4px; white-space: nowrap; }
@media (max-width: 760px) { .nav-cta { display: none; } }

.dhero { position: relative; overflow: hidden; padding: 88px 0 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .dhero { padding-top: 140px; } }
.lightbar { position: absolute; inset: -20% -10% auto; height: 520px; pointer-events: none; }
.lightbar i { position: absolute; top: 0; width: 55%; height: 100%; filter: blur(90px); opacity: .08; border-radius: 50%; }
.lb-red { left: 0; background: radial-gradient(closest-side, #ff2b3a, transparent); }
.lb-blue { right: 0; background: radial-gradient(closest-side, #2b6bff, transparent); }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.dhero .wrap { position: relative; }
.split { font: 800 clamp(58px, 12.5vw, 176px)/.86 var(--display); text-transform: uppercase; margin: 0; letter-spacing: -.01em; perspective: 600px; }
.split .line { display: block; overflow: hidden; padding-bottom: .04em; }
.split .ch { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.split em { font-style: normal; color: var(--amber); }
.dlede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 52ch; margin: 22px 0 0; }
.bigsearch { display: flex; gap: 8px; margin-top: 30px; max-width: 620px; }
.bigsearch input { flex: 1; font-size: 16px; padding: 15px 16px; border-radius: 10px; background: color-mix(in srgb, var(--panel) 85%, transparent); }
.bigsearch .btn { padding: 0 22px; border-radius: 10px; }
.hstats { display: flex; gap: clamp(24px, 5vw, 64px); margin-top: 40px; flex-wrap: wrap; }
.hstats b { display: block; font: 700 clamp(36px, 4.4vw, 56px)/1 var(--display); }
.hstats span { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--ink-3); margin-top: 6px; letter-spacing: .04em; }

.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 10px; width: max-content; }
.marquee button {
  font: 500 13px var(--sans); color: var(--ink-2); background: var(--panel); border: 1px solid var(--line-2);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s, background .15s;
}
.marquee button:hover { color: var(--ink); border-color: var(--ink-3); }
.marquee button.on { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
@media (prefers-reduced-motion: reduce) { .marquee .track { flex-wrap: wrap; width: auto; padding: 0 var(--gutter); } .marquee button[aria-hidden] { display: none; } }

.dhead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dhead h2 { font: 800 clamp(40px, 6vw, 76px)/.9 var(--display); text-transform: uppercase; margin: 0; }
.dhead p { margin: 0; color: var(--ink-2); max-width: 42ch; }
.podium-wrap { padding-top: clamp(56px, 8vw, 96px); }
.dir { padding-top: clamp(56px, 8vw, 96px); padding-bottom: 96px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 16px; }
.filters:empty { display: none; }
.filters button { font: 12px var(--mono); background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }

/* podium */
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 18px; align-items: end; perspective: 1200px; }
.pcard {
  position: relative; display: block; text-decoration: none; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2);
  background: var(--panel); transform-style: preserve-3d; min-height: 320px; isolation: isolate;
}
.pcard.p1 { min-height: 420px; border-color: color-mix(in srgb, var(--amber) 60%, var(--line-2)); }
.pbg { position: absolute; inset: 0; background: var(--panel) center / cover no-repeat; z-index: -1; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.pbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.1) 0%, rgba(10,10,11,.55) 45%, rgba(10,10,11,.96) 100%); }
.pcard:hover .pbg { transform: scale(1.06); }
.pin { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; transform: translateZ(40px); }
.pplace { font: 800 64px/.8 var(--display); color: var(--ink); opacity: .9; display: block; margin-bottom: 10px; }
.p1 .pplace { color: var(--amber); font-size: 92px; }
.pcard h3 { font: 800 clamp(26px, 2.6vw, 36px)/.95 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.pcard p { color: var(--ink-2); margin: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pmeta { margin-top: 12px; font: 12px var(--mono); color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .podium { grid-template-columns: 1fr; }
  .pcard, .pcard.p1 { min-height: 260px; }
  .podium .p1 { order: -1; }
}

/* server cards */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1400px; }
@media (max-width: 1000px) { .sgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .sgrid { grid-template-columns: 1fr; } }
.scard {
  position: relative; display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); overflow: hidden; isolation: isolate; transition: border-color .2s, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.scard:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.8); }
.spot {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 45%);
}
.scard:hover .spot, .pcard:hover .spot { opacity: 1; }
.scover { aspect-ratio: 16 / 6; background: var(--bg) center / cover no-repeat; border-bottom: 1px solid var(--line); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.scover.none { background: repeating-linear-gradient(-45deg, var(--panel) 0 14px, var(--bg) 14px 28px); opacity: .6; }
.scard:hover .scover { transform: scale(1.04); }
.sbody { padding: 0 18px 16px; display: flex; flex-direction: column; flex: 1; position: relative; }
.stop { display: flex; align-items: flex-start; gap: 12px; margin-top: -26px; }
.sicon { width: 56px; height: 56px; border-radius: 14px; border: 3px solid var(--panel); background: var(--bg); flex: none; object-fit: cover; }
.sicon.ph { display: grid; place-items: center; font: 800 22px var(--display); color: var(--ink-2); background: var(--line); }
.sname { min-width: 0; flex: 1; padding-top: 32px; }
.sname h3 { font: 800 24px/1 var(--display); text-transform: uppercase; margin: 0; display: flex; align-items: center; min-width: 0; }
.sname h3 .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sname h3 .vcheck { flex: none; vertical-align: 0; }
.sname span { font: 12px var(--mono); color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.srank { font: 800 18px/1 var(--display); color: var(--ink-3); padding-top: 34px; }
.srank.hot { color: var(--amber); }
.vcheck { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--amber); color: var(--amber-ink); font: 800 11px/1 var(--sans); margin-left: 7px; vertical-align: 3px; }
.stag { color: var(--ink-2); font-size: 14px; margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chips span { font: 11px var(--mono); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; }
.sstats { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 14px; font: 12px var(--mono); color: var(--ink-2); }
.sstats em { font-style: normal; color: var(--ok); }
.pill-live { display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--mono); color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); padding: 4px 9px; border-radius: 999px; }
.pill-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s ease-in-out infinite; }
.pill-live.full { color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
@keyframes blink { 50% { opacity: .25; } }
.sfoot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; font: 12px var(--mono); color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 16px; }
.sfoot b { color: var(--ink); }
.muted { color: var(--ink-3); }

/* how it works */
.how { border-top: 1px solid var(--line); padding: 72px 0; }
@media (min-width: 900px) { .how { padding: 112px 0; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.step { background: var(--bg); padding: 28px 24px; }
.step .n { font: 500 12px var(--mono); color: var(--amber); }
.step h3 { font: 800 30px/1 var(--display); text-transform: uppercase; margin: 14px 0 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- server page ---------- */
.gtitle { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.gicon { width: clamp(56px, 6vw, 84px); height: clamp(56px, 6vw, 84px); border-radius: 18px; border: 1px solid var(--line-2); flex: none; object-fit: cover; }
.vcheck.big { width: 26px; height: 26px; font-size: 15px; vertical-align: .35em; margin-left: 12px; }
.gstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 28px; }
.gstat { background: var(--bg); padding: 18px 20px; }
.gstat b { display: flex; align-items: center; gap: 10px; font: 800 36px/1 var(--display); }
.gstat b small { font-size: 20px; color: var(--ink-3); }
.gstat > span { font: 12px var(--mono); color: var(--ink-3); display: block; margin-top: 8px; }
.gstat.live { background: color-mix(in srgb, var(--ok) 5%, var(--bg)); }
.btn { position: relative; }
.burst { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font: 800 20px var(--display); color: var(--amber); pointer-events: none; }

.rgrid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.rgrid > div:first-child { display: grid; gap: 16px; position: sticky; top: 76px; }
@media (max-width: 860px) { .rgrid { grid-template-columns: 1fr; } .rgrid > div:first-child { position: static; } }
.rsum { display: grid; gap: 6px; }
.rsum > b { font: 800 64px/1 var(--display); }
.rsum .stars { font-size: 20px; }
.rbars { display: grid; gap: 6px; margin-top: 12px; }
.rbar { display: grid; grid-template-columns: 28px 1fr 28px; gap: 10px; align-items: center; font: 12px var(--mono); color: var(--ink-3); }
.rbar i { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.rbar i b { display: block; height: 100%; background: var(--amber); border-radius: 3px; }
.rbar span:last-child { text-align: right; }
.rate.big button { font-size: 34px; }
.rword { font: 600 14px var(--sans); color: var(--ink-2); margin-left: 10px; align-self: center; min-width: 9ch; }
.review-form textarea { margin-top: 10px; }
.rlist { display: grid; gap: 12px; }
.review { display: grid; grid-template-columns: 40px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--panel); }
.review img { width: 40px; height: 40px; border-radius: 50%; }
.rhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rhead > span { font: 12px var(--mono); color: var(--ink-3); margin-left: auto; }
.review p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }

/* ---------- editor extras ---------- */
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; }
.tagpick button { font: 500 13px var(--sans); color: var(--ink-2); background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.tagpick button[aria-pressed="true"] { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.keybox { display: flex; gap: 8px; flex-wrap: wrap; }
.keybox input { flex: 1 1 260px; font-family: var(--mono); }

/* CSS transitions on transform would fight the GSAP slide */
.sgrid.flipping .scard { transition: none; }

/* ---------- My servers: guild picker ---------- */
.subhead { font: 800 36px/1 var(--display); text-transform: uppercase; margin: 0 0 18px; }
.gpicks { display: grid; gap: 8px; }
.gpick { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.gpick .sicon { width: 48px; height: 48px; border-radius: 12px; border: 0; }
.gp-name { min-width: 0; }
.gp-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-name span { font: 12px var(--mono); color: var(--ink-3); }
.gp-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line-2); border-top-color: var(--amber); border-radius: 50%; margin-right: 8px; vertical-align: -2px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (max-width: 560px) { .gpick { grid-template-columns: 40px 1fr; } .gpick .sicon { width: 40px; height: 40px; } .gp-act { grid-column: 1 / -1; justify-content: flex-start; } }

footer .credit { color: var(--ink-2); }
footer .credit b { color: var(--amber); font-weight: 600; }

/* =========================================================
   Livery library
   ========================================================= */
.lfilters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: -6px 0 22px; }
.lfilters select { min-width: 240px; }
.deptchips { display: flex; gap: 6px; flex-wrap: wrap; }
.deptchips button { font: 500 13px var(--sans); color: var(--ink-2); background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.deptchips button.on { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.lgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .lgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .lgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lgrid { grid-template-columns: 1fr; } }
.lcard { position: relative; display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); isolation: isolate; transition: border-color .2s, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.lcard:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.8); }
.lcard:hover .spot { opacity: 1; }
.lgrid.flipping .lcard { transition: none; }
.limg { position: relative; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; border-bottom: 1px solid var(--line); }
.limg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.lcard:hover .limg img { transform: scale(1.06); }
.lkind { position: absolute; top: 10px; left: 10px; font: 600 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: rgba(10,10,11,.82); color: var(--ink-2); border: 1px solid var(--line-2); }
.lkind.free { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.lcount { position: absolute; bottom: 10px; right: 10px; font: 11px var(--mono); padding: 4px 7px; border-radius: 6px; background: rgba(10,10,11,.82); color: var(--ink-2); }
.lbody { padding: 14px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.lbody h3 { font: 800 22px/1 var(--display); text-transform: uppercase; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbody > p { margin: 0; font: 12px var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font: 12px var(--mono); color: var(--ink-2); }
.lby { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lby img { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.lnums { display: inline-flex; gap: 10px; flex: none; }

/* single livery */
.lv { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; padding: 40px 0 96px; }
@media (max-width: 900px) { .lv { grid-template-columns: 1fr; } }
.lv-main { min-width: 0; }
.lv-hero { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); cursor: zoom-in; display: block; width: 100%; padding: 0; }
.lv-hero img { width: 100%; display: block; max-height: 70vh; object-fit: contain; background: var(--bg); }
.lv-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.lv-thumbs button { flex: none; width: 96px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg); cursor: pointer; opacity: .6; transition: opacity .15s, border-color .15s; }
.lv-thumbs button[aria-current="true"] { border-color: var(--amber); opacity: 1; }
.lv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lv-side { display: grid; gap: 16px; position: sticky; top: 76px; }
@media (max-width: 900px) { .lv-side { position: static; } }
.lv-side h1 { font: 800 clamp(40px, 5vw, 64px)/.92 var(--display); text-transform: uppercase; margin: 8px 0 0; overflow-wrap: anywhere; }
.lv-meta { font: 13px var(--mono); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lv-desc { color: var(--ink-2); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.idlist { display: grid; gap: 8px; }
.idrow { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); }
.idrow img, .idrow .noimg { width: 56px; height: 56px; border-radius: 6px; object-fit: contain; background: repeating-conic-gradient(#1a1a1d 0 25%, #121214 0 50%) 0 0 / 12px 12px; }
.idrow b { display: block; font: 600 12px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.idrow code { font: 500 15px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.likebtn.on { color: #ff5d7a; border-color: #ff5d7a; }

/* livery editor */
.kindpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kindpick label { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s; }
.kindpick input { position: absolute; opacity: 0; pointer-events: none; }
.kindpick label:has(input:checked) { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 7%, var(--bg)); }
.kindpick b { display: block; font: 800 22px/1 var(--display); text-transform: uppercase; }
.kindpick span { font-size: 13px; color: var(--ink-2); }
.slots { display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 90px 1fr 48px; gap: 10px; align-items: center; }
.slot label { font: 600 12px var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.slot input { font-family: var(--mono); }
.slot .pv { width: 48px; height: 48px; border-radius: 6px; border: 1px solid var(--line-2); background: repeating-conic-gradient(#1a1a1d 0 25%, #121214 0 50%) 0 0 / 12px 12px; object-fit: contain; }
.slot .pv.bad { border-color: #ff6b5b; }
.ithumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.ithumb { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 3; background: var(--bg); }
.ithumb img { width: 100%; height: 100%; object-fit: cover; }
.ithumb .acts { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.ithumb .first { position: absolute; left: 6px; top: 6px; font: 600 10px var(--mono); background: var(--amber); color: var(--amber-ink); padding: 3px 6px; border-radius: 4px; }

/* Hero drifts and fades as it scrolls away. Native scroll-driven animation, so it
   always matches the real scroll position, including after a reload mid-page. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .dhero .wrap { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
    .grid-bg { animation: grid-drift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  }
}
@keyframes hero-drift { to { transform: translateY(18%); opacity: .2; } }
@keyframes grid-drift { to { transform: translateY(30%); } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
