:root {
  --bg: #04091b;
  --surface: rgba(10, 17, 35, 0.74);
  --surface-border: rgba(131, 170, 255, 0.2);
  --text: #f0f5ff;
  --muted: #9aa4c6;
  --brand: #4ea9ff;
  --brand-2: #ca67ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(880px, 96vw);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 20px 12px 42px;
}

.presence-pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(133, 169, 255, 0.35);
  background: rgba(8, 16, 33, 0.72);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.36);
  color: var(--muted);
  font-size: 0.88rem;
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.avatar-wrap {
  position: relative;
  width: 108px;
  height: 108px;
}

.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 169, 255, 0.35), rgba(202, 103, 255, 0.18), transparent 70%);
  z-index: -1;
  filter: blur(4px);
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: block;
  border: 2px solid rgba(142, 179, 255, 0.64);
}

.status-dot {
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #0a1429;
}

.status-online {
  background: #3ba55d;
}

.status-idle {
  background: #faa61a;
}

.status-dnd {
  background: #ed4245;
}

.status-offline {
  background: #747f8d;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #45b8ff, #7aa2ff 45%, #cc69ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bio-line {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  text-align: center;
}

.stats-row {
  width: 100%;
  max-width: 410px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-chip {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  text-align: center;
  padding: 10px 8px;
  backdrop-filter: blur(10px);
}

.stat-value {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.with-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.status-chip-dot.status-online {
  background: #3ba55d;
  color: #3ba55d;
}

.status-chip-dot.status-idle {
  background: #faa61a;
  color: #faa61a;
}

.status-chip-dot.status-dnd {
  background: #ed4245;
  color: #ed4245;
}

.status-chip-dot.status-offline {
  background: #747f8d;
  color: #747f8d;
}

.stat-label {
  margin: 4px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.links-grid {
  width: min(760px, 96vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.activity-card {
  width: min(760px, 96vw);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 20px;
  padding: 12px;
  border: 1px solid transparent;
  background:
    linear-gradient(130deg, rgba(8, 15, 33, 0.92), rgba(9, 15, 35, 0.88)) padding-box,
    linear-gradient(90deg, rgba(53, 200, 255, 0.88), rgba(198, 92, 255, 0.82)) border-box;
  box-shadow: 0 16px 44px rgba(7, 10, 20, 0.55);
}

.activity-cover {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.activity-copy {
  min-width: 0;
}

.activity-kicker {
  margin: 0;
  color: #4cfbd2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.activity-title {
  margin: 4px 0 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-subtitle {
  margin: 2px 0 0;
  color: #b5bfdc;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-progress {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.activity-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #46d9ff, #9f85ff, #d765ff);
  transition: width 0.3s linear;
}

.theme-spotify {
  background:
    linear-gradient(130deg, rgba(8, 15, 33, 0.92), rgba(9, 15, 35, 0.88)) padding-box,
    linear-gradient(90deg, rgba(63, 255, 191, 0.9), rgba(67, 221, 255, 0.85), rgba(171, 120, 255, 0.8)) border-box;
}

.theme-game {
  background:
    linear-gradient(130deg, rgba(8, 15, 33, 0.92), rgba(9, 15, 35, 0.88)) padding-box,
    linear-gradient(90deg, rgba(255, 112, 184, 0.88), rgba(145, 127, 255, 0.86), rgba(66, 215, 255, 0.82)) border-box;
}

.theme-custom {
  background:
    linear-gradient(130deg, rgba(8, 15, 33, 0.92), rgba(9, 15, 35, 0.88)) padding-box,
    linear-gradient(90deg, rgba(255, 175, 74, 0.86), rgba(231, 111, 255, 0.84)) border-box;
}

.theme-idle {
  background:
    linear-gradient(130deg, rgba(8, 15, 33, 0.92), rgba(9, 15, 35, 0.88)) padding-box,
    linear-gradient(90deg, rgba(53, 200, 255, 0.88), rgba(198, 92, 255, 0.82)) border-box;
}

.link-card {
  text-decoration: none;
  color: var(--text);
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  background: linear-gradient(140deg, rgba(13, 23, 46, 0.76), rgba(9, 16, 34, 0.74));
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(177, 196, 255, 0.45);
  box-shadow: 0 10px 26px rgba(8, 11, 21, 0.5);
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(111, 139, 255, 0.2);
  font-size: 1.15rem;
}

.link-copy {
  display: grid;
}

.link-copy strong {
  font-size: 1.05rem;
}

.link-copy small {
  color: var(--muted);
  font-size: 0.87rem;
  margin-top: 2px;
}

.arrow {
  color: #a8b7de;
}

.link-card.discord .icon-box {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.4), rgba(161, 110, 255, 0.33));
}

.link-card:nth-child(2) .icon-box {
  background: linear-gradient(135deg, rgba(165, 86, 255, 0.45), rgba(119, 71, 255, 0.35));
}

.link-card:nth-child(3) .icon-box {
  background: linear-gradient(135deg, rgba(255, 67, 136, 0.45), rgba(255, 119, 87, 0.35));
}

.link-card:nth-child(4) .icon-box {
  background: linear-gradient(135deg, rgba(70, 195, 255, 0.45), rgba(81, 137, 255, 0.35));
}

.link-card:nth-child(5) .icon-box {
  background: linear-gradient(135deg, rgba(125, 145, 255, 0.45), rgba(91, 100, 236, 0.35));
}

.link-card:nth-child(6) .icon-box {
  background: linear-gradient(135deg, rgba(42, 231, 212, 0.45), rgba(72, 158, 255, 0.35));
}

.music-pill {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(124, 159, 255, 0.55);
  background: rgba(9, 18, 38, 0.82);
  color: #deebff;
  padding: 10px 14px;
  cursor: pointer;
}

.music-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #53b8ff, #b06dff);
  color: #04101f;
  font-weight: 700;
  font-size: 0.78rem;
}

@media (max-width: 600px) {
  .links-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(1.9rem, 10vw, 2.45rem);
  }

  .music-pill {
    position: static;
    margin-top: 4px;
  }

  .activity-title {
    font-size: 1.12rem;
  }

  .activity-subtitle {
    font-size: 0.92rem;
  }
}
