:root {
  --bg: #090b10;
  --bg-soft: #0f131c;
  --text: #ecf1f8;
  --muted: #8e9cb0;
  --line: #202a3b;
  --line-hover: #334867;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(60rem 35rem at 50% -20%, #18263f 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #07090d 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.bg-dots {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

.card {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 28px 22px;
  text-align: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  animation: lift-in 600ms ease-out both;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

h1 {
  margin: 0;
  font-size: clamp(1.2rem, 1.5vw + 0.95rem, 1.6rem);
  letter-spacing: 0.01em;
}

.subtitle {
  margin: 6px 0 24px;
  color: #ffffff;
  font-size: 0.96rem;
}

.text-container {
  width: min(100%, 256px);
  margin: 0 auto 24px;
  padding: 11px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 19, 28, 0.7);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.text-container:hover {
  border-color: var(--line-hover);
  background: rgba(24, 38, 63, 0.35);
  transform: translateY(-1px);
}

.text-container p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text);
}

.text-container p + p {
  margin-top: 10px;
}

.links {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 10px;
  width: min(100%, 256px);
}

.links li {
  opacity: 0;
  transform: translateY(8px);
  animation: fade-up 500ms ease-out forwards;
}

.links li:nth-child(1) { animation-delay: 90ms; }
.links li:nth-child(2) { animation-delay: 140ms; }
.links li:nth-child(3) { animation-delay: 190ms; }
.links li:nth-child(4) { animation-delay: 240ms; }

.links a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(15, 19, 28, 0.7);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.links a:hover,
.links a:focus-visible {
  border-color: var(--line-hover);
  background: rgba(24, 38, 63, 0.35);
  transform: translateY(-1px);
}

.link-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
}

.local-logo {
  border-radius: 4px;
}


@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  .card {
    width: min(100%, 430px);
    padding: 22px 14px;
  }

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

  .subtitle {
    margin: 6px 0 20px;
  }

  .text-container {
    width: min(100%, 235px);
    margin: 0 auto 20px;
    padding: 10px 11px;
    border-radius: 11px;
  }

  .text-container p {
    font-size: 0.9rem;
  }

  .links {
    gap: 8px;
    width: min(100%, 235px);
  }

  .links a {
    padding: 10px 11px;
    border-radius: 11px;
    gap: 9px;
  }

}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
