* { box-sizing: border-box; }

:root {
  --bg: #050505;
  --button: #e9e9e7;
  --button-hover: #f2f2f0;
  --text: #111;
  --muted: #858585;
  --border: rgba(255,255,255,.08);
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: white;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  min-height: 100svh;
  -webkit-tap-highlight-color: transparent;
}

.page {
  width: min(100% - 32px, 560px);
  margin: 0 auto;
  padding: max(44px, env(safe-area-inset-top) + 28px) 0 28px;
}

.profile {
  text-align: center;
  margin-bottom: 28px;
}

.avatar {
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #161616;
  border: 1px solid var(--border);
  font-size: 30px;
  font-weight: 700;
  color: #ededeb;
}

h1 {
  margin: 0;
  font-size: 23px;
  letter-spacing: .8px;
}

.profile p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.link {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 15px;
  background: var(--button);
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: transform .16s ease, background .16s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  touch-action: manipulation;
}

.link:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

.link:active {
  transform: scale(.985);
}

.link-icon {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.loading, .empty {
  color: #666;
  text-align: center;
  padding: 25px 0;
  font-size: 14px;
}

footer {
  text-align: center;
  color: #555;
  font-size: 12px;
  margin-top: 30px;
}

@media (max-width: 420px) {
  .page {
    width: calc(100% - 24px);
    padding-top: max(32px, env(safe-area-inset-top) + 20px);
  }

  .profile { margin-bottom: 24px; }
  .avatar { width: 76px; height: 76px; }
  .link { min-height: 56px; border-radius: 14px; }
}
