:root {
  --color-amber: #ffb21e;
  --color-green: #00b100; /* reserved: "solar" wordmark accent, real logo + Phase 2 branding */
  --color-ink: #1d1d1b;
  --color-bg: #ffffff;
  --radius: 0.75rem;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

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

body {
  background: var(--color-bg);
  font-family: var(--font-base);
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 16px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.avatar-frame {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg);
  flex-shrink: 0;
}

.avatar-frame .avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.profile h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-ink);
}

.tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 2px solid var(--color-amber);
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 16px;
  isolation: isolate;
  overflow: hidden;
}

.link-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle), transparent 0deg, var(--color-amber) 8deg, #fff7e6 12deg, var(--color-amber) 16deg, transparent 28deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: current-rotate 1.1s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.link-btn:hover::before,
.link-btn:focus-visible::before,
.link-btn:active::before,
.link-btn.is-touched::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes current-rotate {
  to {
    --angle: 360deg;
  }
}
