:root {
  --mist-color-a: rgba(0, 64, 0, 0.08);
  --mist-color-b: rgba(0, 32, 0, 0.05);
  --title-glow-rgb: 80,255,120;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at top, #010801 0%, #000000 70%);
  font-family: "Courier New", Courier, monospace;
  color: #fff;
  user-select: none;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.card {
  position: relative;
  width: 360px;
  height: 280px;
  padding: 20px;
  background: linear-gradient(145deg, #000000, #001400);
  border-radius: 20px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.9),
    inset 0 0 40px rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 128, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transform-style: preserve-3d;
  will-change: transform, filter, box-shadow;
  overflow: hidden;
}

.avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(80, 255, 80, 0.5);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.15);
  transform: translateZ(40px);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#title {
  font-size: 44px;
  letter-spacing: 1px;
  background: linear-gradient(to bottom, #ccffdd, #00ff55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(80,255,120,0.15);
  font-weight: bold;
  transform: translateZ(40px);
  margin: 0;
}

.gradient-text {
  font-size: 14px;
  color: #aaa;
  letter-spacing: 1px;
  background: linear-gradient(45deg, #ffffff, #66ff99, #00ff55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  transform: translateZ(30px);
  margin: 0;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.social-row {
  display: flex;
  gap: 10px;
  margin: 0;
  transform: translateZ(30px);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.4);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.social-link:hover {
  transform: translateY(-2px);
}

.discord-link {
  background-color: #5865F2;
}

.telegram-link {
  background-color: #0088cc;
}

.social-icon {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

#copy-popup {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.9);
  color: #e5e7eb;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#copy-popup.visible {
  opacity: 1;
}

.mist {
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(circle at 30% 30%, var(--mist-color-a), transparent 60%),
    radial-gradient(circle at 70% 60%, var(--mist-color-b), transparent 55%);
  filter: blur(36px);
  pointer-events: none;
}
