/* ===========================================================
   public profile page — minimal, image-first
   =========================================================== */
body.profile-body { background: #080808; min-height: 100vh; }

.profile-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 20px 104px;
}

/* first paint: a card-shaped placeholder so the stage is never an empty black page */
.vc-boot {
  width: min(560px, calc(100vw - 40px));
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 34px 26px 30px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -40px #000;
}
.vc-boot-ava {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.vc-boot-lines { width: 100%; display: grid; justify-items: center; gap: 10px; }
.vc-boot-lines i {
  height: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.vc-boot-lines i:nth-child(1) { width: 46%; }
.vc-boot-lines i:nth-child(2) { width: 28%; }
.vc-boot-lines i:nth-child(3) { width: 64%; }
.vc-boot > * { animation: vc-boot-pulse 1.5s ease-in-out infinite; }
.vc-boot > *:nth-child(2) { animation-delay: .18s; }
@keyframes vc-boot-pulse { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .vc-boot > * { animation: none; } }

/* background ------------------------------------------------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  filter: blur(var(--bg-blur, 2px)) saturate(1.02);
}
.bg-layer .bg-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-layer.no-image {
  transform: none;
  filter: none;
  background-image: url("../img/wallpaper.svg?v=3");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.bg-layer.no-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(62% 55% at 50% 100%, rgba(4, 4, 4, 0.7), transparent 74%);
}
.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 92% at 50% 42%, transparent 34%, rgba(4, 4, 4, 0.5) 100%);
}

/* wallpaper effects ------------------------------------------ */
.fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fx i { position: absolute; display: block; }
.fx-stars i { width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0.5; animation: vc-twinkle 4s ease-in-out infinite; }
@keyframes vc-twinkle { 0%, 100% { opacity: 0.08; } 50% { opacity: 0.8; } }
.fx-snow i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.8); animation-name: vc-fall; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes vc-fall { from { transform: translateY(-12vh); } to { transform: translateY(112vh); } }
.fx-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  animation: vc-grid 16s linear infinite;
}
@keyframes vc-grid { to { background-position: 0 56px, 56px 0; } }
.fx-aurora i { width: 46vw; height: 46vw; border-radius: 50%; filter: blur(90px); opacity: 0.3; animation: vc-drift 20s ease-in-out infinite alternate; }
@keyframes vc-drift {
  from { transform: translate3d(-6%, -4%, 0) scale(1); }
  to { transform: translate3d(9%, 7%, 0) scale(1.18); }
}

/* stage ------------------------------------------------------ */
.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  display: grid;
  justify-items: stretch;
  gap: 0;
}

/* card ------------------------------------------------------- */
.vcard {
  --accent: #a3a3a3;
  --vfont: var(--font);
  position: relative;
  width: 100%;
  padding: 17px 22px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  font-family: var(--vfont);
}
.vcard.round-sharp { border-radius: 8px; }
.vcard.round-extra { border-radius: 26px; }
.vcard.no-glass { background: rgba(12, 12, 12, 0.72); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* avatar sits proud of the left edge on the public page */
.vcard.protrude { padding-left: 140px; }
.vcard.protrude .vc-avatar { position: absolute; left: 18px; top: 18px; width: 104px; height: 104px; font-size: 40px; }
.vcard.protrude .vc-head { margin-top: 40px; }

.vc-head { display: flex; align-items: flex-start; gap: 12px; }
.vc-avatar {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 29px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 55%, #ffffff), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 28px -16px #000;
  position: relative;
}
.vc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.vcard.shape-rounded .vc-avatar { border-radius: 16px; }
.vcard.shape-circle .vc-avatar { border-radius: 50%; }
.vcard.protrude.shape-rounded .vc-avatar { border-radius: 16px; }
.vcard.protrude.shape-circle .vc-avatar { border-radius: 50%; }
.vcard.shape-square .vc-avatar { border-radius: 7px; }
.vc-live {
  position: absolute; right: 1px; bottom: 1px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #e5e5e5; border: 2px solid #101010;
}

.vc-id { min-width: 0; flex: 1; }
.vc-name-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.vc-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #f3f3f3;
  overflow-wrap: anywhere;
}
.vc-badge {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
}
.vc-handle { font-size: 11px; color: #9a9a9a; margin-top: 2px; }
.vc-bio { font-size: 12.5px; line-height: 1.5; color: #c7c7c7; margin-top: 8px; white-space: pre-wrap; }

.vc-views {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #adadad;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.vc-views .eye { font-size: 11px; color: #858585; }

/* hover UID */
.uid-wrap { position: relative; cursor: default; outline: none; }
.uid-wrap::after {
  content: attr(data-uid);
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #141414;
  color: #e9e9e9;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 6;
}
.uid-wrap:hover::after, .uid-wrap:focus-visible::after { opacity: 1; transform: none; }

.name-glow { text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 80%, transparent); }
.name-type { display: inline-block; overflow: hidden; white-space: nowrap; animation: vc-typing 2.4s steps(24, end); }
@keyframes vc-typing { from { width: 0; } to { width: 100%; } }

/* username effects ------------------------------------------------ */
.vc-name { position: relative; display: inline-block; }
.vc-name .un-text { position: relative; z-index: 1; }
.un-gradient { background: linear-gradient(90deg, #fff 0%, var(--accent, #a3a3a3) 35%, #fff 70%); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: un-shimmer 3.4s linear infinite; }
@keyframes un-shimmer { to { background-position: 250% center; } }
.un-glitch { animation: un-glitch 2.4s infinite steps(1); text-shadow: 1px 0 rgba(255, 50, 120, .55), -1px 0 rgba(80, 200, 255, .55); }
@keyframes un-glitch { 0%, 90%, 100% { transform: none; } 92% { transform: translate(1px, -1px); } 94% { transform: translate(-1px, 1px); } 96% { transform: translate(1px, 1px); } }
.un-sparkles, .un-sparkle-white { --spark: #ffffff; }
.un-sparkle-yellow { --spark: #ffd166; }
.un-sparkle-blue { --spark: #6cb8ff; }
.un-sparkle-pink { --spark: #ff8fd0; }
.un-sparkle-red { --spark: #ff6b6b; }
.un-sparkle-green { --spark: #6bffa3; }
.un-sparkle-black { --spark: #0a0a0a; }
.un-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--spark, #fff); box-shadow: 0 0 6px var(--spark, #fff); opacity: 0; pointer-events: none; animation: un-twinkle 2.1s ease-in-out infinite; }
.un-spark.s0 { left: -5px; top: -3px; animation-delay: 0s; }
.un-spark.s1 { right: -4px; top: 2px; animation-delay: .35s; }
.un-spark.s2 { left: 18%; top: -6px; animation-delay: .7s; }
.un-spark.s3 { right: 20%; bottom: -5px; animation-delay: 1.05s; }
.un-spark.s4 { left: -7px; bottom: 4px; animation-delay: 1.4s; }
.un-spark.s5 { right: -6px; bottom: -3px; animation-delay: 1.75s; }
.un-sparkle-black .un-spark { box-shadow: 0 0 4px rgba(255, 255, 255, .9); }
@keyframes un-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1); } }

/* custom text + card colors --------------------------------------- */
.vcard.color-custom { background: var(--vc-card, #1b1b1b); border-color: color-mix(in srgb, var(--vc-card, #1b1b1b) 68%, #ffffff); }
.vcard.color-custom .vc-name { color: var(--vc-text, #ffffff); }
.vcard.color-custom .vc-name.un-gradient { color: transparent; }
.vcard.color-custom .vc-bio, .vcard.color-custom .vc-meta, .vcard.color-custom .vc-views, .vcard.color-custom .vc-links a { color: var(--vc-text, #ffffff); }

/* multi-link dock -------------------------------------------------- */
.profile-dock {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 8;
  display: flex; align-items: center; gap: 8px; padding: 8px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(16, 16, 16, .68); backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px -22px #000;
}
.profile-dock a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  color: #f1f1f1; background: rgba(255, 255, 255, .07);
  font-size: 16px; text-decoration: none;
  transition: transform .16s ease, background .16s ease;
}
.profile-dock a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .16); }
.profile-dock svg { width: 18px; height: 18px; }
@media (max-width: 620px) { .profile-dock { bottom: 78px; padding: 6px; gap: 6px; } .profile-dock a { width: 38px; height: 38px; } }

/* presence + meta */
.vc-presence {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  font-size: 11.5px;
  color: #c2c2c2;
}
.vc-presence .pdot { width: 6px; height: 6px; border-radius: 50%; background: #e5e5e5; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16); }
.vc-presence .pico { color: #bdbdbd; font-size: 11px; }
.vc-meta { margin-top: 8px; font-size: 10.5px; color: #909090; }

/* links as small pills */
.vc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vc-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  font-weight: 550;
  color: #e8e8e8;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.vc-links a:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.18); }
.vc-links .pfx { opacity: 0.7; font-size: 10.5px; }
.vc-links .arw { display: none; }

/* minimal widgets */
.vc-widget { margin-top: 9px; display: flex; align-items: center; gap: 8px; }
.vc-widget .w-ico {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  display: grid; place-items: center; font-size: 9.5px;
  background: rgba(255, 255, 255, 0.07);
  color: #c7c7c7;
}
.vc-widget .w-title { font-size: 11px; font-weight: 600; color: #dcdcdc; }
.vc-widget .w-sub { font-size: 10px; color: #8a8a8a; }
.vc-widget .w-temp { margin-left: auto; font-size: 12px; font-weight: 700; font-family: var(--display); }

/* layout variants */
.vcard.layout-centered { text-align: center; }
.vcard.layout-centered .vc-head { flex-direction: column; align-items: center; }
.vcard.layout-centered.protrude { padding-left: 20px; }
.vcard.layout-centered.protrude .vc-avatar { position: static; margin-bottom: 10px; }
.vcard.layout-centered .vc-views { margin: 4px 0 0; }
.vcard.layout-centered .vc-presence,
.vcard.layout-centered .vc-links { justify-content: center; }
.vcard.layout-compact { padding: 14px 16px; }
.vcard.layout-compact.protrude { padding-left: 78px; }
.vcard.layout-compact .vc-avatar { width: 58px; height: 58px; font-size: 24px; }
.vcard.layout-compact .vc-bio { display: none; }

/* player ----------------------------------------------------- */
.player {
  width: 100%;
  max-width: 680px;
  margin: 12px auto 0;
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 26px 70px -50px #000;
}
.player-row { display: flex; align-items: center; gap: 9px; }
.player-art {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 13px; color: #fff;
  background: linear-gradient(140deg, var(--accent, #a3a3a3), #8a8a8a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.player-title { font-size: 11.5px; font-weight: 650; color: #f1f1f1; }
.player-artist { font-size: 10px; color: #949494; margin-top: 1px; }
.player-artist:empty { display: none; }
.player-controls { margin-left: auto; display: flex; align-items: center; gap: 1px; }
.pbtn {
  width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: transparent; color: #bdbdbd;
  display: grid; place-items: center;
  cursor: pointer; font-size: 9px;
  transition: color 0.14s ease, background 0.14s ease;
}
.pbtn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.pbtn.play {
  width: 28px; height: 28px; margin: 0 3px;
  background: #f2f2f2; color: #141414; font-size: 9.5px;
}
.pbtn.play:hover { background: #fff; }
.progress {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; font-size: 9.5px; color: #909090;
  font-variant-numeric: tabular-nums;
}
.track { flex: 1; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); position: relative; cursor: pointer; }
.track i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 99px; background: #ececec; }
.track b {
  position: absolute; top: 50%; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.lyric {
  margin-top: 10px;
  text-align: center;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.42);
  min-height: 14px;
  transition: opacity 0.3s ease;
}

/* page tools + claim bar ------------------------------------- */
.page-tools {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 8;
  display: flex;
  gap: 5px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.page-tools:hover, .page-tools:focus-within { opacity: 1; }
.page-tools a, .page-tools button {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 16, 0.72);
  backdrop-filter: blur(10px);
  color: #c7c7c7;
  display: grid; place-items: center;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.page-tools a:hover, .page-tools button:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.claim-bar {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 9px 9px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 16, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px -26px #000, inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: opacity .28s ease;
}
.claim-bar .cb-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-size: 11px;
  background: linear-gradient(140deg, #d4d4d4, #5a5a5a);
  color: #fff;
}
.claim-bar .cb-text {
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0; line-height: 1.25;
}
.claim-bar .cb-name {
  font-size: 12px; font-weight: 650; color: #f4f4f4;
  text-align: left; margin: 0; letter-spacing: .01em;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.claim-bar .cb-sub {
  font-size: 10px; color: #8a8a90; text-align: left; margin: 0; white-space: nowrap;
}
.claim-bar .cb-cta {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
  border-radius: 9px; font-size: 10.5px; font-weight: 600;
  color: #d2d2d8; text-decoration: none; white-space: nowrap;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.claim-bar .cb-cta:hover {
  color: #fff; background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.26);
}
.claim-bar .cb-close {
  display: grid; place-items: center; width: 22px; height: 22px;
  border: 0; border-radius: 7px; background: none; color: #6f6f76;
  font-size: 11px; line-height: 1; padding: 0; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.claim-bar .cb-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* empty state ------------------------------------------------ */
.vc-empty {
  width: 100%;
  padding: 34px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  text-align: center;
}
.vc-empty h2 { font-size: 18px; font-weight: 700; }
.vc-empty p { font-size: 12px; color: #aaaaaa; margin-top: 6px; }

/* pointer effects ------------------------------------------- */
.cursor-dot { position: fixed; z-index: 40; width: 12px; height: 12px; border-radius: 50%; background: var(--accent, #a3a3a3); filter: blur(1px); opacity: 0.75; pointer-events: none; }
.cursor-trail { position: fixed; z-index: 39; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); pointer-events: none; animation: vc-fade-down 0.7s ease-out forwards; }
@keyframes vc-fade-down { to { opacity: 0; transform: scale(0.2); } }
.cursor-spark { position: fixed; z-index: 39; font-size: 12px; color: #e5e5e5; pointer-events: none; animation: vc-spark 0.9s ease-out forwards; }
@keyframes vc-spark { to { opacity: 0; transform: translateY(-24px) rotate(30deg); } }

/* responsive ------------------------------------------------ */
@media (max-width: 620px) {
  .profile-shell { padding: 28px 14px 96px; align-items: start; }
  .vcard.protrude, .vcard.layout-compact.protrude { padding-left: 18px; }
  .vcard.protrude .vc-avatar { position: static; width: 58px; height: 58px; font-size: 24px; }
  .vcard.protrude .vc-head { margin-top: 0; }
  .vcard.protrude .vc-topline { position: static; left: auto; top: auto; margin-bottom: 9px; }
  .vcard.layout-centered.protrude { padding-left: 18px; }
  .vc-head { gap: 10px; }
  .vc-avatar { width: 58px; height: 58px; font-size: 24px; }
  .vc-name { font-size: 14.5px; }
  .claim-bar { right: 10px; bottom: 10px; }
  .page-tools { left: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx i, .name-type, .track b { animation: none !important; }
}

/* role, verification, discord card, dock -------------------- */
.vc-role { color: #c2c2c2; }
.vc-verify {
  width: 15px; height: 15px;
  border-radius: 4px;
  display: inline-grid; place-items: center;
  font-size: 8px; line-height: 1;
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.vc-discord {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--accent, #5865f2);
  /* glass instead of a fixed Discord grey: the page's own background shows through */
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045) 45%, rgba(0, 0, 0, 0.16));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 16px 34px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.vc-discord::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent, #5865f2) 22%, transparent), transparent 62%);
  opacity: .5;
}
.vc-discord:hover {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.vd-ico {
  position: relative;
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px;
  color: #e6e8eb;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  z-index: 1;
}
.vd-ico img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.vc-discord:not([class*="st-"]) .vd-ico::after { display: none; }
.vd-ico::after {
  content: "";
  position: absolute; right: -1px; bottom: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #e5e5e5;
  border: 2.5px solid rgba(8, 8, 10, 0.92);
  box-shadow: 0 0 8px currentColor;
}
.vd-main { display: grid; gap: 5px; min-width: 0; z-index: 1; }
.vd-name-row { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.vd-name {
  font-size: 14.5px; font-weight: 650; letter-spacing: -.01em;
  color: #f7f8fa; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vd-sub {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  font-size: 11.5px; color: #c3c7cd; max-width: 100%;
}
.vd-sub > * { min-width: 0; }
.vd-state {
  display: inline-flex; align-items: center; gap: 5px;
  color: #cdd1d6; text-transform: lowercase;
}
.vd-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #9aa0a6; flex: none;
}
.vd-state.online { color: #bfe9cd; }
.vd-state.online .vd-dot { background: #3ba55d; box-shadow: 0 0 6px #3ba55d99; }
.vd-state.idle { color: #f0dca8; }
.vd-state.idle .vd-dot { background: #faa61a; box-shadow: 0 0 6px #faa61a99; }
.vd-state.dnd { color: #f3b8ba; }
.vd-state.dnd .vd-dot { background: #ed4245; box-shadow: 0 0 6px #ed424599; }
.vd-state.offline .vd-dot, .vd-state.away .vd-dot { background: #747f8d; }
.vd-state.away { color: #b9bec6; }
.vd-state + .vd-handle::before,
.vd-handle + .vd-act::before {
  content: "·";
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.3);
}
.vd-handle { color: #9ba1a9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-act {
  max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #d7dbe0;
  padding: 1px 7px 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.vd-copy {
  margin-left: auto;
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px;
  background: rgba(255, 255, 255, 0.06); color: #b9bec6;
  cursor: pointer; z-index: 1;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.vd-copy:hover { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.26); }
.vd-copy:active { transform: scale(.95); }

/* older rules kept for the small screens */
@media (max-width: 420px) {
  .vc-discord { gap: 10px; padding: 11px 12px; }
  .vd-ico, .vd-ico img { width: 36px; height: 36px; }
  .vd-name { font-size: 13.5px; }
  .vd-act { max-width: 22ch; }
}

/* premium pages hide the big Discord button */
body.is-premium .dock { display: none !important; }

/* while the profile is still loading, nothing floats over an empty stage */
body:not([data-ready]) .dock,
body:not([data-ready]) .claim-bar,
body:not([data-ready]) .page-tools {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 8;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(150deg, #d4d4d4, #8a8a8a);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 40px -18px rgba(255, 255, 255, 0.85);
  transition: transform 0.16s ease, opacity .28s ease;
}
.dock:hover { transform: translateX(-50%) translateY(-2px); }

@media (max-width: 620px) {
  .dock { bottom: 78px; width: 42px; height: 42px; font-size: 16px; }
}

/* top badge, centred social icons, corner views, lyric lines ---- */
.vc-topline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 3;
  flex: none;
}
.vc-tier {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 8px;
  color: #0a0a0a;
  background: linear-gradient(145deg, #d4d4d4, #8a8a8a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 6px 14px -8px rgba(255, 255, 255, 0.9);
  transition: transform 0.16s ease;
  cursor: default;
}
.vc-topline:hover .vc-tier { transform: translateY(-1px); }
.vc-topline .vc-badge {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translate(-3px, -50%);
  display: inline-block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  padding: 4px 9px;
  border-radius: 7px;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  cursor: default;
}
.vc-topline:hover .vc-badge,
.vc-topline:focus-within .vc-badge { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.vc-name-row { flex-wrap: wrap; }
.vc-medals { display: inline-flex; align-items: center; gap: 4px; }

.medal {
  display: inline-grid;
  place-items: center;
  color: var(--medal, #d4d4d4);
  flex: none;
}
.medal svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.vc-badge[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translate(-50%, 4px);
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.96);
  color: #f2f2f2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 12px 26px -14px #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 6;
}
.vc-badge[data-tip]:hover::after,
.vc-badge[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.vc-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.vc-links { justify-content: center; }
.vc-socials a {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: #d4d4d4;
  background: none;
  border: 0;
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.vc-socials a:hover { opacity: 0.75; transform: translateY(-1px); }

.vcard .vc-views {
  position: absolute;
  right: 16px;
  bottom: 9px;
  margin: 0;
  font-size: 10.5px;
}

.lyrics {
  margin: 10px auto 0;
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 3px;
  text-align: center;
}
.player[hidden] { display: none !important; }
.lyrics[hidden] { display: none !important; }
.lyrics:empty { display: none; }
.lyric-line {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.26);
  transition: color 0.3s ease;
  line-height: 1.5;
}
.lyric-line.on { color: rgba(255, 255, 255, 0.92); }
.lyric-word {
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.22s ease, opacity 0.22s ease, text-shadow 0.3s ease;
}
.lyric-line.on .lyric-word { color: rgba(255, 255, 255, 0.34); }
.lyric-line.on .lyric-word.lit { color: rgba(255, 255, 255, 0.96); }

@media (max-width: 620px) {
  .vcard.protrude { padding-left: 18px; }
  .vcard.protrude .vc-head { margin-top: 0; }
  .vc-topline .vc-badge {
    position: static; transform: none; opacity: 1; pointer-events: auto;
  }
  .vcard.protrude .vc-avatar { position: static; width: 58px; height: 58px; font-size: 24px; }
}

/* ---------- monochrome theme ---------- */
body.profile-body { background:#050505; }
.vcard { --accent:#d4d4d4; }
.bg-layer { filter:blur(var(--bg-blur,2px)) grayscale(1); }
.vc-live, .vc-presence .pdot, .vd-ico::after { background:#e5e5e5; box-shadow:none; }
.vc-badge { color:#e5e5e5; background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.22); }
.vc-verify, .vd-ico { color:#e5e5e5; background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.2); }
.vc-presence .pico { color:#d4d4d4; }
.dock { background:linear-gradient(150deg,#e5e5e5,#8a8a8a); color:#0a0a0a; box-shadow:0 18px 40px -18px rgba(0,0,0,.8); }
.vc-tier { background:linear-gradient(145deg,#e5e5e5,#8a8a8a); color:#0a0a0a; box-shadow:inset 0 0 0 1px rgba(255,255,255,.25); }
.player-art { background:linear-gradient(140deg,#d4d4d4,#6b6b6b); }
.cursor-dot { background:#d4d4d4; }
.cursor-trail { background:rgba(255,255,255,.6); }
.cursor-spark { color:#e5e5e5; }

/* ghost logo sits on its own, no tile */
.claim-bar img.cb-mark { background: none; border-radius: 0; object-fit: contain; }

/* original artwork has ~35% transparent padding; scale it to fill the mark */
.claim-bar img.cb-mark { transform: scale(1.45); transform-origin: center; }

/* real icons + scrolling lyrics */
.pico { display: block; }
.dock svg { width: 22px; height: 22px; }
.page-tools svg { width: 17px; height: 17px; display: block; }
.lyrics { max-height: 92px; overflow: hidden; scroll-behavior: smooth; padding: 2px 0; }
.lyric-line { transition: color .3s ease, transform .3s ease; }
.lyric-line.on { transform: scale(1.03); }
.vc-widget[href] { text-decoration: none; }

.pbtn svg { width: 12px; height: 12px; display: block; }
.player-art svg { width: 14px; height: 14px; }

/* discord status + account badges */
.vd-badges { display: inline-flex; align-items: center; gap: 4px; }
.vd-badge { width: 15px; height: 15px; display: inline-grid; place-items: center; color: #c9c9c9; }
.vd-badge svg { width: 14px; height: 14px; display: block; }
.vc-discord.st-online .vd-ico::after { background: #3ba55d; }
.vc-discord.st-idle .vd-ico::after { background: #faa61a; }
.vc-discord.st-dnd .vd-ico::after { background: #ed4245; }
.vc-discord.st-offline .vd-ico::after { background: #747f8d; }

/* glass finishes ------------------------------------------------- */
.vcard.glass-frosted { background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.045)); backdrop-filter: blur(34px) saturate(155%); -webkit-backdrop-filter: blur(34px) saturate(155%); border-color: rgba(255,255,255,.24); }
.vcard.glass-clear { background: rgba(255,255,255,.035); backdrop-filter: blur(9px) saturate(125%); -webkit-backdrop-filter: blur(9px) saturate(125%); border-color: rgba(255,255,255,.3); }
.vcard.glass-smoked { background: rgba(5,5,5,.62); backdrop-filter: blur(28px) saturate(115%); -webkit-backdrop-filter: blur(28px) saturate(115%); border-color: rgba(255,255,255,.13); }
body.glass-frosted .player { background: rgba(255,255,255,.1); backdrop-filter: blur(34px) saturate(160%); }
body.glass-clear .player { background: rgba(255,255,255,.025); backdrop-filter: blur(8px); border-color: rgba(255,255,255,.28); }
body.glass-smoked .player { background: rgba(5,5,5,.55); backdrop-filter: blur(26px); }

/* lyric presentation styles ------------------------------------- */
.lyrics-size-small .lyrics .lyric-line { font-size: 9.5px; }
.lyrics-size-medium .lyrics .lyric-line { font-size: 11.5px; }
.lyrics-size-large .lyrics .lyric-line { font-size: 15px; }
.lyrics-align-left .lyrics { text-align: left; }
.lyrics-align-center .lyrics { text-align: center; }

.lyrics-glass .lyrics {
  margin-top: 12px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 20px 45px -30px #000;
}

.lyrics-focus .lyrics .lyric-line { opacity: 0; transform: translateY(4px); }
.lyrics-focus .lyrics .lyric-line.on { opacity: 1; transform: none; font-size: 14px; color: #fff; }

.lyrics-karaoke .lyrics .lyric-line { color: rgba(255,255,255,.2); }
.lyrics-karaoke .lyrics .lyric-line.on {
  color: #fff; transform: scale(1.06); font-weight: 650;
}
.lyrics-karaoke .lyrics .lyric-line.on .lyric-word.lit {
  color: #fff;
  text-shadow: 0 0 24px rgba(255,255,255,.55), 0 0 52px color-mix(in srgb, var(--accent) 55%, transparent);
}

.lyrics-immersive .bg-layer {
  background-image: linear-gradient(rgba(4,4,4,.42), rgba(4,4,4,.72)), var(--now-cover, var(--page-bg, linear-gradient(135deg, #1b1b1b, #050505))) !important;
  background-size: cover !important; background-position: center !important;
  filter: blur(26px) saturate(.8) brightness(.7) !important; transform: scale(1.08);
  opacity: 1 !important;
}
.lyrics-immersive .bg-layer.no-image::after { display: none; }
.lyrics-immersive .lyrics {
  position: relative; inset: auto; z-index: 1;
  display: grid; align-content: center; gap: 10px;
  max-height: 38vh; overflow: hidden; padding: 18px 0 28px;
  background: none; border: 0; box-shadow: none; text-align: center;
}
.lyrics-immersive .lyrics .lyric-line { font-size: clamp(16px, 2vw, 24px); color: rgba(255,255,255,.3); }
.lyrics-immersive .lyrics .lyric-line.on { color: #fff; transform: none; text-shadow: 0 1px 28px rgba(0,0,0,.9); }

/* volume control in the profile player */
.player-vol { display: flex; align-items: center; gap: 8px; }
.player-vol[hidden] { display: none; }
.player-vol .pbtn.off { opacity: .45; }
#p-vol { width: 76px; height: 3px; accent-color: var(--accent, #d4d4d4); cursor: pointer; }

/* layout animation + badge display options from the dashboard */
.vcard.anim-pop { animation: vc-pop .5s cubic-bezier(.2,.8,.2,1) both; }
.vcard.anim-fade { animation: vc-fade .6s ease both; }
@keyframes vc-pop {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes vc-fade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.vcard.badges-glow .vc-medals .medal { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .4)); }
.vcard.badges-plain .vc-medals .medal { filter: none; }
 .badges-pill .vc-medals { padding:5px 9px; border:1px solid #ffffff24; border-radius:999px; background:#ffffff12; }
.badges-loop .vc-medals { max-width:180px; overflow:hidden; }
.badges-loop .vc-medals-track { display:inline-flex; align-items:center; gap:6px; flex:none; width:max-content; animation:vc-badge-scroll var(--badge-speed,5s) linear infinite; }
.badges-loop .vc-medals:hover .vc-medals-track, .badges-loop .vc-medals:focus-within .vc-medals-track { animation-play-state:paused; }
.vc-medals-track { display:contents; }
@keyframes vc-badge-scroll { to { transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce) {
 .badges-loop .vc-medals { max-width:100%; overflow:visible; flex-wrap:wrap; }
 .badges-loop .vc-medals-track { animation:none; width:auto; flex-wrap:wrap; }
 .badge-loop-copy { display:none; }
}
.vc-link-set { display: contents; }
.vc-link-set .vc-socials a { width: var(--link-size, 26px); height: var(--link-size, 26px); }
.vc-link-set.links-mono .vc-socials a { color: var(--link-color, #efefef); }
.vc-link-set.links-glow .vc-socials a { filter: drop-shadow(0 0 5px var(--link-color, #efefef)); }
.vc-link-set.links-hover-glow .vc-socials a:hover { filter: drop-shadow(0 0 8px var(--link-color, #efefef)); }
.vc-link-set.links-tooltip .vc-socials a { position: relative; }
@keyframes vc-badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  .vcard.anim-pop, .vcard.anim-fade, .vcard.badges-loop .vc-medals .medal { animation: none; }
}

/* enter screen: a full-screen cover a visitor clicks before the page opens */
.enter-gate {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  width: 100%; height: 100%; margin: 0; padding: 24px;
  border: 0; border-radius: 0;
  background: #000; color: #fff;
  font-family: inherit; font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 600; letter-spacing: .01em;
  text-align: center; cursor: pointer;
  opacity: 1; transition: opacity .45s ease;
}
.enter-gate[hidden] { display: none; }
.enter-gate.leaving { opacity: 0; }
.enter-gate:focus, .enter-gate:focus-visible { outline: none; box-shadow: none; }
html.gate-open, html.gate-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .enter-gate { transition: none; } }

/* extra layouts from the dashboard */
.vcard.layout-modern { border-radius: 20px; }
.vcard.layout-modern .vc-head { align-items: flex-start; }
.vcard.layout-modern .vc-avatar { width: 72px; height: 72px; font-size: 28px; }
.vcard.layout-simplistic { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.vcard.layout-simplistic .vc-avatar { box-shadow: none; }
.vcard.layout-sleek { border-radius: 8px; }
.vcard.layout-sleek .vc-avatar { border-radius: 10px; }
.vcard.layout-portfolio { padding: 22px; }
.vcard.layout-portfolio .vc-head { flex-direction: column; align-items: flex-start; gap: 12px; }
.vcard.layout-portfolio .vc-avatar { width: 84px; height: 84px; font-size: 32px; }
.vcard.layout-portfolio .vc-bio { font-size: 13px; }

/* extra entrance animations */
.vcard.anim-unfold { animation: vc-unfold .55s cubic-bezier(.2,.8,.2,1) both; transform-origin: top center; }
.vcard.anim-rise { animation: vc-rise .55s cubic-bezier(.2,.8,.2,1) both; }
.vcard.anim-bubbly { animation: vc-bubbly .6s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes vc-unfold { from { opacity: 0; transform: scaleY(.55); } to { opacity: 1; transform: scaleY(1); } }
@keyframes vc-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes vc-bubbly { 0% { opacity: 0; transform: scale(.82); } 60% { transform: scale(1.03); } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .vcard.anim-unfold, .vcard.anim-rise, .vcard.anim-bubbly { animation: none; }
}

/* background effects */
.fx-dark { background: radial-gradient(circle at 50% 38%, transparent 18%, rgba(0, 0, 0, .78) 100%); }
.fx-rain i { position: absolute; top: -14%; width: 1px; height: 64px;
  background: linear-gradient(transparent, rgba(255, 255, 255, .55)); animation: fx-rain linear infinite; }
@keyframes fx-rain { to { transform: translateY(125vh); } }
.fx-particles i { position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); animation: fx-float ease-in-out infinite alternate; }
@keyframes fx-float { to { transform: translateY(-46px); opacity: .15; } }
.fx-meteors i { position: absolute; width: 130px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9)); transform: rotate(35deg);
  animation: fx-meteor linear infinite; }
@keyframes fx-meteor {
  0% { transform: translate(-20vw, -20vh) rotate(35deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(120vw, 80vh) rotate(35deg); opacity: 0; }
}
.fx-fireworks i { position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .9); animation: fx-burst 2.6s ease-out infinite; }
@keyframes fx-burst {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(var(--dx, 40px), var(--dy, -40px)); opacity: 0; }
}

/* extra pointer effects */
.cursor-ripple { position: fixed; z-index: 9999; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7); pointer-events: none; animation: cursor-ripple .7s ease-out forwards; }
@keyframes cursor-ripple { to { transform: scale(4.5); opacity: 0; } }
.cursor-glyph { position: fixed; z-index: 9999; pointer-events: none; font-size: 12px;
  animation: cursor-glyph .9s ease-out forwards; }
@keyframes cursor-glyph { to { opacity: 0; transform: translateY(-10px) scale(.8); } }

/* typewriter description */
.vc-bio:empty { display: none; }
.vc-bio.tw-bio { min-height: 1.5em; }
.vc-bio .tw-caret { display: inline-block; width: 1px; height: 1em; margin-left: 2px;
  background: currentColor; vertical-align: -2px; animation: tw-blink 1s steps(1) infinite; }
@keyframes tw-blink { 50% { opacity: 0; } }
.vc-bio p { margin: 0 0 4px; }
.vc-bio p:last-child { margin-bottom: 0; }
.vc-bio h3, .vc-bio h4, .vc-bio h5 { margin: 0 0 4px; font-size: 13px; color: #ededed; }
.vc-bio ul { margin: 0 0 4px; padding-left: 16px; }
.vc-bio blockquote { margin: 0 0 4px; padding-left: 8px; border-left: 2px solid rgba(255, 255, 255, .25); color: #b5b5b5; }
.vc-bio hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .16); margin: 6px 0; }
.vc-bio a { color: #e8e8e8; text-decoration: underline; }
.vc-bio code { font-family: ui-monospace, monospace; font-size: 11.5px; background: rgba(255, 255, 255, .08); padding: 1px 4px; border-radius: 4px; }

/* larger player with the cover as a backdrop */
.player { position: relative; overflow: hidden; }
.player::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--player-cover, none); background-size: cover; background-position: center;
  filter: blur(18px) saturate(120%); opacity: .35; transform: scale(1.2); pointer-events: none; }
.player > * { position: relative; z-index: 1; }
.player-art { width: 42px; height: 42px; }
.player-title { font-size: 12.5px; }
.player-artist { font-size: 10.5px; }

/* corner + roundness options */
.vcard.round-soft { border-radius: 14px; }
.vcard.round-pill { border-radius: 28px; }
.vcard.shape-rounded-square .vc-avatar { border-radius: 12px; }
.vcard.shape-squircle .vc-avatar { border-radius: 30%; }

/* widget cards */
.vc-widgets { display: grid; gap: 8px; margin-top: 10px; }
.vc-widget-card { display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border-radius: 13px; border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .045); color: inherit; text-decoration: none; }
.vc-widget-card[href]:hover { background: rgba(255, 255, 255, .085); border-color: rgba(255, 255, 255, .18); }
.w-avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; background: rgba(255, 255, 255, .09); color: #d6d6d6; }
.w-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-avatar svg { width: 18px; height: 18px; }
.w-main { min-width: 0; flex: 1; display: grid; gap: 2px; }
.w-name { font-size: 12px; font-weight: 650; color: #ededed; display: flex; align-items: center; gap: 6px; min-width: 0; }
.w-sub { font-size: 10.5px; color: #949494; font-style: italic; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.w-side { margin-left: auto; flex: none; display: flex; align-items: center; gap: 6px; }
.w-action { flex: none; padding: 6px 13px; border-radius: 999px; background: #22c55e; color: #05230f;
  font-size: 11px; font-weight: 700; text-decoration: none; }
.w-action.ghost { background: rgba(255, 255, 255, .12); color: #ececec; }
.w-ico { color: #bdbdbd; display: inline-flex; }
.w-ico svg { width: 16px; height: 16px; }
.w-temp { font-family: var(--display); font-size: 14px; font-weight: 700; }
.w-clock-time { font-size: 12px; color: #e5e5e5; font-variant-numeric: tabular-nums; }
.w-copy { border: 0; background: none; color: #8a8a8a; cursor: pointer; font-size: 12px; padding: 2px 4px; }
.w-copy:hover { color: #fff; }
.vd-guild { font-size: 9.5px; letter-spacing: .02em; color: #d6d6d6; border-left: 2px solid rgba(255, 255, 255, .35);
  padding-left: 5px; margin-left: 1px; }
.vc-discord.nameplate .vd-name { background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .16));
  -webkit-background-clip: text; background-clip: text; color: transparent; padding: 1px 6px;
  border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.vc-views .eye svg { width: 12px; height: 12px; display: block; }
.vc-views .eye img { width: 12px; height: 12px; object-fit: contain; display: block; }
.cb-circle { position: relative; width: 80px; height: 80px; margin: 0 auto 12px; background: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .cb-name { color: #fff; font-size: 16px; font-weight: 600; text-align: center; margin: 8px 0; } .cb-url { color: #9a9a9a; font-size: 12px; text-align: center; } .cb-sub { color: #9a9a9a; font-size: 11px; margin-top: 4px; }
.bg-layer.has-clip { background-image: none; }
.bg-layer.has-clip::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(6,6,6,.32), rgba(6,6,6,.62)); }

/* report menu */
#report-modal .modal-card { width: min(400px, 100%); }
#report-modal .tw-sub { color: #9a9a9a; font-size: 12px; margin-bottom: 14px; }
#report-modal .audio-label { display: block; font-size: 12px; color: #9a9a9a; margin-bottom: 7px; }
#report-modal .tplm-select,
#report-modal textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.035); color: #ececec; font: inherit; font-size: 13px; outline: none; resize: vertical; }
#report-modal .tplm-select:focus,
#report-modal textarea:focus { border-color: rgba(255,255,255,.3); }
#report-modal .report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.vcard.glass-default:not(.no-glass) { background:linear-gradient(135deg,#ffffff22,#ffffff06 45%,#ffffff16); border:1px solid #ffffff38; box-shadow:inset 0 1px 0 #ffffff35,0 20px 60px #0006; backdrop-filter:blur(var(--card-blur,16px)) saturate(150%); -webkit-backdrop-filter:blur(var(--card-blur,16px)) saturate(150%); }

.vcard[style*="--profile-name:"] .vc-name:not(.un-gradient) { color: var(--profile-name, var(--vc-text, inherit)); }
.vcard[style*="--profile-bio:"] .vc-bio { color: var(--profile-bio); }
.vcard[style*="--profile-secondary:"] .vc-meta { color: var(--profile-secondary); }
.vcard .profile-location { color: var(--profile-location, inherit); }
.vcard[style*="--profile-views:"] .vc-views { color: var(--profile-views); }
.profile-name-glow .vc-name, .profile-bio-glow .vc-bio { text-shadow: 0 0 var(--profile-glow-size) var(--profile-glow); }
.profile-no-uid-tip .uid-wrap::before, .profile-no-uid-tip .uid-wrap::after,
.profile-no-badge-tip .badge-tip, .profile-no-link-tip .vc-links a::after { display: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .profile-pointer-tilt:hover { rotate: y var(--tilt-y, 0deg); transform: perspective(850px) rotateX(var(--tilt-x, 0deg)); }
  .profile-hover-lift:hover { translate: 0 -5px; }
  .profile-hover-glow:hover { box-shadow: 0 0 28px color-mix(in srgb, var(--profile-hover) 60%, transparent); }
  .profile-hover-tilt:hover { rotate: y var(--tilt-y, 4deg); }
  .profile-hover-pulse:hover { scale: 1.02; }
  .profile-hover-shake:hover { animation: profile-shake .26s linear 1; }
  @keyframes profile-shake { 25% { translate: -3px; } 75% { translate: 3px; } }
}

.animated-backdrop { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.animated-backdrop::before {
  content: ""; position: absolute; inset: -25%; will-change: transform;
  background: repeating-linear-gradient(122deg, transparent 6%, #a5a5a542 16%, #1d1d1d88 26%, transparent 38%);
  filter: blur(22px); animation: backdrop-drift 22s ease-in-out infinite alternate;
}
.animated-backdrop[data-style="waves"]::before { background: repeating-radial-gradient(ellipse at 48% 120%, #0000 0 7%, #d0d0d070 13%, #0000 21%); }
.animated-backdrop[data-style="orbit"]::before { background: conic-gradient(from 70deg at 55% 44%, #0000, #fff4, #0000, #8886, #0000); }
@keyframes backdrop-drift { to { transform: translate(10%, -7%) rotate(12deg) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .animated-backdrop::before { animation: none; } }

/* Showcase profiles preserve the owner palette and use a wider glass surface. */
.stage:has(.profile-showcase) { max-width: 790px; gap: 9px; }
.profile-showcase .vcard { padding: clamp(16px, 4vw, 29px); background-color: rgba(12,12,12,.64); }
.profile-showcase .vcard.color-custom { background-color: var(--vc-card,#1b1b1b); }
.profile-showcase .vc-head { align-items: center; gap: 15px; margin-bottom: 12px; }
.profile-showcase .vcard.protrude .vc-avatar { position: relative; inset: auto; margin: 0; flex: none; width: 76px; height: 76px; }
.profile-showcase .vc-name { font-size: clamp(20px, 4vw, 28px); }
.profile-showcase .vc-bio { margin-top: 5px; }
.profile-showcase .vc-links { justify-content: center; margin-top: 14px; }
.profile-showcase .vc-links a { border-radius: 999px; }
.stage:has(.profile-showcase) .player { margin-top: 0; border-radius: 16px; }

.vc-widgets:has(> .vc-widget-slot), .vc-widgets-below {
  grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px;
}
.vc-widgets:has(> .vc-widget-slot) > :not(.half) { grid-column: 1 / -1; }
.vc-widgets-below { margin: 9px 0 0; }
.vc-widgets-below > .vc-widget-slot, .vc-widget-slot { min-width: 0; }
.vc-widget-slot > .vc-widget-card { min-height: 62px; height: 100%; margin: 0; }
.profile-showcase .vc-widget-card, .w-provider, .w-media {
  background: rgba(12,12,12,.76); border-color: #ffffff25; border-radius: 15px;
}
.w-provider-label { display: block; color: #b8b8b8; font-size: 10px; letter-spacing: .04em; }
.w-media { display: grid; grid-template-columns: minmax(0,1fr) auto auto; padding: 12px; }
.w-media strong { display: block; overflow-wrap: anywhere; }
.w-load-media, .w-open-media { color: #eee; background: #ffffff14; border: 1px solid #ffffff2b; border-radius: 99px; padding: 5px 9px; font: inherit; cursor: pointer; }
.w-load-media:hover, .w-open-media:hover { background: #ffffff2a; }
.w-media iframe { grid-column: 1 / -1; width: 100%; height: 152px; border: 0; border-radius: 10px; }
.w-media[data-media-type=video] iframe { height: auto; aspect-ratio: 16 / 9; min-height: 200px; }
@media(max-width:540px) {
  .vc-widgets:has(> .vc-widget-slot) { grid-template-columns: minmax(0,1fr); }
  .profile-showcase .vcard.protrude .vc-avatar { width: 58px; height: 58px; }
}

.has-widget-style :is(.vc-widget-card,.vc-presence) {
  background: color-mix(in srgb, var(--widget-surface) var(--widget-opacity), transparent);
  color: var(--widget-text);
  border-width: var(--widget-border-width, 1px);
  border-color: color-mix(in srgb, var(--widget-border) var(--widget-border-opacity, 32%), transparent);
  border-radius: var(--widget-radius);
}
.has-widget-style :is(.w-sub,.w-provider-label) { color: var(--widget-secondary); }

/* These frames are drawn locally in CSS and keep the avatar visible. */
[data-avatar-frame="silver"] { --avatar-frame: #e5e5e5; --avatar-halo: #ffffff80; }
[data-avatar-frame="orbit"] { --avatar-frame: #bfa4ff; --avatar-halo: #8050f0bb; }
[data-avatar-frame="halo"] { --avatar-frame: #ffeeac; --avatar-halo: #ffe773a0; }
[data-avatar-frame="eclipse"] { --avatar-frame: #99b2d8; --avatar-halo: #4987d9aa; }
[data-avatar-frame="ember"] { --avatar-frame: #ff8d73; --avatar-halo: #f45a3ea0; }
[data-avatar-frame="frost"] { --avatar-frame: #a2effc; --avatar-halo: #67d5f2aa; }
.vc-avatar[data-avatar-frame]:not([data-avatar-frame=""]) {
  outline: 2px solid var(--avatar-frame); outline-offset: 2px; box-shadow: 0 0 17px var(--avatar-halo);
}
.vc-avatar[data-avatar-frame="orbit"] { outline-style: dashed; }
.vc-avatar[data-avatar-frame="halo"] { outline-offset: 4px; }
.vc-avatar[data-avatar-frame="eclipse"] { box-shadow: 5px 0 19px var(--avatar-halo); }
.vc-avatar[data-avatar-frame="ember"] { box-shadow: 0 3px 20px var(--avatar-halo); }
.vc-avatar[data-avatar-frame="frost"] { outline-style: double; outline-width: 4px; }
.vc-banner { display: block; width: 100%; height: clamp(76px, 15vw, 158px); object-fit: cover; margin: 0 0 15px; border-radius: 12px; }
.profile-body, .preview-page { cursor: var(--profile-default-cursor, auto); }
.profile-body :is(a, button, summary, select), .preview-page :is(a, button, summary, select) { cursor: var(--profile-pointer-cursor, pointer); }
.profile-compact-audio .player { padding: 9px 12px; }
.profile-compact-audio .player-art { width: 32px; height: 32px; }
.profile-compact-audio .player-row { gap: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .vc-avatar[data-frame-motion="true"][data-avatar-frame]:not([data-avatar-frame=""]) {
    animation: avatar-frame-pulse 2.4s ease-in-out infinite alternate;
  }
  @keyframes avatar-frame-pulse {
    from { box-shadow: 0 0 5px var(--avatar-halo); }
    to { box-shadow: 0 0 23px 3px var(--avatar-halo); }
  }
}
@media(max-width:480px) {
  .profile-showcase .vc-widget-card { min-width: 0; }
  .profile-showcase .vc-name { overflow-wrap: anywhere; }
  .stage:has(.profile-showcase) .player-row { grid-template-columns: auto minmax(0,1fr); }
  .stage:has(.profile-showcase) .player-controls { grid-column: 1 / -1; justify-self: center; }
}

.stage:has(.layout-modern) { max-width: 768px; }
.profile-page .vcard.layout-modern { padding: 24px 30px 18px; }
.profile-page .vcard.layout-modern .vc-head { margin: 0 0 16px; align-items: center; gap: 15px; }
.profile-page .vcard.layout-modern .vc-avatar {
  position: static;
  flex: none;
  width: clamp(72px, 12vw, 120px);
  height: clamp(72px, 12vw, 120px);
}
.profile-page .vcard.layout-modern .vc-name { font-size: clamp(19px, 3vw, 30px); }
.profile-page .vcard.layout-modern .vc-banner {
  width: calc(100% + 60px);
  max-width: none;
  margin: -24px -30px -46px;
  border-radius: 18px 18px 0 0;
}
.vc-modern-footer { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.profile-page .vc-modern-footer :is(.vc-views, .vc-meta) { margin: 0; position: static; }
.stage:has(.layout-modern) > .player { margin-top: 12px; }
@media (max-width: 560px) {
  .profile-page .vcard.layout-modern { padding: 16px; }
  .profile-page .vcard.layout-modern .vc-banner { width: calc(100% + 32px); margin: -16px -16px -24px; }
}
