:root {
  --bg: #05050b;
  --panel: rgba(18, 16, 32, 0.72);
  --panel-hover: rgba(32, 26, 54, 0.88);
  --line: rgba(168, 85, 247, 0.28);
  --text: #f4f0ff;
  --muted: #b7aecf;
  --accent: #c084fc;
  --accent-2: #22d3ee;
  --glow: rgba(168, 85, 247, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Outfit, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

.aurora,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.aurora {
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(700px 420px at 85% 80%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(500px 360px at 50% 100%, rgba(168, 85, 247, 0.16), transparent 55%);
  animation: drift 16s ease-in-out infinite alternate;
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

.page {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.profile {
  text-align: center;
}

.avatar-wrap {
  width: 128px;
  height: 128px;
  margin: 0 auto 22px;
  position: relative;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #7c3aed, #22d3ee, #a855f7, #7c3aed);
  filter: blur(0.2px);
  animation: spin 8s linear infinite;
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  z-index: -1;
}

.avatar {
  position: relative;
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #05050b;
  display: block;
  background: #12101c;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff 20%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.role {
  margin-top: 6px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.contact svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.contact:hover {
  color: var(--text);
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 26px;
}

.social {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(16, 14, 28, 0.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.social img.icon-png {
  filter: none;
  border-radius: 3px;
}

.social:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 181, 253, 0.7);
  background: rgba(40, 30, 70, 0.9);
}

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

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  background: var(--panel-hover);
  border-color: rgba(196, 181, 253, 0.5);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.card-icon img {
  width: 22px;
  height: 22px;
  filter: invert(1);
}

.card-icon.discord { background: #5865f2; }
.card-icon.github { background: #24292f; }
.card-icon.spotify { background: #1db954; }
.card-icon.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}
.card-icon.kick { background: #0b0b0b; }
.card-icon.kick img { filter: invert(64%) sepia(93%) saturate(541%) hue-rotate(63deg); }
.card-icon.twitch { background: #9146ff; }
.card-icon.linkedin { background: #0a66c2; }
.card-icon.namemc { background: #0b0b0b; }
.card-icon.namemc img {
  filter: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.card-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.card-text strong {
  font-size: 1.02rem;
}

.card-text small {
  color: var(--muted);
  font-size: 0.82rem;
}

.chip {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1028;
  background: linear-gradient(135deg, #c084fc, #22d3ee);
  border-radius: 999px;
  padding: 5px 9px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #1b1530;
  color: #f5f3ff;
  border: 1px solid rgba(196, 181, 253, 0.4);
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.08) translateY(-18px); }
}

@media (max-width: 520px) {
  .page {
    padding-top: 48px;
  }

  h1 {
    font-size: 2rem;
  }

  .card-text small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
