:root {
  --font: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --bg: #030814;
  --bg2: #071229;
  --card: rgba(10, 24, 56, .6);
  --card-solid: #0e1c3d;
  --line: rgba(120, 170, 255, .14);
  --line2: rgba(120, 170, 255, .28);
  --text: #e8f0ff;
  --muted: #8ea3c9;
  --blue: #2f7bff;
  --blue2: #5aa2ff;
  --cyan: #2ee6ff;
  --danger: #f87171;
  --ok: #34d399;
  --radius: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  font-feature-settings: "calt" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue2); text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
small { font-weight: 400; }
.muted { color: var(--muted); }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(59, 130, 246, .28), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(34, 211, 238, .14), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(37, 99, 235, .18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.bg-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: .35;
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-bottom: 60px; }

/* ---- Top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 11, 26, .7);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; height: 100%; flex: none; }
.brand img { width: auto; height: 46px; transition: filter .2s; }   /* transparent webp, 720x221 */
.brand:hover img { filter: brightness(1.2); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; transition: .15s; }
.nav a:hover { color: var(--text); background: rgba(59, 130, 246, .1); }
.nav a.on { color: var(--text); background: rgba(59, 130, 246, .18); }

/* ---- Hero ---- */
.hero { padding: 72px 0 36px; max-width: 760px; }
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); margin-bottom: 16px; }
.hero-logo { margin: 0 0 18px -2%; }
.hero-logo img { width: min(440px, 88vw); height: auto; filter: drop-shadow(0 10px 40px rgba(34, 211, 238, .25)); }
.lead { color: var(--muted); font-size: 18px; margin: 0; }
.ip { cursor: pointer; color: var(--text); border-bottom: 1px dashed var(--blue2); }
.ip.copied::after { content: " ✓ copied"; color: var(--ok); font-weight: 500; font-size: .85em; }

/* ---- Filters ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filters a {
  padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--muted); border: 1px solid var(--line); background: rgba(14, 28, 61, .4); transition: .15s;
}
.filters a:hover { color: var(--text); border-color: var(--line2); }
.filters a.on { color: #fff; background: var(--blue); border-color: var(--blue); }

/* ---- Cards ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(96, 165, 250, .5); box-shadow: var(--shadow), 0 0 0 1px rgba(96, 165, 250, .15); }
.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1835; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-noimg {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, .3), transparent 60%), #0b1835;
}
.card-noimg img { width: 55%; max-width: 260px; height: auto; object-fit: contain; opacity: .35; }
.card:hover .card-noimg img { transform: none; }
.img-count { position: absolute; right: 10px; bottom: 10px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(5, 11, 26, .75); backdrop-filter: blur(6px); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-meta, .post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.card h2 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.more { margin-top: auto; color: var(--blue2); font-weight: 600; font-size: 14px; }

.card.feature { grid-column: 1 / -1; flex-direction: row; }
.card.feature .card-img { flex: 1.35; aspect-ratio: auto; min-height: 340px; }
.card.feature .card-body { flex: 1; padding: 34px; justify-content: center; }
.card.feature h2 { font-size: 32px; }
.card.feature p { font-size: 16px; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--blue2); background: rgba(59, 130, 246, .15); border: 1px solid rgba(59, 130, 246, .3);
}
.tag-update { color: var(--cyan); background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .3); }
.tag-event { color: #a5b4fc; background: rgba(129, 140, 248, .14); border-color: rgba(129, 140, 248, .35); }
.tag-maintenance { color: #fbbf24; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .3); }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.pager a.on, .pager a:hover { color: #fff; border-color: var(--blue); background: rgba(59, 130, 246, .2); }

.empty { text-align: center; padding: 80px 20px; border: 1px dashed var(--line2); border-radius: var(--radius); background: rgba(14, 28, 61, .3); }
.empty p { color: var(--muted); }

/* ---- Single post ---- */
.post { max-width: 820px; margin: 0 auto; padding-top: 40px; }
.back { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.post h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 26px; }
.hero-img { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: #0b1835; }
.hero-img img { width: 100%; max-height: 560px; object-fit: cover; }
figcaption { padding: 10px 16px; font-size: 14px; color: var(--muted); background: rgba(14, 28, 61, .6); }
.post-body { font-size: 17px; color: #d3def5; }
.post-body p { margin: 0 0 1.1em; }
.gallery-title { margin-top: 40px; font-size: 22px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: #0b1835; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.post-admin { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(2, 6, 18, .92); backdrop-filter: blur(6px); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox p { margin: 0; color: var(--muted); text-align: center; }

/* ---- Panels & forms ---- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(8px); margin-bottom: 26px; }
.panel h2 { font-size: 22px; }
.auth { display: grid; place-items: center; padding: 70px 0; }
.auth .panel { width: 100%; max-width: 420px; }
.auth h1 { font-size: 30px; margin-bottom: 4px; }
.auth .muted { margin: 0 0 22px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: rgba(5, 11, 26, .6); border: 1px solid var(--line2); border-radius: 12px; padding: 11px 14px; outline: none; transition: .15s;
}
textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
select { cursor: pointer; }
input:focus, textarea:focus, select:focus { border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--font); color: #fff; cursor: pointer;
  padding: 11px 22px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  box-shadow: 0 8px 24px -10px rgba(59, 130, 246, .9); transition: .15s;
}
.btn:hover { color: #fff; filter: brightness(1.12); transform: translateY(-1px); }
.btn.wide { width: 100%; margin-top: 6px; }
.btn.ghost { background: transparent; border: 1px solid var(--line2); box-shadow: none; color: var(--text); }
.btn.ghost:hover { border-color: var(--blue2); background: rgba(59, 130, 246, .1); }
.btn.danger { background: transparent; border: 1px solid rgba(248, 113, 113, .4); box-shadow: none; color: var(--danger); }
.btn.danger:hover { background: rgba(248, 113, 113, .1); }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--blue2); cursor: pointer; }
.link:hover { color: var(--cyan); }
.link.danger { color: var(--danger); }

.flash { padding: 12px 16px; border-radius: 12px; margin: 22px 0; font-size: 15px; border: 1px solid; }
.flash.ok { color: var(--ok); background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .3); }
.flash.err { color: var(--danger); background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .3); }
.auth .flash { margin-top: 0; }

/* ---- Admin ---- */
.admin-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 44px 0 20px; }
.admin-head h1 { font-size: 38px; margin: 0; }
.row { display: flex; gap: 16px; }
.grow { flex: 1; min-width: 0; }
.field-title { font-size: 14px; font-weight: 500; color: var(--muted); margin: 6px 0 8px; }
.drop {
  position: relative; display: grid; place-items: center; text-align: center;
  padding: 30px; border: 2px dashed var(--line2); border-radius: 14px; cursor: pointer;
  background: rgba(59, 130, 246, .04); color: var(--muted); transition: .15s;
}
.drop strong { color: var(--blue2); }
.drop:hover, .drop.over { border-color: var(--blue2); background: rgba(59, 130, 246, .1); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.img-edit:empty { display: none; }
#previews { margin-top: 14px; }
.img-item { background: rgba(5, 11, 26, .5); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.img-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.img-item input { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 13px; padding: 9px 12px; background: transparent; }
.img-actions { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px 10px; }
.editor-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.editor-foot .danger { margin-left: auto; }

.table { display: flex; flex-direction: column; margin-bottom: 8px; }
.tr { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.tr:last-child { border-bottom: 0; }
.tr a.grow { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr a.grow:hover { color: var(--blue2); }
.tr .muted { font-size: 13px; white-space: nowrap; }
.tr form { margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.mini { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 11, 26, .35); }
.mini h3 { font-size: 17px; margin: 0 0 4px; }
.mini .btn { align-self: flex-start; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); background: rgba(5, 11, 26, .6); }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 20px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ---- Docs: home ---- */
.docs-hero { max-width: 820px; }
.hero-search { display: flex; gap: 10px; margin-top: 26px; max-width: 620px; }
.hero-search input { flex: 1; padding: 14px 18px; font-size: 16px; border-radius: 14px; }
.hero-search .btn { padding: 0 26px; border-radius: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); backdrop-filter: blur(8px); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cat-card:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(96, 165, 250, .5); box-shadow: var(--shadow); }
.cat-card h2 { font-size: 19px; margin: 8px 0 0; }
.cat-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 6px; }
.cat-count { margin-top: auto; color: var(--blue2); font-size: 14px; font-weight: 600; }
.cat-ico {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 23px;
  border-radius: 13px; background: linear-gradient(135deg, rgba(59, 130, 246, .28), rgba(34, 211, 238, .14));
  border: 1px solid rgba(96, 165, 250, .3);
}

/* ---- Docs: layout ---- */
.docs-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; padding-top: 34px; align-items: start; }
.docs-side { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.docs-search input { border-radius: 12px; margin-bottom: 14px; }
.docs-nav summary { display: none; }
.nav-cat { margin-bottom: 2px; }
.nav-cat-title { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14.5px; }
.nav-cat-title .ico { width: 22px; text-align: center; }
.nav-cat-title:hover { color: var(--text); background: rgba(59, 130, 246, .1); }
.nav-cat.open .nav-cat-title { color: var(--text); background: rgba(59, 130, 246, .16); }
.nav-cat ul { list-style: none; margin: 4px 0 10px 21px; padding: 0 0 0 10px; border-left: 1px solid var(--line2); }
.nav-cat li a { display: block; padding: 5px 10px; font-size: 14px; color: var(--muted); border-radius: 8px; }
.nav-cat li a:hover { color: var(--text); }
.nav-cat li a.on { color: var(--cyan); background: rgba(34, 211, 238, .08); }
.docs-main { min-width: 0; padding-bottom: 20px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.docs-main h1 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 12px; }
.cat-title { display: flex; align-items: center; gap: 16px; }
.cat-title .cat-ico { width: 56px; height: 56px; font-size: 28px; }
.doc-lead { color: var(--muted); font-size: 18px; margin: 0 0 30px; max-width: 760px; }
.page-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.page-card { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--text); transition: .2s; }
.page-card:hover { color: var(--text); border-color: rgba(96, 165, 250, .5); transform: translateY(-2px); }
.page-card h3 { font-size: 18px; margin: 4px 0 0; }
.page-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 8px; }
.page-card .tag { align-self: flex-start; }
.page-list .empty { grid-column: 1 / -1; }
mark { background: rgba(34, 211, 238, .25); color: var(--text); border-radius: 3px; padding: 0 2px; }

/* ---- Docs: article ---- */
.doc-body { font-size: 16.5px; color: #d3def5; max-width: 820px; }
.doc-body h2 { font-size: 26px; margin: 42px 0 14px; padding-top: 8px; scroll-margin-top: 90px; }
.doc-body h3 { font-size: 20px; margin: 30px 0 10px; color: var(--text); scroll-margin-top: 90px; }
.doc-body h4 { font-size: 17px; margin: 24px 0 8px; color: var(--blue2); }
.doc-body > :first-child { margin-top: 0; }
.doc-body p { margin: 0 0 1em; }
.doc-body ul, .doc-body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.doc-body li { margin: .3em 0; }
.doc-body li::marker { color: var(--blue2); }
.doc-body strong { color: var(--text); }
code {
  font: 500 .88em/1.4 var(--font);
  color: #a5f3fc; background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .2);
  padding: 1px 6px; border-radius: 6px; white-space: nowrap;
}
pre { background: rgba(5, 11, 26, .7); border: 1px solid var(--line2); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 0 0 1.2em; }
pre code { background: none; border: 0; padding: 0; white-space: pre; color: #cfe3ff; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 28, 61, .35); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: rgba(59, 130, 246, .08); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }
.callout { margin: 0 0 1.3em; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(34, 211, 238, .3); border-left: 4px solid var(--cyan); background: rgba(34, 211, 238, .07); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.doc-fig { margin: 8px 0 26px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b1835; cursor: zoom-in; }
.doc-fig img { width: 100%; max-height: 520px; object-fit: contain; background: #050b1a; }
.pic-slot {
  display: flex; align-items: center; gap: 16px; margin: 8px 0 26px; padding: 20px;
  border: 2px dashed rgba(251, 191, 36, .45); border-radius: 14px; background: rgba(251, 191, 36, .05);
  color: #fcd34d; font-size: 14.5px;
}
.pic-slot:hover { color: #fde68a; background: rgba(251, 191, 36, .1); }
.pic-slot small { color: var(--muted); }
.pic-slot-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font-size: 24px; border-radius: 12px; background: rgba(251, 191, 36, .14); }
.doc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; }
.pn a { flex: 0 1 48%; display: flex; flex-direction: column; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-weight: 600; background: rgba(14, 28, 61, .35); }
.pn a:hover { border-color: rgba(96, 165, 250, .5); color: var(--text); }
.pn small { color: var(--muted); font-weight: 400; font-size: 13px; }
.pn-next { text-align: right; margin-left: auto; }

/* ---- Docs: admin ---- */
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-head .eyebrow a { color: var(--cyan); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.panel-head h2 { margin: 0; }
.panel-head div { font-size: 14px; color: var(--muted); }
label small { font-weight: 400; opacity: .8; }
label.narrow { width: 110px; flex: none; }
.mono { font: 14px/1.6 var(--font); }
.cheats { margin: -6px 0 18px; font-size: 14px; }
.cheats summary { cursor: pointer; color: var(--blue2); }
.cheat-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 11, 26, .4); color: var(--muted); }
.cheat-grid code { justify-self: start; }
.slot-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.slot-item { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 11, 26, .4); scroll-margin-top: 90px; }
.slot-item:target { border-color: rgba(251, 191, 36, .6); box-shadow: 0 0 0 3px rgba(251, 191, 36, .15); }
.slot-preview { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #0b1835; border: 1px dashed var(--line2); color: var(--muted); font-size: 13px; }
.slot-preview img { width: 100%; height: 100%; object-fit: cover; }
.slot-fields { display: flex; flex-direction: column; gap: 8px; font-size: 14px; min-width: 0; }
.slot-fields input[type=file] { padding: 8px; font-size: 13px; }
label.check { flex-direction: row; align-items: center; gap: 8px; margin: 0; font-size: 13px; cursor: pointer; }
label.check input { width: auto; }

/* ---- Account ---- */
.small-note { font-size: 13px; margin: 14px 0 0; text-align: center; }
.profile { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; padding: 44px 0 28px; }
.skin-card {
  position: relative; height: 320px; border-radius: 22px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(59, 130, 246, .45), transparent 65%), linear-gradient(180deg, #0e1c3d, #071027);
  border: 1px solid rgba(96, 165, 250, .35); box-shadow: var(--shadow), inset 0 -40px 60px -30px rgba(34, 211, 238, .25);
}
.skin-card img { height: 92%; width: auto; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); }
.skin-card .rarity { position: absolute; top: 12px; left: 12px; }
.rarity-legendary { color: #fbbf24; background: rgba(251, 191, 36, .14); border-color: rgba(251, 191, 36, .45); }
.rarity-mythic { color: #f472b6; background: rgba(244, 114, 182, .14); border-color: rgba(244, 114, 182, .45); }
.rarity-speed { color: #f87171; background: rgba(248, 113, 113, .14); border-color: rgba(248, 113, 113, .45); }
.rarity-epic { color: #c4b5fd; background: rgba(167, 139, 250, .14); border-color: rgba(167, 139, 250, .45); }
.rarity-rare { color: var(--cyan); background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .4); }
.rarity-common { color: var(--muted); background: rgba(142, 163, 201, .1); border-color: rgba(142, 163, 201, .3); }
.profile-info h1 { font-size: clamp(34px, 5vw, 54px); margin: 10px 0 6px; word-break: break-word; }
.profile-info > p { margin: 0 0 22px; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pill { font-size: 13px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.pill-on { color: var(--ok); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .08); }
.big-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.big-stats div { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.big-stats span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.big-stats strong { font: 700 24px var(--font); }
.stat-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 8px; }
.stat-group h2 { font-size: 18px; margin-bottom: 10px; }
.stat-group dl { margin: 0; }
.stat-group dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.stat-group dl div:last-child { border-bottom: 0; }
.stat-group dt { color: var(--muted); }
.stat-group dd { margin: 0; font-weight: 600; text-align: right; }
.stat-group dd small { color: var(--muted); font-weight: 400; }
.settings fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.settings fieldset:disabled { opacity: .55; }
.settings h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue2); margin: 26px 0 12px; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 18px; align-items: end; }
.set-skin { display: flex; gap: 10px; align-items: end; }
.set-skin label { flex: 1; }
.set-skin .btn { margin-bottom: 16px; white-space: nowrap; }
input[type=color] { height: 46px; padding: 4px; cursor: pointer; }
input[type=color].off { opacity: .35; }
.color-def { display: flex; flex-direction: column; }
.color-def label.check { margin: -10px 0 12px; }
.skin-picker { margin: 4px 0 10px; padding: 16px; border: 1px solid var(--line2); border-radius: 16px; background: rgba(5, 11, 26, .5); }
.skin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font: 500 13px var(--font); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.on { color: #fff; background: var(--blue); border-color: var(--blue); }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.skin-grid button { position: relative; padding: 0; aspect-ratio: 3 / 4; border-radius: 12px; border: 1px solid var(--line); background: #0b1835; cursor: pointer; overflow: hidden; }
.skin-grid button:hover { border-color: var(--blue2); }
.skin-grid button.on { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(34, 211, 238, .5); }
.skin-grid img { width: 100%; height: 100%; object-fit: contain; }
.skin-grid span { position: absolute; left: 6px; bottom: 4px; font-size: 11px; color: var(--muted); }
.toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.toggle { flex-direction: row; align-items: center; gap: 14px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 11, 26, .35); cursor: pointer; color: var(--text); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .sw { flex: none; width: 42px; height: 24px; border-radius: 999px; background: #22314f; position: relative; transition: .2s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #8ea3c9; transition: .2s; }
.toggle input:checked + .sw { background: var(--blue); }
.toggle input:checked + .sw::after { left: 21px; background: #fff; }
.toggle input:focus-visible + .sw { box-shadow: 0 0 0 3px rgba(59, 130, 246, .35); }
.toggle span:last-child { display: flex; flex-direction: column; }
.toggle small { color: var(--muted); font-size: 13px; font-weight: 400; }
.settings .editor-foot { align-items: center; margin-top: 24px; }
.settings .editor-foot .muted { font-size: 13px; }

/* ---- Top & Records ---- */
.fine { font-size: 13px; margin-top: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 7px 14px; border-radius: 6px; font: 500 13px var(--mono); color: var(--muted); border: 1px solid transparent; }
.tabs a:hover { color: var(--text); background: rgba(47, 123, 255, .08); }
.tabs a.on { color: #fff; background: rgba(47, 123, 255, .2); border-color: rgba(90, 162, 255, .45); }
.ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ranking li, .run summary {
  display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); font-size: 15px;
}
.pos { width: 34px; flex: none; text-align: center; font: 600 14px var(--mono); color: var(--muted); }
.who { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.val { font: 600 15px var(--mono); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.podium .pos { width: 30px; height: 30px; margin: 0 2px; display: grid; place-items: center; border-radius: 8px; color: #06101f; }
.p1 { border-color: rgba(251, 191, 36, .5) !important; background: linear-gradient(90deg, rgba(251, 191, 36, .14), var(--card) 45%) !important; }
.p1 .pos { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.p2 .pos { background: linear-gradient(135deg, #f1f5f9, #94a3b8); }
.p3 .pos { background: linear-gradient(135deg, #fdba74, #c2410c); }
.mine { box-shadow: 0 0 0 1px var(--cyan) inset; }
.top-cat { font-size: 20px; margin: 30px 0 12px; }
.docs-main > .top-cat:first-child { margin-top: 0; }
.holder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.holder { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); transition: .15s; min-width: 0; }
.holder:hover { color: var(--text); border-color: rgba(90, 162, 255, .5); transform: translateY(-2px); }
.holder-list { font: 500 12px var(--mono); color: var(--muted); }
.holder-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holder-val { font: 500 13px var(--mono); color: var(--blue2); }
.crown { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; font: 700 11px var(--mono); color: #06101f; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.docs-nav-flat { display: flex; flex-direction: column; gap: 2px; }
.docs-nav-flat .nav-cat-title.on { color: var(--text); background: rgba(59, 130, 246, .16); }
.map-filter { margin-bottom: 14px; }
.map-list { display: flex; flex-direction: column; gap: 6px; }
.map-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); }
.map-row:hover { color: var(--text); border-color: rgba(90, 162, 255, .5); }
.map-id { width: 48px; flex: none; font: 500 13px var(--mono); color: var(--muted); }
.map-name { flex: 1; min-width: 0; font-weight: 600; display: flex; flex-direction: column; }
.map-name small { font-weight: 400; font-size: 13px; color: var(--muted); }
.map-runs { font: 13px var(--mono); white-space: nowrap; }
.map-holder { width: 170px; flex: none; text-align: right; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-row .val { width: 100px; text-align: right; }
.runs { display: flex; flex-direction: column; gap: 6px; }
.run summary { cursor: pointer; list-style: none; }
.run summary::-webkit-details-marker { display: none; }
.run summary:hover { border-color: rgba(90, 162, 255, .5); }
.run[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-color: rgba(90, 162, 255, .45); }
.run .veh, .run .date, .run .gap { font: 13px var(--mono); white-space: nowrap; }
.run .gap { width: 84px; text-align: right; }
.run-body { padding: 14px 16px 16px; border: 1px solid rgba(90, 162, 255, .45); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: rgba(5, 11, 26, .55); }
.splits { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.split { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(14, 28, 61, .5); font-family: var(--mono); }
.split span { font-size: 11px; color: var(--muted); }
.split strong { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.split small { font-size: 11.5px; color: var(--muted); }
.split.fastest { border-color: rgba(192, 132, 252, .6); background: rgba(168, 85, 247, .12); }
.split.fastest small, .fastest-key { color: #d8b4fe; }
.run-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.run-actions .fine { margin: 0; }

/* ---- Home ---- */
.home-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 0 40px; }
.home-logo { width: min(560px, 90vw); height: auto; filter: drop-shadow(0 18px 60px rgba(46, 230, 255, .3)); }
.home-tag { color: var(--muted); font-size: 19px; max-width: 640px; margin: 18px 0 30px; }
.join-box {
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-radius: 12px;
  background: rgba(10, 24, 56, .75); border: 1px solid rgba(90, 162, 255, .45); box-shadow: 0 0 40px -12px rgba(47, 123, 255, .7);
}
.join-label { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.join-ip { font-size: 20px; padding: 0; border: 0; background: none; color: #fff; white-space: nowrap; }
.join-box .btn { min-width: 92px; }
.home-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.stat-strip div { padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.stat-strip strong { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-strip span { font: 500 12.5px var(--mono); color: var(--muted); }
.live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18), 0 0 14px rgba(52, 211, 153, .8); }
.home-section { margin-top: 52px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 28px; margin: 0; }
.section-head a { font: 500 14px var(--mono); }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mode-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); transition: .2s; }
.mode-card:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(90, 162, 255, .5); box-shadow: 0 0 0 1px rgba(90, 162, 255, .35), 0 0 30px -8px rgba(47, 123, 255, .55); }
.mode-card h3 { font-size: 17px; margin: 8px 0 0; }
.mode-card p { color: var(--muted); font-size: 14px; margin: 0; }
.join-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.join-steps li { counter-increment: step; position: relative; padding: 20px 20px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.join-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 8px;
  font: 700 15px var(--mono); color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.join-steps strong { display: block; font-size: 16px; margin-bottom: 4px; }
.join-steps p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---- Client ---- */
.client-hero h1 { font-size: clamp(38px, 6vw, 64px); margin: 0; }
.dl-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dl-btn { padding: 15px 30px; font-size: 16px; }
.dl-meta { font: 500 13px var(--mono); color: var(--muted); }
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trust h3 { font-size: 18px; margin-bottom: 6px; }
.trust p { color: var(--muted); margin: 0; font-size: 15px; }
.vt-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.vt-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.vt-file { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vt-file .muted { font-size: 14px; }
.sha { white-space: normal; word-break: break-all; font-size: 12px; margin-top: 4px; align-self: flex-start; }
.vt-result { display: flex; align-items: center; gap: 10px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.pill-bad { color: var(--danger); border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .08); }
.vt-admin { margin-top: 12px; }
.flags { margin-top: 14px; }
.flags summary { cursor: pointer; list-style: none; }
.flags summary::-webkit-details-marker { display: none; }
.flags summary h3 { display: inline; font-size: 18px; }
.flags summary::after { content: "▾"; margin-left: 8px; color: var(--muted); }
.flags p, .flags li { color: #d3def5; font-size: 15px; }
.flags ul { padding-left: 1.2em; margin: 0 0 12px; }
.flags li { margin: 6px 0; }
.flags p:last-child { margin-bottom: 0; }
.changelog { display: flex; flex-direction: column; gap: 10px; }
.cl-entry { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.cl-ver { font: 600 14px var(--mono); color: var(--blue2); padding-top: 2px; }
.cl-cur::after { content: "current"; display: block; margin-top: 6px; font-size: 11px; color: var(--ok); }
.cl-entry ul { margin: 0; padding-left: 1.2em; color: #d3def5; font-size: 15px; }
.cl-entry li { margin: 3px 0; }
.older summary { cursor: pointer; color: var(--blue2); font: 500 14px var(--mono); padding: 10px 0; }
.older .cl-entry { margin-bottom: 10px; }

/* ---- Music ---- */
.music-actions { justify-content: flex-start; margin-top: 22px; }
.song-list { display: flex; flex-direction: column; gap: 6px; }
.song { display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; }
.song:hover { border-color: rgba(90, 162, 255, .4); }
.song.on { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(46, 230, 255, .3), 0 0 24px -10px rgba(46, 230, 255, .7); }
.song-play { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), #2563eb); }
.song-play:hover { filter: brightness(1.15); }
.ico-play { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.song.on .ico-play { width: 12px; height: 12px; margin: 0; border: 0; background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%); }
.song-thumb { flex: none; width: 64px; height: 36px; border-radius: 6px; object-fit: cover; background: #0b1835; }
.song-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.song-name strong, .song-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-name span { color: var(--muted); font-size: 14px; }
.song-meta { font: 12px var(--mono); white-space: nowrap; }
.song-len { font: 500 13px var(--mono); color: var(--muted); width: 44px; text-align: right; }
.song-admin summary { list-style: none; cursor: pointer; padding: 2px 8px; border-radius: 6px; color: var(--muted); font-size: 18px; }
.song-admin summary::-webkit-details-marker { display: none; }
.song-admin[open] summary { color: var(--text); background: rgba(47, 123, 255, .15); }
.song-edit { position: absolute; right: 8px; top: calc(100% + 4px); z-index: 5; width: min(360px, 90vw); display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--card-solid); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.song-edit-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.add-form { display: flex; gap: 12px; align-items: flex-end; }
.add-form label { margin: 0; }
.add-confirm { display: flex; gap: 18px; align-items: flex-start; }
.add-confirm > img { width: 220px; border-radius: 10px; flex: none; }
.add-fields { flex: 1; min-width: 0; }
.add-fields > p { margin-top: 0; }
body.has-player main.wrap { padding-bottom: 300px; }
.player {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 388px; padding: 16px;
  border-radius: 14px; background: rgba(7, 18, 41, .96); border: 1px solid rgba(90, 162, 255, .45);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .8), 0 0 40px -14px rgba(47, 123, 255, .6); backdrop-filter: blur(12px);
}
.player[hidden] { display: none; }
.player-yt { border-radius: 10px; overflow: hidden; background: #000; width: 356px; height: 200px; }
.player-yt iframe { display: block; }
.player.audio-mode .player-yt { display: none; }
.player-info { display: flex; flex-direction: column; margin: 12px 0 8px; min-width: 0; }
.player-info strong, .player-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-info span { color: var(--muted); font-size: 14px; }
.player-ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; }
.player-ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--text); cursor: pointer; font-size: 15px; }
.player-ctrl button:hover { border-color: var(--blue2); }
.player-ctrl .p-main { width: 46px; height: 46px; border: 0; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: 17px; }
.player-ctrl button.on { border-color: var(--cyan); background: rgba(46, 230, 255, .14); }
.player-time { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 12px var(--mono); color: var(--muted); }
.player-time input { flex: 1; padding: 0; height: 4px; accent-color: var(--cyan); border: 0; background: transparent; }

/* ---- Code theme ---- */
/* Geist for reading, Geist Mono for the "code" accents */
code, pre, pre code, .mono, .nav a, .eyebrow, .tag, .pill, .btn, .chip, .filters a, .crumbs, .cat-count, .more,
th, .big-stats span, .foot-in, .doc-foot, .pn small, .img-count, .skin-grid span, label, .field-title, .cheats,
.stat-group dt, .stat-group dd, .settings h3, .page-card .tag { font-family: var(--mono); }
label { font-size: 13px; }
.toggle strong { font-family: var(--font); font-size: 15px; }
.toggle small, label small { font-family: var(--font); }
h1, h2, h3 { font-family: var(--font); }
::selection { background: rgba(47, 123, 255, .4); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(90, 162, 255, .35) transparent; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; }
.bg-glow::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
}
.bg-glow::after { background-size: 32px 32px; opacity: .55; mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 75%); }
.topbar { background: rgba(3, 8, 20, .78); }
.nav a { font-size: 13.5px; border-radius: 6px; }
.nav a.on { background: rgba(47, 123, 255, .12); box-shadow: inset 0 -2px 0 var(--cyan); }
.eyebrow { text-transform: none; letter-spacing: .02em; font-size: 13px; font-weight: 500; }
.btn { font-size: 13.5px; font-weight: 600; border-radius: 6px; letter-spacing: .01em; }
input, textarea, select { border-radius: 6px; font-size: 14px; }
.tag { border-radius: 4px; font-size: 11.5px; letter-spacing: 0; }
.card, .cat-card, .page-card, .pn a, .big-stats div { border-radius: var(--radius); }
.card:hover, .cat-card:hover, .page-card:hover { box-shadow: 0 0 0 1px rgba(90, 162, 255, .35), 0 0 30px -8px rgba(47, 123, 255, .55); }
.cat-ico, .pic-slot-ico { border-radius: 8px; }
.filters a, .chip { border-radius: 6px; }

.callout { border-radius: 6px; }
th { letter-spacing: .04em; }
.stat-group dd { font-variant-numeric: tabular-nums; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .topbar-in { height: auto; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  .nav a { padding: 7px 10px; }
}
@media (max-width: 960px) {
  .song-meta { display: none; }
  .mode-grid, .join-steps { grid-template-columns: repeat(2, 1fr); }
  .stat-groups { grid-template-columns: 1fr 1fr; }
  .big-stats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card.feature { flex-direction: column; }
  .card.feature .card-img { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .card.feature .card-body { padding: 22px; }
  .card.feature h2 { font-size: 26px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 22px; }
  .docs-side { position: static; max-height: none; overflow: visible; }
  .docs-nav { border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 28, 61, .4); padding: 4px 8px; }
  .docs-nav summary { display: block; padding: 10px 6px; cursor: pointer; font-weight: 600; color: var(--blue2); }
}
@media (max-width: 640px) {
  .safety { grid-template-columns: 1fr; }
  .vt-row { flex-direction: column; align-items: flex-start; }
  .vt-result { justify-content: flex-start; }
  .cl-entry { grid-template-columns: 1fr; gap: 6px; }
  .song-thumb { display: none; }
  .add-form, .add-confirm { flex-direction: column; align-items: stretch; }
  .add-confirm > img { width: 100%; }
  .player { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 12px; }
  .player-yt { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .player-yt iframe { width: 100% !important; height: 100% !important; }
  .mode-grid, .join-steps { grid-template-columns: 1fr; }
  .home-hero { padding-top: 36px; }
  .join-box { flex-wrap: wrap; justify-content: center; padding: 12px; }
  .join-label { flex-basis: 100%; }
  .section-head h2 { font-size: 23px; }
  .map-row { flex-wrap: wrap; gap: 4px 12px; }
  .map-name { flex-basis: calc(100% - 60px); }
  .map-holder { width: auto; flex: 1; text-align: left; }
  .run .veh, .run .date { display: none; }
  .run .gap { width: auto; }
  .ranking li, .run summary { padding: 10px 12px; gap: 10px; }
  .topbar-in { height: auto; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  .nav { gap: 0; }
  .nav a { padding: 8px 7px; font-size: 13px; }
  body { font-size: 14.5px; }
  .profile { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; }
  .skin-card { height: 260px; max-width: 260px; }
  .stat-groups { grid-template-columns: 1fr; }
  .set-skin { flex-wrap: wrap; }
  .wrap { padding: 0 16px; }
  .grid, .cat-grid, .page-list { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 24px; }
  .brand img { height: 36px; }
  .nav a { padding: 8px; font-size: 14px; }
  .row, .two { flex-direction: column; grid-template-columns: 1fr; }
  label.narrow { width: 100%; }
  .panel { padding: 20px; }
  .admin-head { flex-direction: column; align-items: start; }
  .tr { flex-wrap: wrap; gap: 6px 12px; }
  .tr a.grow { flex-basis: 100%; order: -1; }
  .editor-foot .danger { margin-left: 0; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { padding: 12px; }
  .slot-item { grid-template-columns: 1fr; }
  .pn { flex-direction: column; }
  .pn a { flex-basis: auto; }
  td:first-child { white-space: normal; }
}
