/* ── Servers: the index (/servers) and one server (/s/:gid) ──────────── */
.sv-note { font-size: .8rem; color: var(--dim); white-space: nowrap; }
.sv-muted { font-size: .86rem; color: var(--muted); }
.sv-muted code.cmd { cursor: pointer; }
.sv-kpis { margin-bottom: 18px; }

/* toolbar: search + sort */
.sv-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.sv-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.sv-search svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.sv-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; font-size: .92rem; font-family: var(--font-b); background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line-2); outline: none; transition: .15s; }
.sv-search input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168,120,255,.2); }
.sv-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.sv-sort select { height: 44px; border-radius: 12px; }
.sv-count { margin-left: auto; font-size: .82rem; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the server cards */
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.sv-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 16px; min-width: 0; }
.sv-card.skel-card { min-height: 180px; }
.sv-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }   /* the whole card opens the server; the inner links sit above it */
.sv-card > .sv-top-tr, .sv-card > .sv-bty a { position: relative; z-index: 2; }
.sv-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sv-icon { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; flex: none; background: var(--bg3); box-shadow: 0 0 0 1px var(--line-2), 0 8px 22px rgba(124,58,237,.3); }
.sv-title { display: flex; flex-direction: column; min-width: 0; }
.sv-title b { font-family: var(--font-d); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-title small { font-size: .76rem; color: var(--muted); line-height: 1.35; font-variant-numeric: tabular-nums; }
.sv-top-tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: .15s; }
a.sv-top-tr:hover { border-color: var(--violet); background: rgba(168,120,255,.08); }
.sv-top-tr .who-av { width: 28px; height: 28px; }
.sv-top-tr.none { grid-template-columns: minmax(0, 1fr); opacity: .7; }
.sv-top-tr span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sv-top-tr small, .sv-bty small { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sv-top-tr b, .sv-bty b { font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-top-tr em { font-style: normal; font-family: var(--font-d); font-weight: 700; font-size: .8rem; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sv-bty { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px 6px 8px; border-radius: 12px; background: color-mix(in srgb, var(--rc, #7c3aed) 8%, transparent); border: 1px solid color-mix(in srgb, var(--rc, #7c3aed) 30%, transparent); }
.sv-bty img { width: 30px; aspect-ratio: 600/825; object-fit: cover; border-radius: 3px; background: var(--bg3); box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.sv-bty > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sv-bty > span b { display: inline; }
.sv-bty .sv-set { font-style: normal; font-size: .76rem; color: var(--muted); font-weight: 400; }
.sv-bty > span:nth-child(2) { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-bty > span:nth-child(2) small { display: block; }
.sv-bty .bdg { justify-self: end; }
.sv-votebar { display: grid; gap: 6px; }
.sv-votetxt { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sv-votebar.hit .sv-votetxt { color: var(--green); font-weight: 600; }
.sv-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.sv-bar i { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--pink)); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .8s var(--ease); }
.sv-votebar.hit .sv-bar i { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.sv-votebar.sm { margin-top: auto; }
.sv-votebar:not(.sm) { margin-bottom: 12px; }
.sv-votebar:not(.sm) .sv-votetxt { font-family: var(--font-d); font-size: 1.1rem; color: var(--gold); font-weight: 700; }
.sv-votebar:not(.sm) .sv-bar { height: 10px; }

/* the CTA under the grid */
.sv-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; padding: 28px 30px; margin-top: 28px; border-color: rgba(168,120,255,.35); }
.sv-cta .h-section { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 6px 0 8px; }
.sv-cta p { color: var(--muted); font-size: .94rem; max-width: 56ch; }
.sv-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── one server ─────────────────────────────────────────────────────── */
.sv-server .crumbs { padding-bottom: 0; }
.sv-server .prof-head { padding-top: 22px; }
.sv-banner { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; font-size: .9rem; font-weight: 600; background: rgba(255,201,77,.1); border: 1px solid rgba(255,201,77,.35); color: #ffe08a; }
.sv-banner[hidden] { display: none; }
.sv-top { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; }
.sv-top > * { min-width: 0; }
.sv-404 { grid-column: 1 / -1; }
.sv-bty-big { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.sv-bty-art { display: block; text-decoration: none; perspective: 800px; }
.sv-bty-art .holo-card { box-shadow: 0 0 0 1px var(--rc, var(--line-2)), 0 16px 34px color-mix(in srgb, var(--rc, #7c3aed) 35%, transparent); }
.sv-bty-body { display: grid; gap: 6px; min-width: 0; }
.sv-bty-line { font-size: 1rem; color: var(--muted); } .sv-bty-line b { color: var(--text); }
.sv-bty-meta { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.sv-bty-state { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); }
.sv-bty-state a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; text-decoration: none; }
.sv-bty-state a:hover { color: var(--violet); }
.sv-bty-state .who-av { width: 22px; height: 22px; }
.sv-bty-state small { color: var(--dim); }
.sv-bty-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }

/* live auctions */
.sv-auctions { margin-top: 12px; }
.sv-auc-list { display: grid; gap: 8px; }
.sv-auc { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: .15s; min-width: 0; }
.sv-auc:hover { border-color: var(--violet); background: rgba(168,120,255,.08); }
.sv-auc img { width: 40px; aspect-ratio: 600/825; object-fit: cover; border-radius: 4px; background: var(--bg3); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.sv-auc-who { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.sv-auc-who b { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-auc-who b .n { font-style: normal; color: var(--dim); font-family: var(--font-m); font-size: .72rem; }
.sv-auc-who small { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-auc-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.sv-auc-badges:empty { display: none; }
.sv-auc-bid, .sv-auc-end { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.25; white-space: nowrap; }
.sv-auc-bid b { font-family: var(--font-d); font-weight: 700; color: var(--gold); font-size: .95rem; font-variant-numeric: tabular-nums; }
.sv-auc-bid b::after { content: ' coins'; font-family: var(--font-b); font-weight: 600; font-size: .68rem; color: var(--muted); }
.sv-auc-bid small, .sv-auc-end small { font-size: .72rem; color: var(--dim); }
.sv-ends { font-size: .82rem; font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; }
.sv-ends.soon { color: var(--pink); }

/* boards */
.sv-boards { padding-top: 30px; }
.sv-boards .sec-head { margin-bottom: 16px; }
.sv-boards .board { margin-top: 14px; }
.sv-tab-n { font-style: normal; font-size: .68rem; opacity: .6; }

@media (max-width: 900px) { .sv-top { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-count { width: 100%; margin: 0; text-align: right; }
  .sv-cta { grid-template-columns: 1fr; padding: 22px 20px; }
  .sv-cta-btns .btn { flex: 1 1 auto; }
  .sv-server .prof-actions { grid-column: 1 / -1; }
  .sv-bty-big { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .sv-auc { grid-template-columns: 40px minmax(0, 1fr); }
  .sv-auc-bid, .sv-auc-end { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 10px; }
  .sv-auc-bid small, .sv-auc-end small { white-space: normal; text-align: right; }
}
