:root{
  --bg:#000;
  --card:#0a0a0a;
  --card2:#0d0d0d;
  --stroke: rgba(255,255,255,.06);
  --stroke2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.64);
  --muted2: rgba(255,255,255,.42);
  --glow: rgba(255,255,255,.55);
  --glowB: rgba(120,170,255,.55);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.bg{
  position:fixed; inset:0;
  background: url("./bg.gif") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
}
.shade{
  position:fixed; inset:0;
  background: radial-gradient(900px 520px at 50% 35%, rgba(0,0,0,.10), rgba(0,0,0,.78) 65%, rgba(0,0,0,.92) 100%);
}

.wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding: 48px 16px;
  gap: 14px;
}

.card{
  width: min(540px, 92vw);
  background: linear-gradient(180deg, rgba(20,20,20,.60), rgba(8,8,8,.65));
  border: 1px solid var(--stroke);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,.70);
  position:relative;
  overflow:hidden;
}
.card::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset;
}

.card-top{ padding: 14px 14px 12px; }
.cardTopRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.pfp{
  width:62px; height:62px;
  border-radius: 8px;
  border: 1px solid var(--stroke2);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  position:relative;
}
.pfp img{width:100%;height:100%;object-fit:cover;display:block}
.pfpFallback{
  position:absolute; inset:0;
  display:grid; place-items:center;
  font-weight:900;
  font-size: 26px;
  color: rgba(255,255,255,.85);
  opacity:.9;
}
.pfp.noimg img{display:none}

.topRight{
  display:flex;
  gap: 10px;
  align-items:center;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  margin-top: 2px;
}
.stat{display:flex;gap:6px;align-items:center}
.statIcon{opacity:.85}

.identity{ padding: 10px 2px 8px; }
.nameRow{
  display:flex;
  align-items:center;
  gap: 10px;
}
.name{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.6px;
  text-shadow: 0 0 18px rgba(255,255,255,.18);
}
.miniBadges{display:flex;gap:6px;opacity:.9}
.mini{
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
}
.sub{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.70);
}

.iconRow{
  display:flex;
  justify-content:center;
  gap: 18px;
  padding: 10px 0 2px;
}
.iconBtn{
  width:34px; height:34px;
  display:grid; place-items:center;
  text-decoration:none;
  color: white;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.35));
  transition: transform .12s ease, filter .12s ease;
}
.iconBtn:hover{
  transform: translateY(-1px);
  filter: drop-shadow(0 0 16px rgba(255,255,255,.65));
}
.iconBtn svg{width:28px;height:28px}

/* Discord card */
.card-discord{
  padding: 12px;
  display:grid;
  grid-template-columns: 44px 1fr 54px;
  gap: 10px;
  align-items:center;
  background: linear-gradient(180deg, rgba(18,18,18,.65), rgba(8,8,8,.70));
}
.dcLogo{
  width:44px;height:44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display:grid;
  place-items:center;
}
.dcMark{
  width:18px;height:18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.70);
  box-shadow: 0 0 18px rgba(255,255,255,.20);
  opacity:.9;
}
.dcTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.dcHandle{font-weight:900}
.dcTag{color: rgba(255,255,255,.55); font-size: 12px; margin-left:8px}
.dcPill{
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.75);
  white-space:nowrap;
}
.dcLine{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.68);
}
.dcNow{
  margin-top: 10px;
  display:flex;
  gap: 10px;
  align-items:center;
}
.dcArt{
  width:40px;height:40px;border-radius: 10px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.dcArt img{width:100%;height:100%;object-fit:cover;display:block}
.dcNowTitle{font-weight:900;font-size:12px;color:rgba(255,255,255,.88)}
.dcNowMeta{font-size:11px;color:rgba(255,255,255,.55);margin-top:2px;max-width: 320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.dcAvatar{
  width:54px;height:54px;
  border-radius: 10px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.dcAvatar img{width:100%;height:100%;object-fit:cover;display:block}

/* Music card */
.card-music{
  padding: 12px;
  display:grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items:center;
  background: linear-gradient(180deg, rgba(18,18,18,.62), rgba(8,8,8,.72));
}
.mArt{
  width:54px;height:54px;
  border-radius: 10px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.mArt img{width:100%;height:100%;object-fit:cover;display:block}

.mTitle{font-weight:900}
.mSub{margin-top:2px;color:rgba(255,255,255,.55);font-size:12px}

.bar{
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.barFill{
  height:100%;
  width:0%;
  background: rgba(255,255,255,.78);
  box-shadow: 0 0 18px rgba(255,255,255,.25);
}

.mRow{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.time{color:rgba(255,255,255,.55);font-size:12px}
.sep{opacity:.6;margin:0 6px}
.controls{display:flex;gap:8px}
.btn{
  width:44px;height:34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.06)}
.btn:active{transform: translateY(0px)}
