/* Main card */
.card {
  position: relative;
  z-index: 10;
  width: 420px;
  padding: 48px 40px 44px;
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(137, 233, 0, 0.07),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: cardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Corner accents */
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 60px; height: 60px;
  border-color: rgba(137, 233, 0, 0.35);
  border-style: solid;
}
.card::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: 28px 0 0 0;
}
.card::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 28px 0;
}

/* Avatar */
.avatar-wrap {
  position: relative;
  margin-bottom: 24px;
}
.avatar-ring {
  width: 88px; height: 88px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-glow), #89E900, var(--accent));
  animation: spin 6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-glow);
  letter-spacing: -1px;
}
.avatar-status {
  position: absolute;
  bottom: 5px; right: 5px;
  width: 14px; height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
  50% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.9); }
}

/* Name & bio */
.name {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 8px;
}
.bio {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.4px;
  font-style: italic;
  margin-bottom: 36px;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 32px;
}

/* Links grid */
.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  background: rgba(137, 233, 0, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: none;
  opacity: 0;
  transform: translateY(12px);
  animation: linkIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}
.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(137, 233, 0, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.link-btn:hover {
  border-color: rgba(137, 233, 0, 0.45);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(137, 233, 0, 0.18);
  background: rgba(137, 233, 0, 0.09);
}
.link-btn:hover::before { opacity: 1; }
.link-btn:hover .icon { color: var(--accent-glow); }
.link-btn:active { transform: translateY(-1px); }

.link-btn:nth-child(1) { animation-delay: 0.7s; }
.link-btn:nth-child(2) { animation-delay: 0.78s; }
.link-btn:nth-child(3) { animation-delay: 0.86s; }
.link-btn:nth-child(4) { animation-delay: 0.94s; }
.link-btn:nth-child(5) { animation-delay: 1.02s; }
.link-btn:nth-child(6) { animation-delay: 1.10s; }
.link-btn:nth-child(7) { animation-delay: 1.18s; }
.link-btn:nth-child(8) { animation-delay: 1.26s; }
.link-btn:nth-child(9) { animation-delay: 1.34s; }

@keyframes linkIn {
  to { opacity: 1; transform: translateY(0); }
}

.icon {
  font-size: 20px;
  color: rgba(137, 233, 0, 0.65);
  transition: color 0.25s, transform 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-btn:hover .icon { transform: scale(1.15); }

/* Footer */
.footer {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: linkIn 0.5s ease 1.5s forwards;
}

/* Footer badge / signature */
.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 10px;
  background: rgba(137, 233, 0, 0.06);
  border: 1px solid rgba(137, 233, 0, 0.18);
  border-radius: 999px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(137, 233, 0, 0.50);
}
.footer-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-glow), #89E900, var(--accent));
  animation: spin 4s linear infinite;
  flex-shrink: 0;
}
.footer-slash {
  font-size: 13px;
  color: rgba(80, 100, 40, 0.3);
  font-family: 'Syne', sans-serif;
}
.footer-year {
  font-size: 10px;
  color: rgba(80, 100, 40, 0.3);
  letter-spacing: 0.5px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

@media (max-width: 480px) {
  .card { width: calc(100vw - 32px); padding: 40px 28px 36px; }
  .links { gap: 10px; }
  .link-btn { padding: 14px 10px; }
}
/* Tools button inside card - top right corner */
.tools-btn-card {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: rgba(137, 233, 0, 0.07);
  border: 1px solid rgba(137, 233, 0, 0.15);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  animation: fadeInBtn 0.5s ease 1.6s forwards;
}
.tools-btn-card:hover {
  border-color: rgba(137, 233, 0, 0.45);
  color: var(--accent-glow);
  background: rgba(137, 233, 0, 0.12);
  box-shadow: 0 0 16px rgba(137, 233, 0, 0.18);
  transform: scale(1.08);
}
.tools-btn-card svg {
  transition: transform 0.25s;
}
.tools-btn-card:hover svg {
  transform: rotate(20deg);
}

/* Games button inside card - bottom right corner (below tools button) */
.games-btn-card {
  position: absolute;
  top: 62px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: rgba(137, 233, 0, 0.07);
  border: 1px solid rgba(137, 233, 0, 0.15);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  animation: fadeInBtn 0.5s ease 1.6s forwards;
}
.games-btn-card:hover {
  border-color: rgba(137, 233, 0, 0.45);
  color: var(--accent-glow);
  background: rgba(137, 233, 0, 0.12);
  box-shadow: 0 0 16px rgba(137, 233, 0, 0.18);
  transform: scale(1.08);
}
.games-btn-card svg {
  transition: transform 0.25s;
}
.games-btn-card:hover svg {
  transform: scale(1.15) rotate(-5deg);
}