/* —— Кнопки и всплывающее окно картинки (05.11.2026) ——
   Автор: «Кнопки загрузки арта можем сделать покрасивше? да и везде кнопки делать покрасивше».
   Один общий вид кнопки на всём сайте: тёмная с золотой обводкой при наведении.
   Главные действия (в формах) остаются золотыми — правило .form-card button выше по файлу. */

button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #171c24;
  color: var(--text);
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}
button:hover { border-color: var(--gold); color: var(--gold); background: #1b2129; }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid rgba(201, 162, 39, .55); outline-offset: 2px; }
button:disabled, button[disabled] { opacity: .45; cursor: default; transform: none; }
button.ghost { background: transparent; }

/* Ссылка-кнопка того же вида */
.knopka-ssylka {
  display: inline-block; padding: 9px 15px; border: 1px solid var(--gold); border-radius: 10px;
  color: var(--gold); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.15;
  transition: background .14s ease, color .14s ease;
}
.knopka-ssylka:hover { background: rgba(201, 162, 39, .14); }

/* —— Загрузка файла: вместо «голого» поля — кнопка с именем файла —— */
.zagruzka { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.zagruzka-fayl {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border: 1px dashed rgba(201, 162, 39, .55); border-radius: 10px;
  color: var(--gold); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}
.zagruzka-fayl:hover { background: rgba(201, 162, 39, .1); border-color: var(--gold); }
.zagruzka-fayl input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.zagruzka-imya { color: var(--dim); font-size: 12.5px; max-width: 220px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }

/* —— Всплывающее окно картинки: клик по арту открывает во весь экран с приближением —— */
.oko-kartinki {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 8, 12, .92); backdrop-filter: blur(3px); touch-action: none;
}
.oko-kartinki[hidden] { display: none; }
.oko-kartinki img {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  max-width: none; user-select: none; -webkit-user-drag: none; cursor: grab;
}
.oko-kartinki.tyanem img { cursor: grabbing; }
.oko-knopki { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 2; }
.oko-knopka {
  width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #e8e2d4;
}
.oko-knopka:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .32); }
.oko-podskazka {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  color: rgba(232, 226, 212, .6); font-size: 12px; pointer-events: none;
}

/* Арты в списке персонажей — одного размера, кликабельные */
.pers-art, .pers-art-karta { cursor: zoom-in; }
