* { box-sizing: border-box; }

body, .profile-card, .profile-card img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #201711 url('/backgrounds/wallpaper.png') center / cover no-repeat;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
}

.intro {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(8, 6, 6, .2);
  color: rgba(255, 255, 255, .9);
  font: 600 14px Inter, Arial, sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
  backdrop-filter: blur(18px) brightness(.5);
  transition: opacity .55s ease, visibility .55s ease;
}

.intro.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.particles {
  position: fixed;
  z-index: 11;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .55s ease;
}

body.revealed .particles { opacity: .65; }

.volume-control {
  position: fixed;
  top: 22px;
  left: 24px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}

body.revealed .volume-control { opacity: 1; pointer-events: auto; }
.mini-player { position: fixed; z-index: 6; top: 20px; right: 24px; display: flex; align-items: center; gap: 10px; min-width: 190px; max-width: 250px; padding: 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(9,9,12,.34); backdrop-filter: blur(12px); color: #fff; opacity: 0; transform: translateY(-8px); transition: opacity .55s ease, transform .55s ease; }
body.revealed .mini-player { opacity: 1; transform: translateY(0); }
.mini-cover { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg,#eee,#4a4a50); background-position: center; background-size: cover; color: #101014; font-size: 21px; }
.mini-player div:last-child { min-width: 0; display: grid; gap: 3px; }
.mini-player small { color: rgba(255,255,255,.55); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.mini-player strong { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mini-discord { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; margin-left: auto; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: rgba(255,255,255,.09); color: #fff; opacity: 1; transition: background .18s ease, transform .18s ease; }
.mini-discord:hover { background: rgba(255,255,255,.2); transform: scale(1.07); }
.mini-discord svg { width: 19px; height: 19px; fill: currentColor; }
.volume-control button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.volume-control button svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.volume-control input { width: 82px; accent-color: #fff; cursor: pointer; }

.particle {
  position: absolute;
  top: -10vh;
  left: var(--x);
  color: rgba(255, 255, 255, var(--opacity));
  font-size: var(--size);
  animation: fall var(--duration) linear var(--delay) infinite;
}

@keyframes fall {
  from { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  to { transform: translate3d(var(--drift), 115vh, 0) rotate(240deg); }
}

.profile-card {
  position: relative;
  z-index: 5;
  width: min(340px, calc(100vw - 32px));
  height: 460px;
  padding: 40px 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 34px;
  background: rgba(10, 10, 12, .08);
  box-shadow: none;
  backdrop-filter: blur(4px);
  transform-style: preserve-3d;
  transition: transform .18s ease-out, border-color .18s ease-out, background .18s ease-out;
  will-change: transform;
  opacity: 0;
  transition: opacity .6s ease, transform .18s ease-out, border-color .18s ease-out;
}

.profile-card:hover { border-color: rgba(255, 255, 255, .25); background: rgba(10, 10, 12, .12); }
body.revealed .profile-card.card-visible { opacity: 1; }
body[data-card-effect="float"] .profile-card { animation: card-float 4s ease-in-out infinite; }
body[data-card-effect="float"] .profile-card:nth-child(2) { animation-delay: .5s; }
body[data-card-effect="float"] .profile-card:nth-child(3) { animation-delay: 1s; }
body[data-card-effect="glow"] .profile-card { box-shadow: 0 0 34px rgba(255,255,255,.16); }
body[data-card-effect="pulse"] .profile-card { animation: card-pulse 2.4s ease-in-out infinite; }
body[data-card-effect="breathe"] .profile-card { animation: card-breathe 3.2s ease-in-out infinite; }
body[data-card-effect="none"] .profile-card { transition: opacity .6s ease; }
html.custom-cursor, html.custom-cursor * { cursor: var(--site-cursor) !important; }

@keyframes card-float { 50% { transform: translateY(-10px); } }
@keyframes card-pulse { 50% { border-color: rgba(255,255,255,.6); box-shadow: 0 0 38px rgba(255,255,255,.2); } }
@keyframes card-breathe { 50% { transform: scale(1.025); background: rgba(255,255,255,.13); } }

.particles.rain .particle { font-weight: 800; opacity: .7; }
.particles.bubbles .particle { font-weight: 300; }
.particles.petals .particle { color: rgba(255,210,225,var(--opacity)); }

.profile-list {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 24px;
}

.avatar-wrap { position: relative; width: 112px; height: 112px; margin: 0 auto 18px; }
.avatar, .decoration { position: absolute; inset: 0; width: 100%; height: 100%; }
.avatar { border-radius: 50%; object-fit: cover; transition: transform .25s ease; }
.avatar-wrap:hover .avatar { transform: scale(1.08) rotate(2deg); }
.decoration { transform: scale(1.32); pointer-events: none; }
.status {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 23px;
  height: 23px;
  border: 4px solid #231917;
  border-radius: 50%;
  background: #80848e;
}

.status.online { background: #23a55a; }

.status.idle {
  overflow: hidden;
  background: #f0b232;
}

.status.idle::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #231917;
}

.status.dnd { background: #f23f43; }

.status.dnd::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 3px;
  width: 9px;
  height: 3px;
  border-radius: 3px;
  background: #231917;
}

h1 { margin: 0; font-size: 25px; }
.identity { display: flex; align-items: center; justify-content: center; gap: 7px; }
#username { margin: 7px 0; color: rgba(255,255,255,.62); font-size: 14px; }
.role-icons { display: flex; align-items: center; gap: 5px; }
.role-icon { width: 17px; height: 17px; object-fit: contain; }
.role-emoji { font-size: 17px; line-height: 1; }
.social-links { display: flex; justify-content: center; gap: 17px; margin: 7px 0 12px; }
.social-links a { display: grid; place-items: center; width: 26px; height: 26px; color: #fff; transition: opacity .18s ease, transform .18s ease; }
.social-links a:hover { transform: translateY(-2px); }
.social-links a.disabled { opacity: 1; cursor: default; }
.social-links img { display: block; width: 25px; height: 25px; }
.visit-count { position: absolute; top: 18px; right: 20px; display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .82); font-size: 12px; }
.visit-count svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.spotify {
  margin: 22px 0 8px;
  padding: 11px;
  text-align: left;
  border-radius: 14px;
  background: transparent;
}

.spotify-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.spotify-track img { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; background: #111214; }
.spotify-track div { min-width: 0; }
.spotify strong, .spotify p { display: block; overflow: hidden; margin: 3px 0 0; text-overflow: ellipsis; white-space: nowrap; }
.spotify strong { color: #f2f3f5; font-size: 13px; }
.spotify p { color: #b5bac1; font-size: 12px; }
.spotify-progress { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 7px; margin-top: 10px; color: #dbdee1; font-size: 11px; }
.spotify-progress div { height: 4px; overflow: hidden; border-radius: 6px; background: #4e5058; }
.spotify-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #dbdee1; }
.activity { min-height: 22px; margin: 12px 0; color: #d7bfff; font-size: 14px; }
.error { position: fixed; bottom: 24px; color: #ffb4b4; }

@media (max-width: 740px) {
  body { overflow: auto; }
  .profile-list { flex-direction: column; }
}
