:root {
  --bg: #1a120a;
  --fg: #f3e3c8;
  --muted: #c9b08a;
  --card: rgba(243, 227, 200, 0.08);
  --card-hover: rgba(243, 227, 200, 0.14);
  --border: rgba(243, 227, 200, 0.18);
  --accent: #ff8a3d;
  --accent-2: #d4a574;
  --tan: #e8c79a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(80vmax 60vmax at 50% -10%, rgba(255, 138, 61, 0.28), transparent 60%),
    radial-gradient(60vmax 50vmax at 100% 100%, rgba(212, 165, 116, 0.22), transparent 55%),
    var(--bg);
}

.wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(32px, 8vh, 72px) 20px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.halo {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 90vw);
  height: min(560px, 90vw);
  background: conic-gradient(from 90deg, var(--accent), var(--accent-2), var(--accent));
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to { transform: translateX(-50%) rotate(360deg); }
}

.avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(140px, 38vw, 180px);
  height: clamp(140px, 38vw, 180px);
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 40px rgba(255, 138, 61, 0.45);
  transition: transform 0.3s ease;
}

.avatar:hover { transform: scale(1.04); }
.avatar:active { transform: scale(0.98); }

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #222;
}

.name {
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 22px 0 6px;
}

.tag {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.links {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.link:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.link:active { transform: translateY(0); }

.link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.link-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}

.link.song .link-icon { color: #1ed760; }

.link-art {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.link-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.link-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.link-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.link-sub {
  font-size: 12px;
  color: var(--muted);
}

.link-chev {
  color: var(--muted);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.link:hover .link-chev { transform: translateX(3px); color: var(--fg); }

.socials {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.social {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.social:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #1a120a;
  transform: translateY(-2px);
}

.social:active { transform: translateY(0); }

.foot {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  .halo { animation: none; }
  * { transition: none !important; }
}
