:root {
  --bg: #0a0810;
  --bg-2: #0d0a15;
  --surface: #16111f;
  --surface-2: #1e1730;
  --hair: rgba(196, 160, 255, 0.10);
  --hair-strong: rgba(196, 160, 255, 0.22);

  --text: #f3eefb;
  --text-dim: #a99fc0;
  --text-mute: #6f6785;

  --violet: #a855f7;
  --magenta: #d946ef;
  --neon: #c084fc;

  --online: #3ba55d;

  --radius: 18px;
  --maxw: 940px;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 641px) and (min-height: 560px) {
  body:not(.profile-body) { height: 100dvh; overflow: hidden; }
}
.profile-body { padding: 24px 0; }

.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); }
.orb-a {
  width: 640px; height: 640px; top: -260px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.30), transparent 70%);
}
.orb-b {
  width: 460px; height: 460px; bottom: -220px; right: -120px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.20), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-head {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(12px, 2vh, 20px) clamp(18px, 5vw, 44px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  font-family: var(--display);
  font-weight: 800; font-size: 21px;
  color: #fff;
  background: linear-gradient(150deg, var(--violet), var(--magenta));
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255,255,255,0.35);
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }

.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 8px rgba(59,165,93,0.8);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59,165,93,0.5), 0 0 8px rgba(59,165,93,0.8); }
  70% { box-shadow: 0 0 0 7px rgba(59,165,93,0), 0 0 8px rgba(59,165,93,0.8); }
  100% { box-shadow: 0 0 0 0 rgba(59,165,93,0), 0 0 8px rgba(59,165,93,0.8); }
}
.live-pill.stale .live-dot { background: var(--text-mute); box-shadow: none; animation: none; }

.wrap {
  position: relative; z-index: 1; flex: 1; width: 100%;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(6px, 1.4vh, 20px) clamp(18px, 5vw, 28px);
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(12px, 2.6vh, 26px);
}

.hero { text-align: center; }
.hero-logo {
  width: clamp(82px, 12vh, 148px);
  height: auto; margin: 0 auto clamp(8px, 1.4vh, 16px);
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(168, 85, 247, 0.55));
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 5.2vh, 48px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.03;
  text-wrap: balance; color: var(--text);
}
.hero h1 .accent {
  background: linear-gradient(110deg, var(--violet), var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: clamp(8px, 1.4vh, 14px) auto 0; max-width: 48ch;
  color: var(--text-dim); font-size: clamp(14px, 1.9vh, 17px); line-height: 1.45;
}
.hero-credits {
  margin: clamp(8px, 1.4vh, 14px) 0 0;
  font-size: 14px; font-weight: 600; color: var(--text-mute);
}
.hero-credits a {
  color: var(--neon); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--neon) 40%, transparent);
  transition: color .18s, border-color .18s;
}
.hero-credits a:hover { color: #fff; border-color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  position: relative;
  display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 22px);
  padding: clamp(18px, 3vh, 26px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(168,85,247,0.05), transparent 42%), var(--surface);
  border: 1px solid var(--hair);
  text-decoration: none; color: inherit;
  overflow: hidden; isolation: isolate;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), border-color .28s, box-shadow .28s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent, var(--violet)) 55%, var(--hair-strong));
  box-shadow: 0 18px 50px -20px color-mix(in srgb, var(--accent, var(--violet)) 55%, transparent);
}
.card:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }
.card-glow {
  position: absolute; z-index: -1; top: -50%; left: 50%;
  width: 320px; height: 320px; transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent, var(--violet)) 0%, transparent 68%);
  opacity: 0.16; transition: opacity .28s; pointer-events: none;
}
.card:hover .card-glow { opacity: 0.34; }

.card-top { display: flex; align-items: center; gap: 15px; }
.srv-icon {
  flex: 0 0 auto;
  width: 62px; height: 62px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent, var(--violet)) 40%, #000), #0b0812);
  border: 1px solid var(--hair-strong);
  overflow: hidden;
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent, var(--violet)) 35%, transparent);
}
.srv-icon img { width: 100%; height: 100%; object-fit: cover; }
.srv-initial { font-family: var(--display); font-weight: 800; font-size: 26px; color: #fff; }
.srv-name { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.srv-tag { margin: 5px 0 0; font-size: 14px; color: var(--text-dim); line-height: 1.45; }

.stats { display: flex; gap: 12px; }
.stat {
  flex: 1; padding: 13px 15px;
  border-radius: 13px;
  background: rgba(0,0,0,0.30);
  border: 1px solid var(--hair);
}
.stat-val { display: block; font-size: 25px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-mute);
}
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--online); box-shadow: 0 0 6px rgba(59,165,93,0.8); }
.stat-online .stat-val { color: #57c07e; }

.avatars { display: flex; min-height: 34px; align-items: center; }
.avatars img {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--surface); margin-left: -10px; background: var(--surface-2);
}
.avatars img:first-child { margin-left: 0; }
.avatars .more {
  margin-left: -10px; height: 34px; min-width: 34px; padding: 0 9px;
  border-radius: 999px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text-dim); background: var(--surface-2); border: 2px solid var(--surface);
}
.avatars-empty { font-size: 13px; color: var(--text-mute); }

.cta { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.cta-btn {
  display: block; text-align: center;
  padding: 13px 18px; border-radius: 12px;
  font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--accent, var(--violet)), color-mix(in srgb, var(--accent, var(--violet)) 55%, #000));
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent, var(--violet)) 45%, transparent);
  transition: filter .2s, transform .2s;
}
.card:hover .cta-btn { filter: brightness(1.12); }
.cta-note { text-align: center; font-size: 12px; color: var(--text-mute); min-height: 1em; }

.card.is-down .cta-btn, .card.is-soon .cta-btn {
  color: var(--text-dim); background: var(--surface-2); box-shadow: none; cursor: default;
}
.card.is-soon { opacity: 0.82; }

.skeleton {
  min-height: 300px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border: 1px solid var(--hair);
}
@keyframes shimmer { to { background-position: -200% 0; } }

.site-foot {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  padding: clamp(12px, 2vh, 20px) 18px clamp(14px, 2.4vh, 22px);
  font-size: 13px; color: var(--text-mute);
  border-top: 1px solid var(--hair);
}
.site-foot a { color: var(--text-dim); text-decoration: none; }
.site-foot a:hover { color: var(--neon); }
.dot-sep { opacity: 0.4; }
.muted { color: var(--text-mute); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

.wrap-profile { align-items: center; justify-content: center; }
.pcard {
  width: 100%; max-width: 430px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--hair);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent, var(--violet)) 55%, transparent);
}
.pcard-banner {
  height: 118px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--violet)) 70%, #000), #140f22);
  background-size: cover; background-position: center;
  position: relative;
}
.pcard-banner.has-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(22,17,31,0.7));
}
.pcard-body {
  position: relative;
  padding: 0 24px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.pavatar-wrap { margin-top: -56px; margin-bottom: 12px; border-radius: 50%; padding: 4px; }
.pavatar-wrap:not(.has-deco) {
  background: linear-gradient(135deg, var(--accent, var(--violet)), var(--magenta));
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent, var(--violet)) 55%, transparent);
}
.pavatar-stack { position: relative; width: 104px; height: 104px; }
.pavatar {
  display: block; width: 104px; height: 104px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--surface); background: var(--surface-2);
}
.pavatar-wrap.has-deco .pavatar { border: none; }
.pdeco {
  position: absolute; width: 124%; height: 124%;
  top: -12%; left: -12%;
  pointer-events: none; z-index: 2;
}

.pident-wrap { position: relative; border-radius: 14px; padding: 8px 16px; }
.pident-wrap.has-np {
  padding: 12px 18px;
  background-image: var(--np);
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px var(--hair);
}
.pident-wrap.has-np::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(16,12,22,0.35), rgba(16,12,22,0.72));
}
.pident { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pname {
  margin: 0;
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-family: var(--display);
  font-size: clamp(24px, 4vh, 30px); font-weight: 800; letter-spacing: -0.02em;
}
.ptag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px 4px 6px; border-radius: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--text); text-decoration: none;
  background: color-mix(in srgb, var(--accent, var(--violet)) 22%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent, var(--violet)) 40%, transparent);
}
.ptag img { width: 18px; height: 18px; border-radius: 4px; }
.pmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pusername { color: var(--text-dim); font-size: 15px; }
.prole {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  color: color-mix(in srgb, var(--accent, var(--violet)) 25%, #fff);
  background: color-mix(in srgb, var(--accent, var(--violet)) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--violet)) 40%, transparent);
}

.pcard { position: relative; }
.peffect-wrap {
  position: absolute; inset: 0; z-index: 5;
  pointer-events: none; overflow: hidden; border-radius: 22px;
}
.peffect-wrap:empty { display: none; }
.peffect-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}

.pbadges {
  display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
  margin-top: 14px; padding: 7px 12px;
  border-radius: 11px;
  background: rgba(0,0,0,0.28); border: 1px solid var(--hair);
}
.pbadge.icon-only { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; background: none; border: none; }
.pbadge.icon-only img { width: 24px; height: 24px; display: block; object-fit: contain; }
.pbadge.icon-only img[src$="orbs.svg"] { width: 21px; height: 21px; }
.pbadge.icon-only.has-svg { color: var(--brand, var(--neon)); }
.pbadge:not(.icon-only) {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px;
  color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--hair);
}
.pbadge-emoji { font-size: 15px; line-height: 1; }

.pinfo {
  display: flex; width: 100%; margin-top: 18px;
  border-radius: 13px; overflow: hidden;
  border: 1px solid var(--hair); background: rgba(0,0,0,0.25);
}
.pstat { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; }
.pstat + .pstat { border-left: 1px solid var(--hair); }
.pstat-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-mute); }
.pstat-val { font-size: 15px; font-weight: 700; }

.pbio {
  margin: 18px 0 0; max-width: 34ch;
  color: var(--text-dim); font-size: 14.5px; line-height: 1.5;
}
.pbio:empty { display: none; }

.proles-block { width: 100%; margin-top: 20px; text-align: left; }
.psection {
  display: block; margin-bottom: 9px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-mute);
}
.proles { display: flex; flex-wrap: wrap; gap: 7px; }
.prole-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--hair);
}
.prole-chip.has-color { border-color: color-mix(in srgb, var(--rc) 55%, transparent); }
.prole-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rc, var(--text-mute)); }

.psocials {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  width: 100%; margin-top: 20px;
}
.psocials:empty { display: none; }
.psocial {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 14px; border-radius: 12px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--hair);
  transition: transform .18s, border-color .18s, color .18s, box-shadow .18s;
}
.psocial:hover {
  transform: translateY(-2px); color: #fff;
  border-color: color-mix(in srgb, var(--brand, var(--violet)) 60%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--brand, var(--violet)) 40%, transparent);
}
.psocial svg { color: var(--brand, var(--violet)); flex: 0 0 auto; }
.psocial:hover svg { color: #fff; }

.pservers-btn {
  margin-top: 22px;
  color: var(--text-dim); text-decoration: none;
  font-size: 14px; font-weight: 600; transition: color .18s;
}
.pservers-btn:hover { color: var(--neon); }

.pnotfound { text-align: center; color: var(--text-mute); font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
