:root {
  --bg: #0a0a0d;
  --panel: #14141a;
  --panel-2: #1a1a21;
  --text: #f3f3f5;
  --muted: #a1a1ad;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #9146ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(145, 70, 255, 0.12), transparent 35%),
    linear-gradient(180deg, #101015 0%, #08080b 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(520px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.profile {
  text-align: center;
  padding: 1.5rem 0 1.25rem;
}

.avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1rem;
  border-radius: 1.5rem;
  display: block;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.bio {
  margin: 0.5rem auto 0;
  max-width: 32ch;
  color: var(--muted);
  line-height: 1.6;
}

.links {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.snake-button-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}

.snake-svg {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  overflow: visible;
  pointer-events: none;
  z-index: 3;
  display: block;
}

.snake-path {
  fill: none;
  stroke: #9146ff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 84 16;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
  animation: snakeMove 5s linear infinite;
  filter:
    drop-shadow(0 0 4px #9146ff)
    drop-shadow(0 0 10px #9146ff)
    drop-shadow(0 0 18px rgba(145, 70, 255, 0.72));
}

.snake-path.tail {
  stroke-width: 7;
  opacity: 0.22;
  filter:
    drop-shadow(0 0 8px #9146ff)
    drop-shadow(0 0 18px rgba(145, 70, 255, 0.55));
}

.snake-button {
  position: relative;
  width: 100%;
  z-index: 2;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(20, 20, 26, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(145, 70, 255, 0.35);
}

.primary {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.18), rgba(145, 70, 255, 0.08));
}

@keyframes snakeMove {
  to {
    stroke-dashoffset: -100;
  }
}

.link-title {
  font-weight: 600;
}

.link-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  padding: 1.5rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 420px) {
  .page {
    width: min(100% - 1rem, 520px);
    padding-top: 2rem;
  }

  .link-card {
    padding: 0.95rem 1rem;
  }
}
