/*
 * Тема «Ночь» (night). Макет: холст тем, страница «Адаптация · taps-web»,
 * ряд «Ночь».
 *
 * Файл подключается только на страницах автора с этой темой (ThemeScope).
 * Все правила начинаются с .profile-theme--v2.profile-theme--night: так они
 * сильнее общих правил base.css и не задевают другие темы. Акцент —
 * var(--theme-accent), его вариант выбирает автор. Все три варианта
 * светлые, поэтому текст на акцентных кнопках тёмный.
 */

.profile-theme--v2.profile-theme--night {
  --s-accent: var(--theme-accent, #8fa8ff);
  --s-fill: var(--s-accent);
  --s-on-fill: #0e1424;
  --s-bg: #0e1424;
  --s-top: #121a33;
  --s-soft: #0e1424;
  --s-chip: #1b2440;
  --s-surface: #161e33;
  --s-line: #2c3760;
  --s-text: #e8ecf7;
  --s-muted: #a3acc4;
  --s-shadow: none;
  --s-shadow-sm: none;
  --s-photo:
    radial-gradient(
      circle at 72% 30%,
      rgba(143, 168, 255, 0.35),
      rgba(143, 168, 255, 0) 55%
    ),
    radial-gradient(circle at 24% 22%, #fff 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 46% 60%, #fff 0 1px, rgba(255, 255, 255, 0) 2px),
    linear-gradient(160deg, #1f2a4d 0%, #121a33 100%);

  --profile-bg: var(--s-bg);
  --profile-surface: var(--s-surface);
  --profile-surface-solid: var(--s-surface);
  --profile-surface-muted: var(--s-chip);
  --profile-border: var(--s-line);
  --profile-avatar-border: var(--s-line);
  --profile-banner-background: linear-gradient(180deg, #1b2440, #141c33);
  --profile-text: var(--s-text);
  --profile-text-muted: var(--s-muted);
  --profile-accent: var(--s-fill);
  --profile-accent-foreground: var(--s-on-fill);
  --profile-accent-secondary: var(--s-fill);
  --profile-accent-secondary-foreground: var(--s-on-fill);
  --profile-glow-1: transparent;
  --profile-glow-2: transparent;
  --profile-radius-card: 22px;
  --profile-radius-sm: 14px;
  --profile-radius-pill: 999px;
  --profile-radius-tab: 16px;
  --profile-radius-tab-inner: 12px;
  --profile-shadow-card: none;
  --profile-shadow-accent: none;
  --profile-shadow-glow: none;
  --profile-font-family: var(--font-t-jost), sans-serif;
  --profile-letter-spacing: 0;

  font-family: var(--profile-font-family);
  color: var(--s-text);
}

/* ---------- Фон страницы ---------- */

/* Ночное небо: сверху чуть светлее, как в макете. */
.profile-theme--v2.profile-theme--night [data-profile-page-bg] {
  background: linear-gradient(180deg, var(--s-top) 0px, var(--s-bg) 420px);
}

/* ---------- Шапка ---------- */

/* Обложка во всю ширину экрана, без отступов контейнера страницы. */
.profile-theme--v2.profile-theme--night [data-profile-cover] {
  width: auto;
  margin: -16px -16px 0;
}

.profile-theme--v2.profile-theme--night
  [data-profile-cover][data-variant='cover'] {
  justify-content: flex-start;
}

.profile-theme--v2.profile-theme--night
  [data-profile-cover][data-variant='cover']
  [data-profile-identity] {
  padding: 44px 20px 12px;
  gap: 10px;
}

.profile-theme--v2.profile-theme--night
  [data-profile-cover][data-variant='banner'] {
  height: 120px;
  border-radius: 0 0 28px 28px;
  border-bottom: 1px solid var(--s-line);
  background: linear-gradient(180deg, #1b2440 0%, #141c33 100%);
}

/* Своя обложка: фото, которое снизу растворяется в ночном фоне. */
.profile-theme--v2.profile-theme--night
  [data-cover-source='own']
  [data-profile-cover][data-variant='cover']
  [data-profile-identity] {
  padding-bottom: 28px;
}

.profile-theme--v2.profile-theme--night
  [data-cover-source='own']
  [data-variant='cover']
  [data-profile-cover-overlay] {
  background: linear-gradient(
    180deg,
    rgba(14, 20, 36, 0.15) 0%,
    rgba(14, 20, 36, 0.45) 34%,
    rgba(14, 20, 36, 0.85) 56%,
    rgba(14, 20, 36, 0.96) 72%,
    #0e1424 100%
  );
}

.profile-theme--v2.profile-theme--night
  [data-cover-source='own']
  [data-variant='banner']
  [data-profile-cover-overlay] {
  background: linear-gradient(
    180deg,
    rgba(14, 20, 36, 0.1) 0%,
    rgba(14, 20, 36, 0.45) 100%
  );
}

.profile-theme--v2.profile-theme--night
  [data-cover-source='own']
  [data-variant='cover']
  [data-profile-name],
.profile-theme--v2.profile-theme--night
  [data-cover-source='own']
  [data-variant='cover']
  [data-profile-about] {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.profile-theme--v2.profile-theme--night
  [data-profile-header][data-cover='none']
  [data-profile-identity] {
  padding-top: 28px;
  gap: 10px;
}

.profile-theme--v2.profile-theme--night
  [data-profile-header][data-cover='standard']
  [data-profile-identity] {
  gap: 10px;
}

.profile-theme--v2.profile-theme--night [data-profile-avatar] {
  width: 112px;
  height: 112px;
  border: 1px solid var(--s-line);
  border-radius: 50%;
  background: var(--s-chip);
}

.profile-theme--v2.profile-theme--night
  [data-profile-avatar][data-shape='square'] {
  border-radius: 28px;
}

.profile-theme--v2.profile-theme--night [data-profile-avatar-initial] {
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  color: var(--s-text);
}

.profile-theme--v2.profile-theme--night [data-profile-name-row] {
  margin-top: 4px;
}

.profile-theme--v2.profile-theme--night [data-profile-name] {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--s-text);
  overflow-wrap: anywhere;
}

.profile-theme--v2.profile-theme--night [data-profile-ambassador] {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--s-chip);
  color: #b8c6ff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

.profile-theme--v2.profile-theme--night [data-profile-ambassador-icon] {
  display: none;
}

.profile-theme--v2.profile-theme--night [data-profile-about] {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--s-muted);
  text-align: center;
}

/* Соцсети иконками: тёмные круги 48px с тонкой рамкой. */
.profile-theme--v2.profile-theme--night [data-profile-social-list] {
  gap: 10px;
}

.profile-theme--v2.profile-theme--night
  [data-profile-identity]
  [data-profile-social-list] {
  margin-top: 4px;
}

.profile-theme--v2.profile-theme--night [data-profile-social-link] {
  width: 48px;
  height: 48px;
  border: 1px solid var(--s-line);
  border-radius: 50%;
  background: var(--s-surface);
  color: var(--s-text);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.profile-theme--v2.profile-theme--night [data-profile-social-link]:hover {
  border-color: var(--s-accent);
  background: var(--s-surface);
  color: var(--s-accent);
}

.profile-theme--v2.profile-theme--night
  [data-profile-social-link]
  [data-profile-social-icon] {
  width: 20px;
  height: 20px;
}

.profile-theme--v2.profile-theme--night [data-profile-social-tile],
.profile-theme--v2.profile-theme--night [data-profile-social-row] {
  border: 1px solid var(--s-line);
  background: var(--s-surface);
  color: var(--s-text);
  backdrop-filter: none;
}

.profile-theme--v2.profile-theme--night [data-profile-social-tile] {
  border-radius: 20px;
}

.profile-theme--v2.profile-theme--night [data-profile-social-tile] span {
  font-size: 14px;
  font-weight: 600;
}

.profile-theme--v2.profile-theme--night [data-profile-social-row] {
  border-radius: 18px;
}

.profile-theme--v2.profile-theme--night [data-profile-social-row] span {
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.profile-theme--v2.profile-theme--night
  [data-profile-social-row]
  svg:last-child {
  color: var(--s-accent);
}

/* ---------- Декор: сияние и мерцающие звёзды ---------- */

.profile-theme--v2.profile-theme--night .night-decor,
.profile-theme--v2.profile-theme--night .night-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.profile-theme--v2.profile-theme--night .night-glow {
  position: absolute;
  left: 50%;
  top: 100px;
  width: 230px;
  height: 230px;
  margin: -115px 0 0 -115px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(143, 168, 255, 0.35),
    rgba(143, 168, 255, 0) 65%
  );
  animation: night-glow 6s ease-in-out infinite;
}

.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='banner']
  .night-glow {
  top: 120px;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  background: radial-gradient(
    circle,
    rgba(143, 168, 255, 0.4),
    rgba(143, 168, 255, 0) 62%
  );
}

/* Звезда видна, только если для неё задано место ниже. */
.profile-theme--v2.profile-theme--night .night-star {
  position: absolute;
  display: none;
  border-radius: 50%;
  background: #fff;
  animation: night-twinkle 3s ease-in-out infinite;
}

/* Звёзды шапки — из макета (телефон, полоса, компьютер). */
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='cover']
  .night-star:nth-of-type(1) {
  display: block;
  top: 35.9%;
  left: 25.5%;
  width: 3px;
  height: 3px;
  animation-duration: 3.8s;
  animation-delay: -2.5s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='cover']
  .night-star:nth-of-type(2) {
  display: block;
  top: 2.9%;
  left: 92.2%;
  width: 3px;
  height: 3px;
  animation-duration: 3.4s;
  animation-delay: -2.8s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='cover']
  .night-star:nth-of-type(3) {
  display: block;
  top: 15.7%;
  left: 5.2%;
  width: 3px;
  height: 3px;
  animation-duration: 3.3s;
  animation-delay: -2.6s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='cover']
  .night-star:nth-of-type(4) {
  display: block;
  top: 57.4%;
  left: 54.4%;
  width: 2px;
  height: 2px;
  animation-duration: 2.6s;
  animation-delay: -0.7s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='cover']
  .night-star:nth-of-type(5) {
  display: block;
  top: 86.7%;
  left: 18.2%;
  width: 2px;
  height: 2px;
  animation-duration: 3.3s;
  animation-delay: -2.3s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='cover']
  .night-star:nth-of-type(6) {
  display: block;
  top: 61.7%;
  left: 13.9%;
  width: 2px;
  height: 2px;
  animation-duration: 2.8s;
  animation-delay: 0s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='cover']
  .night-star:nth-of-type(7) {
  display: block;
  top: 21.5%;
  left: 20.9%;
  width: 2px;
  height: 2px;
  animation-duration: 4.4s;
  animation-delay: -2.6s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='cover']
  .night-star:nth-of-type(8) {
  display: block;
  top: 19.9%;
  left: 31.4%;
  width: 2px;
  height: 2px;
  animation-duration: 4.2s;
  animation-delay: -1.9s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='banner']
  .night-star:nth-of-type(1) {
  display: block;
  top: 26.7%;
  left: 61.3%;
  width: 2px;
  height: 2px;
  animation-duration: 2.9s;
  animation-delay: -2s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='banner']
  .night-star:nth-of-type(2) {
  display: block;
  top: 89.8%;
  left: 50.3%;
  width: 2px;
  height: 2px;
  animation-duration: 2.7s;
  animation-delay: -1.7s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='banner']
  .night-star:nth-of-type(3) {
  display: block;
  top: 72.8%;
  left: 70%;
  width: 3px;
  height: 3px;
  animation-duration: 2.9s;
  animation-delay: -2.8s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='banner']
  .night-star:nth-of-type(4) {
  display: block;
  top: 16.8%;
  left: 42.3%;
  width: 3px;
  height: 3px;
  animation-duration: 2.7s;
  animation-delay: -0.4s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='banner']
  .night-star:nth-of-type(5) {
  display: block;
  top: 68.8%;
  left: 6.3%;
  width: 3px;
  height: 3px;
  animation-duration: 4s;
  animation-delay: -2.7s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='banner']
  .night-star:nth-of-type(6) {
  display: block;
  top: 22.4%;
  left: 20.5%;
  width: 2px;
  height: 2px;
  animation-duration: 4s;
  animation-delay: -2.7s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='banner']
  .night-star:nth-of-type(7) {
  display: block;
  top: 39.7%;
  left: 91.1%;
  width: 2px;
  height: 2px;
  animation-duration: 3.2s;
  animation-delay: -0.1s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='banner']
  .night-star:nth-of-type(8) {
  display: block;
  top: 87.9%;
  left: 88.6%;
  width: 3px;
  height: 3px;
  animation-duration: 2.7s;
  animation-delay: -1.1s;
}
.profile-theme--v2.profile-theme--night
  .night-decor[data-variant='banner']
  .night-star:nth-of-type(9) {
  display: block;
  top: 23.7%;
  left: 13.9%;
  width: 2px;
  height: 2px;
  animation-duration: 3.9s;
  animation-delay: -2.6s;
}

/* Звёзды по краям страницы: в макете они идут по всей высоте, здесь —
   по высоте экрана, потому что слой фона закреплён. */
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(1) {
  display: block;
  top: 4%;
  left: 2.1%;
  width: 2px;
  height: 2px;
  animation-duration: 2.9s;
  animation-delay: -2s;
}
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(2) {
  display: block;
  top: 11.7%;
  left: 2.8%;
  width: 3px;
  height: 3px;
  animation-duration: 3.3s;
  animation-delay: -0.2s;
}
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(3) {
  display: block;
  top: 24.7%;
  left: 1.8%;
  width: 2px;
  height: 2px;
  animation-duration: 2.8s;
  animation-delay: -1.5s;
}
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(4) {
  display: block;
  top: 34.8%;
  left: 0.6%;
  width: 2px;
  height: 2px;
  animation-duration: 3.5s;
  animation-delay: -2.5s;
}
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(5) {
  display: block;
  top: 41.9%;
  left: 1%;
  width: 3px;
  height: 3px;
  animation-duration: 3.7s;
  animation-delay: -0.2s;
}
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(6) {
  display: block;
  top: 47.6%;
  left: 98.5%;
  width: 2px;
  height: 2px;
  animation-duration: 2.9s;
  animation-delay: -2.9s;
}
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(7) {
  display: block;
  top: 59.5%;
  left: 1.2%;
  width: 2px;
  height: 2px;
  animation-duration: 3.9s;
  animation-delay: -1.2s;
}
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(8) {
  display: block;
  top: 64.1%;
  left: 2%;
  width: 2px;
  height: 2px;
  animation-duration: 3.9s;
  animation-delay: -2.4s;
}
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(9) {
  display: block;
  top: 71.3%;
  left: 0.8%;
  width: 3px;
  height: 3px;
  animation-duration: 2.7s;
  animation-delay: -1.4s;
}
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(10) {
  display: block;
  top: 77.2%;
  left: 3.8%;
  width: 2px;
  height: 2px;
  animation-duration: 3.1s;
  animation-delay: -2.2s;
}
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(11) {
  display: block;
  top: 92.9%;
  left: 3.4%;
  width: 2px;
  height: 2px;
  animation-duration: 4.3s;
  animation-delay: -1.4s;
}
.profile-theme--v2.profile-theme--night .night-sky .night-star:nth-of-type(12) {
  display: block;
  top: 94%;
  left: 1.9%;
  width: 3px;
  height: 3px;
  animation-duration: 3.5s;
  animation-delay: -2.9s;
}

@media (min-width: 768px) {
  .profile-theme--v2.profile-theme--night .night-glow {
    top: 140px;
    width: 340px;
    height: 340px;
    margin: -170px 0 0 -170px;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(1) {
    display: block;
    top: 48.5%;
    left: 82.2%;
    width: 3px;
    height: 3px;
    animation-duration: 3.1s;
    animation-delay: 0s;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(2) {
    display: block;
    top: 96.6%;
    left: 58.6%;
    width: 3px;
    height: 3px;
    animation-duration: 3.9s;
    animation-delay: -1s;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(3) {
    display: block;
    top: 80.2%;
    left: 27.3%;
    width: 2px;
    height: 2px;
    animation-duration: 3.9s;
    animation-delay: -1.2s;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(4) {
    display: block;
    top: 9.4%;
    left: 53.9%;
    width: 3px;
    height: 3px;
    animation-duration: 3.6s;
    animation-delay: -2.1s;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(5) {
    display: block;
    top: 80.3%;
    left: 26.6%;
    width: 3px;
    height: 3px;
    animation-duration: 3.8s;
    animation-delay: -2.5s;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(6) {
    display: block;
    top: 36.2%;
    left: 99%;
    width: 2px;
    height: 2px;
    animation-duration: 3.3s;
    animation-delay: -0.8s;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(7) {
    display: block;
    top: 19.7%;
    left: 9.4%;
    width: 3px;
    height: 3px;
    animation-duration: 3.7s;
    animation-delay: -0.9s;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(8) {
    display: block;
    top: 20.1%;
    left: 58.9%;
    width: 2px;
    height: 2px;
    animation-duration: 3.8s;
    animation-delay: -1.1s;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(9) {
    display: block;
    top: 64.5%;
    left: 51.5%;
    width: 2px;
    height: 2px;
    animation-duration: 3.9s;
    animation-delay: -2.4s;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(10) {
    display: block;
    top: 24.5%;
    left: 63.3%;
    width: 2px;
    height: 2px;
    animation-duration: 3.4s;
    animation-delay: -1.1s;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(11) {
    display: block;
    top: 88%;
    left: 9%;
    width: 2px;
    height: 2px;
    animation-duration: 3.5s;
    animation-delay: -0.4s;
  }

  .profile-theme--v2.profile-theme--night
    .night-decor
    .night-star:nth-of-type(12) {
    display: block;
    top: 71.9%;
    left: 26.8%;
    width: 3px;
    height: 3px;
    animation-duration: 3.3s;
    animation-delay: -0.7s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(1) {
    display: block;
    top: 4%;
    left: 8.7%;
    width: 2px;
    height: 2px;
    animation-duration: 3.1s;
    animation-delay: -2.9s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(2) {
    display: block;
    top: 8.8%;
    left: 17.6%;
    width: 3px;
    height: 3px;
    animation-duration: 4.1s;
    animation-delay: -0.1s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(3) {
    display: block;
    top: 13.9%;
    left: 84.2%;
    width: 2px;
    height: 2px;
    animation-duration: 2.9s;
    animation-delay: -1s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(4) {
    display: block;
    top: 21.2%;
    left: 9.3%;
    width: 2px;
    height: 2px;
    animation-duration: 2.9s;
    animation-delay: -0.2s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(5) {
    display: block;
    top: 27.3%;
    left: 27.2%;
    width: 2px;
    height: 2px;
    animation-duration: 2.8s;
    animation-delay: -2.4s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(6) {
    display: block;
    top: 32.9%;
    left: 22.8%;
    width: 3px;
    height: 3px;
    animation-duration: 3.6s;
    animation-delay: -2.5s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(7) {
    display: block;
    top: 39.4%;
    left: 9.6%;
    width: 3px;
    height: 3px;
    animation-duration: 3.2s;
    animation-delay: -1.6s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(8) {
    display: block;
    top: 43.6%;
    left: 28.5%;
    width: 2px;
    height: 2px;
    animation-duration: 3.6s;
    animation-delay: -1.2s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(9) {
    display: block;
    top: 49%;
    left: 12.8%;
    width: 2px;
    height: 2px;
    animation-duration: 2.7s;
    animation-delay: -1.9s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(10) {
    display: block;
    top: 52.2%;
    left: 73.3%;
    width: 3px;
    height: 3px;
    animation-duration: 2.7s;
    animation-delay: -1.4s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(11) {
    display: block;
    top: 59.1%;
    left: 6.1%;
    width: 3px;
    height: 3px;
    animation-duration: 4.1s;
    animation-delay: -2.7s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(12) {
    display: block;
    top: 64%;
    left: 3.7%;
    width: 2px;
    height: 2px;
    animation-duration: 3.9s;
    animation-delay: -0.7s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(13) {
    display: block;
    top: 71.2%;
    left: 80.9%;
    width: 3px;
    height: 3px;
    animation-duration: 2.8s;
    animation-delay: -2.6s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(14) {
    display: block;
    top: 73%;
    left: 23.6%;
    width: 2px;
    height: 2px;
    animation-duration: 2.9s;
    animation-delay: -0.2s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(15) {
    display: block;
    top: 80.5%;
    left: 97.1%;
    width: 2px;
    height: 2px;
    animation-duration: 3.5s;
    animation-delay: -0.8s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(16) {
    display: block;
    top: 84.7%;
    left: 85.1%;
    width: 2px;
    height: 2px;
    animation-duration: 3.4s;
    animation-delay: -0.6s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(17) {
    display: block;
    top: 90.2%;
    left: 3%;
    width: 3px;
    height: 3px;
    animation-duration: 2.8s;
    animation-delay: -2.6s;
  }

  .profile-theme--v2.profile-theme--night
    .night-sky
    .night-star:nth-of-type(18) {
    display: block;
    top: 94%;
    left: 4.3%;
    width: 3px;
    height: 3px;
    animation-duration: 4.3s;
    animation-delay: -1.2s;
  }
}

/* ---------- Карточки и кнопки ---------- */

.profile-theme--v2.profile-theme--night [data-profile-card] {
  border: 1px solid var(--s-line);
  border-radius: 22px;
  background: var(--s-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--s-shadow);
  padding: 20px;
  gap: 16px;
}

.profile-theme--v2.profile-theme--night [data-profile-title] {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--s-text);
}

.profile-theme--v2.profile-theme--night [data-profile-card-text] {
  font-size: 15px;
  line-height: 1.5;
  color: var(--s-muted);
}

.profile-theme--v2.profile-theme--night [data-profile-channel-title] {
  font-size: 16px;
  font-weight: 600;
  color: var(--s-text);
}

.profile-theme--v2.profile-theme--night [data-profile-separator] {
  background: var(--s-line);
}

/* Основное действие в карточке: заливка акцентом, тёмный текст. */
.profile-theme--v2.profile-theme--night [data-profile-action='primary'] {
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--s-fill);
  color: var(--s-on-fill);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  box-shadow: none;
}

.profile-theme--v2.profile-theme--night [data-profile-action='primary']:hover {
  background: color-mix(in srgb, var(--s-accent) 85%, #fff);
}

.profile-theme--v2.profile-theme--night
  [data-profile-action='primary'][data-profile-size='small'] {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

/* Кнопки-ссылки страницы: тёмная плашка с тонкой рамкой. */
.profile-theme--v2.profile-theme--night [data-profile-action='link'] {
  min-height: 54px;
  border: 1px solid var(--s-line);
  border-radius: 16px;
  background: var(--s-surface);
  color: var(--s-text);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  box-shadow: var(--s-shadow-sm);
}

.profile-theme--v2.profile-theme--night [data-profile-action='link']:hover {
  border-color: var(--s-accent);
}

/* Мелкие кнопки «Подробнее», «Все товары», пилюли футера. */
.profile-theme--v2.profile-theme--night [data-profile-ghost] {
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--s-line);
  border-radius: 10px;
  background: var(--s-soft);
  color: var(--s-text);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

.profile-theme--v2.profile-theme--night [data-profile-ghost]:hover {
  background: var(--s-surface);
}

/* ---------- Battle ---------- */

.profile-theme--v2.profile-theme--night [data-profile-block='battle'] {
  padding: 18px;
  gap: 14px;
  border: 1px solid var(--s-accent);
  border-radius: 22px;
  background: var(--s-surface);
  color: var(--s-text);
  box-shadow: var(--s-shadow);
  backdrop-filter: none;
}

.profile-theme--v2.profile-theme--night [data-profile-battle-icon] {
  border-radius: 12px;
  background: var(--s-chip);
  color: var(--s-text);
}

.profile-theme--v2.profile-theme--night [data-profile-battle-status] {
  font-size: 13px;
  font-weight: 700;
  color: #ff8a7a;
}

.profile-theme--v2.profile-theme--night
  [data-profile-battle-status]
  > span:last-child {
  color: var(--s-muted);
  font-weight: 500;
}

.profile-theme--v2.profile-theme--night [data-profile-battle-dot] {
  background: #ff5a45;
  animation: night-twinkle 1.4s ease-in-out infinite;
}

.profile-theme--v2.profile-theme--night [data-profile-battle-title] {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.profile-theme--v2.profile-theme--night
  [data-profile-block='battle']
  [data-profile-action='primary'] {
  min-height: 48px;
}

.profile-theme--v2.profile-theme--night [data-profile-block='battle-result'] {
  padding: 14px 18px;
}

/* ---------- Услуга ---------- */

.profile-theme--v2.profile-theme--night [data-profile-service-format] {
  font-size: 13px;
  font-weight: 600;
  color: var(--s-muted);
}

.profile-theme--v2.profile-theme--night [data-profile-service-price] {
  font-size: 17px;
  font-weight: 700;
}

.profile-theme--v2.profile-theme--night
  [data-profile-block='service']
  [data-profile-action='primary'] {
  min-height: 48px;
}

/* ---------- Донат ---------- */

.profile-theme--v2.profile-theme--night [data-profile-block='donation'] {
  gap: 12px;
}

.profile-theme--v2.profile-theme--night [data-profile-currency-input-field] {
  height: 54px;
  border: 1px solid var(--s-line);
  border-radius: 14px;
  background: var(--s-soft);
  color: var(--s-text);
  font-size: 20px;
  font-weight: 700;
  box-shadow: none;
}

.profile-theme--v2.profile-theme--night
  [data-profile-currency-input-field]:focus {
  border-color: var(--s-accent);
}

.profile-theme--v2.profile-theme--night [data-profile-currency-input-suffix] {
  color: var(--s-muted);
  font-weight: 600;
}

.profile-theme--v2.profile-theme--night [data-profile-quick-amounts] {
  gap: 8px;
}

.profile-theme--v2.profile-theme--night [data-profile-donation-quick-amount] {
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--s-line);
  border-radius: 12px;
  background: var(--s-soft);
  color: var(--s-text);
  font-size: 14px;
  font-weight: 400;
}

.profile-theme--v2.profile-theme--night
  [data-profile-donation-quick-amount][data-active='true'] {
  border-color: var(--s-fill);
  background: var(--s-fill);
  color: var(--s-on-fill);
  font-weight: 700;
}

.profile-theme--v2.profile-theme--night [data-profile-block='donation-goal'] {
  gap: 12px;
}

.profile-theme--v2.profile-theme--night [data-profile-goal-title] {
  font-size: 17px;
  font-weight: 600;
}

.profile-theme--v2.profile-theme--night [data-profile-goal-progress] {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--s-soft);
}

.profile-theme--v2.profile-theme--night [data-profile-goal-progress-fill] {
  height: 100%;
  border-radius: 999px;
  background-image: none !important;
  background-color: var(--s-fill) !important;
}

.profile-theme--v2.profile-theme--night [data-profile-goal-amounts] {
  font-size: 15px;
  font-weight: 600;
}

.profile-theme--v2.profile-theme--night
  [data-profile-block='donation-goal']
  [data-profile-action='primary'] {
  margin-top: 4px;
}

/* ---------- Магазин ---------- */

.profile-theme--v2.profile-theme--night [data-profile-block='shop'] {
  gap: 16px;
}

.profile-theme--v2.profile-theme--night
  [data-profile-block='shop']
  [data-product-card] {
  align-items: center;
  gap: 14px;
}

.profile-theme--v2.profile-theme--night [data-product-image] {
  border-radius: 16px;
  background: var(--s-photo);
}

.profile-theme--v2.profile-theme--night
  [data-profile-block='shop']
  [data-product-image] {
  width: 84px;
  height: 84px;
}

.profile-theme--v2.profile-theme--night [data-product-image] img {
  border-radius: 16px;
}

.profile-theme--v2.profile-theme--night [data-product-badge] {
  border-radius: 999px;
  background: var(--s-fill);
}

.profile-theme--v2.profile-theme--night [data-product-badge] p {
  color: var(--s-on-fill);
  font-size: 12px;
  font-weight: 700;
}

.profile-theme--v2.profile-theme--night [data-product-title] {
  font-weight: 600;
  color: var(--s-text);
}

.profile-theme--v2.profile-theme--night
  [data-profile-block='shop']
  [data-product-title] {
  font-size: 16px;
}

.profile-theme--v2.profile-theme--night [data-product-price] {
  color: var(--s-muted);
}

.profile-theme--v2.profile-theme--night
  [data-profile-block='shop']
  [data-product-price] {
  font-size: 15px;
}

.profile-theme--v2.profile-theme--night [data-product-buy-mobile] {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--s-soft);
  color: var(--s-text);
}

.profile-theme--v2.profile-theme--night [data-product-buy] {
  border: 1px solid var(--s-line);
  border-radius: 12px;
  background: var(--s-soft);
  color: var(--s-text);
  font-size: 15px;
  font-weight: 600;
}

/* Мозаика: без размытия, снизу тёмная подложка под текст. */
.profile-theme--v2.profile-theme--night [data-profile-mosaic-tile] {
  border: 1px solid var(--s-line);
  border-radius: 16px;
  background: var(--s-photo);
}

.profile-theme--v2.profile-theme--night [data-profile-mosaic-blur] {
  display: none;
}

.profile-theme--v2.profile-theme--night [data-profile-mosaic-overlay] {
  height: 85%;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(
    180deg,
    rgba(14, 20, 36, 0),
    rgba(14, 20, 36, 0.94) 40%
  );
}

.profile-theme--v2.profile-theme--night [data-profile-mosaic-title] {
  font-weight: 700;
  color: var(--s-text);
  text-shadow: none;
}

.profile-theme--v2.profile-theme--night [data-profile-mosaic-price] {
  color: var(--s-muted);
  text-shadow: none;
}

.profile-theme--v2.profile-theme--night
  [data-profile-mosaic-tile]
  [data-product-buy] {
  border: 0;
  border-radius: 12px;
  background: var(--s-fill);
  color: var(--s-on-fill);
  font-weight: 700;
}

/* ---------- Видео ---------- */

.profile-theme--v2.profile-theme--night
  [data-profile-block='video']
  [data-profile-title] {
  font-size: 18px;
}

.profile-theme--v2.profile-theme--night [data-profile-block='video'] {
  gap: 14px;
}

.profile-theme--v2.profile-theme--night [data-profile-video-frame] {
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 26%, #fff 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 82% 18%, #fff 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 64% 72%, #fff 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle at 34% 80%, #fff 0 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(
      circle at 50% 50%,
      rgba(143, 168, 255, 0.4),
      rgba(143, 168, 255, 0) 60%
    ),
    linear-gradient(160deg, #1f2a4d 0%, #0e1424 100%);
}

.profile-theme--v2.profile-theme--night [data-profile-play] {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: var(--s-fill);
  color: var(--s-on-fill);
  backdrop-filter: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.profile-theme--v2.profile-theme--night [data-profile-play] svg {
  width: 22px;
  height: 22px;
  color: var(--s-on-fill);
  fill: currentColor;
}

/* ---------- Футер ---------- */

.profile-theme--v2.profile-theme--night footer [data-profile-ghost] {
  min-height: 40px;
  border-radius: 12px;
  background: var(--s-surface);
  font-size: 14px;
  font-weight: 400;
}

.profile-theme--v2.profile-theme--night [data-profile-powered-by] {
  font-family:
    var(--font-sf-pro),
    -apple-system,
    sans-serif;
  color: var(--s-muted);
}

.profile-theme--v2.profile-theme--night footer a,
.profile-theme--v2.profile-theme--night [data-profile-footer-link] {
  color: var(--s-muted);
}

/* ---------- Компьютер ---------- */

@media (min-width: 768px) {
  .profile-theme--v2.profile-theme--night [data-profile-cover] {
    width: 100vw;
    margin: -16px 0 0 calc(50% - 50vw);
  }

  .profile-theme--v2.profile-theme--night
    [data-profile-cover][data-variant='cover']
    [data-profile-identity] {
    padding: 64px 20px 16px;
    gap: 12px;
  }

  .profile-theme--v2.profile-theme--night
    [data-cover-source='own']
    [data-profile-cover][data-variant='cover']
    [data-profile-identity] {
    padding-bottom: 40px;
  }

  .profile-theme--v2.profile-theme--night
    [data-profile-cover][data-variant='banner'] {
    height: 200px;
    border-radius: 0 0 36px 36px;
  }

  .profile-theme--v2.profile-theme--night
    [data-profile-header][data-cover='none']
    [data-profile-identity] {
    padding-top: 48px;
    gap: 12px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-avatar] {
    width: 140px;
    height: 140px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-avatar-initial] {
    font-size: 54px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-name] {
    font-size: 38px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-verified] {
    width: 26px;
    height: 26px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-ambassador] {
    padding: 6px 14px;
    font-size: 13px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-about] {
    font-size: 16px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-social-link] {
    width: 52px;
    height: 52px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-card] {
    padding: 24px;
    gap: 18px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-title] {
    font-size: 22px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-card-text] {
    font-size: 16px;
  }

  .profile-theme--v2.profile-theme--night
    [data-profile-block='video']
    [data-profile-title] {
    font-size: 22px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-channel-title] {
    font-size: 17px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-action='primary'] {
    min-height: 58px;
    font-size: 17px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-action='link'] {
    min-height: 58px;
    font-size: 17px;
  }

  /* Battle на компьютере — одной строкой, кнопка справа. */
  .profile-theme--v2.profile-theme--night [data-profile-block='battle'] {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
  }

  .profile-theme--v2.profile-theme--night
    [data-profile-block='battle']
    > span:first-child {
    flex: 1;
    min-width: 0;
    gap: 18px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-battle-icon] {
    width: 52px;
    height: 52px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-battle-title] {
    font-size: 20px;
  }

  .profile-theme--v2.profile-theme--night
    [data-profile-block='battle']
    [data-profile-action='primary'] {
    flex-shrink: 0;
    min-height: 50px;
    padding: 0 28px;
    font-size: 16px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-service-price] {
    font-size: 19px;
  }

  .profile-theme--v2.profile-theme--night
    [data-profile-block='service']
    [data-profile-action='primary'] {
    min-height: 50px;
    padding: 0 32px;
    font-size: 16px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-block='donation'] {
    gap: 14px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-currency-input-field] {
    height: 58px;
    font-size: 22px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-quick-amounts] {
    gap: 12px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-donation-quick-amount] {
    height: 46px;
    font-size: 15px;
  }

  .profile-theme--v2.profile-theme--night [data-profile-block='shop'] {
    gap: 20px;
  }

  .profile-theme--v2.profile-theme--night
    [data-profile-block='shop']
    [data-product-card] {
    align-items: stretch;
    gap: 8px;
  }

  .profile-theme--v2.profile-theme--night
    [data-profile-block='shop']
    [data-product-image] {
    width: 100%;
    height: auto;
  }

  .profile-theme--v2.profile-theme--night [data-product-buy] {
    min-height: 42px;
  }
}

/* ---------- Анимации ---------- */

@keyframes night-twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes night-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-theme--v2.profile-theme--night .night-decor *,
  .profile-theme--v2.profile-theme--night .night-sky *,
  .profile-theme--v2.profile-theme--night [data-profile-battle-dot] {
    animation: none;
  }

  .profile-theme--v2.profile-theme--night .night-star {
    opacity: 0.7;
  }
}
