:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #090607;
  color: #f7eeee;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(72, 20, 28, 0.2), transparent 56%),
    radial-gradient(ellipse at 12% 100%, rgba(48, 15, 21, 0.18), transparent 38%),
    #090607;
}

body::before {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(201, 140, 147, 0.1) 0.7px, transparent 0.7px);
  background-position: center;
  background-size: 26px 26px;
  content: "";
  opacity: 0.12;
  pointer-events: none;
}

.link-page {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - 32px, 860px);
  align-items: center;
  flex-direction: column;
  padding: 28px 0;
}

.intro {
  margin-bottom: 24px;
  text-align: center;
}

.intro h1 {
  margin: 0;
  color: #f3e8e8;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.intro p {
  margin: 7px 0 0;
  color: #ab9799;
  font-size: 14px;
}

.avatar {
  display: block;
  width: 148px;
  height: 148px;
  border: 2px solid #604047;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 36%;
  box-shadow: 0 0 0 5px rgba(112, 39, 49, 0.12);
}

.accent-divider {
  display: flex;
  width: 76px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 20px auto 0;
}

.accent-divider span {
  width: 29px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(152, 74, 84, 0.56));
}

.accent-divider span:last-child {
  transform: rotate(180deg);
}

.accent-divider i {
  width: 5px;
  height: 5px;
  background: #9a4c55;
  transform: rotate(45deg);
}

.social-links {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  perspective: 900px;
}

.social-card {
  --tint: 170, 125, 245;
  display: flex;
  flex: 0 1 152px;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(163, 103, 111, 0.23);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(47, 21, 25, 0.78), rgba(19, 13, 15, 0.96) 72%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  color: #f5eded;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease-out;
  animation: card-in 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--delay, 120ms);
  will-change: transform;
}

.social-card:hover,
.social-card:focus-visible {
  border-color: rgba(190, 113, 122, 0.52);
  background: linear-gradient(145deg, rgba(67, 28, 34, 0.82), rgba(28, 16, 18, 0.98) 76%);
  box-shadow: 0 8px 20px rgba(48, 10, 17, 0.3);
  outline: none;
  transform: perspective(900px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) translateY(-7px) scale(1.06);
}

.social-card.is-pressed {
  animation: card-click 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.social-card svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  fill: rgb(var(--tint));
}

.social-card--github {
  --tint: 168, 162, 177;
  --delay: 120ms;
}

.social-card--discord {
  --tint: 140, 143, 184;
  --delay: 190ms;
}

.social-card--steam {
  --tint: 150, 160, 174;
  --delay: 260ms;
}

.social-card--youtube {
  --tint: 184, 116, 121;
  --delay: 330ms;
}

.social-card--telegram {
  --tint: 117, 152, 177;
  --delay: 470ms;
}

.page-note {
  display: grid;
  gap: 3px;
  margin-top: 22px;
  color: rgba(209, 185, 187, 0.54);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.page-note p {
  margin: 0;
}

.cursor-particles,
.cursor-dot {
  position: fixed;
  z-index: 5;
  pointer-events: none;
}

.cursor-particles {
  z-index: 6;
  inset: 0;
  overflow: hidden;
}

.cursor-dot {
  z-index: 7;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(215, 164, 170, 0.7);
  border-radius: 50%;
  background: rgba(148, 79, 88, 0.82);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, width 180ms ease, height 180ms ease;
  will-change: transform;
}

.cursor-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8d5b61;
  opacity: 0.7;
  animation: cursor-particle-fade 420ms ease-out forwards;
}

.cursor-particle--burst {
  width: 6px;
  height: 6px;
  background: #a2676d;
  animation-duration: 620ms;
}

.cursor-dot.is-visible {
  opacity: 1;
}

.cursor-dot.is-hovering {
  width: 14px;
  height: 14px;
}

@keyframes card-in {
  from {
    opacity: 0;
    filter: blur(3px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes card-click {
  0% {
    transform: perspective(900px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) translateY(-7px) scale(1.06);
  }
  28% {
    transform: perspective(900px) rotateX(-16deg) rotateY(18deg) translateY(-18px) scale(1.14);
  }
  55% {
    transform: perspective(900px) rotateX(12deg) rotateY(-14deg) translateY(5px) scale(0.96);
  }
  78% {
    transform: perspective(900px) rotateX(-6deg) rotateY(7deg) translateY(-4px) scale(1.04);
  }
  100% {
    transform: perspective(900px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) translateY(-7px) scale(1.06);
  }
}

@keyframes cursor-particle-fade {
  from {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--particle-x), var(--particle-y)) scale(0.15);
  }
}

@media (max-width: 840px) {
  .link-page {
    width: min(100% - 36px, 560px);
  }

  .social-links {
    gap: 12px;
  }

  .social-card {
    flex-basis: calc((100% - 24px) / 3);
  }
}

@media (max-width: 480px) {
  .avatar {
    width: 128px;
    height: 128px;
  }

  .social-links {
    gap: 10px;
    margin-top: 10px;
  }

  .page-note {
    margin-top: 14px;
  }

  .social-card {
    flex-basis: calc((100% - 10px) / 2);
    min-height: 60px;
    justify-content: flex-start;
    padding: 10px 13px;
    font-size: 12px;
  }
}

@media (max-height: 480px) and (min-width: 481px) {
  body {
    place-items: safe center;
  }

  .link-page {
    padding: 10px 0;
  }

  .intro {
    margin-bottom: 8px;
  }

  .intro h1 {
    font-size: 20px;
  }

  .intro p {
    margin-top: 4px;
    font-size: 12px;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .accent-divider {
    margin-top: 8px;
  }

  .social-links {
    gap: 8px;
    margin-top: 8px;
  }

  .page-note {
    margin-top: 8px;
    font-size: 10px;
  }

  .social-card {
    flex-basis: 152px;
    min-height: 48px;
    gap: 6px;
    padding: 6px 8px;
    font-size: 12px;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-particles,
  .cursor-dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
