.linktree-page { min-height: 100vh; min-height: 100svh; }
.linktree, .linktree-footer { width: min(540px, calc(100% - 40px)); margin-inline: auto; }
.linktree { padding-top: 48px; }
.linktree-profile { text-align: center; margin-bottom: 30px; }
.linktree-avatar { display: block; width: 92px; height: 92px; margin: 0 auto 17px; overflow: hidden; border-radius: 50%; border: 3px solid white; background: #e4e4e7; box-shadow: 0 0 0 1px #e5e5e8, 0 5px 18px rgb(0 0 0 / 5%); }
.linktree-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 80% center; transform: scale(1.5); transform-origin: 55% 5%; }
.linktree-profile h1 { font-size: 33px; letter-spacing: -.05em; line-height: 1.15; }
.linktree-profile h1 > span { color: #98989e; }
.linktree-profile p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.linktree-links ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.linktree-link { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 15px 20px 15px 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 3px 12px rgb(0 0 0 / 2%); transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.linktree-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 20px; }
.linktree-icon { display: block; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; }
.linktree-icon img { width: 100%; height: 100%; object-fit: contain; }
.linktree-icon-app img { border-radius: 12px; }
.linktree-icon-accelerator { background: #f1f1f2; }
.linktree-icon-accelerator img { border-radius: 12px; }
.linktree-icon-homelab { padding: 3px; background: white; }
.linktree-icon-social { display: flex; justify-content: center; align-items: center; background: #f4f4f6; }
.linktree-icon-social svg { width: 25px; height: 25px; }
.linktree-copy { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.linktree-name { font-size: 17px; line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.linktree-description { color: var(--muted); font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.linktree-arrow { width: 22px; height: 22px; flex-shrink: 0; margin-left: auto; color: #8b8b93; }
.linktree-link-featured { color: white; background: #19191c; border-color: #19191c; box-shadow: 0 4px 16px rgb(0 0 0 / 8%); }
.linktree-link-featured .linktree-description { color: #bdbdc5; }
.linktree-link-featured .linktree-arrow { color: #d0d0d6; }
.linktree-footer { padding: 20px 0 25px; text-align: center; }
.linktree-website { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-size: 13px; }
.linktree-legal { display: flex; justify-content: center; gap: 20px; }
.linktree-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); }
.linktree-footer p { margin-top: 3px; font-size: 11px; color: var(--muted); }
.linktree-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (hover: hover) {
  .linktree-link:hover { transform: translateY(-2px); border-color: #c9c9ce; box-shadow: 0 8px 22px rgb(0 0 0 / 5%); }
  .linktree-link-featured:hover { background: #2b2b2f; border-color: #2b2b2f; }
}
@media (max-width: 600px) {
  .linktree, .linktree-footer { width: calc(100% - 32px); max-width: 480px; }
  .linktree { padding-top: 30px; }
  .linktree-profile { display: flex; align-items: center; gap: 15px; text-align: left; margin-bottom: 25px; padding-inline: 3px; }
  .linktree-avatar { flex: 0 0 66px; width: 66px; height: 66px; margin: 0; border-width: 2px; }
  .linktree-profile h1 { font-size: 28px; }
  .linktree-profile p { font-size: 12px; margin-top: 5px; }
  .linktree-link { min-height: 80px; padding: 14px; gap: 13px; border-radius: 18px; }
  .linktree-link:focus-visible { border-radius: 18px; }
  .linktree-icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 11px; }
  .linktree-name { font-size: 16px; }
  .linktree-description { font-size: 12px; }
  .linktree-arrow { width: 20px; height: 20px; }
  .linktree-footer { padding-top: 14px; }
}
@media (max-width: 360px) {
  .linktree-profile { gap: 12px; }
  .linktree-avatar { flex-basis: 58px; width: 58px; height: 58px; }
  .linktree-profile h1 { font-size: 25px; }
  .linktree-profile p { font-size: 11px; }
  .linktree-link { gap: 10px; padding-inline: 12px; }
  .linktree-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .linktree-description { font-size: 11.5px; }
  .linktree-arrow { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .linktree-link:hover { transform: none; }
}
@media print {
  .linktree { padding-top: 0; }
  .linktree-links li { break-inside: avoid; }
  .linktree-arrow { display: none; }
}
