@font-face { font-family: 'CE Display'; src: url('/assets/ce-display.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
:root {
  --ink: #05080f;
  --surface: #0b1020;
  --raised: #111829;
  --line: #1b2436;
  --line-2: #26324a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --orange: #468cf0;
  --orange-2: #6ea8f7;
  --online: #3ba55d;
  --gold: #f2c14e;
  --display: 'Poppins', system-ui, sans-serif;
  --brand: 'CE Display', 'Poppins', system-ui, sans-serif;
  --ice: #b2d2ff;
  --deep: #123478;
  --body: 'Poppins', system-ui, sans-serif;
  --wrap: 1200px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); isolation: isolate; color: var(--text); font: 400 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgb(5 8 15 / .9); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 26px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.08rem var(--display); letter-spacing: -.01em; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); background: var(--raised); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.me { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.me img { width: 28px; height: 28px; border-radius: 50%; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); }
.btn-soft { background: var(--raised); border-color: var(--line); }
.btn-soft:hover { border-color: var(--line-2); background: #1b2436; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-2); }
.btn-danger { background: transparent; border-color: #5a2a26; color: #f08b80; }
.btn-danger:hover { background: #2a1615; }
.btn-lg { padding: 13px 20px; font-size: 1rem; border-radius: 12px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; transform: rotate(-6deg) scale(1.25); opacity: .16; pointer-events: none; filter: saturate(.9); }
.hero-bg div { aspect-ratio: 16 / 9; border-radius: 12px; background: var(--raised) center / cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 8 15 / .55), var(--ink) 92%), radial-gradient(70% 90% at 15% 30%, rgb(5 8 15 / .2), var(--ink)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; max-width: 860px; margin-left: max(16px, calc((100% - var(--wrap)) / 2)); }
.hero h1 { font: 700 clamp(2.5rem, 5.6vw, 4.4rem)/1 var(--display); letter-spacing: -.035em; margin: 0 0 16px; }
.hero p { color: var(--muted); font-size: 1.15rem; margin: 0 0 28px; max-width: 52ch; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px 6px 6px 16px; max-width: 640px; box-shadow: 0 20px 50px -25px #000; }
.search svg { width: 20px; height: 20px; color: var(--faint); flex: none; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 1.05rem; padding: 10px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: .9rem; cursor: pointer; text-decoration: none; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.stats { display: flex; gap: 28px; margin-top: 30px; color: var(--muted); font-size: .95rem; }
.stats b { color: var(--text); font: 700 1.25rem var(--display); margin-right: 6px; }

/* ---------- sections ---------- */
.sec { padding: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font: 700 1.7rem/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }
.sec-head .ctrls { display: flex; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }

/* featured row */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 360px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.row > * { scroll-snap-align: start; }

/* ---------- server card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-banner { position: relative; aspect-ratio: 16 / 7; background: var(--raised); overflow: hidden; }
.card-banner img { width: 100%; height: 100%; object-fit: cover; }
.card-banner .blur { position: absolute; inset: -20%; background: center / cover; filter: blur(28px) saturate(1.3); opacity: .75; transform: scale(1.1); }
.card-body { position: relative; padding: 0 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-icon { width: 64px; height: 64px; border-radius: 18px; border: 4px solid var(--surface); background: var(--raised); margin-top: -32px; object-fit: cover; }
.card-icon.ph { display: grid; place-items: center; font: 800 1.3rem var(--display); color: var(--muted); }
.card h3 { margin: 10px 0 2px; font: 700 1.12rem/1.2 var(--display); letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.card h3 .verified { width: 18px; height: 18px; color: var(--orange); flex: none; }
.meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .86rem; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); }
.dot.grey { background: var(--faint); }
.card p.desc { color: #cbd5e1; font-size: .92rem; margin: 10px 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card .foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); color: var(--muted); }
.tag.aff { color: #b2d2ff; background: rgb(70 140 240 / .14); border-color: rgb(70 140 240 / .35); }
.tag.tier-Bronze { color: #e1a171; } .tag.tier-Silver { color: #d4dae3; } .tag.tier-Gold { color: var(--gold); } .tag.tier-Diamond { color: #8fdcfa; }
.card .join { margin-left: auto; }
.card.featured { border-color: rgb(70 140 240 / .45); }

.empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); font: 700 1.2rem var(--display); margin: 0 0 6px; }
.empty .btn { margin-top: 16px; }
.skeleton { background: linear-gradient(90deg, var(--surface), var(--raised), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-lg); height: 290px; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* call to action band */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.band > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.band h3 { font: 700 1.4rem var(--display); margin: 0 0 6px; letter-spacing: -.01em; }
.band p { color: var(--muted); margin: 0 0 20px; }
.band > div:first-child { background: linear-gradient(135deg, #0f2147, var(--surface) 60%); border-color: #1f3a75; }

/* ---------- server page ---------- */
.sv-banner { height: clamp(180px, 28vw, 320px); background: var(--raised) center / cover; position: relative; }
.sv-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--ink)); }
.sv-head { display: flex; align-items: flex-end; gap: 20px; margin-top: -64px; position: relative; z-index: 1; flex-wrap: wrap; }
.sv-head .card-icon { width: 120px; height: 120px; border-radius: 30px; border-width: 6px; border-color: var(--ink); margin: 0; }
.sv-head h1 { font: 700 clamp(1.9rem, 4vw, 2.8rem)/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.sv-head .actions { margin-left: auto; display: flex; gap: 10px; padding-bottom: 6px; }
.sv-body { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 32px 0 72px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.panel h2 { font: 700 1.15rem var(--display); margin: 0 0 12px; }
.panel .text { white-space: pre-wrap; color: #cbd5e1; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.facts div:last-child { border: 0; padding: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- forms ---------- */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font: 700 clamp(2rem, 4.5vw, 3rem)/1.05 var(--display); letter-spacing: -.03em; margin: 0 0 10px; }
.page-head p { color: var(--muted); margin: 0; max-width: 60ch; font-size: 1.05rem; }
.form { display: grid; gap: 22px; max-width: 720px; padding: 28px 0 80px; }
.field label, .field .lbl { display: block; font-weight: 600; margin-bottom: 8px; }
.field .hint { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.input, select.input, textarea.input { width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; outline: 0; }
.input:focus { border-color: var(--orange); }
textarea.input { min-height: 120px; resize: vertical; }
.count { float: right; color: var(--faint); font-weight: 400; font-size: .85rem; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pick label { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; margin: 0; font-weight: 500; }
.pick label:hover { border-color: var(--line-2); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick input:checked + label { border-color: var(--orange); background: rgb(70 140 240 / .1); }
.pick input:focus-visible + label { outline: 2px solid var(--orange); }
.pick input:disabled + label { opacity: .5; cursor: default; }
.pick img, .pick .ph { width: 38px; height: 38px; border-radius: 10px; flex: none; background: var(--raised); display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.pick small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.notice { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); }
.notice.err { border-color: #5a2a26; background: #221312; color: #f6b3ab; }
.notice.ok { border-color: #234a31; background: #12201a; color: #a8e2bc; }
.login-box { max-width: 520px; margin: 40px 0 100px; }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 24px 0; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--orange); }
.tabs .n { background: var(--orange); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .78rem; margin-left: 6px; }
.list { display: grid; gap: 12px; padding-bottom: 80px; }
.item { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.item img, .item .ph { width: 56px; height: 56px; border-radius: 14px; background: var(--raised); display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.item h3 { margin: 0 0 4px; font: 700 1.1rem var(--display); }
.item .q { margin: 10px 0 0; color: #cbd5e1; font-size: .93rem; }
.item .q b { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; margin-bottom: 2px; }
.item .acts { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.item .acts input { padding: 8px 10px; font-size: .88rem; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 40px #000a; z-index: 60; max-width: calc(100% - 32px); }

/* ---------- legal ---------- */
.legal { padding: 48px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font: 700 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display); letter-spacing: -.03em; margin: 0 0 10px; }
.legal .updated { color: var(--muted); margin: 0 0 36px; }
.legal h2 { font: 700 1.35rem var(--display); margin: 36px 0 8px; }
.legal p, .legal li { color: #cbd5e1; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--orange-2); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .sv-body { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .hero-bg { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .top nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; flex-direction: column; }
  .top nav.open { display: flex; }
  .menu-btn { display: block; }
  .top .right .btn-add { display: none; }
  .item { grid-template-columns: 44px 1fr; }
  .item img, .item .ph { width: 44px; height: 44px; }
  .item .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .sv-head .actions { margin-left: 0; width: 100%; }
  .stats { gap: 18px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
#me-slot { display: flex; align-items: center; gap: 10px; }
.card-banner.tint { background: radial-gradient(120% 140% at 0% 0%, hsl(var(--h) 55% 30%), transparent 60%), radial-gradient(120% 140% at 100% 100%, hsl(calc(var(--h) + 40) 45% 22%), var(--raised)); }
.card-icon.ph { background: hsl(var(--h, 20) 35% 22%); color: hsl(var(--h, 20) 70% 82%); }
@media (max-width: 760px) {
  .me span { display: none; }
  .me { padding: 3px; }
  .top .wrap { gap: 12px; }
  #me-slot .btn { padding: 8px 10px; }
}

/* ---------- dashboard ---------- */
.dash-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dash-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.dash-item:hover { border-color: var(--line-2); }
.dash-item img, .dash-item .ph { width: 52px; height: 52px; border-radius: 14px; flex: none; background: var(--raised); display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.dash-item b { display: block; font: 700 1.05rem var(--display); }
.dash-item small { color: var(--muted); }
.dash-item .btn { margin-left: auto; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--faint); vertical-align: middle; }
.status-dot.ok { background: var(--online); }
.status-dot.warn { background: var(--gold); }
.ds-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.ds-head img, .ds-head .ph { width: 72px; height: 72px; border-radius: 20px; background: var(--raised); display: grid; place-items: center; font: 800 1.4rem var(--display); color: var(--muted); }
.ds-head h1 { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 4px; }
.ds-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.ds-grid .form { padding: 0; max-width: none; }
.preview { position: sticky; top: 84px; }
.preview .lbl { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.dmsg { background: #313338; border-radius: 12px; padding: 16px; color: #dbdee1; font-size: .92rem; }
.dmsg .who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dmsg .who img { width: 36px; height: 36px; border-radius: 50%; }
.dmsg .who b { color: #468cf0; }
.dmsg .app { background: #5865f2; color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.dmsg h4 { font: 700 1.2rem var(--body); color: #f2f3f5; margin: 6px 0; }
.dmsg blockquote { margin: 0; border-left: 4px solid #4e5058; padding-left: 10px; white-space: pre-wrap; word-break: break-word; }
.dmsg .inv { margin-top: 10px; background: #2b2d31; border-radius: 8px; padding: 12px; }
.dmsg .inv span { display: block; color: #949ba4; font-size: .8rem; }
.dmsg .inv .go { margin-top: 10px; background: #248046; color: #fff; text-align: center; padding: 8px; border-radius: 4px; font-weight: 600; }
@media (max-width: 960px) { .ds-grid { grid-template-columns: 1fr; } .preview { position: static; } }
.dash-item > span:not(.btn) { min-width: 0; flex: 1; }
.dash-item b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-item .btn { flex: none; }

/* ---------- site background (fixed behind everything; works on phones too) ---------- */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 70% 0%, rgb(70 140 240 / .07), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgb(59 130 246 / .04), transparent 70%), var(--ink); }
.soon-body::before { background: var(--ink) url('/assets/bg.jpg') center / cover no-repeat; }
.dash-body::before { background: var(--ink); }
.hero::after { background: linear-gradient(180deg, rgb(5 8 15 / .55), rgb(5 8 15 / .35) 92%), radial-gradient(70% 90% at 15% 30%, rgb(5 8 15 / .2), rgb(5 8 15 / .5)); }

/* ---------- server page (listing) ---------- */
.sp { --sp-acc: var(--orange); width: min(1040px, calc(100% - 32px)); margin: 36px auto 80px; background: rgb(9 14 26 / .92); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px -40px #000; }
.sp-banner { height: clamp(150px, 24vw, 260px); background: var(--raised) center / cover; position: relative; }
.sp-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(9 14 26 / .95)); }
.sp-head { display: flex; align-items: flex-end; gap: 24px; padding: 0 44px; margin-top: -84px; position: relative; z-index: 1; }
.sp-icon { width: 148px; height: 148px; border-radius: 24px; background: #0b1020; border: 4px solid #05080f; overflow: hidden; flex: none; display: grid; place-items: center; box-shadow: 0 10px 30px -10px #000; }
.sp-icon img { width: 100%; height: 100%; object-fit: cover; }
.sp-icon span { font: 700 2.6rem var(--display); color: var(--muted); }
.sp-title { padding-bottom: 8px; min-width: 0; }
.sp-label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.sp-label b { color: var(--sp-acc); }
.sp-title h1 { font: 700 clamp(1.7rem, 3.6vw, 2.5rem)/1.1 var(--display); letter-spacing: -.02em; margin: 6px 0 0; display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 22px 44px 0; color: var(--muted); font-size: .95rem; }
.sp-body { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 44px; padding: 30px 44px 44px; }
.sp-tagline { font-size: 1.05rem; color: var(--text); margin: 0 0 6px; }
.sp-sec { font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin: 26px 0 14px; padding-bottom: 12px; }
.sp-sec:first-child { margin-top: 0; }
.sp-about { color: var(--text); line-height: 1.7; overflow-wrap: anywhere; }
.md p { margin: 0 0 4px; } .md ul { margin: 6px 0; padding-left: 20px; } .md blockquote { margin: 6px 0; padding-left: 12px; border-left: 3px solid var(--line-2); color: var(--muted); }
.md code { background: var(--raised); padding: 1px 6px; border-radius: 5px; font-size: .9em; } .md a { color: var(--orange-2); } .md h3, .md h4, .md h5 { margin: 10px 0 4px; font-size: 1.05rem; }
.sp-partners { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-partners a { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; background: var(--surface); }
.sp-partners img, .sp-partners span { width: 26px; height: 26px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; font-size: .65rem; color: var(--muted); }
.sp-rev-sum { display: flex; gap: 34px; align-items: center; padding: 18px 0 20px; border-top: 1px solid var(--line); }
.sp-rev-sum .big b { font: 700 2.5rem/1 var(--display); display: block; margin-bottom: 8px; }
.sp-rev-sum .dist { flex: 1; display: grid; gap: 7px; }
.sp-rev-sum .dist div { display: grid; grid-template-columns: 12px 1fr 18px; gap: 12px; align-items: center; color: var(--faint); font-size: .72rem; }
.sp-rev-sum .dist i { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.sp-rev-sum .dist em { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.sp-rev-sum .dist small:last-child { text-align: right; }
.stars { display: flex; gap: 2px; }
.star { width: 16px; height: 16px; fill: var(--line-2); stroke: none; }
.star.on { fill: var(--gold); }
.stars.sm .star { width: 13px; height: 13px; }
.rv { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.rv img, .rv .ph { width: 38px; height: 38px; border-radius: 50%; background: var(--raised); flex: none; display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.rv-b { flex: 1; min-width: 0; }
.rv-h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.rv-h b { font-size: .92rem; } .rv-h small { color: var(--faint); font-size: .78rem; }
.rv p { margin: 10px 0 0; color: var(--text); font-size: .92rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.rv-del { background: none; border: 0; color: var(--faint); font-size: .78rem; padding: 0; margin-top: 8px; cursor: pointer; }
.rv-del:hover { color: #f08b80; }
.rv-none { color: var(--faint); }
.rv-login { display: inline-block; color: var(--orange-2); font-size: .92rem; margin-bottom: 10px; }
.rv-ok { display: flex; align-items: center; gap: 8px; color: #7fd59b; font-size: .9rem; margin: 0 0 12px; }
.rv-ok svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.rv-form { display: grid; gap: 10px; margin-bottom: 14px; }
.rv-form .pick { display: flex; gap: 4px; }
.rv-form .pick button { background: none; border: 0; padding: 2px; cursor: pointer; }
.rv-form .pick .star { width: 24px; height: 24px; }
.rv-form .pick button.on .star { fill: var(--gold); }
.rv-form textarea { background: #05080f; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 80px; resize: vertical; color: var(--text); outline: 0; }
.rv-form .sp-btn { justify-self: start; }
.sp-owner { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sp-owner img, .sp-owner span { width: 50px; height: 50px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.sp-owner small { display: block; font-size: .68rem; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.sp-owner b { font-size: 1.05rem; }
.sp-members { padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
.sp-members b { display: block; font: 700 3rem/1 var(--display); letter-spacing: -.02em; }
.sp-members small { font-size: .68rem; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.sp-facts { margin: 0; }
.sp-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.sp-facts dt { color: var(--muted); } .sp-facts dd { margin: 0; font-weight: 600; text-align: right; }
.sp-actions { display: grid; gap: 10px; margin-top: 22px; }
.sp-actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 .9rem var(--body); text-decoration: none; cursor: pointer; }
.sp-btn:hover { background: var(--raised); }
.sp-btn.wide { padding: 13px; }
.sp-btn.pri { background: var(--sp-acc); border-color: var(--sp-acc); color: #fff; }
.sp-btn.pri:hover { filter: brightness(1.1); }
.sp-btn.bump { color: var(--gold); border-color: #6b5520; }
.sp-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  .sp { width: 100%; margin: 0 0 40px; border-radius: 0; border-left: 0; border-right: 0; }
  .sp-title h1 { font-size: 1.5rem; overflow-wrap: break-word; }
  .sp-head { padding: 0 18px; margin-top: -60px; gap: 14px; }
  .sp-icon { width: 96px; height: 96px; border-radius: 18px; }
  .sp-tags { padding: 18px 18px 0; }
  .sp-body { grid-template-columns: 1fr; gap: 10px; padding: 22px 18px 30px; }
  .sp-side { order: -1; }
  .sp-rev-sum { gap: 20px; }
}
/* promoted + rating on cards */
.tag.promo { color: #fff; background: var(--orange); border-color: var(--orange); }
.card .rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; }
.card .rating svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- coming soon ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soon-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.soon-body::before { filter: brightness(.75); }
.soon-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 32px clamp(16px, 2.6vw, 48px); }
.soon-logo { display: flex; align-items: center; gap: 12px; font: 700 1.15rem var(--display); text-decoration: none; letter-spacing: -.01em; }
.soon-logo img { border-radius: 8px; }
.soon-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(5 8 15 / .7); backdrop-filter: blur(8px); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.soon-btn:hover { border-color: var(--orange); }
.soon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.soon { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px; }
.cd { display: flex; gap: clamp(18px, 5vw, 64px); }
.cd div { display: flex; flex-direction: column; align-items: center; min-width: clamp(64px, 10vw, 140px); }
.cd b { font: 700 clamp(3.4rem, 11vw, 7.4rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cd span { color: var(--muted); font-size: clamp(.9rem, 1.5vw, 1.15rem); margin-top: 14px; }
.soon-msg { color: var(--muted); max-width: 440px; margin: 44px 0 0; font-size: 1.02rem; line-height: 1.6; }
.soon-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 28px clamp(16px, 2.6vw, 48px); font: .78rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--faint); }
.soon-foot nav { display: flex; align-items: center; gap: 14px; }
.soon-foot a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.soon-foot a:hover { color: var(--text); }
.soon-foot svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 520px) { .cd { gap: 10px; } .cd div { min-width: 0; flex: 1; } .soon-foot { justify-content: center; text-align: center; } .soon-btn { padding: 8px 12px; } }
/* admin login */
.al { width: min(380px, 100%); text-align: left; background: rgb(5 8 15 / .85); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 30px 80px -30px #000; }
.al-lock { width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 2; padding: 9px; box-sizing: content-box; border-radius: 12px; background: rgb(70 140 240 / .14); }
.al h1 { font: 700 1.5rem var(--display); margin: 16px 0 6px; }
.al p { color: var(--muted); margin: 0 0 22px; font-size: .93rem; }
.al label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.al input { width: 100%; background: #05080f; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; outline: 0; color: var(--text); font-size: 1rem; }
.al input:focus { border-color: var(--orange); }
.al #msg { color: #f6b3ab; font-size: .88rem; min-height: 1.4em; margin: 8px 0 6px; }
.al button { width: 100%; background: var(--orange); color: #fff; border: 0; border-radius: 10px; padding: 12px; font-weight: 600; cursor: pointer; }
.al button:hover { background: var(--orange-2); } .al button[disabled] { opacity: .6; }
.al-back { display: block; text-align: center; margin-top: 16px; color: var(--faint); font-size: .86rem; text-decoration: none; }
.al-back:hover { color: var(--text); }

/* ---------- owner reviews ---------- */
.tm-row { grid-auto-columns: minmax(300px, 380px); align-items: stretch; }
.tm { position: relative; margin: 0; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; scroll-snap-align: start; overflow: hidden; transition: border-color .15s, transform .15s; }
.tm::before { content: ''; position: absolute; inset: 0 0 auto; height: 120px; background: radial-gradient(120% 100% at 0 0, rgb(70 140 240 / .12), transparent 70%); pointer-events: none; }
.tm:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tm.pinned { border-color: rgb(70 140 240 / .45); }
.tm-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tm-mark { width: 30px; height: 30px; fill: var(--orange); opacity: .9; }
.tm blockquote { position: relative; margin: 0; color: #e2e8f0; font-size: 1rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tm.open blockquote { -webkit-line-clamp: unset; display: block; }
.tm-more { align-self: flex-start; background: none; border: 0; padding: 0; margin-top: -6px; color: var(--orange-2); font-weight: 600; font-size: .88rem; cursor: pointer; }
.tm figcaption { margin-top: auto; display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tm-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tm-who img, .tm-who .ph { width: 42px; height: 42px; border-radius: 50%; background: var(--raised); flex: none; display: grid; place-items: center; font-weight: 700; color: var(--muted); object-fit: cover; }
.tm-who span, .tm-srv span { display: flex; flex-direction: column; min-width: 0; }
.tm-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-who small, .tm-srv small { color: var(--muted); font-size: .82rem; }
.tm-srv { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); background: var(--raised); border: 1px solid var(--line); text-decoration: none; min-width: 0; }
a.tm-srv:hover { border-color: var(--line-2); }
.tm-srv img, .tm-srv .ph { width: 30px; height: 30px; border-radius: 9px; flex: none; background: var(--ink); display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--muted); }
.tm-srv b { font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-go { width: 16px; height: 16px; margin-left: auto; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.tm-sum { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); }
.tm-sum b { font: 700 1.25rem var(--display); color: var(--text); }
/* admin */
.star-pick { display: flex; gap: 4px; }
.star-pick button { background: none; border: 0; padding: 2px; cursor: pointer; border-radius: 6px; }
.star-pick .star { width: 28px; height: 28px; transition: transform .1s; }
.star-pick button:hover .star { transform: scale(1.12); }
.star-pick button.on .star { fill: var(--gold); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 18px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; }
.item.off { opacity: .55; }
.item .tm-mini { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.item .acts .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sec-label { font: 700 1.1rem var(--display); margin: 36px 0 14px; display: flex; align-items: center; gap: 10px; }
.sec-label small { color: var(--muted); font: 500 .9rem var(--body); }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } .item { grid-template-columns: 44px 1fr; } .item .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; } .item .acts > * { flex: 1 1 auto; } }
.item .acts.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 200px; }
.item .acts.cmp .btn { padding: 8px 10px; font-size: .85rem; }
.item .acts.cmp .btn:disabled { opacity: .4; cursor: default; }
@media (max-width: 640px) { .item .acts.cmp { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   Public layout: icon rail + slim top bar (matches the app)
   ========================================================= */
.rail-body { padding-left: 58px; }
.rail-body .top { display: none; }
.rail { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 58px; display: flex; flex-direction: column; align-items: center; background: #070b16; border-right: 1px solid var(--line); }
.rail-logo { height: 64px; display: grid; place-items: center; width: 100%; border-bottom: 1px solid var(--line); }
.rail-logo img { width: 30px; height: 30px; border-radius: 8px; }
.rail-nav { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 0; }
.rail-a { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.rail-a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-a:hover { color: var(--text); background: var(--raised); }
.rail-a[aria-current] { color: var(--orange); background: rgb(70 140 240 / .1); box-shadow: inset 0 0 0 1px rgb(70 140 240 / .25); }
.rail-a::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(-4px); white-space: pre; background: #111829; border: 1px solid var(--line-2); color: var(--text); font-size: .8rem; font-weight: 500; padding: 5px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; }
.rail-a:hover::after, .rail-a:focus-visible::after { opacity: 1; transform: translateY(-50%); }
.rail-sep { width: 22px; height: 1px; background: var(--line); margin: 8px 0; }
.rail-me { padding: 12px 0; border-top: 1px solid var(--line); width: 100%; display: grid; place-items: center; }
.rail-me .me { padding: 0; border: 0; background: none; position: relative; }
.rail-me .me img, .rail-me .me .ph { width: 34px; height: 34px; border-radius: 50%; }
.rail-me .me span { display: none; }
.rail-me .me::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); border: 2px solid #070b16; }
.rail-me .btn { display: none; }
.rail-me .rail-login { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--muted); }
.rail-me .rail-login svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rtop { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px 0 34px; background: rgb(5 8 15 / .8); backdrop-filter: blur(12px); border-bottom: 1px solid rgb(255 255 255 / .04); }
.rtop-brand { font: 600 .72rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.rtop-r { display: flex; align-items: center; gap: 10px; }
.rsearch { display: flex; align-items: center; gap: 40px; justify-content: space-between; min-width: 230px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: #090e1a; color: var(--muted); font-size: .85rem; cursor: pointer; }
.rsearch:hover { border-color: var(--line-2); color: var(--text); }
.rsearch kbd { font: 500 .7rem ui-monospace, monospace; color: var(--faint); letter-spacing: .04em; }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.rail-body footer { margin-left: 0; }
@media (max-width: 760px) {
  .rail-body { padding-left: 0; padding-bottom: 64px; }
  .rail { inset: auto 0 0 0; width: auto; height: 60px; flex-direction: row; border-right: 0; border-top: 1px solid var(--line); }
  .rail-logo, .rail-sep, .rail-a::after { display: none; }
  .rail-nav { flex-direction: row; justify-content: space-around; padding: 0 6px; gap: 0; }
  .rail-nav > :nth-child(n+8):not(.js-search) { display: none; }
  .rail-me { width: auto; border: 0; padding: 0 12px 0 4px; }
  .rail-me .me img { width: 30px; height: 30px; }
  .rtop { padding: 0 16px; }
  .rsearch { min-width: 0; gap: 10px; } .rsearch kbd { display: none; }
}
@media (max-width: 420px) { .rtop .js-invite { display: none; } }

/* ---------- search palette (Ctrl K) ---------- */
.cmdk { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .6); backdrop-filter: blur(4px); display: grid; place-items: start center; padding-top: 12vh; }
.cmdk[hidden] { display: none; }
.cmdk-box { width: min(560px, calc(100% - 32px)); background: #0b1020; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -20px #000; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.cmdk-in input { flex: 1; background: none; border: 0; outline: 0; padding: 16px 0; font-size: 1rem; }
.cmdk-list { max-height: 50vh; overflow: auto; padding: 8px; }
.cmdk-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.cmdk-list a[aria-selected="true"], .cmdk-list a:hover { background: var(--raised); }
.cmdk-list img, .cmdk-list .ph { width: 28px; height: 28px; border-radius: 8px; background: var(--raised); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--muted); flex: none; }
.cmdk-list small { margin-left: auto; color: var(--faint); font-size: .78rem; }
.cmdk-h { padding: 8px 12px 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* ---------- landing hero ---------- */
.lp { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; overflow: hidden; }
.lp-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 45% at 62% 45%, rgb(70 140 240 / .09), transparent 70%), radial-gradient(35% 40% at 30% 60%, rgb(18 52 120 / .06), transparent 70%); }
.lp-in { position: relative; width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 56px; }
.lp-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lp h1 { margin: 0; font: 400 clamp(2.2rem, 4.4vw, 3.7rem)/1.08 var(--brand); letter-spacing: -.01em; }
.lp h1 .acc { background: linear-gradient(90deg, var(--orange), var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-left p { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin: 26px 0 0; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-cta .btn-ghost { background: #090e1a; border: 1px solid var(--line-2); }
.lp-count { margin-top: 56px; }
.lp-count h4 { margin: 0 0 12px; font: 600 .82rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cd-row { display: flex; align-items: flex-start; gap: 14px; }
.cd-row > div { display: grid; gap: 6px; }
.cd-row b { font: 700 clamp(2.4rem, 4vw, 3.3rem)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cd-row b.acc { color: var(--orange); }
.cd-row span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cd-row i { font-style: normal; color: var(--faint); font: 600 1.4rem var(--display); padding-top: 12px; }
.lp-live { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgb(9 14 26 / .7); max-width: 380px; }
.lp-live .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 5px rgb(59 165 93 / .18); flex: none; }
.lp-live b { display: block; }
.lp-live span { color: var(--muted); font-size: .88rem; }
.lp-strip { margin-top: 96px; }
.lp-strip-h { display: flex; justify-content: space-between; gap: 12px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 40px; width: max-content; animation: mq 40s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; max-width: 240px; }
.mq-item span { overflow: hidden; text-overflow: ellipsis; }
.mq-item img, .mq-item .ph { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--raised); display: grid; place-items: center; font-size: .6rem; font-weight: 700; color: var(--muted); }
.mq-item:hover { color: var(--orange-2); }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }
.lp-stats { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: rgb(9 14 26 / .6); padding: 22px 0; }
.lp-stats > div { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 0 10px; border-left: 1px solid var(--line); }
.lp-stats > div:first-child { border-left: 0; }
.lp-stats b { font: 700 1.7rem var(--display); letter-spacing: -.02em; }
.lp-stats b.acc { color: var(--orange); }
.lp-stats span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
@media (max-width: 900px) {
  .lp-top { grid-template-columns: 1fr; gap: 36px; }
  .lp-count { margin-top: 36px; }
  .lp-strip { margin-top: 56px; }
  .lp-stats { grid-template-columns: 1fr 1fr; padding: 0; }
  .lp-stats > div { padding: 18px 10px; border-left: 0; border-top: 1px solid var(--line); }
  .lp-stats > div:nth-child(-n+2) { border-top: 0; }
  .lp-stats > div:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 520px) { .lp-in { width: calc(100% - 32px); padding-top: 40px; } .cd-row { gap: 8px; } .cd-row i { display: none; } .lp-strip-h span:last-child { display: none; } }

/* ---------- simple pages (leaderboard, status, changelog, docs) ---------- */
.pg { padding-bottom: 72px; }
.pg-head { padding: 40px max(24px, calc((100% - 1160px) / 2)) 26px; border-bottom: 1px solid var(--line); }
.pg-head h1 { margin: 0; font: 400 clamp(1.8rem, 3vw, 2.3rem)/1.15 var(--brand); }
.pg-head p { margin: 8px 0 0; color: var(--muted); }
.pg-body { width: min(1160px, calc(100% - 48px)); margin: 30px auto 0; }
.btn-xs { padding: 6px 14px; font-size: .84rem; border-radius: 999px; }
.lb-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: #090e1a; border: 1px solid var(--line); border-radius: 12px; }
.seg button { padding: 7px 16px; border-radius: 9px; border: 0; background: none; color: var(--muted); font-weight: 500; font-size: .9rem; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--raised); color: var(--text); font-weight: 600; }
.lb-search { display: flex; align-items: center; gap: 8px; min-width: min(320px, 100%); padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #090e1a; color: var(--faint); }
.lb-search svg { width: 16px; height: 16px; }
.lb-search input { flex: 1; background: none; border: 0; outline: 0; padding: 9px 0; font-size: .9rem; min-width: 0; }
.chips2 { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.chips2 button { padding: 6px 14px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--muted); font-size: .88rem; font-weight: 500; cursor: pointer; }
.chips2 button:hover { color: var(--text); }
.chips2 button[aria-pressed="true"] { border-color: var(--line-2); background: var(--raised); color: var(--text); font-weight: 600; }
.lbt { border: 1px solid var(--line); border-radius: 16px; background: rgb(9 14 26 / .7); overflow: hidden; }
.lbt-r { display: grid; grid-template-columns: 70px minmax(0, 1fr) 110px 130px 130px 90px; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); }
.lbt-h { border-top: 0; padding: 14px 20px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lbt-r .r { text-align: right; } .lbt-r .acc { color: var(--orange); font-weight: 600; }
.lbt-r .rk { font-weight: 700; color: var(--faint); } .lbt-r .rk.podium { color: var(--orange-2); }
.lbt-srv { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lbt-srv img, .lbt-srv .ph { width: 32px; height: 32px; border-radius: 9px; flex: none; background: var(--raised); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--muted); }
.lbt-srv b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbt-srv .cat { flex: none; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
@media (max-width: 760px) {
  .lbt-r { grid-template-columns: 44px minmax(0, 1fr) 80px 64px; padding: 12px 14px; }
  .lbt-r .hide-s, .lbt-r > :nth-child(3), .lbt-srv .cat { display: none; }
}
/* status */
.st-hero { text-align: center; padding: 56px 24px 10px; }
.st-pill { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.st-pill { color: var(--text); }
.st-pill b { font-weight: 600; }
.st-pill.ok { --c: var(--online); } .st-pill.warn { --c: var(--gold); } .st-pill.bad { --c: #ed4245; }
.st-pill { position: relative; padding-left: 0; }
.st-pill::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 25%, transparent); }
.st-hero h1 { margin: 14px 0 8px; font: 400 clamp(1.8rem, 4vw, 2.6rem) var(--brand); }
.st-hero p { margin: 0; color: var(--muted); }
.st-hero .st-note { margin-top: 10px; color: var(--text); }
.st-card { margin-top: 34px; border: 1px solid var(--line); border-radius: 18px; background: rgb(9 14 26 / .7); overflow: hidden; max-width: 980px; margin-inline: auto; }
.st-row + .st-row { border-top: 1px solid var(--line); }
.st-main { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--text); }
.st-main[disabled] { cursor: default; }
.st-main > svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.7; flex: none; }
.st-main > span { display: grid; min-width: 0; }
.st-main b { font-weight: 600; font-size: 1.05rem; }
.st-main small { color: var(--muted); }
.st-state { margin-left: auto; font-style: normal; font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.st-state::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.st-state.ok { color: var(--online); } .st-state.warn { color: var(--gold); } .st-state.bad { color: #ed4245; } .st-state.muted { color: var(--faint); }
.st-bars { padding: 0 26px 22px; display: none; }
.st-row.open .st-bars { display: block; }
.bars { display: flex; gap: 3px; height: 38px; }
.bars i { flex: 1; border-radius: 3px; background: var(--raised); }
.bars i.ok { background: var(--online); } .bars i.warn { background: var(--gold); } .bars i.bad { background: #ed4245; }
.st-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: .8rem; margin-top: 8px; }
.st-foot { text-align: center; color: var(--faint); margin-top: 30px; font-size: .9rem; }
.st-foot b { color: var(--text); }
@media (max-width: 600px) { .st-main { padding: 18px; } .st-bars { padding: 0 18px 18px; } .bars { gap: 2px; } }
/* changelog */
.cl { max-width: 820px; }
.cl-item { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.cl-item:first-child { border-top: 0; padding-top: 0; }
.cl-date { color: var(--muted); font-size: .9rem; padding-top: 4px; }
.cl-body h2 { margin: 0 0 10px; font: 600 1.2rem var(--display); }
.cl-body ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
@media (max-width: 600px) { .cl-item { grid-template-columns: 1fr; gap: 6px; } }
/* docs */
.doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; }
.doc-toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.doc-toc a { padding: 7px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.doc-toc a:hover { color: var(--text); background: var(--raised); }
.doc-main { max-width: 760px; }
.doc-sec { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.doc-sec h2 { margin: 0 0 12px; font: 600 1.35rem var(--display); }
.doc-sec p, .doc-sec li { color: #cbd5e1; line-height: 1.7; }
.doc-sec code { background: var(--raised); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.doc-sec a { color: var(--orange-2); }
.doc-t { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.doc-t th, .doc-t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-t th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 800px) { .doc { grid-template-columns: 1fr; gap: 10px; } .doc-toc { position: static; display: flex; flex-wrap: wrap; } }
