@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&display=swap');

:root {
  --purple: #8d4bb4;
  --purple-soft: #b873d4;
  --panel: rgba(12, 9, 20, 0.78);
  --button: rgba(47, 43, 56, 0.72);
  --border: rgba(255, 255, 255, 0.16);
  --text: #f8f6fb;
  --muted: #aaa5b3;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #0d0a13;
}

.background {
  position: fixed;
  inset: -20px;
  z-index: 0;
  background: url("assets/background.jpg") center center / cover no-repeat;
  filter: saturate(.88) brightness(.90);
  transform: scale(1.03);
}

.shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(82, 47, 102, .14), transparent 38%),
    linear-gradient(180deg, rgba(12, 9, 18, .10), rgba(9, 7, 14, .48));
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 21px 16px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.name-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 32px;
  background: rgba(25, 24, 31, .82);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #b8e83e;
  font-size: 25px;
  line-height: 1;
  background: #555a60;
}

.card {
  width: min(100%, 422px);
  margin-top: 27px;
  padding: 28px 25px 25px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(14, 10, 24, .86), rgba(12, 9, 19, .82));
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7657a5, #6d3b83);
  box-shadow: 0 0 22px rgba(144, 70, 184, .36);
}

.profile {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  border: 2px solid #3b294b;
}

.tag {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 4px 13px 3px;
  border-radius: 20px;
  border: 1px solid rgba(183, 111, 209, .38);
  background: rgba(117, 63, 132, .20);
  color: #c7b6ce;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: 31px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.8px;
}

.intro {
  margin: 13px auto 30px;
  max-width: 330px;
  text-align: center;
  color: #c1bdc6;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}

.links {
  display: grid;
  gap: 12px;
}

.link-card {
  min-height: 77px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(90deg, rgba(54,50,63,.76), rgba(42,39,51,.76));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 121, 221, .45);
  background: linear-gradient(90deg, rgba(62,56,72,.86), rgba(48,43,59,.86));
}

.link-card:active { transform: translateY(0); }

.icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #333;
  stroke-width: 1.9;
}

.icon.instagram svg {
  stroke: url(#instagram-gradient);
}

.icon.instagram { color: #e44d9a; }
.icon.instagram svg rect,
.icon.instagram svg circle { stroke: #e34b9b; }
.icon.instagram svg circle:last-child { fill: #e34b9b; stroke: none; }

.icon.discord svg {
  fill: #626cff;
  stroke: none;
}

.link-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.link-text strong {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.link-text small {
  color: #a8a4ad;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

.arrow {
  color: #aaa6af;
  font-size: 22px;
  line-height: 1;
  padding-right: 1px;
}

.footer-text {
  margin-top: 21px;
  text-align: center;
  color: #85808b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

@media (max-width: 520px) {
  .page { padding: 14px 12px 24px; }
  .name-pill { min-height: 50px; font-size: 15px; }
  .card {
    margin-top: 18px;
    padding: 24px 17px 22px;
    border-radius: 25px;
  }
  .profile-wrap { width: 105px; height: 105px; margin-bottom: 15px; }
  h1 { font-size: 28px; }
  .intro { font-size: 14px; margin-bottom: 24px; }
  .link-card { min-height: 72px; padding: 10px 12px; gap: 12px; }
  .icon { flex-basis: 44px; width: 44px; height: 44px; }
  .icon svg { width: 24px; height: 24px; }
  .link-text strong { font-size: 14px; }
}

@media (max-height: 780px) and (min-width: 700px) {
  .page { padding-top: 12px; }
  .name-pill { min-height: 48px; }
  .card { margin-top: 14px; padding-top: 22px; padding-bottom: 20px; }
  .profile-wrap { width: 100px; height: 100px; margin-bottom: 12px; }
  .intro { margin-bottom: 22px; }
}
