/* Тема «Звёздное небо» — вариант А примерки оформления.
   Палитра и приёмы взяты у сайта владельца shustryworks.ru: тёмный синий фон,
   мерцающие звёзды на canvas (static/portal/js/starfield.js) и светящийся
   «волшебный огонёк» вместо курсора (static/portal/js/magic-cursor.js).
   Файл подключается только для темы `starfield`, поэтому правила можно писать
   без префикса — но `<html data-theme>` оставлен, чтобы тема не «протекала»,
   если CSS однажды подключат на всех страницах сразу. */

html[data-theme="starfield"] {
  --bg-deep: #0f172a;
  --bg-mid: #0d1526;
  --bg-glow: #1b2a4a;
  --card: rgba(30, 41, 59, .55);
  --card-line: rgba(148, 163, 184, .20);
  --text: #e2e8f0;
  --text-dim: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #93c5fd;
  --accent-strong: #3b82f6;
  --radius: 14px;
}

html[data-theme="starfield"] body {
  background: var(--bg-deep);
  /* Мягкое свечение сверху — «полумрак над горизонтом», как на shustryworks.ru. */
  background-image:
    radial-gradient(1000px 560px at 50% -12%, rgba(59, 130, 246, .20), transparent 70%),
    radial-gradient(760px 420px at 88% 12%, rgba(56, 189, 248, .10), transparent 75%);
  background-attachment: fixed;
}

/* Весь контент — над звёздами (canvas лежит на z-index 0). */
html[data-theme="starfield"] .top,
html[data-theme="starfield"] .wrap,
html[data-theme="starfield"] .bottom { position: relative; z-index: 1; }

/* Курсор скрываем ровно тогда, когда скрипт убедился в наличии мыши:
   класс `magic-cursor-active` он ставит сам, после проверок. */
html.magic-cursor-active,
html.magic-cursor-active * { cursor: none; }

/* --- карточки: матовое стекло --- */
html[data-theme="starfield"] .card {
  background: var(--card);
  backdrop-filter: blur(12px) saturate(120%);
  border-color: var(--card-line);
  box-shadow: 0 24px 70px rgba(2, 6, 23, .55);
}
html[data-theme="starfield"] ul.tiles a,
html[data-theme="starfield"] .step {
  background: rgba(15, 23, 42, .45);
  border-color: rgba(148, 163, 184, .18);
}

/* --- заголовок по центру, действие — «Создать ящик» --- */
html[data-theme="starfield"] .hero { max-width: 760px; margin: 0 auto; text-align: center; }
html[data-theme="starfield"] .hero .lead { margin-left: auto; margin-right: auto; }
html[data-theme="starfield"] .hero-actions { justify-content: center; }
html[data-theme="starfield"] .hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #cfe0ff 62%, #93c5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="starfield"] .tag {
  background: rgba(59, 130, 246, .16); border: 1px solid rgba(147, 197, 253, .22);
  color: #bfdbfe;
}

/* --- шапка и подвал: полупрозрачные, чтобы звёзды просвечивали --- */
html[data-theme="starfield"] .top { backdrop-filter: blur(6px); }
html[data-theme="starfield"] .bottom { background: rgba(8, 12, 20, .55); }

/* --- форма: чуть выше контраст полей, кнопка — с мягким свечением --- */
html[data-theme="starfield"] input[type=text],
html[data-theme="starfield"] input[type=email],
html[data-theme="starfield"] input[type=password],
html[data-theme="starfield"] select {
  background: rgba(15, 23, 42, .72);
  border-color: rgba(148, 163, 184, .28);
}
html[data-theme="starfield"] button,
html[data-theme="starfield"] .button {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  color: #0b1120;
  box-shadow: 0 10px 30px rgba(59, 130, 246, .35);
}
html[data-theme="starfield"] .button.ghost {
  background: rgba(59, 130, 246, .10);
  border-color: rgba(147, 197, 253, .40);
  color: #bfdbfe;
}

/* Тому, кто просил меньше движения, звёзды остаются, но без мерцания
   (скрипт рисует статичную карту) — убираем только свечения. */
@media (prefers-reduced-motion: reduce) {
  html[data-theme="starfield"] button,
  html[data-theme="starfield"] .button { box-shadow: none; }
}