:root {
  --glass: rgba(15, 15, 18, 0.55);
  --glass-brd: rgba(255, 255, 255, 0.10);
  --glow: #ececec;
  --text: #fafafa;
  --muted: rgba(255, 255, 255, 0.62);
  --radius: 22px;
}

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

[hidden] { display: none !important; }

html, body {
  height: 100%;
  font-family: "Onest", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #050506;
  overflow: hidden;
}

html, body, * { cursor: none !important; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #f4f4f5;
  transition: width .18s, height .18s, background .18s, opacity .2s;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(244,244,245,0.6);
  transition: width .22s, height .22s, border-color .22s, background .22s, opacity .2s;
}
.cursor-ring.hover {
  width: 54px; height: 54px;
  background: rgba(244,244,245,0.10);
  border-color: rgba(244,244,245,0.85);
}
.cursor-ring.down { width: 26px; height: 26px; }
.cursor-hidden .cursor-dot, .cursor-hidden .cursor-ring { opacity: 0; }
@media (hover: none) {
  html, body, * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
}

.bg-video, .bg-fallback, .bg-overlay {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
}
.bg-fallback {
  z-index: 0;
  background:
    radial-gradient(120% 90% at 70% 20%, #1a1420 0%, #0a0a0c 55%, #050506 100%);
}
.bg-video { object-fit: cover; z-index: 1; }
.bg-overlay {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,5,6,0.30) 0%, rgba(5,5,6,0.50) 60%, rgba(5,5,6,0.82) 100%),
    radial-gradient(80% 60% at 50% 40%, transparent 0%, rgba(5,5,6,0.35) 100%);
}

.glow-orb {
  position: fixed; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; pointer-events: none; z-index: 3;
  animation: float 14s ease-in-out infinite;
}
.glow-orb--a { width: 420px; height: 420px; top: 8%; left: 12%; background: #6a6a72; }
.glow-orb--b { width: 360px; height: 360px; bottom: 6%; right: 10%; background: #3a3a40; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(20px,-30px,0) scale(1.08); }
}

.stage {
  position: relative; z-index: 4;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  padding: 32px 18px;
}

.card {
  width: 100%; max-width: 560px;
  position: relative;
  background: rgba(14,14,16,0.62);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.5),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(16px);
  animation: rise 0.75s cubic-bezier(.2,.8,.2,1) forwards;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 45%, rgba(255,255,255,0.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.10);
}
.card--profile   { animation-delay: .05s; padding: 30px 32px 32px; text-align: center; }
.card--presence  { animation-delay: .15s; padding: 15px 20px; display: flex; align-items: center; gap: 15px; }
.card--activity  { animation-delay: .22s; padding: 15px 20px; display: flex; align-items: center; gap: 16px; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.avatar-wrap { position: relative; width: 104px; height: 104px; margin: 0 auto 18px; }
.avatar {
  width: 104px; height: 104px; border-radius: 30px;
  object-fit: cover; position: relative; z-index: 2;
  border: 3px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.avatar-decoration {
  position: absolute; inset: -13%; z-index: 4;
  width: 126%; height: 126%; pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.avatar-ring {
  position: absolute; inset: -6px; border-radius: 36px;
  background: conic-gradient(from 0deg, rgba(255,255,255,0.5), rgba(120,120,120,0.15), rgba(255,255,255,0.5));
  filter: blur(11px); opacity: 0.6; z-index: 1;
  animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-dot {
  position: absolute; right: 3px; bottom: 3px; z-index: 5;
  width: 24px; height: 24px; border-radius: 50%;
  background: #747f8d; border: 4px solid rgba(12,12,14,0.95);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.04);
  transition: background .3s;
}
.status-dot.online  { background: #23a55a; box-shadow: 0 0 10px rgba(35,165,90,0.7); }
.status-dot.idle    { background: #f0b232; box-shadow: 0 0 10px rgba(240,178,50,0.7); }
.status-dot.dnd     { background: #f23f43; box-shadow: 0 0 10px rgba(242,63,67,0.7); }
.status-dot.offline { background: #80848e; }

.name {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap;
}
.badges { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.badges .badge-chip {
  display: inline-grid; place-items: center;
  background: none; border: none; box-shadow: none;
  transition: transform .2s;
}
.badges .badge-chip:hover { transform: translateY(-2px) scale(1.08); }
.badges .badge-chip svg { width: 18px; height: 18px; }
.badges .badge-chip .badge-img { width: 20px; height: 20px; object-fit: contain; }

.bio { color: var(--muted); font-size: 15px; margin-top: 6px; }

.meta {
  margin-top: 18px; display: flex; justify-content: center; align-items: center;
  gap: 14px; font-size: 14px; color: var(--muted);
}
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-icon { width: 17px; height: 17px; }
.meta-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.18); }

.socials {
  margin-top: 22px; display: flex; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.socials a {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--text); text-decoration: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform .22s, background .22s, box-shadow .22s;
}
.socials a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}
.socials a svg { width: 21px; height: 21px; }

.dc-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #1c1c20; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.dc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dc-top { display: flex; align-items: center; gap: 7px; }
.dc-name { font-weight: 600; font-size: 15.5px; }
.dc-badge { width: 20px; height: 20px; color: #0095f6; }
.dc-badge svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 3px rgba(0,149,246,0.5)); }
.dc-status {
  font-size: 13px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.act-art {
  width: 58px; height: 58px; border-radius: 14px; object-fit: cover; flex: none;
  border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.act-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-name   { font-weight: 600; font-size: 14px; }
.act-detail { font-size: 12.5px; color: var(--muted); }
.act-state  { font-size: 12.5px; color: var(--muted); }
.act-elapsed{ font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 3px; font-variant-numeric: tabular-nums; }

.card--music {
  animation-delay: .29s; padding: 16px 20px;
  display: flex; align-items: center; gap: 18px;
}
.mu-art-wrap { position: relative; width: 64px; height: 64px; flex: none; }
.mu-art {
  width: 64px; height: 64px; border-radius: 16px; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.mu-note {
  position: absolute; right: -7px; bottom: -7px; width: 24px; height: 24px;
  padding: 3px; border-radius: 50%; color: #fafafa;
  background: #1a1a1e;
  border: 2px solid rgba(12,12,14,0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.mu-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mu-line { display: flex; }
.mu-title  { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-artist { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-progress { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.mu-time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; width: 30px; }
.mu-time:last-child { text-align: right; }
.mu-bar {
  flex: 1; height: 6px; border-radius: 5px; background: rgba(255,255,255,0.14);
  overflow: hidden; cursor: pointer; position: relative;
}
.mu-bar:hover { background: rgba(255,255,255,0.22); }
.mu-fill {
  height: 100%; width: 0; border-radius: 5px;
  background: #d4d4d8;
  transition: width .1s linear;
}
.mu-controls {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mu-btn {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05); color: var(--muted);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.mu-btn:hover {
  background: rgba(255,255,255,0.13); color: #fff;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mu-btn:active { transform: translateY(0) scale(0.95); }
.mu-btn svg { width: 16px; height: 16px; }
.mu-btn--main {
  background: #2a2a30;
  color: #fafafa; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.mu-btn--main:hover {
  background: #3a3a42;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5); transform: translateY(-2px);
}
.mu-btn--main svg { width: 20px; height: 20px; }
.mu-ic-play { display: none; }
.card--music.paused .mu-ic-play { display: block; }
.card--music.paused .mu-ic-pause { display: none; }

.mixer {
  position: fixed; top: 20px; left: 20px; z-index: 10;
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 14px; border-radius: 16px;
  background: rgba(18,18,22,0.55); border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 12px 34px rgba(0,0,0,0.4);
  opacity: .82; transition: opacity .25s;
}
.mixer:hover { opacity: 1; }
.mixer-row { display: flex; align-items: center; gap: 10px; }
.mixer-icon {
  width: 30px; height: 30px; flex: none; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05); color: var(--text); transition: background .2s;
  position: relative;
}
.mixer-icon:hover { background: rgba(255,255,255,0.14); }
.mixer-icon svg { width: 16px; height: 16px; }
.mixer-icon.muted { color: #f23f43; }
.mixer-icon.muted::after {
  content: ""; position: absolute; width: 18px; height: 2px;
  background: #f23f43; transform: rotate(-45deg); border-radius: 2px;
}
.mixer-label { font-size: 11.5px; width: 42px; color: var(--muted); font-weight: 500; }
.mixer-bar {
  width: 118px; height: 6px; border-radius: 4px;
  background: rgba(255,255,255,0.16); cursor: pointer; position: relative;
}
.mixer-bar:hover { background: rgba(255,255,255,0.24); }
.mixer-fill {
  height: 100%; width: 0; border-radius: 4px;
  background: #d4d4d8; transition: width .1s;
}
.mixer-pct { font-size: 11px; width: 32px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 520px) {
  .card--profile { padding: 24px 18px 26px; }
  .name { font-size: 23px; }
  .avatar, .avatar-wrap { width: 88px; height: 88px; }
  .avatar { border-radius: 26px; }
  .mixer { padding: 10px; top: 12px; left: 12px; }
  .mixer-bar { width: 84px; }
  .mu-controls { gap: 8px; }
  .mu-btn--main { width: 40px; height: 40px; }
}
