:root {
  --bg-1: #050505;
  --bg-2: #0a0a0a;
  --bg-3: #111111;
  --text: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.65);
  --accent: #7bffb6;
  --glass: rgba(18, 18, 18, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  --bg-image: none;
  --cursor: auto;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  cursor: var(--cursor);
}

#app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px 60px;
  position: relative;
  overflow: hidden;
}

.background {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(800px 600px at 20% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(900px 800px at 80% 30%, rgba(255, 255, 255, 0.06), transparent 65%),
    radial-gradient(700px 500px at 50% 70%, rgba(255, 255, 255, 0.04), transparent 70%),
    var(--bg-image),
    linear-gradient(120deg, var(--bg-1), var(--bg-2), var(--bg-3));
  background-position: center;
  background-size: cover;
  filter: blur(12px) contrast(1.08);
  opacity: 0.9;
  z-index: 0;
}

.texture {
  position: absolute;
  inset: -10%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.25'/></svg>");
  mix-blend-mode: soft-light;
  opacity: 0.3;
  z-index: 1;
}

.panel-stack {
  display: grid;
  gap: 18px;
  z-index: 2;
  width: min(420px, 92vw);
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  padding: 26px;
  display: grid;
  gap: 18px;
  animation: fade-in 0.8s ease both;
}

.card.slim {
  padding: 18px 22px;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  justify-self: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.username {
  text-align: center;
  font-size: 1.6rem;
  text-transform: lowercase;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.status {
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  justify-content: center;
}

.row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.presence {
  display: grid;
  gap: 12px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.presence-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.presence-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.presence-meta {
  display: grid;
  gap: 4px;
  font-size: 0.92rem;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #fff;
}

.badge svg {
  width: 14px;
  height: 14px;
}

.activity {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.activity .app-icon {
  width: 18px;
  height: 18px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.viewer {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.viewer svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.music {
  display: grid;
  gap: 12px;
}

.music-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.album {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.track {
  display: grid;
  gap: 4px;
}

.track-title {
  font-weight: 600;
}

.track-artist {
  font-size: 0.85rem;
  color: var(--muted);
}

.progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.2s linear;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}

.controls {
  display: flex;
  gap: 12px;
}

.controls button {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.controls button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.controls svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .card { padding: 22px; }
  .username { font-size: 1.4rem; }
}
