:root {
  color-scheme: dark;
  --page-top: #242424;
  --page-mid: #151515;
  --page-bottom: #070707;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --dim: rgba(255, 255, 255, 0.55);
  --panel: #171717;
  --border: rgba(255, 255, 255, 0.16);
  --spotify: #30d567;
  --youtube: #ff0000;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bottom);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, var(--page-top) 0%, var(--page-mid) 48%, var(--page-bottom) 100%);
  color: var(--text);
}

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

button,
input {
  font: inherit;
}

.shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 16px 32px;
}

.profile {
  width: min(448px, 100%);
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}

.avatar {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

h1 {
  margin: 25px 0 10px;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
}

.profile p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.links {
  width: 100%;
  display: grid;
  gap: 16px;
  margin-top: 17px;
}

.link {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.link:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
  filter: brightness(1.04);
}

.link:focus-visible,
.socials a:focus-visible,
.text-button:focus-visible,
.muted-link:focus-visible,
.privacy-dialog button:focus-visible,
.toggle-row input:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.link img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
}

.link-spotify {
  background: var(--spotify);
}

.link-light {
  background: #ffffff;
  color: #111111;
}

.link-youtube {
  background: var(--youtube);
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

.socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 420px) {
  .shell {
    padding-top: 30px;
  }

  .avatar {
    width: 104px;
    height: 104px;
  }

  h1 {
    margin-top: 22px;
  }

  .links {
    gap: 14px;
  }

  .link {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link,
  .socials a {
    transition: none;
  }

  .link:hover,
  .socials a:hover {
    transform: none;
  }
}
