* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ================= RGB по краю экрана ================= */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  padding: 2px; /* тонкая рамка */
  border-radius: 42px;
  background: conic-gradient(
    from var(--angle),
    red,
    yellow,
    lime,
    cyan,
    blue,
    magenta,
    red
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: rotate 4s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  to { --angle: 360deg; }
}

/* ================= Карточка ================= */

.card {
  min-height: 100dvh;       /* минимум = экран */
  width: 100dvw;
  padding: 24px 20px 40px;
  text-align: center;

  overflow-y: auto;        /* включается ТОЛЬКО если нужно */
}

/* если контента мало — центрируем */
.card.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ================= Аватар ================= */

.avatar-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 30px;
  padding: 2px;
  border-radius: 50%;
  background: conic-gradient(
    from var(--angle),
    red,
    yellow,
    lime,
    cyan,
    blue,
    magenta,
    red
  );
  animation: rotate 4s linear infinite;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= Текст ================= */

h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.subtitle {
  opacity: 0.6;
  margin-bottom: 25px;
}

/* ================= Кнопки ================= */

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

.links a {
  text-decoration: none;
  color: #fff;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1e1e1e, #141414);
  transition: 0.15s ease;
  font-weight: 500;
}

.links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.links a:active {
  transform: scale(0.96);
}

/* ================= Скролл ================= */

.card::-webkit-scrollbar {
  width: 6px;
}

.card::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}