/* ============================================================
   PLAYDING — studio.css
   «Создать игру»: неоновый пошаговый мастер (визард) с живым
   превью карточки каталога. Дизайн-система хабa AIMONOPOLY.

   СТРУКТУРА:
   1. Токены дизайн-системы (тёмная тема — единственная)
   2. Кнопка «Создать игру» в шапке + базовые каркасы страницы
   3. Степпер + прогресс-бар
   4. Лейаут «форма + правая колонка»
   5. Поля формы (label, ?-подсказки, ошибки, счётчики, примеры)
   6. Tags-чипы (chips input)
   7. Дропзоны и превью файлов (HTML / обложка / скриншоты)
   8. Radio-карточки доступа + итоговая сводка + публикация
   9. Навигация шагов (Назад / Далее)
   10. Живая карточка каталога + чек-лист + «Как это работает»
   11. Экран успеха
   12. Мои игры / Модерация (списки, пустые состояния)
   ============================================================ */

/* ============================================================
   1. ТОКЕНЫ ДИЗАЙН-СИСТЕМЫ
   --font-body / --font-display / --radius-pill уже определены
   в css/main.css — переиспользуем их (не дублируем).
   var --bg-card в main.css — стеклянный; для студии переопределяем
   на плотный #101623 в .studio-page (инкапсуляция, хаб не трогаем).
   ============================================================ */
:root {
  --bg-page: #0a0e17;                 /* фон страницы, почти чёрный синий */
  --bg-header: rgba(10, 14, 23, 0.82);/* полупрозрачный хедер + blur */
  --bg-card: #101623;                 /* фон карточек/секций (переопределён для .studio-page ниже) */
  --bg-card-2: #141c2e;               /* фон внутренних блоков, hover карточек */
  --bg-input: #0d1320;                /* фон полей ввода */
  --border-1: rgba(148, 163, 184, 0.14); /* тонкие границы карточек */
  --border-2: rgba(148, 163, 184, 0.26); /* границы активных элементов */
  --cyan: #22d3ee;                    /* главный неоновый акцент (логотип, ссылки, focus) */
  --cyan-glow: rgba(34, 211, 238, 0.35); /* свечение акцента */
  --violet: #8b5cf6;                  /* второй акцент (градиенты, жанровые теги) */
  --violet-soft: #a78bfa;
  --orange: #fb923c;                  /* теги технологий/сеттингов, warning */
  --green: #4ade80;                   /* успех, валидные состояния, рейтинг */
  --red: #f87171;                     /* ошибки */
  --pink: #f43f5e;                    /* деструктивные действия (Выйти) */
  --text-1: #e6edf7;                  /* основной текст */
  --text-2: #94a3b8;                  /* вторичный текст, подписи */
  --text-3: #64748b;                  /* плейсхолдеры, мета-текст */
  --grad-btn: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%); /* главная CTA-кнопка */
  --radius-card: 16px;
  --radius-ctl: 12px;
  --shadow-neon: 0 0 24px rgba(34, 211, 238, 0.18);
}

/* Студия — только тёмная тема. Фиксируем главные токены main.css
   в тёмных значениях, чтобы даже при toggle темы не появлялись
   светлые блоки. */
body.studio-page {
  --bg-deep: #0a0e17;
  --bg-base: #101623;
  --bg-elevated: #141c2e;
  --bg-card: #101623;
  --bg-hover: #1c2541;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(34, 211, 238, 0.4);
  --text-primary: #e6edf7;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #22d3ee;
  --accent-violet: #8b5cf6;
  --accent-orange: #fb923c;
  --accent-green: #4ade80;
  --danger: #f43f5e;
  --shadow-glow: 0 0 24px rgba(34, 211, 238, 0.35);
  color-scheme: dark;
  font-family: var(--font-body);
  background-color: var(--bg-page);
}

/* Контрастный фокус-кольцо именно на странице студии */
body.studio-page :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ============================================================
   2. КНОПКА «СОЗДАТЬ ИГРУ» + КАРКАС СТРАНИЦЫ
   ============================================================ */
.btn--studio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-ctl);
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.18));
  color: var(--text-1);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn--studio:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: var(--shadow-neon);
}

/* Шире контейнер студии, чем у account.html: нужен двухколоночный макет */
body.studio-page .account-page {
  width: min(1200px, calc(100vw - 32px));
}
.studio-page .account-page__head { margin-bottom: 10px; }

.studio-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
}
.studio-nav .btn--ghost {
  background: var(--bg-card-2);
  border-color: var(--border-1);
  color: var(--text-2);
}
.studio-nav .btn--ghost:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
}

.studio-page-section {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  background: var(--bg-card);
}
.studio-page-section__head { margin-bottom: 8px; }
.studio-page-section__head .account-section__title { margin: 0 0 4px; }

/* Заголовок шага + статус черновика */
.studio-wizard__head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.studio-wizard__head-row .account-section__title { margin: 0; }
.studio-wizard__head .auth-form__subtitle { margin-top: 4px; }

.studio-draft-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

/* ============================================================
   3. СТЕППЕР + ПРОГРЕСС
   ============================================================ */
.studio-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 6px;
  list-style: none;
}
.studio-stepper__step {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.studio-stepper__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: var(--bg-card-2);
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.studio-stepper__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  transition: color 0.2s ease;
}
.studio-stepper__step.is-active .studio-stepper__num {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: var(--shadow-neon);
}
.studio-stepper__step.is-active .studio-stepper__label {
  color: var(--text-1);
}
.studio-stepper__step.is-done .studio-stepper__num {
  border-color: var(--green);
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  font-size: 0;
}
.studio-stepper__step.is-done .studio-stepper__num::after {
  content: "✓";
  font-size: 15px;
  font-weight: 800;
}
.studio-stepper__step.is-done .studio-stepper__label {
  color: var(--green);
}
.studio-stepper__line {
  flex: 1;
  min-width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--border-1);
  transition: background 0.3s ease;
}
.studio-stepper__step.is-done + .studio-stepper__line {
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.7), rgba(34, 211, 238, 0.7));
}

/* Прогресс-бар: тонкая полоса под степпером */
.studio-progress {
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--border-1);
  overflow: hidden;
}
.studio-progress__bar {
  height: 100%;
  width: 33%;
  border-radius: inherit;
  background: var(--grad-btn);
  box-shadow: var(--shadow-neon);
  transition: width 0.35s ease;
}
.studio-progress__label {
  margin: 8px 0 0;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

/* ============================================================
   4. ЛЕЙАУТ «ФОРМА + ПРАВАЯ КОЛОНКА»
   ============================================================ */
.studio-wizard__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}
.studio-wizard__form { min-width: 0; }

.studio-wizard__side {
  position: sticky;
  top: 90px; /* под фиксированной шапкой */
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.studio-side-block {
  padding: 18px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  background: var(--bg-card-2);
}
.studio-side-block__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Скрытие шагов визарда: [hidden] обрабатывается в main.css;
   здесь только кастомный вид fieldset-шага */
.wizard-step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.wizard-step--enter {
  animation: wizard-step-in 200ms var(--ease) both;
}

/* ============================================================
   5. ПОЛЯ ФОРМЫ
   ============================================================ */
.studio-field {
  margin: 0 0 22px;
}
.studio-field:last-child { margin-bottom: 0; }

.studio-field__label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.studio-field__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
}
fieldset.studio-field > legend.studio-field__label {
  padding: 0;
  margin-bottom: 10px;
}

/* Точка «обязательное поле» (не звёздочка) */
.studio-field__req {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* Бейдж необязательности */
.studio-badge-opt {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-1);
  background: var(--bg-input);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
}

.studio-field__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-ctl);
  border: 1px solid var(--border-1);
  background: var(--bg-input);
  color: var(--text-1);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.studio-field__input::placeholder { color: var(--text-3); }
.studio-field__input:hover { border-color: var(--border-2); }
.studio-field__input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), var(--shadow-neon);
}
.studio-field__input--error,
.studio-field.has-error .studio-field__input {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}
.studio-field__area {
  resize: vertical;
  min-height: 112px;
  line-height: 1.55;
}

.studio-field__counter {
  display: block;
  text-align: right;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
}
.studio-field__counter.is-warn { color: var(--orange); }
.studio-field__counter.is-limit {
  color: var(--red);
  font-weight: 700;
}

.studio-field__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.studio-field__hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-3);
}
.studio-field__example {
  padding: 0;
  border: 0;
  border-bottom: 1px dashed rgba(34, 211, 238, 0.5);
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.studio-field__example:hover {
  color: var(--violet-soft);
  border-color: var(--violet-soft);
}

/* Inline-ошибка под полем: ⚠ + красный текст 13px */
.studio-field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  line-height: 1.4;
}
.studio-field__error::before {
  content: "⚠";
  flex-shrink: 0;
  font-size: 12px;
}

/* Зоны загрузки с ошибкой — красная рамка */
.studio-field.has-error .studio-dropzone {
  border-color: var(--red);
}

/* ------- Подсказка «?» (tooltip) ------- */
.studio-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: help;
  position: relative;
  vertical-align: middle;
  user-select: none;
  flex-shrink: 0;
}
.studio-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #101724;
  border: 1px solid var(--border-2);
  color: var(--text-1);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 30;
}
.studio-tip:hover::after,
.studio-tip:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

/* ============================================================
   6. ТЕГИ: CHIPS-INPUT
   ============================================================ */
.studio-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 9px 12px;
  border-radius: var(--radius-ctl);
  border: 1px solid var(--border-1);
  background: var(--bg-input);
  cursor: text;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.studio-chips:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), var(--shadow-neon);
}
.studio-chips__field {
  flex: 1;
  min-width: 140px;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--text-1);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}
.studio-chips__field::placeholder { color: var(--text-3); }

.studio-chips__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  font-size: 12.5px;
  font-weight: 600;
  animation: chip-in 160ms var(--ease);
  max-width: 100%;
}
.studio-chips__chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-chips__chip--cyan {
  background: rgba(34, 211, 238, 0.13);
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.38);
}
.studio-chips__chip--violet {
  background: rgba(139, 92, 246, 0.14);
  color: var(--violet-soft);
  border-color: rgba(139, 92, 246, 0.4);
}
.studio-chips__chip--orange {
  background: rgba(251, 146, 60, 0.13);
  color: var(--orange);
  border-color: rgba(251, 146, 60, 0.38);
}
.studio-chips__x {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.studio-chips__x:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   7. ДРОПЗОНЫ И ПРЕВЬЮ ФАЙЛОВ
   ============================================================ */
.studio-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 26px 18px;
  min-height: 64px;
  border: 1.5px dashed var(--border-2);
  border-radius: var(--radius-ctl);
  text-align: center;
  cursor: pointer;
  color: var(--text-3);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.studio-dropzone:hover,
.studio-dropzone:focus,
.studio-dropzone.is-dragover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  box-shadow: var(--shadow-neon);
}
.studio-dropzone p { margin: 2px 0; }
.studio-dropzone b { color: var(--text-1); }
.studio-dropzone svg { color: var(--cyan); opacity: 0.85; margin-bottom: 2px; }
.studio-dropzone__meta { font-size: 0.72rem; opacity: 0.8; }

/* Зоны изображений — фиксированные пропорции 16:9 */
.studio-dropzone--image {
  aspect-ratio: 16 / 9;
  padding: 16px;
}

/* Обложка: превью поверх зоны */
.studio-cover-wrap {
  position: relative;
}
.studio-preview--cover {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 2;
}
.studio-cover {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-ctl);
  overflow: hidden;
  border: 1px solid var(--cyan);
  box-shadow: var(--shadow-neon);
  background: var(--bg-input);
}
.studio-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio-cover__clear {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-2);
  background: rgba(10, 14, 23, 0.8);
  color: var(--text-1);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.studio-cover__clear:hover {
  color: var(--red);
  border-color: var(--red);
}

/* Контейнер превью (базовый) */
.studio-preview {
  display: block;
  margin-top: 8px;
}

/* Скриншоты: 2 слота 16:9 */
.studio-screens {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.studio-screens__slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 1.5px dashed var(--border-2);
  border-radius: var(--radius-ctl);
  background: rgba(13, 19, 32, 0.5);
  color: var(--text-3);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.studio-screens__slot--empty:hover,
.studio-screens__slot--empty:focus,
.studio-screens__slot--empty.is-dragover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.05);
  box-shadow: var(--shadow-neon);
}
.studio-screens__plus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}
.studio-screens__hint { font-size: 11.5px; font-weight: 500; }

.studio-screens__slot--filled {
  border-style: solid;
  border-color: var(--border-1);
  background: var(--bg-card-2);
  padding: 0;
  overflow: hidden;
  cursor: default;
}
.studio-screens__slot--filled img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-screens__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--red);
  background: rgba(10, 14, 23, 0.78);
  color: var(--red);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.studio-screens__remove:hover {
  background: rgba(248, 113, 113, 0.22);
  transform: scale(1.08);
}

/* Карточка выбранного HTML-файла */
.studio-dropzone__name { margin-top: 10px; }
.studio-filecard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-ctl);
  background: var(--bg-card-2);
}
.studio-filecard__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--green);
}
.studio-filecard__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.studio-filecard__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-filecard__size {
  font-size: 12px;
  color: var(--text-3);
}
.studio-filecard__ok {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.16);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}
.studio-filecard__replace {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}
.studio-filecard__replace:hover {
  background: rgba(34, 211, 238, 0.16);
  box-shadow: var(--shadow-neon);
}

/* ============================================================
   8. RADIO-КАРТОЧКИ + СВОДКА + ПУБЛИКАЦИЯ
   ============================================================ */
.studio-vis__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.studio-vis-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  background: var(--bg-card-2);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.studio-vis-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.studio-vis-card:hover {
  border-color: var(--border-2);
  transform: translateY(-1px);
}
.studio-vis-card.is-selected {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  box-shadow: var(--shadow-neon);
}
.studio-vis-card:has(input:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.studio-vis-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #04121a;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-neon);
}
.studio-vis-card__icon { font-size: 24px; line-height: 1; }
.studio-vis-card__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-1);
}
.studio-vis-card.is-selected .studio-vis-card__title { color: var(--cyan); }
.studio-vis-card__desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-3);
}

/* Итоговая сводка */
.studio-summary {
  margin-top: 4px;
  padding: 16px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  background: var(--bg-input);
}
.studio-summary__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--violet-soft);
}
.studio-summary__grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 14px;
  margin: 0;
}
.studio-summary__grid dt {
  font-size: 12px;
  color: var(--text-3);
}
.studio-summary__grid dd {
  margin: 0;
  font-size: 13px;
  color: var(--text-1);
  word-break: break-word;
}
.studio-summary__desc {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
}

/* Публикация */
.studio-publish { margin-top: 22px; }
.studio-publish__btn {
  width: 100%;
  padding: 15px 24px;
  border-radius: var(--radius-ctl);
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-neon);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.studio-publish__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.45);
  filter: brightness(1.06);
}

/* Load-состояние кнопки отправки */
.btn.is-loading {
  pointer-events: none;
  color: transparent !important;
  position: relative;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

.studio-form__error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-ctl);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 500;
}
.studio-form__note {
  margin: 12px 0 0;
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ============================================================
   9. НАВИГАЦИЯ ШАГОВ (Назад / Далее)
   ============================================================ */
.wizard-nav {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.wizard-nav .btn { min-height: 44px; padding: 10px 22px; }
.wizard-nav__back {
  background: var(--bg-card-2);
  border-color: var(--border-1);
  color: var(--text-2);
}
.wizard-nav__back:hover {
  color: var(--text-1);
  border-color: var(--border-2);
  transform: translateY(-1px);
}
.wizard-nav__next {
  background: transparent;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-weight: 700;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.wizard-nav__next:hover {
  background: rgba(34, 211, 238, 0.1);
  box-shadow: var(--shadow-neon);
  transform: translateY(-1px);
}

/* ============================================================
   10. ЖИВАЯ КАРТОЧКА КАТАЛОГА + ЧЕК-ЛИСТ + ГАЙД
   ============================================================ */
.live-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-1);
  background: var(--bg-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.live-card:has(.live-card__title:not(:empty)) {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: var(--shadow-neon);
}
.live-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-input);
}
.live-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-card__cover-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}
.live-card__cover-ph span {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.live-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.live-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.live-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
}
.live-card__no-tags {
  font-size: 11.5px;
  color: var(--text-3);
  font-style: italic;
}
.live-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.live-card__price {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}
.live-card__play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-size: 12px;
  box-shadow: var(--shadow-neon);
}

/* Тег-пилл живого превью (правило цветов карточек хаба) */
.studio-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}
.studio-tag--cyan {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.32);
}
.studio-tag--violet {
  background: rgba(139, 92, 246, 0.14);
  color: var(--violet-soft);
  border-color: rgba(139, 92, 246, 0.38);
}
.studio-tag--orange {
  background: rgba(251, 146, 60, 0.12);
  color: var(--orange);
  border-color: rgba(251, 146, 60, 0.34);
}

/* Чек-лист готовности */
.studio-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  list-style: none;
}
.studio-checklist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  transition: color 0.2s ease, background 0.2s ease;
}
.studio-checklist__item.is-done {
  color: var(--green);
  background: rgba(74, 222, 128, 0.07);
}
.studio-checklist__mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  font-size: 12px;
}
.studio-checklist__item.is-done .studio-checklist__mark {
  border-color: var(--green);
  background: rgba(74, 222, 128, 0.14);
  font-weight: 800;
}
.studio-checklist__opt {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  border: 1px solid var(--border-1);
  color: var(--text-3);
  font-size: 10.5px;
  font-style: normal;
}

/* «Как это работает» */
.studio-guide {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.studio-guide li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  counter-increment: step;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.studio-guide li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #04121a;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

/* ============================================================
   11. ЭКРАН УСПЕХА
   ============================================================ */
.studio-success {
  text-align: center;
  padding: 44px 20px 36px;
  animation: fade-up 0.4s var(--ease) both;
}
.studio-success__check {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: rgba(74, 222, 128, 0.1);
  box-shadow: 0 0 44px rgba(74, 222, 128, 0.35);
  color: var(--green);
  animation: success-pop 0.45s var(--ease) both;
}
.studio-success__path {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: check-draw 0.5s 0.25s var(--ease) forwards;
}
.studio-success__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-1);
}
.studio-success__text {
  margin: 0 auto 24px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ============================================================
   12. МОИ ИГРЫ / МОДЕРАЦИЯ
   ============================================================ */
.studio-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.studio-empty {
  color: var(--text-3);
  text-align: center;
  padding: 24px 0;
  font-size: 13.5px;
}

/* Пустое состояние: неоновая иконка + объяснение + CTA */
.studio-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 20px;
  text-align: center;
}
.studio-empty-state__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  box-shadow: var(--shadow-neon);
}
.studio-empty-state__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}
.studio-empty-state__text {
  max-width: 340px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
}
.studio-empty-state .btn { margin-top: 8px; }

.studio-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-1);
  background: var(--bg-card);
}
.studio-item__thumb {
  width: 150px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--border-1);
}
.studio-item__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--bg-card-2);
}
.studio-item__body { flex: 1; min-width: 0; }
.studio-item__title {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-1);
}
.studio-item__meta {
  margin: 2px 0 6px;
  color: var(--text-3);
  font-size: 0.78rem;
}
.studio-item__desc {
  margin: 6px 0;
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.45;
}
.studio-item__reason {
  margin: 6px 0;
  color: var(--red);
  font-size: 0.84rem;
}
.studio-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.studio-item__actions .btn--accent {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: var(--shadow-neon);
}
.studio-item__actions .btn--ghost {
  background: var(--bg-card-2);
  border-color: var(--border-1);
  color: var(--text-2);
}
.studio-item__actions .btn--ghost:hover {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.5);
}

/* Бейджи статусов */
.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 700;
}
.studio-badge--pending {
  background: rgba(251, 146, 60, 0.13);
  color: var(--orange);
  border-color: rgba(251, 146, 60, 0.32);
}
.studio-badge--approved {
  background: rgba(74, 222, 128, 0.13);
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.32);
}
.studio-badge--rejected {
  background: rgba(248, 113, 113, 0.13);
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.32);
}

/* Модерация */
.studio-review {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.studio-review__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-review__reason { width: 100%; }

.studio-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 10px;
}
.studio-shot-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-1);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.studio-shot-link:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.7);
}
.studio-shot {
  width: 160px;
  height: 90px;
  object-fit: cover;
  display: block;
}
.studio-code-wrap { margin: 8px 0 10px; }
.studio-code {
  max-height: 340px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: var(--radius-ctl);
  border: 1px solid var(--border-1);
  background: #0b101b;
  color: #c7d2e4;
  font: 12px/1.5 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Двухшаговое удаление заявки (без confirm): «Точно удалить?» */
.studio-item .btn.is-armed {
  border-color: var(--red);
  color: var(--red);
  background: rgba(248, 113, 113, 0.08);
}