@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-hover: rgba(255, 255, 255, 0.22);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --accent: rgba(255, 255, 255, 0.9);
}

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

html, body {
  min-height: 100%;
  font-family: -apple-system, 'SF Pro Display', 'Nunito', BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: #0a0a0f;
  overflow-x: hidden;
  position: relative;
}

/* Animated mesh background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-mesh::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(120, 80, 255, 0.35) 0%, transparent 70%);
  animation: drift1 12s ease-in-out infinite alternate;
}

.bg-mesh::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(0, 160, 255, 0.3) 0%, transparent 70%);
  animation: drift2 15s ease-in-out infinite alternate;
}

.bg-orb {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(255, 60, 130, 0.15) 0%, transparent 70%);
  z-index: 0;
  animation: drift3 10s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8%, 12%) scale(1.1); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-10%, -8%) scale(1.15); }
}
@keyframes drift3 {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-48%, -54%) scale(1.2); }
}

/* Noise grain overlay */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Layout */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 48px;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  animation: fadeUp 0.7s ease both;
}

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

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(120, 80, 255, 0.8),
    rgba(0, 180, 255, 0.8),
    rgba(255, 60, 130, 0.8),
    rgba(120, 80, 255, 0.8)
  );
  animation: spin 6s linear infinite;
  z-index: 0;
}

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

.avatar-inner {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #0a0a0f;
  z-index: 1;
  overflow: hidden;
}

.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(120, 80, 255, 0.6), rgba(0, 160, 255, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
}

header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Links */
main {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.5s ease both;
}

.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.link-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

.link-btn:active {
  transform: scale(0.98);
  transition: transform 0.08s ease;
}

.btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}

.btn-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
}

.btn-chevron {
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Platform-specific icon colors */
.icon-twitch    { background: rgba(145, 70, 255, 0.25); }
.icon-youtube   { background: rgba(255, 50, 50, 0.25); }
.icon-instagram { background: rgba(225, 48, 108, 0.2); }
.icon-threads   { background: rgba(255,255,255,0.08); }
.icon-x         { background: rgba(255,255,255,0.08); }
.icon-discord   { background: rgba(88, 101, 242, 0.25); }
.icon-spotify   { background: rgba(29, 185, 84, 0.25); }
.icon-info      { background: rgba(255,255,255,0.08); }

/* Staggered animation delays */
.link-btn:nth-child(1) { animation-delay: 0.10s; }
.link-btn:nth-child(2) { animation-delay: 0.15s; }
.link-btn:nth-child(3) { animation-delay: 0.20s; }
.link-btn:nth-child(4) { animation-delay: 0.25s; }
.link-btn:nth-child(5) { animation-delay: 0.30s; }
.link-btn:nth-child(6) { animation-delay: 0.35s; }
.link-btn:nth-child(7) { animation-delay: 0.40s; }
.link-btn:nth-child(8) { animation-delay: 0.45s; }
.link-btn:nth-child(9) { animation-delay: 0.50s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
  animation: fadeUp 0.7s 0.6s ease both;
  opacity: 0;
}

/* Chevron SVG */
svg.chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}